Skip to content

Commit 0a5bf22

Browse files
committed
refactor: replace all instances of gpt-5-mini with gpt-5-nano across codebase
1 parent 19bade5 commit 0a5bf22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+88
-88
lines changed

examples/cookbooks/Finance_Market_Job_Agents/Home_Buying_Real_Estate_Agent.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
" - Property comparison\n",
157157
" - Cost of living and taxes\n",
158158
" - First-time homebuyer guidance\n",
159-
"llm: gpt-5-mini\n",
159+
"llm: gpt-5-nano\n",
160160
"verbosity: true\n",
161161
"format: markdown\n",
162162
"\"\"\"\n"
@@ -188,7 +188,7 @@
188188
"Help users evaluate neighborhoods, estimate mortgage payments, compare homes, and understand homeownership costs.\n",
189189
"Explain clearly, format in markdown, and be friendly but professional.\n",
190190
"\"\"\",\n",
191-
" llm=\"gpt-5-mini\",\n",
191+
" llm=\"gpt-5-nano\",\n",
192192
" verbose=True,\n",
193193
" markdown=True\n",
194194
")\n"

examples/cookbooks/Health_Fitness_Agents/Air_Quality_Analysis_Agent.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
"data": {
312312
"text/html": [
313313
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008080; text-decoration-color: #008080\">╭───────────────────────────────────────────────────── Task ──────────────────────────────────────────────────────╮</span>\n",
314-
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> You are an expert health advisor using the gpt-5-mini Mini model. <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
314+
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> You are an expert health advisor using the gpt-5-nano Mini model. <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
315315
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
316316
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"background-color: #272822\"> </span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
317317
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"background-color: #272822\"> </span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">Based on the following air quality conditions in Mumbai, Maharashtra, India:</span><span style=\"background-color: #272822\"> </span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
@@ -340,7 +340,7 @@
340340
],
341341
"text/plain": [
342342
"\u001b[36m╭─\u001b[0m\u001b[36m────────────────────────────────────────────────────\u001b[0m\u001b[36m Task \u001b[0m\u001b[36m─────────────────────────────────────────────────────\u001b[0m\u001b[36m─╮\u001b[0m\n",
343-
"\u001b[36m│\u001b[0m You are an expert health advisor using the gpt-5-mini Mini model. \u001b[36m│\u001b[0m\n",
343+
"\u001b[36m│\u001b[0m You are an expert health advisor using the gpt-5-nano Mini model. \u001b[36m│\u001b[0m\n",
344344
"\u001b[36m│\u001b[0m \u001b[36m│\u001b[0m\n",
345345
"\u001b[36m│\u001b[0m \u001b[48;2;39;40;34m \u001b[0m \u001b[36m│\u001b[0m\n",
346346
"\u001b[36m│\u001b[0m \u001b[48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mBased on the following air quality conditions in Mumbai, Maharashtra, India:\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\u001b[48;2;39;40;34m \u001b[0m \u001b[36m│\u001b[0m\n",
@@ -519,7 +519,7 @@
519519
" aqi_data = aqi_data.data # Convert to dict\n",
520520
"\n",
521521
" prompt = f\"\"\"\n",
522-
" You are an expert health advisor using the gpt-5-mini Mini model.\n",
522+
" You are an expert health advisor using the gpt-5-nano Mini model.\n",
523523
"\n",
524524
" Based on the following air quality conditions in {user_city}, {user_state}, {user_country}:\n",
525525
" - Overall AQI: {aqi_data.get('aqi', 'N/A')}\n",

examples/cookbooks/Research_Knowledge_QA_Agents/Crypto_Research_Agent_Intelligence_Agent.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
" - Evaluate risk factors\n",
153153
" - Identify scams or red flags\n",
154154
" - Summarize project fundamentals\n",
155-
"llm: gpt-5-mini\n",
155+
"llm: gpt-5-nano\n",
156156
"verbosity: true\n",
157157
"format: markdown\n",
158158
"\"\"\"\n"
@@ -184,7 +184,7 @@
184184
"and market trends. Provide critical insight into legitimacy, potential growth, and associated risks.\n",
185185
"Use markdown formatting and structure your research clearly.\n",
186186
"\"\"\",\n",
187-
" llm=\"gpt-5-mini\",\n",
187+
" llm=\"gpt-5-nano\",\n",
188188
" verbose=True,\n",
189189
" markdown=True\n",
190190
")\n"

examples/cookbooks/SocialMedia_Content_Agents/Ai_Meme_Creator_Agent.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@
627627
" )\n",
628628
" else: # OpenAI\n",
629629
" llm = ChatOpenAI(\n",
630-
" model=\"gpt-5-mini\",\n",
630+
" model=\"gpt-5-nano\",\n",
631631
" api_key=api_key,\n",
632632
" temperature=0.0\n",
633633
" )\n",

examples/cookbooks/SocialMedia_Content_Agents/YouTube_Influencer_Intelligence_Agent.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
" - Spot content patterns and trends\n",
154154
" - Recommend growth strategies\n",
155155
" - Detect potential monetization methods\n",
156-
"llm: gpt-5-mini\n",
156+
"llm: gpt-5-nano\n",
157157
"verbosity: true\n",
158158
"format: markdown\n",
159159
"\"\"\"\n"
@@ -184,7 +184,7 @@
184184
"You are a YouTube intelligence analyst. Your job is to research a specific channel, niche, or influencer topic.\n",
185185
"Provide growth recommendations, engagement analysis, trending strategies, and monetization tips. Format in markdown.\n",
186186
"\"\"\",\n",
187-
" llm=\"gpt-5-mini\",\n",
187+
" llm=\"gpt-5-nano\",\n",
188188
" verbose=True,\n",
189189
" markdown=True\n",
190190
")\n"

examples/cookbooks/Travel_Planning_Agents/Intelligent_Travel_Planning_Agent.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"name": "stdout",
137137
"output_type": "stream",
138138
"text": [
139-
"{'name': 'Travel Research Agent', 'description': 'A world-class travel researcher that searches for destinations, activities, and accommodations', 'instructions': ['Given a travel destination and number of days, generate 3 relevant search terms', 'Search the web for each term using web_search tool', 'Analyze results and return 10 most relevant findings', 'Focus on activities, accommodations, attractions, and local insights', 'Ensure high-quality, accurate information', 'Use travel_budget_calculator to estimate costs'], 'tools': ['web_search', 'travel_budget_calculator'], 'model': 'gpt-5-mini', 'temperature': 0.7}\n"
139+
"{'name': 'Travel Research Agent', 'description': 'A world-class travel researcher that searches for destinations, activities, and accommodations', 'instructions': ['Given a travel destination and number of days, generate 3 relevant search terms', 'Search the web for each term using web_search tool', 'Analyze results and return 10 most relevant findings', 'Focus on activities, accommodations, attractions, and local insights', 'Ensure high-quality, accurate information', 'Use travel_budget_calculator to estimate costs'], 'tools': ['web_search', 'travel_budget_calculator'], 'model': 'gpt-5-nano', 'temperature': 0.7}\n"
140140
]
141141
}
142142
],
@@ -156,7 +156,7 @@
156156
"tools:\n",
157157
" - web_search\n",
158158
" - travel_budget_calculator\n",
159-
"model: gpt-5-mini\n",
159+
"model: gpt-5-nano\n",
160160
"temperature: 0.7\n",
161161
"\"\"\"\n",
162162
"\n",

examples/cookbooks/Travel_Planning_Agents/VoiGno_Restaurant_Agent_PraisonAI.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"id": "Y9FkDzt1lF47"
1818
},
1919
"source": [
20-
"This notebook implements a conversational restaurant booking assistant using the Praison AI Agent framework. It handles natural interruptions such as modifying guest count or changing time mid-conversation. Built for Google Colab Free Tier, it uses OpenAI's gpt-5-mini model and follows a YAML-based agent design for clarity and modularity."
20+
"This notebook implements a conversational restaurant booking assistant using the Praison AI Agent framework. It handles natural interruptions such as modifying guest count or changing time mid-conversation. Built for Google Colab Free Tier, it uses OpenAI's gpt-5-nano model and follows a YAML-based agent design for clarity and modularity."
2121
]
2222
},
2323
{
@@ -135,7 +135,7 @@
135135
" - Context management\n",
136136
" - Handling mid-conversation changes\n",
137137
" - Summarizing confirmed reservations\n",
138-
"llm: gpt-5-mini\n",
138+
"llm: gpt-5-nano\n",
139139
"verbosity: true\n",
140140
"format: markdown\n",
141141
"\"\"\"\n"
@@ -167,7 +167,7 @@
167167
"manage corrections like “change to 3 guests” or “move to 8 PM,”\n",
168168
"confirm the details once the user is satisfied. Respond in markdown.\n",
169169
"\"\"\",\n",
170-
" llm=\"gpt-5-mini\",\n",
170+
" llm=\"gpt-5-nano\",\n",
171171
" verbose=True,\n",
172172
" markdown=True\n",
173173
")\n"

examples/cookbooks/yaml/marketing_campaign_development_agents.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
"text": [
253253
"\u001b[95m \n",
254254
"\n",
255-
"[{'title': 'CrewAI uses third-party models to automate business tasks', 'href': 'https://techcrunch.com/2024/10/22/crewai-uses-third-party-models-to-automate-business-tasks/', 'body': 'CrewAI, a startup developing a hub where companies can build automations using third-party AI models, has raised $18 million from investors including Andrew Ng. ... 4:00 AM PDT · October 22, 2024 ...'}, {'title': 'CrewAI Launches Multi-Agentic Platform to Deliver on the Promise of ...', 'href': 'https://markets.businessinsider.com/news/stocks/crewai-launches-multi-agentic-platform-to-deliver-on-the-promise-of-generative-ai-for-enterprise-1033870246?op=1', 'body': 'SAN FRANCISCO and SÃO PAULO, Oct. 22, 2024 (GLOBE NEWSWIRE) -- CrewAI, a leading multi-agent platform, today announced $18 million in total funding that included an inception round led by ...'}, {'title': 'Agentic AI startup CrewAI closes $18M funding round', 'href': 'https://siliconangle.com/2024/10/22/agentic-ai-startup-crewai-closes-18m-funding-round/', 'body': \"An e-commerce company, for example, could create an agent that uses gpt-5-mini to generate shopping advice based on customers' past purchases. CrewAI has created an open-source framework of the same ...\"}, {'title': 'CrewAI Company Profile 2024: Valuation, Funding & Investors - PitchBook', 'href': 'https://pitchbook.com/profiles/company/590845-78', 'body': \"Explore institutional-grade private market research from our team of analysts. ... Artificial Intelligence & Machine Learning; Artificial Intelligence & Machine Learning Report. September 19, 2024. CrewAI Executive Team (2) Update this profile Name ... CrewAI's primary industry is Business/Productivity Software. Is CrewAI a private or public ...\"}, {'title': 'CrewAI - Autonomous AI Agents in action for a market ... - LinkedIn', 'href': 'https://www.linkedin.com/pulse/crewai-autonomous-ai-agents-action-market-research-task-kithion-ovnrc', 'body': 'The will provide a detailed market trends report, the will generate a comprehensive analysis of top competitors, and the will develop a thorough marketing plan. Conclusion. CrewAI, combined with ...'}]\n",
255+
"[{'title': 'CrewAI uses third-party models to automate business tasks', 'href': 'https://techcrunch.com/2024/10/22/crewai-uses-third-party-models-to-automate-business-tasks/', 'body': 'CrewAI, a startup developing a hub where companies can build automations using third-party AI models, has raised $18 million from investors including Andrew Ng. ... 4:00 AM PDT · October 22, 2024 ...'}, {'title': 'CrewAI Launches Multi-Agentic Platform to Deliver on the Promise of ...', 'href': 'https://markets.businessinsider.com/news/stocks/crewai-launches-multi-agentic-platform-to-deliver-on-the-promise-of-generative-ai-for-enterprise-1033870246?op=1', 'body': 'SAN FRANCISCO and SÃO PAULO, Oct. 22, 2024 (GLOBE NEWSWIRE) -- CrewAI, a leading multi-agent platform, today announced $18 million in total funding that included an inception round led by ...'}, {'title': 'Agentic AI startup CrewAI closes $18M funding round', 'href': 'https://siliconangle.com/2024/10/22/agentic-ai-startup-crewai-closes-18m-funding-round/', 'body': \"An e-commerce company, for example, could create an agent that uses gpt-5-nano to generate shopping advice based on customers' past purchases. CrewAI has created an open-source framework of the same ...\"}, {'title': 'CrewAI Company Profile 2024: Valuation, Funding & Investors - PitchBook', 'href': 'https://pitchbook.com/profiles/company/590845-78', 'body': \"Explore institutional-grade private market research from our team of analysts. ... Artificial Intelligence & Machine Learning; Artificial Intelligence & Machine Learning Report. September 19, 2024. CrewAI Executive Team (2) Update this profile Name ... CrewAI's primary industry is Business/Productivity Software. Is CrewAI a private or public ...\"}, {'title': 'CrewAI - Autonomous AI Agents in action for a market ... - LinkedIn', 'href': 'https://www.linkedin.com/pulse/crewai-autonomous-ai-agents-action-market-research-task-kithion-ovnrc', 'body': 'The will provide a detailed market trends report, the will generate a comprehensive analysis of top competitors, and the will develop a thorough marketing plan. Conclusion. CrewAI, combined with ...'}]\n",
256256
"\u001b[00m\n",
257257
"\u001b[32;1m\u001b[1;3mThought: I have found more information about CrewAI's target customers and market positioning. CrewAI is a startup that has developed a hub where companies can build automations using third-party AI models, and it has recently raised $18 million in funding. Their target customers are likely businesses looking to automate complex tasks and improve efficiency using AI. They are positioned as a platform for deploying and managing AI agents to automate a variety of tasks.\n",
258258
"\n",

examples/cookbooks/yaml/model_fee_retreival_agents.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
" url=url,\n",
7474
" word_count_threshold=1,\n",
7575
" extraction_strategy= LLMExtractionStrategy(\n",
76-
" provider=\"openai/gpt-5-mini\",\n",
76+
" provider=\"openai/gpt-5-nano\",\n",
7777
" api_token=os.getenv('OPENAI_API_KEY'),\n",
7878
" schema=ModelFee.schema(),\n",
7979
" extraction_type=\"schema\",\n",

examples/python/agents/MULTI_PROVIDER_README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ agent = RouterAgent(
4646
name="Smart Assistant",
4747
role="Adaptive AI Assistant",
4848
goal="Complete tasks using the most appropriate model",
49-
models=["gpt-5-nano", "gpt-5-mini", "claude-3-5-sonnet-20241022"],
49+
models=["gpt-5-nano", "gpt-5-nano", "claude-3-5-sonnet-20241022"],
5050
routing_strategy="auto" # Automatic model selection
5151
)
5252

@@ -133,7 +133,7 @@ The system includes pre-configured profiles for popular models:
133133
| gpt-5-nano | OpenAI | Simple tasks, speed | $0.00075 |
134134
| gemini-1.5-flash | Google | Cost-effective, multimodal | $0.000125 |
135135
| claude-3-haiku | Anthropic | Fast responses | $0.0008 |
136-
| gpt-5-mini | OpenAI | General purpose | $0.0075 |
136+
| gpt-5-nano | OpenAI | General purpose | $0.0075 |
137137
| claude-3-5-sonnet-20241022 | Anthropic | Complex reasoning | $0.009 |
138138
| deepseek-chat | DeepSeek | Code & math | $0.0014 |
139139

@@ -161,7 +161,7 @@ print(report)
161161
'routing_strategy': 'auto',
162162
'model_usage': {
163163
'gpt-5-nano': {'calls': 5, 'tokens': 1500, 'cost': 0.0011},
164-
'gpt-5-mini': {'calls': 2, 'tokens': 3000, 'cost': 0.0225}
164+
'gpt-5-nano': {'calls': 2, 'tokens': 3000, 'cost': 0.0225}
165165
},
166166
'total_cost_estimate': 0.0236,
167167
'total_calls': 7
@@ -207,7 +207,7 @@ for i, agent in enumerate(auto.agents):
207207
name=agent.name,
208208
role=agent.role,
209209
goal=agent.goal,
210-
models=["gpt-5-nano", "gpt-5-mini", "claude-3-5-sonnet"],
210+
models=["gpt-5-nano", "gpt-5-nano", "claude-3-5-sonnet"],
211211
routing_strategy="auto"
212212
)
213213

0 commit comments

Comments
 (0)