I am testing out the Agents SDK and when running some of the basic demos, I could not figure out where model_settings.DEFAULT_MODEL is being set for an Agent.
Thanks
I am testing out the Agents SDK and when running some of the basic demos, I could not figure out where model_settings.DEFAULT_MODEL is being set for an Agent.
Thanks
You can find the docs about Agents SDK and models here: Models - OpenAI Agents SDK
You can change the model like this:
spanish_agent = Agent(
name="Spanish agent",
instructions="You only speak Spanish.",
model="o3-mini",
)
I also couldn’t figure out where the default model is being set.
Thanks. That Models documentation is very helpful.
Hi, I saw that in their source code, the DEFAULT_MODEL is defined in the src/agents/models/openai_provider.py
script on the line 11:
DEFAULT_MODEL: str = "gpt-4o"
I guess that is the one used when no other model is specified via the model
parameter in the Agent
class