diff --git a/docs/agents.md b/docs/agents.md index 15ced6255..d401f53da 100644 --- a/docs/agents.md +++ b/docs/agents.md @@ -22,7 +22,7 @@ def get_weather(city: str) -> str: agent = Agent( name="Haiku agent", instructions="Always respond in haiku form", - model="o3-mini", + model="gpt-5-nano", tools=[get_weather], ) ``` @@ -163,7 +163,7 @@ By using the `clone()` method on an agent, you can duplicate an Agent, and optio pirate_agent = Agent( name="Pirate", instructions="Write like a pirate", - model="o3-mini", + model="gpt-4.1", ) robot_agent = pirate_agent.clone( diff --git a/docs/voice/quickstart.md b/docs/voice/quickstart.md index 896ffe839..bb3a02be7 100644 --- a/docs/voice/quickstart.md +++ b/docs/voice/quickstart.md @@ -72,7 +72,7 @@ spanish_agent = Agent( instructions=prompt_with_handoff_instructions( "You're speaking to a human, so be polite and concise. Speak in Spanish.", ), - model="gpt-4o-mini", + model="gpt-4.1", ) agent = Agent( @@ -80,7 +80,7 @@ agent = Agent( instructions=prompt_with_handoff_instructions( "You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.", ), - model="gpt-4o-mini", + model="gpt-4.1", handoffs=[spanish_agent], tools=[get_weather], ) @@ -156,7 +156,7 @@ spanish_agent = Agent( instructions=prompt_with_handoff_instructions( "You're speaking to a human, so be polite and concise. Speak in Spanish.", ), - model="gpt-4o-mini", + model="gpt-4.1", ) agent = Agent( @@ -164,7 +164,7 @@ agent = Agent( instructions=prompt_with_handoff_instructions( "You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.", ), - model="gpt-4o-mini", + model="gpt-4.1", handoffs=[spanish_agent], tools=[get_weather], ) diff --git a/examples/voice/streamed/my_workflow.py b/examples/voice/streamed/my_workflow.py index 3cb804b0c..076abd2a3 100644 --- a/examples/voice/streamed/my_workflow.py +++ b/examples/voice/streamed/my_workflow.py @@ -21,7 +21,7 @@ def get_weather(city: str) -> str: instructions=prompt_with_handoff_instructions( "You're speaking to a human, so be polite and concise. Speak in Spanish.", ), - model="gpt-4o-mini", + model="gpt-4.1", ) agent = Agent( @@ -29,7 +29,7 @@ def get_weather(city: str) -> str: instructions=prompt_with_handoff_instructions( "You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.", ), - model="gpt-4o-mini", + model="gpt-4.1", handoffs=[spanish_agent], tools=[get_weather], )