mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Update README.md (#652)
Rework example so that if you use a custom LLM it doesn't throw code errors by uncommenting.
This commit is contained in:
committed by
Braelyn Boynton
parent
9ac6752cbf
commit
8e5bface29
24
README.md
24
README.md
@@ -70,6 +70,17 @@ os.environ["SERPER_API_KEY"] = "Your Key" # serper.dev API key
|
|||||||
# os.environ["OPENAI_MODEL_NAME"] ='openhermes' # Adjust based on available model
|
# os.environ["OPENAI_MODEL_NAME"] ='openhermes' # Adjust based on available model
|
||||||
# os.environ["OPENAI_API_KEY"] ='sk-111111111111111111111111111111111111111111111111'
|
# os.environ["OPENAI_API_KEY"] ='sk-111111111111111111111111111111111111111111111111'
|
||||||
|
|
||||||
|
# You can pass an optional llm attribute specifying what model you wanna use.
|
||||||
|
# It can be a local model through Ollama / LM Studio or a remote
|
||||||
|
# model like OpenAI, Mistral, Antrophic or others (https://docs.crewai.com/how-to/LLM-Connections/)
|
||||||
|
#
|
||||||
|
# import os
|
||||||
|
# os.environ['OPENAI_MODEL_NAME'] = 'gpt-3.5-turbo'
|
||||||
|
#
|
||||||
|
# OR
|
||||||
|
#
|
||||||
|
# from langchain_openai import ChatOpenAI
|
||||||
|
|
||||||
search_tool = SerperDevTool()
|
search_tool = SerperDevTool()
|
||||||
|
|
||||||
# Define your agents with roles and goals
|
# Define your agents with roles and goals
|
||||||
@@ -81,18 +92,9 @@ researcher = Agent(
|
|||||||
You have a knack for dissecting complex data and presenting actionable insights.""",
|
You have a knack for dissecting complex data and presenting actionable insights.""",
|
||||||
verbose=True,
|
verbose=True,
|
||||||
allow_delegation=False,
|
allow_delegation=False,
|
||||||
tools=[search_tool]
|
|
||||||
# You can pass an optional llm attribute specifying what model you wanna use.
|
# You can pass an optional llm attribute specifying what model you wanna use.
|
||||||
# It can be a local model through Ollama / LM Studio or a remote
|
# llm=ChatOpenAI(model_name="gpt-3.5", temperature=0.7),
|
||||||
# model like OpenAI, Mistral, Antrophic or others (https://docs.crewai.com/how-to/LLM-Connections/)
|
tools=[search_tool]
|
||||||
#
|
|
||||||
# import os
|
|
||||||
# os.environ['OPENAI_MODEL_NAME'] = 'gpt-3.5-turbo'
|
|
||||||
#
|
|
||||||
# OR
|
|
||||||
#
|
|
||||||
# from langchain_openai import ChatOpenAI
|
|
||||||
# llm=ChatOpenAI(model_name="gpt-3.5", temperature=0.7)
|
|
||||||
)
|
)
|
||||||
writer = Agent(
|
writer = Agent(
|
||||||
role='Tech Content Strategist',
|
role='Tech Content Strategist',
|
||||||
|
|||||||
Reference in New Issue
Block a user