From 59336515b01ee070b262ca5784f77d4a9839f77a Mon Sep 17 00:00:00 2001 From: Anudeep Kolluri <50168940+Anudeep-Kolluri@users.noreply.github.com> Date: Thu, 23 May 2024 22:04:53 -0500 Subject: [PATCH] Update agent.py (#655) Changed default model value from gpt-4 to gpt-4o. Reasoning. gpt-4 costs 30$ per million tokens while gpt-4o costs 5$. This is more cost friendly for default option. --- src/crewai/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/agent.py b/src/crewai/agent.py index 3950facd6..d8b2cdec5 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -111,7 +111,7 @@ class Agent(BaseModel): i18n: I18N = Field(default=I18N(), description="Internationalization settings.") llm: Any = Field( default_factory=lambda: ChatOpenAI( - model=os.environ.get("OPENAI_MODEL_NAME", "gpt-4") + model=os.environ.get("OPENAI_MODEL_NAME", "gpt-4o") ), description="Language model that will run the agent.", )