From 561c32ddd5fab207020004c60bddb53657e8f12e Mon Sep 17 00:00:00 2001 From: Mervin Praison Date: Fri, 8 Aug 2025 07:52:37 +0100 Subject: [PATCH] refactor: update model name from gpt-4o-mini to gpt-5-nano across all files --- .github/workflows/coverage.yml | 2 +- .github/workflows/python-package.yml | 2 +- .github/workflows/test-comprehensive.yml | 2 +- .github/workflows/test-core.yml | 10 +++--- .github/workflows/test-extended.yml | 2 +- .github/workflows/test-frameworks.yml | 2 +- .github/workflows/unittest.yml | 6 ++-- .../Multi_Agent_Production_System.ipynb | 12 +++---- .../ReAct_agent.ipynb | 2 +- ...Semantic_Social_Network_Agent_System.ipynb | 4 +-- .../Ai_Ecommerce_Shopping_Assistant.ipynb | 4 +-- .../Hackathon_Agent_Notebook.ipynb | 2 +- .../FunctionAgent_Workflow.ipynb | 2 +- .../AI_CourtSimulation.ipynb | 8 ++--- .../AI_Data_Analysis_Agent.ipynb | 6 ++-- .../Ai_Documentation_Processor.ipynb | 2 +- .../Ai_Meme_Creator_Agent.ipynb | 2 +- .../Joke_Agent.ipynb | 2 +- .../yaml/article_generation_agents.ipynb | 2 +- .../yaml/auto_email_responder_agents.ipynb | 2 +- .../cookbooks/yaml/book_writing_agents.ipynb | 2 +- .../yaml/business_product_launch_agents.ipynb | 2 +- .../cookbooks/yaml/cli_operation_agents.ipynb | 2 +- ...comprehensive_research_report_agents.ipynb | 2 +- .../email_workflow_management_agents.ipynb | 2 +- .../yaml/game_development_agents.ipynb | 2 +- .../yaml/instagram_post_agents.ipynb | 2 +- examples/cookbooks/yaml/job_hunt_agents.ipynb | 2 +- .../yaml/job_profile_matching_agents.ipynb | 2 +- .../yaml/language_translator_agents.ipynb | 2 +- .../yaml/markdown_validator_agents.ipynb | 2 +- .../meeting_prep_and_strategy_agents.ipynb | 2 +- ...g_prep_using_slack_and_trello_agents.ipynb | 2 +- ...ement_and_knowledge_retreival_agents.ipynb | 2 +- .../yaml/model_fee_retreival_agents.ipynb | 2 +- .../yaml/news_retreival_rag_agents.ipynb | 2 +- .../yaml/recruitment_flow_agents.ipynb | 2 +- .../yaml/reddit_search_analysis_agents.ipynb | 2 +- .../research_report_generation_agents.ipynb | 2 +- ...search_through_azure_instance_agents.ipynb | 2 +- .../yaml/screenplay_writer_agents.ipynb | 2 +- .../secondary_market_research_agents.ipynb | 2 +- .../secondary_market_research_agents.yaml | 12 +++---- ...akespearean_tweets_generation_agents.ipynb | 2 +- .../yaml/stock_analysis_agents.ipynb | 2 +- .../yaml/story_book_author_agents.ipynb | 2 +- ...se_trip_planner_and_itinerary_agents.ipynb | 2 +- .../cookbooks/yaml/trip_planner_agents.ipynb | 2 +- .../wikipedia_search_analysis_agents.ipynb | 2 +- .../yaml/you_search_analysis_agents.ipynb | 2 +- .../yaml/youtube_search_analysis_agents.ipynb | 2 +- .../python/agents/MULTI_PROVIDER_README.md | 12 +++---- examples/python/agents/context-agent.py | 6 ++-- examples/python/agents/image-agent.py | 2 +- examples/python/agents/image-to-text-agent.py | 2 +- .../python/agents/multi-provider-agent.py | 8 ++--- .../agents/router-agent-cost-optimization.py | 4 +-- examples/python/agents/video-agent.py | 2 +- examples/python/api/mcp-sse.py | 2 +- examples/python/api/multi-agent-api.py | 6 ++-- examples/python/api/simple-api-mcp.py | 2 +- examples/python/api/simple-api.py | 2 +- examples/python/camera/camera-basic.py | 2 +- examples/python/camera/camera-continuous.py | 2 +- examples/python/camera/camera-multi-agent.py | 6 ++-- .../python/camera/camera-video-analysis.py | 2 +- .../concepts/context-engineering-workflow.py | 6 ++-- .../python/concepts/csv-processing-agents.py | 10 +++--- .../concepts/knowledge-reranker-example.py | 2 +- examples/python/concepts/rag-agents.py | 2 +- examples/python/concepts/repetitive-agents.py | 2 +- .../self-reflection-optimization-patterns.py | 2 +- .../concepts/simple-csv-url-processor.py | 2 +- .../custom_tools/example_latency_tracking.py | 10 +++--- .../mcp_server_latency_example.py | 2 +- .../custom_tools/minimal_latency_example.py | 2 +- examples/python/data/cot-agents.py | 8 ++--- .../python/general/code_agents_example.py | 4 +-- examples/python/general/memory_example.py | 4 +-- examples/python/general/memory_simple.py | 6 ++-- examples/python/general/multimodal.py | 2 +- .../general/structured_agents_example.py | 4 +-- .../general/structured_response_example.py | 2 +- .../python/input/advanced_dynamic_input.py | 2 +- .../input/environment_variable_input.py | 2 +- examples/python/input/streamlit_ui_input.py | 2 +- examples/python/mcp/airbnb-mcp.py | 2 +- examples/python/mcp/aws-kb-retrieval-mcp.py | 2 +- examples/python/mcp/bravesearch-mcp.py | 2 +- examples/python/mcp/custom-python-client.py | 2 +- examples/python/mcp/databutton-mcp.py | 2 +- examples/python/mcp/everart-mcp.py | 2 +- examples/python/mcp/fetch-mcp.py | 2 +- examples/python/mcp/filesystem-mcp.py | 2 +- examples/python/mcp/gdrive-mcp.py | 2 +- examples/python/mcp/git-mcp.py | 2 +- examples/python/mcp/github-mcp.py | 2 +- examples/python/mcp/gitlab-mcp.py | 2 +- examples/python/mcp/google-maps-mcp.py | 2 +- examples/python/mcp/mcp-sse-weather.py | 2 +- examples/python/mcp/memory-mcp.py | 2 +- examples/python/mcp/openai-mcp.py | 2 +- examples/python/mcp/perplexity-mcp.py | 2 +- examples/python/mcp/playwright-mcp.py | 2 +- examples/python/mcp/postgres-mcp.py | 2 +- examples/python/mcp/puppeteer-mcp.py | 2 +- examples/python/mcp/redis-mcp.py | 2 +- examples/python/mcp/sentry-mcp.py | 2 +- .../python/mcp/sequential-thinking-mcp.py | 2 +- examples/python/mcp/slack-mcp.py | 2 +- examples/python/mcp/time-mcp.py | 2 +- examples/python/mcp/whatapp-mcp.py | 2 +- .../python/mcp/whatapp-multi-agents-mcp.py | 4 +-- examples/python/mcp/whatsapp-mcp-ui.py | 4 +-- .../python/memory/gemini-embedding-example.py | 4 +-- examples/python/memory/gemini-embeddings.md | 2 +- .../python/memory/graph-knowledge-example.py | 2 +- examples/python/memory/graph-memory-agent.py | 4 +-- .../mongodb/mongodb_comprehensive_example.py | 8 ++--- .../mongodb/mongodb_knowledge_example.py | 4 +-- .../python/mongodb/mongodb_memory_example.py | 2 +- .../python/mongodb/mongodb_tools_example.py | 4 +-- .../02_multi_agent_workflow_monitoring.py | 6 ++-- .../03_agent_with_tools_monitoring.py | 2 +- .../monitoring/04_async_agent_monitoring.py | 2 +- .../05_error_handling_monitoring.py | 2 +- .../monitoring/06_memory_agent_monitoring.py | 2 +- .../07_hierarchical_agents_monitoring.py | 8 ++--- .../monitoring/08_custom_tools_monitoring.py | 2 +- .../monitoring/09_streaming_monitoring.py | 2 +- .../monitoring/10_comprehensive_dashboard.py | 14 ++++---- examples/python/monitoring/README.md | 2 +- examples/python/remote/remote_agent_server.py | 2 +- .../stateful/01_basic_state_management.py | 6 ++-- .../stateful/02_state_in_tool_functions.py | 8 ++--- .../stateful/03_conditional_task_execution.py | 10 +++--- .../stateful/04_session_state_persistence.py | 8 ++--- .../stateful/05_loop_control_with_state.py | 8 ++--- .../stateful/06_advanced_state_operations.py | 8 ++--- .../token-metrics/01_basic_token_tracking.py | 2 +- .../token-metrics/02_session_metrics.py | 4 +-- .../token-metrics/03_cost_estimation.py | 4 +-- .../token-metrics/04_telemetry_integration.py | 4 +-- .../05_advanced_agent_integration.py | 6 ++-- examples/python/token-metrics/README.md | 2 +- examples/python/tools/cli/app.py | 2 +- .../tools/trafilatura/trafilatura_example.py | 2 +- examples/python/ui/mcp-streamlit-airbnb.py | 4 +-- examples/python/ui/mcp-streamlit-simple.py | 4 +-- .../README-secondary-market-research.md | 2 +- .../analysis/hackathon-judge-agent.py | 2 +- .../analysis/hackathon-judge-streamlit.py | 2 +- .../01_basic_agent_with_monitoring.py | 2 +- .../01_basic_token_tracking.py | 2 +- .../02_multi_agent_workflow_monitoring.py | 6 ++-- .../03_agent_with_tools_monitoring.py | 2 +- .../04_async_agent_monitoring.py | 2 +- .../05_error_handling_monitoring.py | 2 +- .../06_memory_agent_monitoring.py | 2 +- .../07_hierarchical_agents_monitoring.py | 8 ++--- .../08_custom_tools_monitoring.py | 2 +- .../09_streaming_monitoring.py | 2 +- .../10_comprehensive_dashboard.py | 14 ++++---- src/praisonai-agents/CLAUDE.md | 2 +- .../async-tavily-agents-gemini.py | 2 +- src/praisonai-agents/basic-agents-fixed.py | 2 +- src/praisonai-agents/basic-agents-tools.py | 2 +- src/praisonai-agents/context_basic.py | 2 +- src/praisonai-agents/debug_comparison.py | 20 +++++------ src/praisonai-agents/mcp-agents.py | 2 +- .../mongodb_comprehensive_example.py | 8 ++--- .../mongodb_knowledge_basic.py | 4 +-- .../mongodb_knowledge_example.py | 4 +-- src/praisonai-agents/mongodb_memory_basic.py | 4 +-- .../mongodb_memory_example.py | 2 +- src/praisonai-agents/mongodb_tools_example.py | 4 +-- src/praisonai-agents/openai-basic.py | 2 +- .../praisonaiagents/agent/agent.py | 18 +++++----- .../praisonaiagents/agent/context_agent.py | 34 +++++++++---------- .../praisonaiagents/agent/router_agent.py | 2 +- .../praisonaiagents/llm/llm.py | 2 +- .../praisonaiagents/llm/model_capabilities.py | 4 +-- .../praisonaiagents/llm/model_router.py | 2 +- .../praisonaiagents/llm/openai_client.py | 18 +++++----- .../praisonaiagents/mcp/mcp.py | 8 ++--- .../praisonaiagents/memory/memory.py | 4 +-- .../praisonaiagents/task/task.py | 2 +- .../tools/train/data/generatecot.py | 2 +- src/praisonai-agents/sequence.py | 2 +- src/praisonai-agents/sequence_llm.py | 2 +- src/praisonai-agents/simple-api-mcp.py | 2 +- src/praisonai-agents/streaming-openai.py | 2 +- src/praisonai-agents/test.py | 2 +- src/praisonai-agents/test_agent_simple.py | 2 +- .../test_all_optimizations.py | 12 +++---- src/praisonai-agents/test_both_formats.py | 16 ++++----- .../test_callback_enhancement.py | 2 +- src/praisonai-agents/test_callback_fix.py | 2 +- .../test_duplicate_callback_fix.py | 6 ++-- src/praisonai-agents/test_fix_simple.py | 2 +- src/praisonai-agents/test_fix_verification.py | 2 +- src/praisonai-agents/test_gemini_embedding.py | 6 ++-- src/praisonai-agents/test_langtrace.py | 2 +- src/praisonai-agents/test_multi_provider.py | 4 +-- src/praisonai-agents/test_ollama_fix.py | 6 ++-- src/praisonai-agents/test_real_streaming.py | 2 +- src/praisonai-agents/test_self_reflection.py | 6 ++-- .../test_self_reflection_fix.py | 6 ++-- ...self_reflection_with_tools_verification.py | 8 ++--- src/praisonai-agents/test_sequential_fix.py | 16 ++++----- .../test_stream_parameter_fix.py | 4 +-- .../test_streaming_behavior.py | 4 +-- src/praisonai-agents/test_streaming_logic.py | 6 ++-- src/praisonai-agents/test_telemetry_fix.py | 2 +- .../test_telemetry_integration.py | 4 +-- .../test_token_tracking_fix.py | 6 ++-- .../test_user_code_pattern.py | 4 +-- .../test_verbose_stream_combinations.py | 4 +-- src/praisonai-agents/test_warnings.py | 2 +- .../tests/basic-agents-simple-token-demo.py | 2 +- src/praisonai-agents/tests/basic-agents.py | 2 +- .../tests/code_agents_example.py | 4 +-- .../tests/cot-agents-batch.py | 4 +-- src/praisonai-agents/tests/cot-agents.py | 8 ++--- .../tests/example_callback.py | 8 ++--- .../tests/example_sequential.py | 8 ++--- .../tests/hackathon-judge-agent-code.py | 2 +- .../tests/hackathon-judge-agent.py | 2 +- .../tests/hackathon-judge-streamlit.py | 2 +- .../tests/image-to-text-agent.py | 2 +- .../tests/image-understanding-agent.py | 2 +- .../tests/knowledge-agents-task.py | 2 +- .../tests/knowledge-direct-simple-test.py | 2 +- .../tests/llm-langchain-toolcall.py | 2 +- src/praisonai-agents/tests/llm-tool-call.py | 4 +-- .../tests/mcp-agents-detailed.py | 2 +- src/praisonai-agents/tests/mcp-agents.py | 2 +- src/praisonai-agents/tests/mcp-basic.py | 2 +- .../tests/mcp-http-stream-example.py | 2 +- src/praisonai-agents/tests/mcp-mini-airbnb.py | 2 +- .../tests/mcp-mini-bravesearch.py | 2 +- src/praisonai-agents/tests/mcp-multiagents.py | 4 +-- .../tests/mcp-npx-airbnb-agent-direct.py | 2 +- .../tests/mcp-npx-airbnb-stockprice.py | 4 +-- src/praisonai-agents/tests/mcp-npx-airbnb.py | 2 +- src/praisonai-agents/tests/mcp-npx-brave.py | 2 +- .../tests/mcp-npx-mini-airbnb-stockprice.py | 4 +-- .../tests/mcp-python-stockprice.py | 2 +- .../tests/mcp-sse-direct-agent.py | 2 +- src/praisonai-agents/tests/mcp-sse-weather.py | 2 +- .../tests/memory-add-search.py | 2 +- .../tests/memory-search-advanced.py | 2 +- .../tests/memory-search-simple.py | 2 +- src/praisonai-agents/tests/memory_example.py | 4 +-- src/praisonai-agents/tests/memory_simple.py | 6 ++-- src/praisonai-agents/tests/multi-agent-api.py | 6 ++-- src/praisonai-agents/tests/multimodal.py | 2 +- .../tests/pdf_agents_example.py | 2 +- .../tests/repetitive-agents.py | 2 +- .../tests/repetitive-manual-agents.py | 6 ++-- src/praisonai-agents/tests/simple-api-mcp.py | 2 +- src/praisonai-agents/tests/simple-api.py | 2 +- .../tests/state_based_workflow_example.py | 6 ++-- .../tests/state_management_example.py | 6 ++-- .../tests/state_with_memory_example.py | 6 ++-- .../tests/structured_agents_example.py | 4 +-- .../tests/structured_response_example.py | 2 +- .../tests/telemetry_example.py | 14 ++++---- src/praisonai-agents/tests/test.py | 4 +-- .../tests/test_context_agent.py | 4 +-- .../tests/test_fix_comprehensive.py | 2 +- .../tests/test_llm_self_reflection_direct.py | 2 +- .../tests/test_ollama_async_fix.py | 4 +-- src/praisonai-agents/tests/test_ollama_fix.py | 2 +- .../tests/test_ollama_sequential_fix.py | 2 +- .../tests/test_self_reflection_fix_simple.py | 2 +- src/praisonai-agents/tests/ui.py | 2 +- .../tests/vector-db-agents.py | 2 +- src/praisonai-agents/tests/video-agent.py | 2 +- src/praisonai-agents/tests/wikipedia-agent.py | 2 +- .../tests/workflow-test-agents.py | 6 ++-- src/praisonai-ts/.cursorrules | 2 +- src/praisonai-ts/.windsurfrules | 2 +- src/praisonai-ts/src/agent/simple.ts | 2 +- src/praisonai-ts/src/agent/types.ts | 4 +-- src/praisonai-ts/src/llm/openai.ts | 2 +- src/praisonai/praisonai/agents_generator.py | 12 +++---- src/praisonai/praisonai/auto.py | 2 +- src/praisonai/praisonai/chainlit_ui.py | 2 +- src/praisonai/praisonai/cli.py | 4 +-- src/praisonai/praisonai/deploy.py | 4 +-- src/praisonai/praisonai/inc/models.py | 2 +- src/praisonai/praisonai/test.py | 2 +- src/praisonai/praisonai/ui/agents.py | 4 +-- src/praisonai/praisonai/ui/chat.py | 10 +++--- src/praisonai/praisonai/ui/code.py | 10 +++--- src/praisonai/praisonai/ui/realtime.py | 10 +++--- .../praisonai/ui/realtimeclient/__init__.py | 6 ++-- src/praisonai/tests/agents-advanced.yaml | 10 +++--- src/praisonai/tests/conftest.py | 2 +- .../tests/integration/test_rag_integration.py | 2 +- .../tests/source/autogen_function_tools.py | 2 +- .../tests/source/autogen_langchain_tools.py | 2 +- src/praisonai/tests/test_custom_tools_fix.py | 2 +- src/praisonai/tests/test_double_api_fix.py | 6 ++-- src/praisonai/tests/unit/test_core_agents.py | 8 ++--- src/praisonai/tests/unit/test_ollama_fix.py | 2 +- 307 files changed, 586 insertions(+), 586 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 90450d6ba..13f2c0a0c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -41,7 +41,7 @@ jobs: run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" >> $GITHUB_ENV echo "LOGLEVEL=DEBUG" >> $GITHUB_ENV echo "PYTHONPATH=${{ github.workspace }}/src/praisonai-agents:$PYTHONPATH" >> $GITHUB_ENV diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 24533bdaa..877f87406 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -29,7 +29,7 @@ jobs: run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" >> $GITHUB_ENV echo "LOGLEVEL=DEBUG" >> $GITHUB_ENV - name: Install dependencies diff --git a/.github/workflows/test-comprehensive.yml b/.github/workflows/test-comprehensive.yml index 1595eb2cc..ee46a4869 100644 --- a/.github/workflows/test-comprehensive.yml +++ b/.github/workflows/test-comprehensive.yml @@ -59,7 +59,7 @@ jobs: run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" >> $GITHUB_ENV - name: Run Comprehensive Test Suite run: | diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 2b0d43808..de6e3edc9 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -42,13 +42,13 @@ jobs: run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" >> $GITHUB_ENV echo "LOGLEVEL=DEBUG" >> $GITHUB_ENV echo "PYTHONPATH=${{ github.workspace }}/src/praisonai-agents:$PYTHONPATH" >> $GITHUB_ENV # Also export to current shell session for immediate availability export OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" export OPENAI_API_BASE="${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" - export OPENAI_MODEL_NAME="${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" + export OPENAI_MODEL_NAME="${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" export LOGLEVEL=DEBUG # Verify immediate availability echo "๐Ÿ”ง Immediate verification in same step:" @@ -126,7 +126,7 @@ jobs: env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }} OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }} - OPENAI_MODEL_NAME: ${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }} + OPENAI_MODEL_NAME: ${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }} LOGLEVEL: DEBUG run: | echo "๐Ÿ” Testing PraisonAI API key usage directly..." @@ -166,7 +166,7 @@ jobs: print('\\n๐Ÿงช Testing PraisonAIModel with explicit API key (CrewAI method):') model_with_explicit_key = PraisonAIModel( - model='openai/gpt-4o-mini', + model='openai/gpt-5-nano', base_url=praisonai.config_list[0].get('base_url'), api_key=api_key_from_config # This will be a string from praisonai.config_list ) @@ -251,7 +251,7 @@ jobs: env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }} OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }} - OPENAI_MODEL_NAME: ${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }} + OPENAI_MODEL_NAME: ${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }} LOGLEVEL: DEBUG run: | echo "๐Ÿงช Running legacy tests with real API key..." diff --git a/.github/workflows/test-extended.yml b/.github/workflows/test-extended.yml index 35bd988ea..78a31d5dd 100644 --- a/.github/workflows/test-extended.yml +++ b/.github/workflows/test-extended.yml @@ -42,7 +42,7 @@ jobs: run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" >> $GITHUB_ENV echo "PYTHONPATH=${{ github.workspace }}/src/praisonai-agents:$PYTHONPATH" >> $GITHUB_ENV echo "PRAISONAI_TELEMETRY_DISABLED=true" >> $GITHUB_ENV echo "PRAISONAI_DISABLE_TELEMETRY=true" >> $GITHUB_ENV diff --git a/.github/workflows/test-frameworks.yml b/.github/workflows/test-frameworks.yml index 9f950b8e7..3699c1182 100644 --- a/.github/workflows/test-frameworks.yml +++ b/.github/workflows/test-frameworks.yml @@ -56,7 +56,7 @@ jobs: run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" >> $GITHUB_ENV - name: Test ${{ matrix.framework }} Framework run: | diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 05043e8bb..c9a7f50ac 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -35,7 +35,7 @@ jobs: run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-5-nano' }}" >> $GITHUB_ENV echo "LOGLEVEL=DEBUG" >> $GITHUB_ENV echo "PYTHONPATH=${{ github.workspace }}/src/praisonai-agents:$PYTHONPATH" >> $GITHUB_ENV @@ -316,8 +316,8 @@ jobs: try: from praisonai.inc.models import PraisonAIModel - # Test PraisonAIModel with openai/gpt-4o-mini (from YAML) - model = PraisonAIModel(model='openai/gpt-4o-mini') + # Test PraisonAIModel with openai/gpt-5-nano (from YAML) + model = PraisonAIModel(model='openai/gpt-5-nano') print('๐Ÿค– PraisonAIModel Configuration:') print(f' model: {model.model}') diff --git a/examples/cookbooks/Conversational_Chat_Agents/Multi_Agent_Production_System.ipynb b/examples/cookbooks/Conversational_Chat_Agents/Multi_Agent_Production_System.ipynb index aa1e5c457..9cf8dc2c0 100644 --- a/examples/cookbooks/Conversational_Chat_Agents/Multi_Agent_Production_System.ipynb +++ b/examples/cookbooks/Conversational_Chat_Agents/Multi_Agent_Production_System.ipynb @@ -26,14 +26,14 @@ "\n", "### โœจ Key Benefits:\n", "- ๐Ÿš€ **Scalable & Customizable** โ€“ Industry-agnostic design \n", - "- ๐Ÿ’ฐ **Cost-Effective** โ€“ Runs on GPT-4o-mini \n", + "- ๐Ÿ’ฐ **Cost-Effective** โ€“ Runs on gpt-5-nano \n", "- ๐Ÿ› ๏ธ **Production-Ready** โ€“ Realistic automation framework \n", "- ๐Ÿ”„ **Complete Pipeline** โ€“ End-to-end flow\n", "\n", "---\n", "\n", "### ๐Ÿ”ง Technologies:\n", - "**PraisonAI** โ€ข **OpenAI GPT-4o-mini** โ€ข **Python** โ€ข **SQLite** \n", + "**PraisonAI** โ€ข **OpenAI gpt-5-nano** โ€ข **Python** โ€ข **SQLite** \n", "**Multi-Agent Architecture**\n", "\n", "---\n", @@ -100,7 +100,7 @@ "text": [ "๐Ÿ“ฆ Dependencies installed!\n", "๐Ÿ”„ Using PraisonAI Multi-Agent Framework\n", - "๐Ÿค– Powered by OpenAI GPT-4o-mini\n" + "๐Ÿค– Powered by OpenAI gpt-5-nano\n" ] } ], @@ -116,7 +116,7 @@ "\n", "print(\"๐Ÿ“ฆ Dependencies installed!\")\n", "print(\"๐Ÿ”„ Using PraisonAI Multi-Agent Framework\")\n", - "print(\"๐Ÿค– Powered by OpenAI GPT-4o-mini\")" + "print(\"๐Ÿค– Powered by OpenAI gpt-5-nano\")" ] }, { @@ -5102,7 +5102,7 @@ "\n", "๐ŸŽŠ BLENDER PRODUCTION STUDIO COMPLETE!\n", "๐ŸŽฌ 17-Agent AI System Successfully Executed\n", - "๐Ÿค– Powered by PraisonAI + OpenAI GPT-4o-mini\n" + "๐Ÿค– Powered by PraisonAI + OpenAI gpt-5-nano\n" ] } ], @@ -5149,7 +5149,7 @@ "\n", "print(\"\\n๐ŸŽŠ BLENDER PRODUCTION STUDIO COMPLETE!\")\n", "print(\"๐ŸŽฌ 17-Agent AI System Successfully Executed\")\n", - "print(\"๐Ÿค– Powered by PraisonAI + OpenAI GPT-4o-mini\")" + "print(\"๐Ÿค– Powered by PraisonAI + OpenAI gpt-5-nano\")" ] } ], diff --git a/examples/cookbooks/Conversational_Chat_Agents/ReAct_agent.ipynb b/examples/cookbooks/Conversational_Chat_Agents/ReAct_agent.ipynb index c454c39f1..104afcd3a 100644 --- a/examples/cookbooks/Conversational_Chat_Agents/ReAct_agent.ipynb +++ b/examples/cookbooks/Conversational_Chat_Agents/ReAct_agent.ipynb @@ -182,7 +182,7 @@ " ]\n", " for turn in range(max_turns):\n", " response = client.chat.completions.create(\n", - " model=\"gpt-4o-mini\",\n", + " model=\"gpt-5-nano\",\n", " messages=history,\n", " max_tokens=500\n", " )\n", diff --git a/examples/cookbooks/Conversational_Chat_Agents/Semantic_Social_Network_Agent_System.ipynb b/examples/cookbooks/Conversational_Chat_Agents/Semantic_Social_Network_Agent_System.ipynb index d25d42181..c9fd16c5c 100644 --- a/examples/cookbooks/Conversational_Chat_Agents/Semantic_Social_Network_Agent_System.ipynb +++ b/examples/cookbooks/Conversational_Chat_Agents/Semantic_Social_Network_Agent_System.ipynb @@ -2642,7 +2642,7 @@ "\n", "\ud83c\udf8a SEMANTIC NETWORK ANALYSIS COMPLETE!\n", "\ud83c\udf10 Cross-platform profile discovery and analysis\n", - "\ud83e\udd16 Powered by PraisonAI + OpenAI GPT-4o-mini\n" + "\ud83e\udd16 Powered by PraisonAI + OpenAI gpt-5-nano\n" ] } ], @@ -2687,7 +2687,7 @@ "\n", "print(\"\\n\ud83c\udf8a SEMANTIC NETWORK ANALYSIS COMPLETE!\")\n", "print(\"\ud83c\udf10 Cross-platform profile discovery and analysis\")\n", - "print(\"\ud83e\udd16 Powered by PraisonAI + OpenAI GPT-4o-mini\")" + "print(\"\ud83e\udd16 Powered by PraisonAI + OpenAI gpt-5-nano\")" ] }, { diff --git a/examples/cookbooks/Ecommerce_Shopping_Agents/Ai_Ecommerce_Shopping_Assistant.ipynb b/examples/cookbooks/Ecommerce_Shopping_Agents/Ai_Ecommerce_Shopping_Assistant.ipynb index b45752ad4..6c052cedb 100644 --- a/examples/cookbooks/Ecommerce_Shopping_Agents/Ai_Ecommerce_Shopping_Assistant.ipynb +++ b/examples/cookbooks/Ecommerce_Shopping_Agents/Ai_Ecommerce_Shopping_Assistant.ipynb @@ -1262,7 +1262,7 @@ "\n", "๐ŸŽŠ AI SHOPPING ASSISTANT ACTIVE!\n", "๐Ÿ›’ Ready to help customers with natural language shopping\n", - "๐Ÿค– Powered by PraisonAI + OpenAI GPT-4o-mini\n" + "๐Ÿค– Powered by PraisonAI + OpenAI gpt-5-nano\n" ] } ], @@ -1305,7 +1305,7 @@ "\n", "print(\"\\n๐ŸŽŠ AI SHOPPING ASSISTANT ACTIVE!\")\n", "print(\"๐Ÿ›’ Ready to help customers with natural language shopping\")\n", - "print(\"๐Ÿค– Powered by PraisonAI + OpenAI GPT-4o-mini\")" + "print(\"๐Ÿค– Powered by PraisonAI + OpenAI gpt-5-nano\")" ] }, { diff --git a/examples/cookbooks/Productivity_Workflow_Agents/Hackathon_Agent_Notebook.ipynb b/examples/cookbooks/Productivity_Workflow_Agents/Hackathon_Agent_Notebook.ipynb index 4278a7c2a..84d72bd6b 100644 --- a/examples/cookbooks/Productivity_Workflow_Agents/Hackathon_Agent_Notebook.ipynb +++ b/examples/cookbooks/Productivity_Workflow_Agents/Hackathon_Agent_Notebook.ipynb @@ -193,7 +193,7 @@ " goal=\"Evaluate hackathon projects through video demonstrations\",\n", " backstory=\"\"\"You are an expert hackathon judge. You give fair scores and detailed feedback\n", " on technical complexity, innovation, presentation, and UX.\"\"\",\n", - " llm=\"gpt-4o-mini\",\n", + " llm=\"gpt-5-nano\",\n", " self_reflect=False\n", ")" ], diff --git a/examples/cookbooks/Programming_Code_Analysis_Agents/FunctionAgent_Workflow.ipynb b/examples/cookbooks/Programming_Code_Analysis_Agents/FunctionAgent_Workflow.ipynb index 420c0022d..f5cc1fb0c 100644 --- a/examples/cookbooks/Programming_Code_Analysis_Agents/FunctionAgent_Workflow.ipynb +++ b/examples/cookbooks/Programming_Code_Analysis_Agents/FunctionAgent_Workflow.ipynb @@ -65,7 +65,7 @@ "source": [ "from llama_index.llms.openai import OpenAI\n", "\n", - "llm = OpenAI(model=\"gpt-4o-mini\", api_key=\"Enter your api key here\") # Replace with your OpenAI API key\n" + "llm = OpenAI(model=\"gpt-5-nano\", api_key=\"Enter your api key here\") # Replace with your OpenAI API key\n" ] }, { diff --git a/examples/cookbooks/Research_Knowledge_QA_Agents/AI_CourtSimulation.ipynb b/examples/cookbooks/Research_Knowledge_QA_Agents/AI_CourtSimulation.ipynb index cab2ad6d5..b69ea6f5e 100644 --- a/examples/cookbooks/Research_Knowledge_QA_Agents/AI_CourtSimulation.ipynb +++ b/examples/cookbooks/Research_Knowledge_QA_Agents/AI_CourtSimulation.ipynb @@ -129,7 +129,7 @@ "judge = Agent(\n", " name=\"Judge\",\n", " role=\"Preside over court proceedings\",\n", - " llm=\"gpt-4o-mini\",\n", + " llm=\"gpt-5-nano\",\n", " instructions=[\n", " \"You are an impartial judge\",\n", " \"Make fair decisions based on evidence\",\n", @@ -142,7 +142,7 @@ "prosecutor = Agent(\n", " name=\"Prosecutor\",\n", " role=\"Present case against defendant\",\n", - " llm=\"gpt-4o-mini\",\n", + " llm=\"gpt-5-nano\",\n", " instructions=[\n", " \"You are a prosecutor seeking conviction\",\n", " \"Present evidence methodically\",\n", @@ -155,7 +155,7 @@ "defense = Agent(\n", " name=\"Defense\",\n", " role=\"Defend the accused\",\n", - " llm=\"gpt-4o-mini\",\n", + " llm=\"gpt-5-nano\",\n", " instructions=[\n", " \"You are a defense attorney\",\n", " \"Create reasonable doubt\",\n", @@ -168,7 +168,7 @@ "witness = Agent(\n", " name=\"Witness\",\n", " role=\"Provide testimony\",\n", - " llm=\"gpt-4o-mini\",\n", + " llm=\"gpt-5-nano\",\n", " instructions=[\n", " \"You are a witness testifying\",\n", " \"Provide factual testimony\",\n", diff --git a/examples/cookbooks/Research_Knowledge_QA_Agents/AI_Data_Analysis_Agent.ipynb b/examples/cookbooks/Research_Knowledge_QA_Agents/AI_Data_Analysis_Agent.ipynb index 0bd0b7fe6..0cfdcdb86 100644 --- a/examples/cookbooks/Research_Knowledge_QA_Agents/AI_Data_Analysis_Agent.ipynb +++ b/examples/cookbooks/Research_Knowledge_QA_Agents/AI_Data_Analysis_Agent.ipynb @@ -76,7 +76,7 @@ "output_type": "stream", "text": [ "โœ… API key configured!\n", - "โœ… Using model: gpt-4o-mini\n" + "โœ… Using model: gpt-5-nano\n" ] } ], @@ -85,7 +85,7 @@ "openai_key = \"sk-..\"\n", "\n", "os.environ[\"OPENAI_API_KEY\"] = openai_key\n", - "model_choice = \"gpt-4o-mini\"\n", + "model_choice = \"gpt-5-nano\"\n", "\n", "print(\"โœ… API key configured!\")\n", "print(f\"โœ… Using model: {model_choice}\")" @@ -336,7 +336,7 @@ "\n", "temperature: 0.3\n", "max_tokens: 4000\n", - "model: \"gpt-4o-mini\"\n", + "model: \"gpt-5-nano\"\n", "\"\"\"\n", "\n", "print(\"โœ… YAML Prompt configured!\")" diff --git a/examples/cookbooks/Research_Knowledge_QA_Agents/Ai_Documentation_Processor.ipynb b/examples/cookbooks/Research_Knowledge_QA_Agents/Ai_Documentation_Processor.ipynb index a48207e83..1d20a57a0 100644 --- a/examples/cookbooks/Research_Knowledge_QA_Agents/Ai_Documentation_Processor.ipynb +++ b/examples/cookbooks/Research_Knowledge_QA_Agents/Ai_Documentation_Processor.ipynb @@ -8,7 +8,7 @@ "source": [ "# ๐Ÿค– Add AI Documentation Processor: Multi-Agent Content Analysis & Code Generation System\n", "\n", - "This PR adds a comprehensive AI-powered documentation processing system using PraisonAI and OpenAI GPT-4o-mini. Features 3 specialized agents for content analysis, code generation, and example creation, perfect for automated documentation processing and code generation workflows.\n", + "This PR adds a comprehensive AI-powered documentation processing system using PraisonAI and OpenAI gpt-5-nano. Features 3 specialized agents for content analysis, code generation, and example creation, perfect for automated documentation processing and code generation workflows.\n", "\n", "**Key Features:** Multi-agent document analysis, automated code generation, usage example creation, content validation, and scalable processing workflows for various document formats." ] diff --git a/examples/cookbooks/SocialMedia_Content_Agents/Ai_Meme_Creator_Agent.ipynb b/examples/cookbooks/SocialMedia_Content_Agents/Ai_Meme_Creator_Agent.ipynb index 014257da2..d87b7466c 100644 --- a/examples/cookbooks/SocialMedia_Content_Agents/Ai_Meme_Creator_Agent.ipynb +++ b/examples/cookbooks/SocialMedia_Content_Agents/Ai_Meme_Creator_Agent.ipynb @@ -491,7 +491,7 @@ "\n", "temperature: 0.7\n", "max_tokens: 3000\n", - "model: \"gpt-4o-mini\"\n", + "model: \"gpt-5-nano\"\n", "\"\"\"\n", "\n", "print(\"โœ… YAML Prompt configured!\")" diff --git a/examples/cookbooks/SocialMedia_Content_Agents/Joke_Agent.ipynb b/examples/cookbooks/SocialMedia_Content_Agents/Joke_Agent.ipynb index 2b8f99ef0..8da77b9fd 100644 --- a/examples/cookbooks/SocialMedia_Content_Agents/Joke_Agent.ipynb +++ b/examples/cookbooks/SocialMedia_Content_Agents/Joke_Agent.ipynb @@ -120,7 +120,7 @@ "\n", " def run(self, message: str):\n", " response = client.chat.completions.create(\n", - " model=\"gpt-4o-mini\",\n", + " model=\"gpt-5-nano\",\n", " messages=[\n", " {\"role\": \"system\", \"content\": self.prompt},\n", " {\"role\": \"user\", \"content\": message}\n", diff --git a/examples/cookbooks/yaml/article_generation_agents.ipynb b/examples/cookbooks/yaml/article_generation_agents.ipynb index d435ed3f0..2f0264b8a 100644 --- a/examples/cookbooks/yaml/article_generation_agents.ipynb +++ b/examples/cookbooks/yaml/article_generation_agents.ipynb @@ -585,7 +585,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/auto_email_responder_agents.ipynb b/examples/cookbooks/yaml/auto_email_responder_agents.ipynb index 09271e4f6..804798431 100644 --- a/examples/cookbooks/yaml/auto_email_responder_agents.ipynb +++ b/examples/cookbooks/yaml/auto_email_responder_agents.ipynb @@ -1090,7 +1090,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/book_writing_agents.ipynb b/examples/cookbooks/yaml/book_writing_agents.ipynb index d550726a7..28e4a0186 100644 --- a/examples/cookbooks/yaml/book_writing_agents.ipynb +++ b/examples/cookbooks/yaml/book_writing_agents.ipynb @@ -2077,7 +2077,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/business_product_launch_agents.ipynb b/examples/cookbooks/yaml/business_product_launch_agents.ipynb index af048972d..e9360f20b 100644 --- a/examples/cookbooks/yaml/business_product_launch_agents.ipynb +++ b/examples/cookbooks/yaml/business_product_launch_agents.ipynb @@ -151,7 +151,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/cli_operation_agents.ipynb b/examples/cookbooks/yaml/cli_operation_agents.ipynb index 85f7c8251..a92542399 100644 --- a/examples/cookbooks/yaml/cli_operation_agents.ipynb +++ b/examples/cookbooks/yaml/cli_operation_agents.ipynb @@ -533,7 +533,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/comprehensive_research_report_agents.ipynb b/examples/cookbooks/yaml/comprehensive_research_report_agents.ipynb index 93d1c09d6..a0758c3fc 100644 --- a/examples/cookbooks/yaml/comprehensive_research_report_agents.ipynb +++ b/examples/cookbooks/yaml/comprehensive_research_report_agents.ipynb @@ -235,7 +235,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/email_workflow_management_agents.ipynb b/examples/cookbooks/yaml/email_workflow_management_agents.ipynb index 501d47bc3..a25e12ad3 100644 --- a/examples/cookbooks/yaml/email_workflow_management_agents.ipynb +++ b/examples/cookbooks/yaml/email_workflow_management_agents.ipynb @@ -1250,7 +1250,7 @@ "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", "os.environ[\"TAVILY_API_KEY\"] = userdata.get('TAVILY_API_KEY') or \"ENTER TAVILY_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/game_development_agents.ipynb b/examples/cookbooks/yaml/game_development_agents.ipynb index 1b3873aab..72a8fe142 100644 --- a/examples/cookbooks/yaml/game_development_agents.ipynb +++ b/examples/cookbooks/yaml/game_development_agents.ipynb @@ -1559,7 +1559,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/instagram_post_agents.ipynb b/examples/cookbooks/yaml/instagram_post_agents.ipynb index 1c2399468..afba229b3 100644 --- a/examples/cookbooks/yaml/instagram_post_agents.ipynb +++ b/examples/cookbooks/yaml/instagram_post_agents.ipynb @@ -2159,7 +2159,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/job_hunt_agents.ipynb b/examples/cookbooks/yaml/job_hunt_agents.ipynb index 13bbdd118..5e73826dc 100644 --- a/examples/cookbooks/yaml/job_hunt_agents.ipynb +++ b/examples/cookbooks/yaml/job_hunt_agents.ipynb @@ -698,7 +698,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/job_profile_matching_agents.ipynb b/examples/cookbooks/yaml/job_profile_matching_agents.ipynb index 4c012384b..99dc65d0d 100644 --- a/examples/cookbooks/yaml/job_profile_matching_agents.ipynb +++ b/examples/cookbooks/yaml/job_profile_matching_agents.ipynb @@ -592,7 +592,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/language_translator_agents.ipynb b/examples/cookbooks/yaml/language_translator_agents.ipynb index bc04945bb..04a955641 100644 --- a/examples/cookbooks/yaml/language_translator_agents.ipynb +++ b/examples/cookbooks/yaml/language_translator_agents.ipynb @@ -572,7 +572,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/markdown_validator_agents.ipynb b/examples/cookbooks/yaml/markdown_validator_agents.ipynb index 30f381f88..e32df1b86 100644 --- a/examples/cookbooks/yaml/markdown_validator_agents.ipynb +++ b/examples/cookbooks/yaml/markdown_validator_agents.ipynb @@ -580,7 +580,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/meeting_prep_and_strategy_agents.ipynb b/examples/cookbooks/yaml/meeting_prep_and_strategy_agents.ipynb index 3ecddc4a3..c4b7f7722 100644 --- a/examples/cookbooks/yaml/meeting_prep_and_strategy_agents.ipynb +++ b/examples/cookbooks/yaml/meeting_prep_and_strategy_agents.ipynb @@ -1075,7 +1075,7 @@ "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", "os.environ[\"EXA_API_KEY\"] = userdata.get('EXA_API_KEY') or \"ENTER EXA_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/meeting_prep_using_slack_and_trello_agents.ipynb b/examples/cookbooks/yaml/meeting_prep_using_slack_and_trello_agents.ipynb index be1f10230..4cfaab6a0 100644 --- a/examples/cookbooks/yaml/meeting_prep_using_slack_and_trello_agents.ipynb +++ b/examples/cookbooks/yaml/meeting_prep_using_slack_and_trello_agents.ipynb @@ -667,7 +667,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/memory_management_and_knowledge_retreival_agents.ipynb b/examples/cookbooks/yaml/memory_management_and_knowledge_retreival_agents.ipynb index 959bf1e53..11aff9408 100644 --- a/examples/cookbooks/yaml/memory_management_and_knowledge_retreival_agents.ipynb +++ b/examples/cookbooks/yaml/memory_management_and_knowledge_retreival_agents.ipynb @@ -1947,7 +1947,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/model_fee_retreival_agents.ipynb b/examples/cookbooks/yaml/model_fee_retreival_agents.ipynb index 1f6982676..501ab7f42 100644 --- a/examples/cookbooks/yaml/model_fee_retreival_agents.ipynb +++ b/examples/cookbooks/yaml/model_fee_retreival_agents.ipynb @@ -666,7 +666,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/news_retreival_rag_agents.ipynb b/examples/cookbooks/yaml/news_retreival_rag_agents.ipynb index c1875f23d..d003882d0 100644 --- a/examples/cookbooks/yaml/news_retreival_rag_agents.ipynb +++ b/examples/cookbooks/yaml/news_retreival_rag_agents.ipynb @@ -475,7 +475,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/recruitment_flow_agents.ipynb b/examples/cookbooks/yaml/recruitment_flow_agents.ipynb index 7cc6b2b7d..045ea29b9 100644 --- a/examples/cookbooks/yaml/recruitment_flow_agents.ipynb +++ b/examples/cookbooks/yaml/recruitment_flow_agents.ipynb @@ -2130,7 +2130,7 @@ "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", "os.environ[\"SERPER_API_KEY\"] = userdata.get('SERPER_API_KEY') or \"ENTER SERPER_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/reddit_search_analysis_agents.ipynb b/examples/cookbooks/yaml/reddit_search_analysis_agents.ipynb index 395bddf80..4eca5dee6 100644 --- a/examples/cookbooks/yaml/reddit_search_analysis_agents.ipynb +++ b/examples/cookbooks/yaml/reddit_search_analysis_agents.ipynb @@ -635,7 +635,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/research_report_generation_agents.ipynb b/examples/cookbooks/yaml/research_report_generation_agents.ipynb index 76cda1c81..6b277374d 100644 --- a/examples/cookbooks/yaml/research_report_generation_agents.ipynb +++ b/examples/cookbooks/yaml/research_report_generation_agents.ipynb @@ -564,7 +564,7 @@ "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", "os.environ[\"TAVILY_API_KEY\"] = userdata.get('TAVILY_API_KEY') or \"ENTER TAVILY_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/research_through_azure_instance_agents.ipynb b/examples/cookbooks/yaml/research_through_azure_instance_agents.ipynb index e8297f71f..230d53b65 100644 --- a/examples/cookbooks/yaml/research_through_azure_instance_agents.ipynb +++ b/examples/cookbooks/yaml/research_through_azure_instance_agents.ipynb @@ -564,7 +564,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/screenplay_writer_agents.ipynb b/examples/cookbooks/yaml/screenplay_writer_agents.ipynb index 191d2c631..39dca7d08 100644 --- a/examples/cookbooks/yaml/screenplay_writer_agents.ipynb +++ b/examples/cookbooks/yaml/screenplay_writer_agents.ipynb @@ -614,7 +614,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/secondary_market_research_agents.ipynb b/examples/cookbooks/yaml/secondary_market_research_agents.ipynb index fe10d8fc2..50f657fac 100644 --- a/examples/cookbooks/yaml/secondary_market_research_agents.ipynb +++ b/examples/cookbooks/yaml/secondary_market_research_agents.ipynb @@ -66,7 +66,7 @@ "\n", "# Set up OpenAI API key (add to Google Colab secrets)\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"" + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"" ] }, { diff --git a/examples/cookbooks/yaml/secondary_market_research_agents.yaml b/examples/cookbooks/yaml/secondary_market_research_agents.yaml index 17a9f4575..114df21f2 100644 --- a/examples/cookbooks/yaml/secondary_market_research_agents.yaml +++ b/examples/cookbooks/yaml/secondary_market_research_agents.yaml @@ -22,7 +22,7 @@ roles: verbose: true allow_delegation: false llm: - model: "gpt-4o-mini" + model: "gpt-5-nano" temperature: 0.3 tools: - "InternetSearchTool" @@ -76,7 +76,7 @@ roles: verbose: true allow_delegation: false llm: - model: "gpt-4o-mini" + model: "gpt-5-nano" temperature: 0.3 tools: - "InternetSearchTool" @@ -130,7 +130,7 @@ roles: verbose: true allow_delegation: false llm: - model: "gpt-4o-mini" + model: "gpt-5-nano" temperature: 0.3 tools: - "InternetSearchTool" @@ -185,7 +185,7 @@ roles: verbose: true allow_delegation: false llm: - model: "gpt-4o-mini" + model: "gpt-5-nano" temperature: 0.4 tools: - "InternetSearchTool" @@ -239,7 +239,7 @@ roles: verbose: true allow_delegation: false llm: - model: "gpt-4o-mini" + model: "gpt-5-nano" temperature: 0.3 tools: - "InternetSearchTool" @@ -299,7 +299,7 @@ roles: verbose: true allow_delegation: false llm: - model: "gpt-4o-mini" + model: "gpt-5-nano" temperature: 0.3 tasks: report_synthesis: diff --git a/examples/cookbooks/yaml/shakespearean_tweets_generation_agents.ipynb b/examples/cookbooks/yaml/shakespearean_tweets_generation_agents.ipynb index 4cb0f457f..ba51c6719 100644 --- a/examples/cookbooks/yaml/shakespearean_tweets_generation_agents.ipynb +++ b/examples/cookbooks/yaml/shakespearean_tweets_generation_agents.ipynb @@ -462,7 +462,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/stock_analysis_agents.ipynb b/examples/cookbooks/yaml/stock_analysis_agents.ipynb index a8c6532d0..221cb20c8 100644 --- a/examples/cookbooks/yaml/stock_analysis_agents.ipynb +++ b/examples/cookbooks/yaml/stock_analysis_agents.ipynb @@ -380,7 +380,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/story_book_author_agents.ipynb b/examples/cookbooks/yaml/story_book_author_agents.ipynb index b2fc43ab7..6bdf74881 100644 --- a/examples/cookbooks/yaml/story_book_author_agents.ipynb +++ b/examples/cookbooks/yaml/story_book_author_agents.ipynb @@ -540,7 +540,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/surprise_trip_planner_and_itinerary_agents.ipynb b/examples/cookbooks/yaml/surprise_trip_planner_and_itinerary_agents.ipynb index 9b973154d..869543cf5 100644 --- a/examples/cookbooks/yaml/surprise_trip_planner_and_itinerary_agents.ipynb +++ b/examples/cookbooks/yaml/surprise_trip_planner_and_itinerary_agents.ipynb @@ -2639,7 +2639,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/trip_planner_agents.ipynb b/examples/cookbooks/yaml/trip_planner_agents.ipynb index 32363b977..bbfe1a88f 100644 --- a/examples/cookbooks/yaml/trip_planner_agents.ipynb +++ b/examples/cookbooks/yaml/trip_planner_agents.ipynb @@ -1835,7 +1835,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/wikipedia_search_analysis_agents.ipynb b/examples/cookbooks/yaml/wikipedia_search_analysis_agents.ipynb index 71b46a086..4acd339f4 100644 --- a/examples/cookbooks/yaml/wikipedia_search_analysis_agents.ipynb +++ b/examples/cookbooks/yaml/wikipedia_search_analysis_agents.ipynb @@ -623,7 +623,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/you_search_analysis_agents.ipynb b/examples/cookbooks/yaml/you_search_analysis_agents.ipynb index 9b60bbb06..075c44a86 100644 --- a/examples/cookbooks/yaml/you_search_analysis_agents.ipynb +++ b/examples/cookbooks/yaml/you_search_analysis_agents.ipynb @@ -635,7 +635,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/cookbooks/yaml/youtube_search_analysis_agents.ipynb b/examples/cookbooks/yaml/youtube_search_analysis_agents.ipynb index 8b7c49525..e1a01f692 100644 --- a/examples/cookbooks/yaml/youtube_search_analysis_agents.ipynb +++ b/examples/cookbooks/yaml/youtube_search_analysis_agents.ipynb @@ -582,7 +582,7 @@ "\n", "# Add OPENAI_API_KEY Secrets to Google Colab on the Left Hand Side ๐Ÿ”‘ or Enter Manually Below\n", "os.environ[\"OPENAI_API_KEY\"] = userdata.get('OPENAI_API_KEY') or \"ENTER OPENAI_API_KEY HERE\"\n", - "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-4o-mini\"\n", + "os.environ[\"OPENAI_MODEL_NAME\"] = \"gpt-5-nano\"\n", "\n", "# Run PraisonAI\n", "result = praisonai.run()\n", diff --git a/examples/python/agents/MULTI_PROVIDER_README.md b/examples/python/agents/MULTI_PROVIDER_README.md index c2ad1f115..5168590f1 100644 --- a/examples/python/agents/MULTI_PROVIDER_README.md +++ b/examples/python/agents/MULTI_PROVIDER_README.md @@ -10,7 +10,7 @@ PraisonAI now supports intelligent multi-provider and multi-model capabilities, - Supports fallback mechanisms for reliability ### 2. **Cost Optimization** -- Routes simple tasks to cheaper models (e.g., GPT-4o-mini, Gemini Flash) +- Routes simple tasks to cheaper models (e.g., gpt-5-nano, Gemini Flash) - Reserves expensive models for complex tasks - Tracks usage and provides cost estimates @@ -46,7 +46,7 @@ agent = RouterAgent( name="Smart Assistant", role="Adaptive AI Assistant", goal="Complete tasks using the most appropriate model", - models=["gpt-4o-mini", "gpt-4o", "claude-3-5-sonnet-20241022"], + models=["gpt-5-nano", "gpt-4o", "claude-3-5-sonnet-20241022"], routing_strategy="auto" # Automatic model selection ) @@ -90,7 +90,7 @@ analyzer = RouterAgent( goal="Analyze data efficiently", models={ "gemini/gemini-1.5-flash": {}, - "gpt-4o-mini": {}, + "gpt-5-nano": {}, "claude-3-haiku-20240307": {} }, model_router=router, @@ -130,7 +130,7 @@ The system includes pre-configured profiles for popular models: | Model | Provider | Best For | Cost/1k tokens | |-------|----------|----------|----------------| -| gpt-4o-mini | OpenAI | Simple tasks, speed | $0.00075 | +| gpt-5-nano | OpenAI | Simple tasks, speed | $0.00075 | | gemini-1.5-flash | Google | Cost-effective, multimodal | $0.000125 | | claude-3-haiku | Anthropic | Fast responses | $0.0008 | | gpt-4o | OpenAI | General purpose | $0.0075 | @@ -160,7 +160,7 @@ print(report) 'agent_name': 'Smart Assistant', 'routing_strategy': 'auto', 'model_usage': { - 'gpt-4o-mini': {'calls': 5, 'tokens': 1500, 'cost': 0.0011}, + 'gpt-5-nano': {'calls': 5, 'tokens': 1500, 'cost': 0.0011}, 'gpt-4o': {'calls': 2, 'tokens': 3000, 'cost': 0.0225} }, 'total_cost_estimate': 0.0236, @@ -207,7 +207,7 @@ for i, agent in enumerate(auto.agents): name=agent.name, role=agent.role, goal=agent.goal, - models=["gpt-4o-mini", "gpt-4o", "claude-3-5-sonnet"], + models=["gpt-5-nano", "gpt-4o", "claude-3-5-sonnet"], routing_strategy="auto" ) diff --git a/examples/python/agents/context-agent.py b/examples/python/agents/context-agent.py index 3cb52783e..e3aa904ba 100644 --- a/examples/python/agents/context-agent.py +++ b/examples/python/agents/context-agent.py @@ -31,7 +31,7 @@ def demonstrate_basic_context_generation(): # Create a ContextAgent using the factory function context_agent = create_context_agent( - llm="gpt-4o-mini", + llm="gpt-5-nano", name="Basic Context Engineer", verbose=True ) @@ -133,7 +133,7 @@ def demonstrate_context_agent_as_tool(): print("=" * 60) # Create ContextAgent - context_agent = create_context_agent(llm="gpt-4o-mini") + context_agent = create_context_agent(llm="gpt-5-nano") # Example scenario: Product planning workflow project_path = str(project_root) @@ -186,7 +186,7 @@ def show_context_engineering_benefits(): # Context Engineering approach print("\nโœ… Context Engineering Approach:") - context_agent = create_context_agent(llm="gpt-4o-mini") + context_agent = create_context_agent(llm="gpt-5-nano") # Generate comprehensive context analysis = context_agent.analyze_codebase_patterns(str(project_root)) diff --git a/examples/python/agents/image-agent.py b/examples/python/agents/image-agent.py index 9ea8e1da9..6f873b141 100644 --- a/examples/python/agents/image-agent.py +++ b/examples/python/agents/image-agent.py @@ -13,7 +13,7 @@ image_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/examples/python/agents/image-to-text-agent.py b/examples/python/agents/image-to-text-agent.py index 9ea8e1da9..6f873b141 100644 --- a/examples/python/agents/image-to-text-agent.py +++ b/examples/python/agents/image-to-text-agent.py @@ -13,7 +13,7 @@ image_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/examples/python/agents/multi-provider-agent.py b/examples/python/agents/multi-provider-agent.py index 2756470c9..bed2ec7c0 100644 --- a/examples/python/agents/multi-provider-agent.py +++ b/examples/python/agents/multi-provider-agent.py @@ -21,7 +21,7 @@ def example_auto_routing(): role="Adaptive Research Assistant", goal="Research topics using the most appropriate AI model", backstory="I analyze task complexity and route to the best model", - models=["gpt-4o-mini", "gpt-4o", "claude-3-5-sonnet-20241022"], + models=["gpt-5-nano", "gpt-4o", "claude-3-5-sonnet-20241022"], routing_strategy="auto", # Automatic model selection verbose=True ) @@ -81,7 +81,7 @@ def example_cost_optimized_workflow(): goal="Analyze data efficiently while minimizing costs", models={ "gemini/gemini-1.5-flash": {}, - "gpt-4o-mini": {}, + "gpt-5-nano": {}, "deepseek-chat": {} }, model_router=cost_router, @@ -144,7 +144,7 @@ def example_auto_agents_multi_provider(): auto_agents = AutoAgents( instructions="Create a market research report on electric vehicles. Include data analysis, competitor analysis, and future projections.", max_agents=3, - llm="gpt-4o-mini", # Default model for agent generation + llm="gpt-5-nano", # Default model for agent generation verbose=True ) @@ -158,7 +158,7 @@ def example_auto_agents_multi_provider(): goal=agent.goal, backstory=agent.backstory, tools=agent.tools, - models=["gpt-4o-mini", "gemini/gemini-1.5-flash", "claude-3-haiku-20240307", "gpt-4o"], + models=["gpt-5-nano", "gemini/gemini-1.5-flash", "claude-3-haiku-20240307", "gpt-4o"], routing_strategy="auto", verbose=True ) diff --git a/examples/python/agents/router-agent-cost-optimization.py b/examples/python/agents/router-agent-cost-optimization.py index 29a3086a2..7e14bd917 100644 --- a/examples/python/agents/router-agent-cost-optimization.py +++ b/examples/python/agents/router-agent-cost-optimization.py @@ -18,7 +18,7 @@ from praisonaiagents.tools import duckduckgo # Define model options with cost considerations # Using different models for different complexity levels -cheap_model = "gpt-4o-mini" # For simple tasks +cheap_model = "gpt-5-nano" # For simple tasks balanced_model = "gpt-4o" # For moderate complexity premium_model = "claude-3-5-sonnet-20241022" # For complex tasks @@ -76,7 +76,7 @@ print("\n" + "="*80) print("COST OPTIMIZATION ROUTER DEMONSTRATION COMPLETED") print("="*80) print("The RouterAgent automatically selected appropriate models based on task complexity:") -print("- Simple factual questions โ†’ Cheaper model (gpt-4o-mini)") +print("- Simple factual questions โ†’ Cheaper model (gpt-5-nano)") print("- Moderate analysis tasks โ†’ Balanced model (gpt-4o)") print("- Complex strategic analysis โ†’ Premium model (claude-3-5-sonnet)") print("- This approach optimizes costs while maintaining quality for each task type") \ No newline at end of file diff --git a/examples/python/agents/video-agent.py b/examples/python/agents/video-agent.py index a35b0c09d..f0a9894c6 100644 --- a/examples/python/agents/video-agent.py +++ b/examples/python/agents/video-agent.py @@ -7,7 +7,7 @@ video_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/examples/python/api/mcp-sse.py b/examples/python/api/mcp-sse.py index 7cb92b995..b0eb38e8f 100644 --- a/examples/python/api/mcp-sse.py +++ b/examples/python/api/mcp-sse.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP qa_agent = Agent( instructions="""You are a Question Answering Agent.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("http://localhost:8080/agents/sse") ) diff --git a/examples/python/api/multi-agent-api.py b/examples/python/api/multi-agent-api.py index a41682bdb..05540bac8 100644 --- a/examples/python/api/multi-agent-api.py +++ b/examples/python/api/multi-agent-api.py @@ -2,17 +2,17 @@ from praisonaiagents import Agent weather_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) stock_agent = Agent( instructions="""You are a stock market agent that can provide information about stock prices and market trends.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) travel_agent = Agent( instructions="""You are a travel agent that can provide recommendations for destinations, hotels, and activities.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) weather_agent.launch(path="/weather", port=3030) diff --git a/examples/python/api/simple-api-mcp.py b/examples/python/api/simple-api-mcp.py index 857361d4a..37eeb747e 100644 --- a/examples/python/api/simple-api-mcp.py +++ b/examples/python/api/simple-api-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("http://localhost:8080/sse") ) search_agent.launch(path="/weather", port=3030) \ No newline at end of file diff --git a/examples/python/api/simple-api.py b/examples/python/api/simple-api.py index 47b56b36f..8a2bd04b4 100644 --- a/examples/python/api/simple-api.py +++ b/examples/python/api/simple-api.py @@ -1,4 +1,4 @@ from praisonaiagents import Agent -agent = Agent(instructions="""You are a helpful assistant.""", llm="gpt-4o-mini") +agent = Agent(instructions="""You are a helpful assistant.""", llm="gpt-5-nano") agent.launch(path="/ask", port=3030) \ No newline at end of file diff --git a/examples/python/camera/camera-basic.py b/examples/python/camera/camera-basic.py index f6f2e50d3..a92a51d4b 100644 --- a/examples/python/camera/camera-basic.py +++ b/examples/python/camera/camera-basic.py @@ -28,7 +28,7 @@ def capture_and_analyze(): role="Camera Feed Analyzer", goal="Analyze camera captures in real-time", backstory="Expert in real-time visual analysis with computer vision skills", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Initialize camera (0 for default camera) diff --git a/examples/python/camera/camera-continuous.py b/examples/python/camera/camera-continuous.py index 5dcf929d7..774ddf896 100644 --- a/examples/python/camera/camera-continuous.py +++ b/examples/python/camera/camera-continuous.py @@ -42,7 +42,7 @@ class ContinuousCameraMonitor: role="Security Camera Analyst", goal="Monitor camera feeds for activities and security events", backstory="Expert security analyst with computer vision skills specialized in real-time monitoring", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) def capture_frame(self, cap): diff --git a/examples/python/camera/camera-multi-agent.py b/examples/python/camera/camera-multi-agent.py index e8b4a4891..77734915a 100644 --- a/examples/python/camera/camera-multi-agent.py +++ b/examples/python/camera/camera-multi-agent.py @@ -57,7 +57,7 @@ def analyze_with_multiple_agents(): role="Security Specialist", goal="Identify security threats and suspicious activities", backstory="Expert security analyst with years of experience in surveillance and threat detection", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) object_detector = Agent( @@ -65,7 +65,7 @@ def analyze_with_multiple_agents(): role="Object Recognition Specialist", goal="Identify and catalog all objects in the scene", backstory="Computer vision expert specializing in object detection and classification", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) scene_analyst = Agent( @@ -73,7 +73,7 @@ def analyze_with_multiple_agents(): role="Scene Understanding Expert", goal="Provide comprehensive scene analysis and context", backstory="Environmental analyst expert in understanding spatial relationships and scene context", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create specialized tasks diff --git a/examples/python/camera/camera-video-analysis.py b/examples/python/camera/camera-video-analysis.py index 2742d3e5c..57840cbab 100644 --- a/examples/python/camera/camera-video-analysis.py +++ b/examples/python/camera/camera-video-analysis.py @@ -39,7 +39,7 @@ class CameraVideoAnalyzer: role="Video Content Analyzer", goal="Analyze video content for activities, objects, and events", backstory="Expert in video analysis and temporal event detection with computer vision expertise", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) def record_video_segment(self, duration_seconds=10): diff --git a/examples/python/concepts/context-engineering-workflow.py b/examples/python/concepts/context-engineering-workflow.py index 5199fab36..0e25b758d 100644 --- a/examples/python/concepts/context-engineering-workflow.py +++ b/examples/python/concepts/context-engineering-workflow.py @@ -34,7 +34,7 @@ class ContextEngineeringWorkflow: to achieve higher success rates in AI-driven development tasks. """ - def __init__(self, project_path: str, llm: str = "gpt-4o-mini"): + def __init__(self, project_path: str, llm: str = "gpt-5-nano"): self.project_path = project_path self.llm = llm self.context_data = {} @@ -382,7 +382,7 @@ def run_example_workflow(): project_path = str(project_root) workflow = ContextEngineeringWorkflow( project_path=project_path, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Example feature request @@ -446,7 +446,7 @@ if __name__ == "__main__": print("(Note: Full execution requires complete environment setup)") project_path = str(project_root) - workflow = ContextEngineeringWorkflow(project_path, "gpt-4o-mini") + workflow = ContextEngineeringWorkflow(project_path, "gpt-5-nano") print(f"\nโœ… Workflow Setup Complete:") print(f" โ€ข Project path: {project_path}") diff --git a/examples/python/concepts/csv-processing-agents.py b/examples/python/concepts/csv-processing-agents.py index dfbbdce83..a5558b6e3 100644 --- a/examples/python/concepts/csv-processing-agents.py +++ b/examples/python/concepts/csv-processing-agents.py @@ -68,7 +68,7 @@ def method_1_simple_loop(): goal="Process each task from the CSV file efficiently", backstory="Expert at handling repetitive tasks from CSV data", instructions="Process each task thoroughly and provide detailed output", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a loop task that will automatically process each CSV row @@ -127,7 +127,7 @@ def method_2_manual_csv(): 4. Create a summary of the processing results 5. Save results to a new CSV file if needed """, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a task for manual CSV processing @@ -187,7 +187,7 @@ def method_3_url_processing(): 4. Create a detailed analysis report 5. Save results with analysis data """, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create the URL processing task @@ -264,7 +264,7 @@ def method_4_advanced_processing(): 4. Create separate files for valid and invalid data 5. Provide detailed validation reports """, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a processing agent @@ -281,7 +281,7 @@ def method_4_advanced_processing(): 3. Generate comprehensive results 4. Create detailed output reports """, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create validation task diff --git a/examples/python/concepts/knowledge-reranker-example.py b/examples/python/concepts/knowledge-reranker-example.py index 4e1b9e5ba..1f11a23c4 100644 --- a/examples/python/concepts/knowledge-reranker-example.py +++ b/examples/python/concepts/knowledge-reranker-example.py @@ -140,7 +140,7 @@ def main(): instructions="You are an AI research assistant. Use your knowledge base to answer questions about artificial intelligence topics.", knowledge=sample_documents, # Will use default knowledge config knowledge_config=rerank_config, # Use reranking config - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print("7. Agent with reranking knowledge:") diff --git a/examples/python/concepts/rag-agents.py b/examples/python/concepts/rag-agents.py index 048610bce..e8111cf99 100644 --- a/examples/python/concepts/rag-agents.py +++ b/examples/python/concepts/rag-agents.py @@ -16,7 +16,7 @@ rag_agent = Agent( name="RAG Agent", role="Information Specialist", goal="Retrieve knowledge efficiently", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Define a task for the agent diff --git a/examples/python/concepts/repetitive-agents.py b/examples/python/concepts/repetitive-agents.py index 1b93a50c9..53ad928ad 100644 --- a/examples/python/concepts/repetitive-agents.py +++ b/examples/python/concepts/repetitive-agents.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, Task, PraisonAIAgents agent = Agent( instructions="You are a loop agent that creating a loop of tasks.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) task = Task( diff --git a/examples/python/concepts/self-reflection-optimization-patterns.py b/examples/python/concepts/self-reflection-optimization-patterns.py index 0f115d968..534b7472d 100644 --- a/examples/python/concepts/self-reflection-optimization-patterns.py +++ b/examples/python/concepts/self-reflection-optimization-patterns.py @@ -20,7 +20,7 @@ reflection_agent = Agent( self_reflect=True, min_reflect=2, max_reflect=4, - reflect_llm="gpt-4o-mini", + reflect_llm="gpt-5-nano", verbose=True ) diff --git a/examples/python/concepts/simple-csv-url-processor.py b/examples/python/concepts/simple-csv-url-processor.py index 7095b6732..ed55b89dc 100644 --- a/examples/python/concepts/simple-csv-url-processor.py +++ b/examples/python/concepts/simple-csv-url-processor.py @@ -46,7 +46,7 @@ def main(): goal="Analyze each URL from the CSV list", backstory="Expert at analyzing websites and URLs", instructions="Analyze each URL and provide insights about the website", - llm="gpt-4o-mini" # You can change this to any supported model + llm="gpt-5-nano" # You can change this to any supported model ) # Step 3: Create a task that will loop through the CSV diff --git a/examples/python/custom_tools/example_latency_tracking.py b/examples/python/custom_tools/example_latency_tracking.py index 1684730c4..065aa09b2 100644 --- a/examples/python/custom_tools/example_latency_tracking.py +++ b/examples/python/custom_tools/example_latency_tracking.py @@ -27,7 +27,7 @@ def example_with_tool(): role="Information Researcher", goal="Research and provide information", tools=[latency_tracking_tool], # Add our custom tool - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Start tracking manually @@ -60,7 +60,7 @@ def example_with_wrappers(): name="Analyst", role="Data Analyst", goal="Analyze data and provide insights", - llm="gpt-4o-mini", + llm="gpt-5-nano", request_id="request_2" # Unique request ID ) @@ -83,7 +83,7 @@ def example_with_context_manager(): name="Calculator", role="Math Expert", goal="Solve mathematical problems", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) request_id = "request_3" @@ -126,7 +126,7 @@ def example_mcp_tracking(): name="Assistant", role="MCP Assistant", goal="Handle MCP requests", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) plan = agent.chat("Plan: Search for Python documentation") @@ -166,7 +166,7 @@ def example_concurrent_tracking(): name=f"Agent_{i}", role="Concurrent Worker", goal="Process requests concurrently", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) with tracker.track("processing", request_id): diff --git a/examples/python/custom_tools/mcp_server_latency_example.py b/examples/python/custom_tools/mcp_server_latency_example.py index 977483c09..0fe2e4672 100644 --- a/examples/python/custom_tools/mcp_server_latency_example.py +++ b/examples/python/custom_tools/mcp_server_latency_example.py @@ -56,7 +56,7 @@ def create_mcp_agent_with_tracking(request_id: str = "mcp_request"): name="MCPAssistant", role="MCP Request Handler", goal="Handle MCP requests with latency tracking", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) return agent diff --git a/examples/python/custom_tools/minimal_latency_example.py b/examples/python/custom_tools/minimal_latency_example.py index 568e17e5f..cdc01df5d 100644 --- a/examples/python/custom_tools/minimal_latency_example.py +++ b/examples/python/custom_tools/minimal_latency_example.py @@ -23,7 +23,7 @@ def handle_mcp_request(query: str, request_id: str = "mcp_1"): name="Assistant", role="MCP Handler", goal="Process requests", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) plan = f"I will search for information about {query}" time.sleep(0.1) # Simulate planning time diff --git a/examples/python/data/cot-agents.py b/examples/python/data/cot-agents.py index bdc3d0a46..61836e622 100644 --- a/examples/python/data/cot-agents.py +++ b/examples/python/data/cot-agents.py @@ -29,7 +29,7 @@ qa_generator = Agent( role="Question Creator", goal="Create challenging math and logic questions", backstory="Expert in educational content creation", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[write_csv, count_questions] ) @@ -38,7 +38,7 @@ total_questions_evaluator = Agent( role="Total Questions Evaluator", goal="Evaluate the total number of questions in qa_pairs.csv file", backstory="Expert in evaluating the total number of questions in a file", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[count_questions], verbose=False ) @@ -49,7 +49,7 @@ cot_generator = Agent( goal="Generate and manage chain of thought solutions for Q&A pairs", backstory="Expert in breaking down problems and generating detailed solution steps", tools=[cot_save], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=False ) @@ -59,7 +59,7 @@ upload_to_huggingface = Agent( goal="Upload the generated chain of thought solutions to a Huggingface dataset", backstory="Expert in saving data to Huggingface", tools=[cot_upload_to_huggingface], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=False ) diff --git a/examples/python/general/code_agents_example.py b/examples/python/general/code_agents_example.py index dfac1f642..f4656950a 100644 --- a/examples/python/general/code_agents_example.py +++ b/examples/python/general/code_agents_example.py @@ -23,13 +23,13 @@ def code_interpreter(code: str): code_agent = Agent( name="code_agent", - llm="gpt-4o-mini", + llm="gpt-5-nano", backstory="Expert in writing Python scripts", self_reflect=False ) execution_agent = Agent( name="execution_agent", - llm="gpt-4o-mini", + llm="gpt-5-nano", backstory="Expert in executing Python scripts", self_reflect=False, tools=[code_interpreter] diff --git a/examples/python/general/memory_example.py b/examples/python/general/memory_example.py index c4e17c1bb..0824c0195 100644 --- a/examples/python/general/memory_example.py +++ b/examples/python/general/memory_example.py @@ -33,14 +33,14 @@ def main(): role="Research Analyst", goal="Research and document key information about topics", backstory="Expert at analyzing and storing information in memory", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) retriever = Agent( role="Information Retriever", goal="Retrieve and verify stored information from memory", backstory="Specialist in searching and validating information from memory", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Task 1: Process the facts diff --git a/examples/python/general/memory_simple.py b/examples/python/general/memory_simple.py index 52c0bb70e..b0bed4d52 100644 --- a/examples/python/general/memory_simple.py +++ b/examples/python/general/memory_simple.py @@ -9,19 +9,19 @@ fact3 = "The year the first Josinga was released is 2007" fact_agent = Agent( name="Fact Agent", instructions="You are a fact agent, you store and retrieve facts in memory", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) research_agent = Agent( name="Research Agent", instructions="You are a research analyst, you research and document key points about topics", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) blog_agent = Agent( name="Blog Agent", instructions="You are a blog writer, you write a blog post about the research", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) fact_task = Task( diff --git a/examples/python/general/multimodal.py b/examples/python/general/multimodal.py index 68dde9781..ce7740d2f 100644 --- a/examples/python/general/multimodal.py +++ b/examples/python/general/multimodal.py @@ -7,7 +7,7 @@ vision_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/examples/python/general/structured_agents_example.py b/examples/python/general/structured_agents_example.py index 9aa90d363..957911626 100644 --- a/examples/python/general/structured_agents_example.py +++ b/examples/python/general/structured_agents_example.py @@ -13,7 +13,7 @@ researcher = Agent( goal="Analyze and structure information about AI developments", backstory="Expert analyst specializing in AI technology trends", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[Tools.internet_search], self_reflect=False ) @@ -25,7 +25,7 @@ analyst = Agent( goal="Structure and analyze research findings", backstory="Senior data analyst with expertise in pattern recognition", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/examples/python/general/structured_response_example.py b/examples/python/general/structured_response_example.py index 115bc4d05..9dedd9277 100644 --- a/examples/python/general/structured_response_example.py +++ b/examples/python/general/structured_response_example.py @@ -35,7 +35,7 @@ def get_structured_analysis(query: str, verbose: bool = True) -> AnalysisReport: verbose=verbose, self_reflect=True, # Enable self-reflection for better quality markdown=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create the analysis prompt diff --git a/examples/python/input/advanced_dynamic_input.py b/examples/python/input/advanced_dynamic_input.py index 3b95166dd..48d3db157 100644 --- a/examples/python/input/advanced_dynamic_input.py +++ b/examples/python/input/advanced_dynamic_input.py @@ -16,7 +16,7 @@ class DynamicAgentSystem: def __init__(self): self.user_preferences = {} self.llm_config = { - "model": os.getenv("LLM_MODEL", "gpt-4o-mini"), + "model": os.getenv("LLM_MODEL", "gpt-5-nano"), "temperature": 0.7 } diff --git a/examples/python/input/environment_variable_input.py b/examples/python/input/environment_variable_input.py index 86db0c984..116f1a374 100644 --- a/examples/python/input/environment_variable_input.py +++ b/examples/python/input/environment_variable_input.py @@ -13,7 +13,7 @@ default_topic = os.getenv("RESEARCH_TOPIC", "AI trends") user_topic = input(f"Topic to research [{default_topic}]: ") or default_topic # Get other configuration from environment -llm_model = os.getenv("LLM_MODEL", "gpt-4o-mini") +llm_model = os.getenv("LLM_MODEL", "gpt-5-nano") temperature = float(os.getenv("LLM_TEMPERATURE", "0.7")) max_retries = int(os.getenv("MAX_RETRIES", "3")) diff --git a/examples/python/input/streamlit_ui_input.py b/examples/python/input/streamlit_ui_input.py index e0f6c5f7c..ac2e1d352 100644 --- a/examples/python/input/streamlit_ui_input.py +++ b/examples/python/input/streamlit_ui_input.py @@ -30,7 +30,7 @@ with st.sidebar: # Model selection model = st.selectbox( "Select Model", - ["gpt-4o-mini", "gpt-4o", "gpt-3.5-turbo", "claude-3-opus"], + ["gpt-5-nano", "gpt-4o", "gpt-3.5-turbo", "claude-3-opus"], index=0 ) diff --git a/examples/python/mcp/airbnb-mcp.py b/examples/python/mcp/airbnb-mcp.py index dabe2d4c7..1304b9db3 100644 --- a/examples/python/mcp/airbnb-mcp.py +++ b/examples/python/mcp/airbnb-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) diff --git a/examples/python/mcp/aws-kb-retrieval-mcp.py b/examples/python/mcp/aws-kb-retrieval-mcp.py index 7921c0376..12623af8b 100644 --- a/examples/python/mcp/aws-kb-retrieval-mcp.py +++ b/examples/python/mcp/aws-kb-retrieval-mcp.py @@ -10,7 +10,7 @@ aws_region = os.getenv("AWS_REGION") aws_kb_agent = Agent( instructions="""You are a helpful assistant that can interact with AWS Knowledge Base. Use the available tools when relevant to retrieve and process AWS information.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-aws-kb-retrieval", env={ "AWS_ACCESS_KEY_ID": aws_access_key, diff --git a/examples/python/mcp/bravesearch-mcp.py b/examples/python/mcp/bravesearch-mcp.py index 8a47dab94..ace206dd2 100644 --- a/examples/python/mcp/bravesearch-mcp.py +++ b/examples/python/mcp/bravesearch-mcp.py @@ -8,7 +8,7 @@ brave_api_key = os.getenv("BRAVE_API_KEY") search_agent = Agent( instructions="""You are a helpful assistant that can search the web for information. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-brave-search", env={"BRAVE_API_KEY": brave_api_key}) ) diff --git a/examples/python/mcp/custom-python-client.py b/examples/python/mcp/custom-python-client.py index a8f57e413..f09ce7046 100644 --- a/examples/python/mcp/custom-python-client.py +++ b/examples/python/mcp/custom-python-client.py @@ -3,7 +3,7 @@ from praisonaiagents import Agent, MCP agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py") ) diff --git a/examples/python/mcp/databutton-mcp.py b/examples/python/mcp/databutton-mcp.py index bc66db184..41403fada 100644 --- a/examples/python/mcp/databutton-mcp.py +++ b/examples/python/mcp/databutton-mcp.py @@ -8,7 +8,7 @@ databutton_api_key = os.getenv("DATABUTTON_API_KEY") databutton_agent = Agent( instructions="""You are a helpful assistant that can interact with Databutton. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("uvx databutton-app-mcp@latest", env={"DATABUTTON_API_KEY": databutton_api_key}) ) diff --git a/examples/python/mcp/everart-mcp.py b/examples/python/mcp/everart-mcp.py index 11a6ab13b..e8cc04314 100644 --- a/examples/python/mcp/everart-mcp.py +++ b/examples/python/mcp/everart-mcp.py @@ -8,7 +8,7 @@ everart_api_key = os.getenv("EVERART_API_KEY") everart_agent = Agent( instructions="""You are a helpful assistant that can interact with Everart. Use the available tools when relevant to generate and manage art.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-everart", env={"EVERART_API_KEY": everart_api_key}) ) diff --git a/examples/python/mcp/fetch-mcp.py b/examples/python/mcp/fetch-mcp.py index 3180b5ca7..1640d33cb 100644 --- a/examples/python/mcp/fetch-mcp.py +++ b/examples/python/mcp/fetch-mcp.py @@ -6,7 +6,7 @@ import os fetch_agent = Agent( instructions="""You are a helpful assistant that can fetch and process web content. Use the available tools when relevant to retrieve and convert web pages to markdown.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("python -m mcp_server_fetch") ) diff --git a/examples/python/mcp/filesystem-mcp.py b/examples/python/mcp/filesystem-mcp.py index f506967a6..7987a5c1f 100644 --- a/examples/python/mcp/filesystem-mcp.py +++ b/examples/python/mcp/filesystem-mcp.py @@ -11,7 +11,7 @@ allowed_dirs = [ filesystem_agent = Agent( instructions="""You are a helpful assistant that can interact with the filesystem. Use the available tools when relevant to manage files and directories.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-filesystem", args=allowed_dirs) ) diff --git a/examples/python/mcp/gdrive-mcp.py b/examples/python/mcp/gdrive-mcp.py index e9f3f2bf8..d06d051ef 100644 --- a/examples/python/mcp/gdrive-mcp.py +++ b/examples/python/mcp/gdrive-mcp.py @@ -8,7 +8,7 @@ gdrive_credentials = os.getenv("GDRIVE_CREDENTIALS_PATH", "servers/gcp-oauth.key gdrive_agent = Agent( instructions="""You are a helpful assistant that can interact with Google Drive. Use the available tools when relevant to manage files and folders.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-gdrive", env={"GDRIVE_CREDENTIALS_PATH": gdrive_credentials}) ) diff --git a/examples/python/mcp/git-mcp.py b/examples/python/mcp/git-mcp.py index 7c037aa88..adde996ce 100644 --- a/examples/python/mcp/git-mcp.py +++ b/examples/python/mcp/git-mcp.py @@ -11,7 +11,7 @@ git_token = os.getenv("GIT_TOKEN") # For private repos git_agent = Agent( instructions="""You are a helpful assistant that can perform Git operations. Use the available tools when relevant to manage repositories, commits, and branches.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("python -m mcp_server_git", env={ "GIT_USERNAME": git_username, diff --git a/examples/python/mcp/github-mcp.py b/examples/python/mcp/github-mcp.py index 68e1621b7..09ba24781 100644 --- a/examples/python/mcp/github-mcp.py +++ b/examples/python/mcp/github-mcp.py @@ -8,7 +8,7 @@ github_token = os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN") github_agent = Agent( instructions="""You are a helpful assistant that can interact with GitHub. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-github", env={"GITHUB_PERSONAL_ACCESS_TOKEN": github_token}) ) diff --git a/examples/python/mcp/gitlab-mcp.py b/examples/python/mcp/gitlab-mcp.py index b23aa5651..aee7aa250 100644 --- a/examples/python/mcp/gitlab-mcp.py +++ b/examples/python/mcp/gitlab-mcp.py @@ -9,7 +9,7 @@ gitlab_api_url = os.getenv("GITLAB_API_URL", "https://gitlab.com/api/v4") gitlab_agent = Agent( instructions="""You are a helpful assistant that can interact with GitLab. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-gitlab", env={ "GITLAB_PERSONAL_ACCESS_TOKEN": gitlab_token, diff --git a/examples/python/mcp/google-maps-mcp.py b/examples/python/mcp/google-maps-mcp.py index bb4b879ea..a4a4af0d5 100644 --- a/examples/python/mcp/google-maps-mcp.py +++ b/examples/python/mcp/google-maps-mcp.py @@ -8,7 +8,7 @@ maps_api_key = os.getenv("GOOGLE_MAPS_API_KEY") maps_agent = Agent( instructions="""You are a helpful assistant that can interact with Google Maps. Use the available tools when relevant to handle location-based queries.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-google-maps", env={"GOOGLE_MAPS_API_KEY": maps_api_key}) ) diff --git a/examples/python/mcp/mcp-sse-weather.py b/examples/python/mcp/mcp-sse-weather.py index bcd48b77b..7d76c64d7 100644 --- a/examples/python/mcp/mcp-sse-weather.py +++ b/examples/python/mcp/mcp-sse-weather.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("http://localhost:8080/sse") ) diff --git a/examples/python/mcp/memory-mcp.py b/examples/python/mcp/memory-mcp.py index a669d5f67..4fb505c2c 100644 --- a/examples/python/mcp/memory-mcp.py +++ b/examples/python/mcp/memory-mcp.py @@ -8,7 +8,7 @@ memory_file_path = os.getenv("MEMORY_FILE_PATH", "/path/to/custom/memory.json") memory_agent = Agent( instructions="""You are a helpful assistant that can store and retrieve information. Use the available tools when relevant to manage memory operations.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-memory", env={"MEMORY_FILE_PATH": memory_file_path}) ) diff --git a/examples/python/mcp/openai-mcp.py b/examples/python/mcp/openai-mcp.py index dabe2d4c7..1304b9db3 100644 --- a/examples/python/mcp/openai-mcp.py +++ b/examples/python/mcp/openai-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) diff --git a/examples/python/mcp/perplexity-mcp.py b/examples/python/mcp/perplexity-mcp.py index 5457f460d..d99244520 100644 --- a/examples/python/mcp/perplexity-mcp.py +++ b/examples/python/mcp/perplexity-mcp.py @@ -5,7 +5,7 @@ api_key = os.getenv("PERPLEXITY_API_KEY") agent = Agent( instructions="You are a helpful assistant that can search the web for information. Use the available tools when relevant to answer user questions.", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("uvx perplexity-mcp", env={"PERPLEXITY_API_KEY": api_key, "PERPLEXITY_MODEL": "sonar" }) ) diff --git a/examples/python/mcp/playwright-mcp.py b/examples/python/mcp/playwright-mcp.py index 48ea6b405..7d223a59b 100644 --- a/examples/python/mcp/playwright-mcp.py +++ b/examples/python/mcp/playwright-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help search the web.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("http://localhost:8931/sse") ) diff --git a/examples/python/mcp/postgres-mcp.py b/examples/python/mcp/postgres-mcp.py index e069a4159..b6246498e 100644 --- a/examples/python/mcp/postgres-mcp.py +++ b/examples/python/mcp/postgres-mcp.py @@ -8,7 +8,7 @@ postgres_url = "postgresql://localhost/mydb" postgres_agent = Agent( instructions="""You are a helpful assistant that can interact with PostgreSQL databases. Use the available tools when relevant to manage database operations.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-postgres", args=[postgres_url]) ) diff --git a/examples/python/mcp/puppeteer-mcp.py b/examples/python/mcp/puppeteer-mcp.py index 933b444c5..83d5f7cae 100644 --- a/examples/python/mcp/puppeteer-mcp.py +++ b/examples/python/mcp/puppeteer-mcp.py @@ -5,7 +5,7 @@ import os puppeteer_agent = Agent( instructions="""You are a helpful assistant that can automate web browser interactions. Use the available tools when relevant to perform web automation tasks.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-puppeteer") ) diff --git a/examples/python/mcp/redis-mcp.py b/examples/python/mcp/redis-mcp.py index d9f3d32aa..8d7bd7297 100644 --- a/examples/python/mcp/redis-mcp.py +++ b/examples/python/mcp/redis-mcp.py @@ -8,7 +8,7 @@ redis_url = "redis://localhost:6379" redis_agent = Agent( instructions="""You are a helpful assistant that can interact with Redis. Use the available tools when relevant to manage Redis operations.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-redis", args=[redis_url]) ) diff --git a/examples/python/mcp/sentry-mcp.py b/examples/python/mcp/sentry-mcp.py index 28f045b15..19268063b 100644 --- a/examples/python/mcp/sentry-mcp.py +++ b/examples/python/mcp/sentry-mcp.py @@ -9,7 +9,7 @@ sentry_token = os.getenv("SENTRY_AUTH_TOKEN") sentry_agent = Agent( instructions="""You are a helpful assistant that can analyze Sentry error reports. Use the available tools when relevant to inspect and debug application issues.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("python -m mcp_server_sentry --auth-token", args=[sentry_token]) ) diff --git a/examples/python/mcp/sequential-thinking-mcp.py b/examples/python/mcp/sequential-thinking-mcp.py index c0f63ed6c..e6f4d3622 100644 --- a/examples/python/mcp/sequential-thinking-mcp.py +++ b/examples/python/mcp/sequential-thinking-mcp.py @@ -5,7 +5,7 @@ import os sequential_agent = Agent( instructions="""You are a helpful assistant that can break down complex problems. Use the available tools when relevant to perform step-by-step analysis.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) diff --git a/examples/python/mcp/slack-mcp.py b/examples/python/mcp/slack-mcp.py index 82a8d6263..361442702 100644 --- a/examples/python/mcp/slack-mcp.py +++ b/examples/python/mcp/slack-mcp.py @@ -9,7 +9,7 @@ slack_team_id = os.getenv("SLACK_TEAM_ID") slack_agent = Agent( instructions="""You are a helpful assistant that can interact with Slack. Use the available tools when relevant to manage Slack communications.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-slack", env={ "SLACK_BOT_TOKEN": slack_token, diff --git a/examples/python/mcp/time-mcp.py b/examples/python/mcp/time-mcp.py index 5cc2ffaeb..579a07ffa 100644 --- a/examples/python/mcp/time-mcp.py +++ b/examples/python/mcp/time-mcp.py @@ -6,7 +6,7 @@ import os time_agent = Agent( instructions="""You are a helpful assistant that can handle time-related operations. Use the available tools when relevant to manage timezone conversions and time information.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("python -m mcp_server_time --local-timezone=America/New_York") ) diff --git a/examples/python/mcp/whatapp-mcp.py b/examples/python/mcp/whatapp-mcp.py index e687bd954..17139385d 100644 --- a/examples/python/mcp/whatapp-mcp.py +++ b/examples/python/mcp/whatapp-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP whatsapp_agent = Agent( instructions="Whatsapp Agent", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("python /Users/praison/whatsapp-mcp/whatsapp-mcp-server/main.py") ) diff --git a/examples/python/mcp/whatapp-multi-agents-mcp.py b/examples/python/mcp/whatapp-multi-agents-mcp.py index 4acbb1279..8d4cf10da 100644 --- a/examples/python/mcp/whatapp-multi-agents-mcp.py +++ b/examples/python/mcp/whatapp-multi-agents-mcp.py @@ -2,13 +2,13 @@ from praisonaiagents import Agent, Agents, MCP airbnb_agent = Agent( instructions="""Search for Apartments in Paris for 2 nights on Airbnb. 04/28 - 04/30 for 2 adults""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) whatsapp_agent = Agent( instructions="""Send AirBnb Search Result to 'Mervin Praison'""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("python /Users/praison/whatsapp-mcp/whatsapp-mcp-server/main.py") ) diff --git a/examples/python/mcp/whatsapp-mcp-ui.py b/examples/python/mcp/whatsapp-mcp-ui.py index 21670d8be..04a4ab736 100644 --- a/examples/python/mcp/whatsapp-mcp-ui.py +++ b/examples/python/mcp/whatsapp-mcp-ui.py @@ -4,13 +4,13 @@ import gradio as gr def search_airbnb(query): airbnb_agent = Agent( instructions=query+" on Airbnb", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) whatsapp_agent = Agent( instructions="""Send AirBnb Search Result to 'Mervin Praison'. Don't include Phone Number in Response, but include the AirBnb Search Result""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("python /Users/praison/whatsapp-mcp/whatsapp-mcp-server/main.py") ) diff --git a/examples/python/memory/gemini-embedding-example.py b/examples/python/memory/gemini-embedding-example.py index edb387f9b..86f33e420 100644 --- a/examples/python/memory/gemini-embedding-example.py +++ b/examples/python/memory/gemini-embedding-example.py @@ -39,7 +39,7 @@ def main(): role="Information Researcher", goal="Research and store important information about topics", backstory="Expert at analyzing and documenting information with semantic understanding", - llm="gpt-4o-mini" # Using GPT for chat, Gemini for embeddings + llm="gpt-5-nano" # Using GPT for chat, Gemini for embeddings ) retriever = Agent( @@ -47,7 +47,7 @@ def main(): role="Information Retriever", goal="Retrieve relevant information from memory using semantic search", backstory="Specialist in finding and presenting stored information", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Task 1: Store information with semantic meaning diff --git a/examples/python/memory/gemini-embeddings.md b/examples/python/memory/gemini-embeddings.md index 483dbdb81..13f080a0c 100644 --- a/examples/python/memory/gemini-embeddings.md +++ b/examples/python/memory/gemini-embeddings.md @@ -97,7 +97,7 @@ researcher = Agent( name="Researcher", role="Information Researcher", goal="Store information with semantic understanding", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create task diff --git a/examples/python/memory/graph-knowledge-example.py b/examples/python/memory/graph-knowledge-example.py index 178b7dccd..d8feb4069 100644 --- a/examples/python/memory/graph-knowledge-example.py +++ b/examples/python/memory/graph-knowledge-example.py @@ -36,7 +36,7 @@ def main(): "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini" + "model": "gpt-5-nano" } }, "embedder": { diff --git a/examples/python/memory/graph-memory-agent.py b/examples/python/memory/graph-memory-agent.py index a2c4e266c..6e406886b 100644 --- a/examples/python/memory/graph-memory-agent.py +++ b/examples/python/memory/graph-memory-agent.py @@ -41,7 +41,7 @@ def main(): "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini" + "model": "gpt-5-nano" } } } @@ -69,7 +69,7 @@ def main(): "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini" + "model": "gpt-5-nano" } } } diff --git a/examples/python/mongodb/mongodb_comprehensive_example.py b/examples/python/mongodb/mongodb_comprehensive_example.py index 5267c0b87..2b3280e24 100644 --- a/examples/python/mongodb/mongodb_comprehensive_example.py +++ b/examples/python/mongodb/mongodb_comprehensive_example.py @@ -71,7 +71,7 @@ def main(): tools=[mongodb_tools], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # 2. Knowledge Curator Agent - manages knowledge base @@ -85,7 +85,7 @@ def main(): knowledge_config=mongodb_knowledge_config, memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # 3. Business Analyst Agent - analyzes data and provides insights @@ -99,7 +99,7 @@ def main(): tools=[mongodb_tools], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # 4. Customer Service Agent - handles customer interactions @@ -114,7 +114,7 @@ def main(): tools=[mongodb_tools], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create comprehensive business tasks diff --git a/examples/python/mongodb/mongodb_knowledge_example.py b/examples/python/mongodb/mongodb_knowledge_example.py index 7e812ca96..77d9c2e56 100644 --- a/examples/python/mongodb/mongodb_knowledge_example.py +++ b/examples/python/mongodb/mongodb_knowledge_example.py @@ -59,7 +59,7 @@ def main(): knowledge=[os.path.join(os.path.dirname(__file__), "llms.md")], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a research assistant agent @@ -73,7 +73,7 @@ def main(): and properly categorized.""", memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks for knowledge management diff --git a/examples/python/mongodb/mongodb_memory_example.py b/examples/python/mongodb/mongodb_memory_example.py index 1e00e459d..8b30e58ed 100644 --- a/examples/python/mongodb/mongodb_memory_example.py +++ b/examples/python/mongodb/mongodb_memory_example.py @@ -50,7 +50,7 @@ def main(): retrieve relevant information from your persistent memory store.""", memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create research tasks diff --git a/examples/python/mongodb/mongodb_tools_example.py b/examples/python/mongodb/mongodb_tools_example.py index f1ded6c6a..6f0e7fa27 100644 --- a/examples/python/mongodb/mongodb_tools_example.py +++ b/examples/python/mongodb/mongodb_tools_example.py @@ -38,7 +38,7 @@ def main(): for data management and retrieval.""", tools=[mongodb_tools], verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a Data Analysis Agent @@ -51,7 +51,7 @@ def main(): identify patterns and trends in the stored information.""", tools=[mongodb_tools], verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks for MongoDB operations diff --git a/examples/python/monitoring/02_multi_agent_workflow_monitoring.py b/examples/python/monitoring/02_multi_agent_workflow_monitoring.py index 6817ec7e5..cab5c3789 100644 --- a/examples/python/monitoring/02_multi_agent_workflow_monitoring.py +++ b/examples/python/monitoring/02_multi_agent_workflow_monitoring.py @@ -54,7 +54,7 @@ def create_agents(): goal="Gather comprehensive information on renewable energy", backstory="Expert researcher with deep knowledge of energy sector", instructions="You are a thorough researcher. Provide detailed, fact-based information.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) analyst = Agent( @@ -63,7 +63,7 @@ def create_agents(): goal="Analyze trends and patterns in renewable energy data", backstory="Experienced data analyst specializing in energy markets", instructions="You are an analytical thinker. Focus on trends, patterns, and insights.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) writer = Agent( @@ -72,7 +72,7 @@ def create_agents(): goal="Create clear, compelling reports", backstory="Professional technical writer with expertise in energy sector", instructions="You are a skilled writer. Create clear, well-structured reports.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) return researcher, analyst, writer diff --git a/examples/python/monitoring/03_agent_with_tools_monitoring.py b/examples/python/monitoring/03_agent_with_tools_monitoring.py index abac1a4aa..b07e2186c 100644 --- a/examples/python/monitoring/03_agent_with_tools_monitoring.py +++ b/examples/python/monitoring/03_agent_with_tools_monitoring.py @@ -48,7 +48,7 @@ def main(): instructions="""You are a research assistant that helps find information. Use the available tools to search for information and provide comprehensive answers. Be thorough in your research and cite your sources.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[duckduckgo, wikipedia] # Add search tools ) diff --git a/examples/python/monitoring/04_async_agent_monitoring.py b/examples/python/monitoring/04_async_agent_monitoring.py index 7efe0d0a1..dc8a61716 100644 --- a/examples/python/monitoring/04_async_agent_monitoring.py +++ b/examples/python/monitoring/04_async_agent_monitoring.py @@ -54,7 +54,7 @@ async def run_async_agent(query: str): # Create agent agent = Agent( instructions="You are an efficient AI assistant that processes requests quickly", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Track the agent execution diff --git a/examples/python/monitoring/05_error_handling_monitoring.py b/examples/python/monitoring/05_error_handling_monitoring.py index 8adb53409..66d807f66 100644 --- a/examples/python/monitoring/05_error_handling_monitoring.py +++ b/examples/python/monitoring/05_error_handling_monitoring.py @@ -60,7 +60,7 @@ def run_robust_agent(query: str, with_error_simulation: bool = True): instructions="""You are a resilient AI assistant. Even when facing challenges, you provide helpful responses. If you encounter errors, acknowledge them and offer alternatives.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) try: diff --git a/examples/python/monitoring/06_memory_agent_monitoring.py b/examples/python/monitoring/06_memory_agent_monitoring.py index 32542f8bd..b2c4185bd 100644 --- a/examples/python/monitoring/06_memory_agent_monitoring.py +++ b/examples/python/monitoring/06_memory_agent_monitoring.py @@ -65,7 +65,7 @@ def run_stateful_agent(query: str, session_id: str, conversation_turn: int): instructions="""You are a memory-enabled AI assistant. You can remember previous conversations and build on past interactions. Use your memory to provide personalized and contextual responses.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Pre-processing: retrieve relevant memories diff --git a/examples/python/monitoring/07_hierarchical_agents_monitoring.py b/examples/python/monitoring/07_hierarchical_agents_monitoring.py index 3431a60a6..1445d8217 100644 --- a/examples/python/monitoring/07_hierarchical_agents_monitoring.py +++ b/examples/python/monitoring/07_hierarchical_agents_monitoring.py @@ -77,7 +77,7 @@ def run_hierarchical_workflow(): backstory="Experienced project manager with expertise in team coordination", instructions="""You are a project manager. Break down complex projects into tasks, assign them to appropriate team members, and coordinate the overall effort.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create worker agents @@ -87,7 +87,7 @@ def run_hierarchical_workflow(): goal="Conduct thorough research on assigned topics", backstory="Expert researcher with deep analytical skills", instructions="You are a research specialist. Provide detailed, factual information.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) analysis_worker = Agent( @@ -96,7 +96,7 @@ def run_hierarchical_workflow(): goal="Analyze data and identify patterns and insights", backstory="Experienced data analyst with strong analytical thinking", instructions="You are a data analyst. Focus on patterns, trends, and insights.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) writing_worker = Agent( @@ -105,7 +105,7 @@ def run_hierarchical_workflow(): goal="Create clear, well-structured documentation and reports", backstory="Professional writer specializing in technical content", instructions="You are a technical writer. Create clear, comprehensive reports.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Project tasks diff --git a/examples/python/monitoring/08_custom_tools_monitoring.py b/examples/python/monitoring/08_custom_tools_monitoring.py index d48aa998a..aff2c8301 100644 --- a/examples/python/monitoring/08_custom_tools_monitoring.py +++ b/examples/python/monitoring/08_custom_tools_monitoring.py @@ -180,7 +180,7 @@ def run_agent_with_custom_tools(): instructions="""You are a technical assistant with access to various tools. Use the appropriate tools to help with data processing, API calls, database queries, and file operations. Always explain what tools you're using and why.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[process_data, call_external_api, query_database, file_operation] ) diff --git a/examples/python/monitoring/09_streaming_monitoring.py b/examples/python/monitoring/09_streaming_monitoring.py index d5209a2c7..7b021bd92 100644 --- a/examples/python/monitoring/09_streaming_monitoring.py +++ b/examples/python/monitoring/09_streaming_monitoring.py @@ -60,7 +60,7 @@ def get_real_time_agent_response(query: str, response_id: int): # Create a lightweight agent for streaming agent = Agent( instructions="You are a real-time assistant. Provide quick, helpful responses.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) with track_api_call(f"streaming_response_{response_id}"): diff --git a/examples/python/monitoring/10_comprehensive_dashboard.py b/examples/python/monitoring/10_comprehensive_dashboard.py index 7b08f3ec6..d8e6924a7 100644 --- a/examples/python/monitoring/10_comprehensive_dashboard.py +++ b/examples/python/monitoring/10_comprehensive_dashboard.py @@ -42,19 +42,19 @@ def collect_comprehensive_data(): agents = { 'quick_agent': Agent( instructions="You are a quick-response agent. Provide concise answers.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ), 'analytical_agent': Agent( instructions="You are an analytical agent. Provide detailed analysis.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ), 'research_agent': Agent( instructions="You are a research agent. Provide comprehensive information.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ), 'creative_agent': Agent( instructions="You are a creative agent. Provide imaginative responses.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) } @@ -98,19 +98,19 @@ def simulate_complex_workflow(): planner = Agent( name="planner", instructions="You are a project planner. Break down tasks and plan execution.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) executor = Agent( name="executor", instructions="You are a task executor. Complete assigned tasks efficiently.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) reviewer = Agent( name="reviewer", instructions="You are a quality reviewer. Review and improve work.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create workflow tasks diff --git a/examples/python/monitoring/README.md b/examples/python/monitoring/README.md index ef47013e3..54ac6719c 100644 --- a/examples/python/monitoring/README.md +++ b/examples/python/monitoring/README.md @@ -17,7 +17,7 @@ def my_function(): agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) with track_api_call("agent_request"): diff --git a/examples/python/remote/remote_agent_server.py b/examples/python/remote/remote_agent_server.py index 5917670ef..0009ece5d 100644 --- a/examples/python/remote/remote_agent_server.py +++ b/examples/python/remote/remote_agent_server.py @@ -28,7 +28,7 @@ def setup_remote_agent_server(): role="Helpful Remote AI Assistant", goal="Assist users with their queries via remote connections", backstory="I am an AI assistant running on a remote server, ready to help clients connect and interact with me.", - llm="gpt-4o-mini", # or any other supported model + llm="gpt-5-nano", # or any other supported model verbose=True ) diff --git a/examples/python/stateful/01_basic_state_management.py b/examples/python/stateful/01_basic_state_management.py index 0f5ed3812..ef897e93c 100644 --- a/examples/python/stateful/01_basic_state_management.py +++ b/examples/python/stateful/01_basic_state_management.py @@ -92,7 +92,7 @@ project_manager = Agent( goal="Track and report project progress", backstory="An experienced project manager who keeps track of all project details", tools=[display_project_status, update_project_stage], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -102,7 +102,7 @@ developer = Agent( goal="Implement new features and track them in state", backstory="A skilled developer who implements features", tools=[add_feature, display_project_status], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -112,7 +112,7 @@ finance_manager = Agent( goal="Ensure project stays within budget", backstory="A careful finance manager who tracks spending", tools=[check_budget_health], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) diff --git a/examples/python/stateful/02_state_in_tool_functions.py b/examples/python/stateful/02_state_in_tool_functions.py index dc6bccb5d..ab018f456 100644 --- a/examples/python/stateful/02_state_in_tool_functions.py +++ b/examples/python/stateful/02_state_in_tool_functions.py @@ -189,7 +189,7 @@ progress_tracker = Agent( goal="Monitor workflow progress using state", backstory="A meticulous tracker who monitors every task", tools=[track_progress, generate_report], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -199,7 +199,7 @@ data_processor = Agent( goal="Efficiently process all data batches", backstory="A data processing specialist", tools=[process_data_batch], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -209,7 +209,7 @@ error_handler = Agent( goal="Track all errors and maintain error logs", backstory="An error handling expert", tools=[log_error], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -219,7 +219,7 @@ config_manager = Agent( goal="Update and track configuration changes", backstory="A configuration management specialist", tools=[update_configuration], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) diff --git a/examples/python/stateful/03_conditional_task_execution.py b/examples/python/stateful/03_conditional_task_execution.py index 576f546ea..8b97901f5 100644 --- a/examples/python/stateful/03_conditional_task_execution.py +++ b/examples/python/stateful/03_conditional_task_execution.py @@ -239,7 +239,7 @@ finance_agent = Agent( goal="Ensure project stays within budget constraints", backstory="A financial expert who makes budget decisions", tools=[check_budget_status], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -249,7 +249,7 @@ cost_manager = Agent( goal="Reduce costs when budget is tight", backstory="A cost optimization specialist", tools=[reduce_costs], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -259,7 +259,7 @@ development_agent = Agent( goal="Develop features based on budget availability", backstory="A development manager who adapts to budget constraints", tools=[continue_development, expand_features], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -269,7 +269,7 @@ performance_agent = Agent( goal="Ensure optimal system performance", backstory="A performance engineer", tools=[check_performance, optimize_performance, scale_infrastructure, maintain_current_setup], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -279,7 +279,7 @@ report_agent = Agent( goal="Document all decisions and actions taken", backstory="A reporting specialist", tools=[generate_decision_report], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) diff --git a/examples/python/stateful/04_session_state_persistence.py b/examples/python/stateful/04_session_state_persistence.py index 3bbd09d2d..c0d7c7020 100644 --- a/examples/python/stateful/04_session_state_persistence.py +++ b/examples/python/stateful/04_session_state_persistence.py @@ -155,7 +155,7 @@ data_processor = Agent( goal="Process all customer data efficiently", backstory="A data processing specialist", tools=[process_customer_data], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -165,7 +165,7 @@ status_monitor = Agent( goal="Track and report processing progress", backstory="A monitoring specialist", tools=[check_processing_status, save_checkpoint], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -175,7 +175,7 @@ task_runner = Agent( goal="Execute tasks that may span multiple sessions", backstory="A task execution specialist", tools=[simulate_long_task], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -185,7 +185,7 @@ report_generator = Agent( goal="Create comprehensive session reports", backstory="A reporting specialist", tools=[generate_session_report], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) diff --git a/examples/python/stateful/05_loop_control_with_state.py b/examples/python/stateful/05_loop_control_with_state.py index ee70da048..481704e31 100644 --- a/examples/python/stateful/05_loop_control_with_state.py +++ b/examples/python/stateful/05_loop_control_with_state.py @@ -265,7 +265,7 @@ batch_processor = Agent( goal="Process all batches successfully with retry logic", backstory="A batch processing expert", tools=[process_batch, process_retry_batch], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -275,7 +275,7 @@ data_collector = Agent( goal="Collect all data from paginated source", backstory="A data collection specialist", tools=[collect_paginated_data], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -285,7 +285,7 @@ validator = Agent( goal="Validate all collected items in batches", backstory="A data validation expert", tools=[validate_collected_items], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -295,7 +295,7 @@ reporter = Agent( goal="Create comprehensive reports on loop operations", backstory="A reporting specialist", tools=[generate_loop_report], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) diff --git a/examples/python/stateful/06_advanced_state_operations.py b/examples/python/stateful/06_advanced_state_operations.py index 083601e29..1ff592908 100644 --- a/examples/python/stateful/06_advanced_state_operations.py +++ b/examples/python/stateful/06_advanced_state_operations.py @@ -460,7 +460,7 @@ state_manager = Agent( goal="Demonstrate advanced state management techniques", backstory="An expert in state management", tools=[manage_nested_state, handle_state_transactions, manage_state_versioning], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -470,7 +470,7 @@ cache_manager = Agent( goal="Optimize performance with intelligent caching", backstory="A caching specialist", tools=[implement_state_cache], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -480,7 +480,7 @@ metrics_calculator = Agent( goal="Provide insights through metric calculations", backstory="A data analytics expert", tools=[calculate_derived_metrics, aggregate_distributed_state], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) @@ -490,7 +490,7 @@ report_generator = Agent( goal="Document all advanced state operations", backstory="A reporting specialist", tools=[generate_advanced_report], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True ) diff --git a/examples/python/token-metrics/01_basic_token_tracking.py b/examples/python/token-metrics/01_basic_token_tracking.py index fa5a7b5a2..af356b3af 100644 --- a/examples/python/token-metrics/01_basic_token_tracking.py +++ b/examples/python/token-metrics/01_basic_token_tracking.py @@ -14,7 +14,7 @@ def main(): goal="Find information about a topic", backstory="You are an expert researcher who finds comprehensive information.", verbose=True, - llm="gpt-4o-mini", # Use a cost-effective model for examples + llm="gpt-5-nano", # Use a cost-effective model for examples metrics=True # ๐ŸŽฏ SIMPLIFIED: Just add this parameter! ) diff --git a/examples/python/token-metrics/02_session_metrics.py b/examples/python/token-metrics/02_session_metrics.py index 70568c0f6..8f6098a8c 100644 --- a/examples/python/token-metrics/02_session_metrics.py +++ b/examples/python/token-metrics/02_session_metrics.py @@ -14,7 +14,7 @@ def main(): goal="Analyze data and provide insights", backstory="You are an experienced data analyst with expertise in market research.", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", metrics=True # ๐ŸŽฏ Enable metrics tracking ) @@ -24,7 +24,7 @@ def main(): goal="Create well-structured content", backstory="You are a skilled technical writer who creates clear, engaging content.", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", metrics=True # ๐ŸŽฏ Enable metrics tracking ) diff --git a/examples/python/token-metrics/03_cost_estimation.py b/examples/python/token-metrics/03_cost_estimation.py index a0bc5a643..d75453a61 100644 --- a/examples/python/token-metrics/03_cost_estimation.py +++ b/examples/python/token-metrics/03_cost_estimation.py @@ -14,7 +14,7 @@ def main(): goal="Conduct comprehensive market research", backstory="You are a seasoned market researcher with 10+ years of experience.", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", metrics=True # ๐ŸŽฏ Enable automatic metrics tracking ) @@ -24,7 +24,7 @@ def main(): goal="Develop actionable business strategies", backstory="You are a strategic consultant who translates research into business plans.", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", metrics=True # ๐ŸŽฏ Enable automatic metrics tracking ) diff --git a/examples/python/token-metrics/04_telemetry_integration.py b/examples/python/token-metrics/04_telemetry_integration.py index 2a67de3a4..e598370ac 100644 --- a/examples/python/token-metrics/04_telemetry_integration.py +++ b/examples/python/token-metrics/04_telemetry_integration.py @@ -101,7 +101,7 @@ def main(): goal="Process and analyze data efficiently", backstory="You specialize in data processing with focus on accuracy and efficiency.", verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) monitor_agent = Agent( @@ -110,7 +110,7 @@ def main(): goal="Monitor and optimize system performance", backstory="You analyze system metrics and provide optimization recommendations.", verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks that generate trackable metrics diff --git a/examples/python/token-metrics/05_advanced_agent_integration.py b/examples/python/token-metrics/05_advanced_agent_integration.py index 07b3a1a89..f41e59845 100644 --- a/examples/python/token-metrics/05_advanced_agent_integration.py +++ b/examples/python/token-metrics/05_advanced_agent_integration.py @@ -150,7 +150,7 @@ def main(): goal="Conduct thorough research and analysis", backstory="You are a meticulous researcher who produces comprehensive reports.", verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) summarizer_agent = Agent( @@ -159,7 +159,7 @@ def main(): goal="Create concise, accurate summaries", backstory="You excel at distilling complex information into clear, actionable insights.", verbose=True, - llm="gpt-4o-mini" # Same model for fair comparison + llm="gpt-5-nano" # Same model for fair comparison ) optimizer_agent = Agent( @@ -168,7 +168,7 @@ def main(): goal="Optimize workflows and processes", backstory="You identify inefficiencies and recommend improvements.", verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks with varying complexity diff --git a/examples/python/token-metrics/README.md b/examples/python/token-metrics/README.md index 63c76b6dd..e0551addb 100644 --- a/examples/python/token-metrics/README.md +++ b/examples/python/token-metrics/README.md @@ -13,7 +13,7 @@ agent = Agent( role="Assistant", goal="Help users", backstory="You are helpful.", - llm="gpt-4o-mini", + llm="gpt-5-nano", metrics=True # ๐ŸŽฏ That's it! ) diff --git a/examples/python/tools/cli/app.py b/examples/python/tools/cli/app.py index f99d739ab..cb4c2131d 100644 --- a/examples/python/tools/cli/app.py +++ b/examples/python/tools/cli/app.py @@ -37,7 +37,7 @@ system_ops_agent = Agent( min_reflect=6, max_reflect=10, tools=[run_terminal_command, save_to_file], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a complex task that tests various system operations diff --git a/examples/python/tools/trafilatura/trafilatura_example.py b/examples/python/tools/trafilatura/trafilatura_example.py index 500ecc3da..5165f42c9 100644 --- a/examples/python/tools/trafilatura/trafilatura_example.py +++ b/examples/python/tools/trafilatura/trafilatura_example.py @@ -113,7 +113,7 @@ async def agent_example(): goal="Extract and analyze content from web pages using custom tools", backstory="You are an expert at extracting and analyzing web content using custom Trafilatura tools", tools=[extract_content_tool, extract_metadata_tool], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a task for content analysis diff --git a/examples/python/ui/mcp-streamlit-airbnb.py b/examples/python/ui/mcp-streamlit-airbnb.py index fba01f033..164e1b9f2 100644 --- a/examples/python/ui/mcp-streamlit-airbnb.py +++ b/examples/python/ui/mcp-streamlit-airbnb.py @@ -22,7 +22,7 @@ with st.sidebar: llm_model = st.selectbox( "Choose LLM Model", options=[ - "gpt-4o-mini", + "gpt-5-nano", "gpt-4o", "gpt-3.5-turbo", "claude-3-5-sonnet-20241022", @@ -116,7 +116,7 @@ if st.session_state.init_error: 2. **LLM Model Issues:** - Make sure you have API keys set as environment variables - Avoid provider/model formats (e.g., "ollama/llama3.2") in Streamlit - - Use standard model names (e.g., "gpt-4o-mini") + - Use standard model names (e.g., "gpt-5-nano") 3. **Network/Timeout Issues:** - Check your internet connection diff --git a/examples/python/ui/mcp-streamlit-simple.py b/examples/python/ui/mcp-streamlit-simple.py index a2d2eb575..ec6d193a0 100644 --- a/examples/python/ui/mcp-streamlit-simple.py +++ b/examples/python/ui/mcp-streamlit-simple.py @@ -12,7 +12,7 @@ if "agent" not in st.session_state: # Initialize agent only once and store in session state st.session_state.agent = Agent( instructions="You help book apartments on Airbnb.", - llm="gpt-4o-mini", # โœ… Use standard format instead of "ollama/llama3.2" + llm="gpt-5-nano", # โœ… Use standard format instead of "ollama/llama3.2" tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt"), verbose=True # Enable debugging ) @@ -43,7 +43,7 @@ with st.expander("๐Ÿ”ง Troubleshooting"): **Key differences from problematic code:** 1. **Session State**: Agent is initialized once in `st.session_state.agent` - 2. **LLM Format**: Using `"gpt-4o-mini"` instead of `"ollama/llama3.2"` + 2. **LLM Format**: Using `"gpt-5-nano"` instead of `"ollama/llama3.2"` 3. **Error Handling**: Proper try-catch blocks with user feedback 4. **Initialization Check**: Agent only created once, not on every interaction diff --git a/examples/python/usecases/README-secondary-market-research.md b/examples/python/usecases/README-secondary-market-research.md index fc399f747..16101d8c0 100644 --- a/examples/python/usecases/README-secondary-market-research.md +++ b/examples/python/usecases/README-secondary-market-research.md @@ -177,7 +177,7 @@ Set your API keys: ```bash export OPENAI_API_KEY="your-api-key" -export OPENAI_MODEL_NAME="gpt-4o-mini" +export OPENAI_MODEL_NAME="gpt-5-nano" ``` ## ๐Ÿ“ Customization diff --git a/examples/python/usecases/analysis/hackathon-judge-agent.py b/examples/python/usecases/analysis/hackathon-judge-agent.py index 92af5d8df..d6055c000 100644 --- a/examples/python/usecases/analysis/hackathon-judge-agent.py +++ b/examples/python/usecases/analysis/hackathon-judge-agent.py @@ -27,7 +27,7 @@ hackathon_judge = Agent( backstory="""You are an experienced hackathon judge and technical expert. You excel at evaluating innovation, technical implementation, and presentation quality. You provide constructive feedback and identify both strengths and areas for improvement.""", - llm="gpt-4o-mini", # Using vision-capable model + llm="gpt-5-nano", # Using vision-capable model self_reflect=False, knowledge="" ) diff --git a/examples/python/usecases/analysis/hackathon-judge-streamlit.py b/examples/python/usecases/analysis/hackathon-judge-streamlit.py index bead156b7..4e694f8c3 100644 --- a/examples/python/usecases/analysis/hackathon-judge-streamlit.py +++ b/examples/python/usecases/analysis/hackathon-judge-streamlit.py @@ -38,7 +38,7 @@ def get_hackathon_judge(): backstory="""You are an experienced hackathon judge and technical expert. You excel at evaluating innovation, technical implementation, and presentation quality. You provide constructive feedback and identify both strengths and areas for improvement.""", - llm="gpt-4o-mini", # Using vision-capable model + llm="gpt-5-nano", # Using vision-capable model self_reflect=False, knowledge="" ) diff --git a/src/praisonai-agents/01_basic_agent_with_monitoring.py b/src/praisonai-agents/01_basic_agent_with_monitoring.py index 92f960a3c..753e36c8a 100644 --- a/src/praisonai-agents/01_basic_agent_with_monitoring.py +++ b/src/praisonai-agents/01_basic_agent_with_monitoring.py @@ -38,7 +38,7 @@ def main(): # Create agent agent = Agent( instructions="You are a helpful assistant that explains scientific concepts simply", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Track the API call performance diff --git a/src/praisonai-agents/01_basic_token_tracking.py b/src/praisonai-agents/01_basic_token_tracking.py index fa5a7b5a2..af356b3af 100644 --- a/src/praisonai-agents/01_basic_token_tracking.py +++ b/src/praisonai-agents/01_basic_token_tracking.py @@ -14,7 +14,7 @@ def main(): goal="Find information about a topic", backstory="You are an expert researcher who finds comprehensive information.", verbose=True, - llm="gpt-4o-mini", # Use a cost-effective model for examples + llm="gpt-5-nano", # Use a cost-effective model for examples metrics=True # ๐ŸŽฏ SIMPLIFIED: Just add this parameter! ) diff --git a/src/praisonai-agents/02_multi_agent_workflow_monitoring.py b/src/praisonai-agents/02_multi_agent_workflow_monitoring.py index 6817ec7e5..cab5c3789 100644 --- a/src/praisonai-agents/02_multi_agent_workflow_monitoring.py +++ b/src/praisonai-agents/02_multi_agent_workflow_monitoring.py @@ -54,7 +54,7 @@ def create_agents(): goal="Gather comprehensive information on renewable energy", backstory="Expert researcher with deep knowledge of energy sector", instructions="You are a thorough researcher. Provide detailed, fact-based information.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) analyst = Agent( @@ -63,7 +63,7 @@ def create_agents(): goal="Analyze trends and patterns in renewable energy data", backstory="Experienced data analyst specializing in energy markets", instructions="You are an analytical thinker. Focus on trends, patterns, and insights.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) writer = Agent( @@ -72,7 +72,7 @@ def create_agents(): goal="Create clear, compelling reports", backstory="Professional technical writer with expertise in energy sector", instructions="You are a skilled writer. Create clear, well-structured reports.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) return researcher, analyst, writer diff --git a/src/praisonai-agents/03_agent_with_tools_monitoring.py b/src/praisonai-agents/03_agent_with_tools_monitoring.py index abac1a4aa..b07e2186c 100644 --- a/src/praisonai-agents/03_agent_with_tools_monitoring.py +++ b/src/praisonai-agents/03_agent_with_tools_monitoring.py @@ -48,7 +48,7 @@ def main(): instructions="""You are a research assistant that helps find information. Use the available tools to search for information and provide comprehensive answers. Be thorough in your research and cite your sources.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[duckduckgo, wikipedia] # Add search tools ) diff --git a/src/praisonai-agents/04_async_agent_monitoring.py b/src/praisonai-agents/04_async_agent_monitoring.py index 7efe0d0a1..dc8a61716 100644 --- a/src/praisonai-agents/04_async_agent_monitoring.py +++ b/src/praisonai-agents/04_async_agent_monitoring.py @@ -54,7 +54,7 @@ async def run_async_agent(query: str): # Create agent agent = Agent( instructions="You are an efficient AI assistant that processes requests quickly", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Track the agent execution diff --git a/src/praisonai-agents/05_error_handling_monitoring.py b/src/praisonai-agents/05_error_handling_monitoring.py index 8adb53409..66d807f66 100644 --- a/src/praisonai-agents/05_error_handling_monitoring.py +++ b/src/praisonai-agents/05_error_handling_monitoring.py @@ -60,7 +60,7 @@ def run_robust_agent(query: str, with_error_simulation: bool = True): instructions="""You are a resilient AI assistant. Even when facing challenges, you provide helpful responses. If you encounter errors, acknowledge them and offer alternatives.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) try: diff --git a/src/praisonai-agents/06_memory_agent_monitoring.py b/src/praisonai-agents/06_memory_agent_monitoring.py index 32542f8bd..b2c4185bd 100644 --- a/src/praisonai-agents/06_memory_agent_monitoring.py +++ b/src/praisonai-agents/06_memory_agent_monitoring.py @@ -65,7 +65,7 @@ def run_stateful_agent(query: str, session_id: str, conversation_turn: int): instructions="""You are a memory-enabled AI assistant. You can remember previous conversations and build on past interactions. Use your memory to provide personalized and contextual responses.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Pre-processing: retrieve relevant memories diff --git a/src/praisonai-agents/07_hierarchical_agents_monitoring.py b/src/praisonai-agents/07_hierarchical_agents_monitoring.py index 3431a60a6..1445d8217 100644 --- a/src/praisonai-agents/07_hierarchical_agents_monitoring.py +++ b/src/praisonai-agents/07_hierarchical_agents_monitoring.py @@ -77,7 +77,7 @@ def run_hierarchical_workflow(): backstory="Experienced project manager with expertise in team coordination", instructions="""You are a project manager. Break down complex projects into tasks, assign them to appropriate team members, and coordinate the overall effort.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create worker agents @@ -87,7 +87,7 @@ def run_hierarchical_workflow(): goal="Conduct thorough research on assigned topics", backstory="Expert researcher with deep analytical skills", instructions="You are a research specialist. Provide detailed, factual information.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) analysis_worker = Agent( @@ -96,7 +96,7 @@ def run_hierarchical_workflow(): goal="Analyze data and identify patterns and insights", backstory="Experienced data analyst with strong analytical thinking", instructions="You are a data analyst. Focus on patterns, trends, and insights.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) writing_worker = Agent( @@ -105,7 +105,7 @@ def run_hierarchical_workflow(): goal="Create clear, well-structured documentation and reports", backstory="Professional writer specializing in technical content", instructions="You are a technical writer. Create clear, comprehensive reports.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Project tasks diff --git a/src/praisonai-agents/08_custom_tools_monitoring.py b/src/praisonai-agents/08_custom_tools_monitoring.py index d48aa998a..aff2c8301 100644 --- a/src/praisonai-agents/08_custom_tools_monitoring.py +++ b/src/praisonai-agents/08_custom_tools_monitoring.py @@ -180,7 +180,7 @@ def run_agent_with_custom_tools(): instructions="""You are a technical assistant with access to various tools. Use the appropriate tools to help with data processing, API calls, database queries, and file operations. Always explain what tools you're using and why.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[process_data, call_external_api, query_database, file_operation] ) diff --git a/src/praisonai-agents/09_streaming_monitoring.py b/src/praisonai-agents/09_streaming_monitoring.py index d5209a2c7..7b021bd92 100644 --- a/src/praisonai-agents/09_streaming_monitoring.py +++ b/src/praisonai-agents/09_streaming_monitoring.py @@ -60,7 +60,7 @@ def get_real_time_agent_response(query: str, response_id: int): # Create a lightweight agent for streaming agent = Agent( instructions="You are a real-time assistant. Provide quick, helpful responses.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) with track_api_call(f"streaming_response_{response_id}"): diff --git a/src/praisonai-agents/10_comprehensive_dashboard.py b/src/praisonai-agents/10_comprehensive_dashboard.py index 7b08f3ec6..d8e6924a7 100644 --- a/src/praisonai-agents/10_comprehensive_dashboard.py +++ b/src/praisonai-agents/10_comprehensive_dashboard.py @@ -42,19 +42,19 @@ def collect_comprehensive_data(): agents = { 'quick_agent': Agent( instructions="You are a quick-response agent. Provide concise answers.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ), 'analytical_agent': Agent( instructions="You are an analytical agent. Provide detailed analysis.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ), 'research_agent': Agent( instructions="You are a research agent. Provide comprehensive information.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ), 'creative_agent': Agent( instructions="You are a creative agent. Provide imaginative responses.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) } @@ -98,19 +98,19 @@ def simulate_complex_workflow(): planner = Agent( name="planner", instructions="You are a project planner. Break down tasks and plan execution.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) executor = Agent( name="executor", instructions="You are a task executor. Complete assigned tasks efficiently.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) reviewer = Agent( name="reviewer", instructions="You are a quality reviewer. Review and improve work.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create workflow tasks diff --git a/src/praisonai-agents/CLAUDE.md b/src/praisonai-agents/CLAUDE.md index 8ce9c4a70..eb00badd9 100644 --- a/src/praisonai-agents/CLAUDE.md +++ b/src/praisonai-agents/CLAUDE.md @@ -111,7 +111,7 @@ agent = Agent( role="Agent Role", goal="Agent Goal", backstory="Agent Background", - llm="gpt-4o-mini", # or other LLM + llm="gpt-5-nano", # or other LLM self_reflect=True, # Enable self-reflection min_reflect=1, # Minimum reflection iterations max_reflect=3, # Maximum reflection iterations diff --git a/src/praisonai-agents/async-tavily-agents-gemini.py b/src/praisonai-agents/async-tavily-agents-gemini.py index f73a12ce2..f8618422c 100644 --- a/src/praisonai-agents/async-tavily-agents-gemini.py +++ b/src/praisonai-agents/async-tavily-agents-gemini.py @@ -10,7 +10,7 @@ import os logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') llm_config = { - "model": "gpt-4o-mini", # Changed from Gemini to GPT-4o-mini for better tool support + "model": "gpt-5-nano", # Changed from Gemini to gpt-5-nano for better tool support "temperature": 0.7, "response_format": { "type": "text" diff --git a/src/praisonai-agents/basic-agents-fixed.py b/src/praisonai-agents/basic-agents-fixed.py index efa1416d1..a5f6d8829 100644 --- a/src/praisonai-agents/basic-agents-fixed.py +++ b/src/praisonai-agents/basic-agents-fixed.py @@ -5,7 +5,7 @@ from praisonaiagents import Agent, force_shutdown_telemetry print("Creating agent...") agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print("Starting agent...") diff --git a/src/praisonai-agents/basic-agents-tools.py b/src/praisonai-agents/basic-agents-tools.py index 595110dd9..44f92bb48 100644 --- a/src/praisonai-agents/basic-agents-tools.py +++ b/src/praisonai-agents/basic-agents-tools.py @@ -5,7 +5,7 @@ def get_weather(city: str) -> str: agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[get_weather] ) diff --git a/src/praisonai-agents/context_basic.py b/src/praisonai-agents/context_basic.py index 0ded8f889..007478f95 100644 --- a/src/praisonai-agents/context_basic.py +++ b/src/praisonai-agents/context_basic.py @@ -1,5 +1,5 @@ from praisonaiagents import ContextAgent -agent = ContextAgent(llm="gpt-4o-mini", auto_analyze=False) +agent = ContextAgent(llm="gpt-5-nano", auto_analyze=False) agent.start("https://github.com/MervinPraison/PraisonAI/ Need to add Authentication") \ No newline at end of file diff --git a/src/praisonai-agents/debug_comparison.py b/src/praisonai-agents/debug_comparison.py index 7799e3a08..7e355f270 100644 --- a/src/praisonai-agents/debug_comparison.py +++ b/src/praisonai-agents/debug_comparison.py @@ -5,16 +5,16 @@ import traceback from praisonaiagents import Agent, MCP def test_agent_direct(): - """Test gpt-4o-mini (agent.py path)""" + """Test gpt-5-nano (agent.py path)""" print("=" * 50) - print("TESTING: gpt-4o-mini (agent.py direct calls)") + print("TESTING: gpt-5-nano (agent.py direct calls)") print("=" * 50) try: agent = Agent( instructions="""You are a helpful assistant that can break down complex problems. Use the available tools when relevant to perform step-by-step analysis.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) @@ -32,16 +32,16 @@ def test_agent_direct(): return False, str(e) def test_llm_class(): - """Test openai/gpt-4o-mini (llm.py path)""" + """Test openai/gpt-5-nano (llm.py path)""" print("\n" + "=" * 50) - print("TESTING: openai/gpt-4o-mini (llm.py LiteLLM)") + print("TESTING: openai/gpt-5-nano (llm.py LiteLLM)") print("=" * 50) try: agent = Agent( instructions="""You are a helpful assistant that can break down complex problems. Use the available tools when relevant to perform step-by-step analysis.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) @@ -72,15 +72,15 @@ if __name__ == "__main__": print("=" * 50) if success1: - print("โœ… gpt-4o-mini (agent.py) - SUCCESS") + print("โœ… gpt-5-nano (agent.py) - SUCCESS") else: - print("โŒ gpt-4o-mini (agent.py) - FAILED") + print("โŒ gpt-5-nano (agent.py) - FAILED") print(f" Error: {result1}") if success2: - print("โœ… openai/gpt-4o-mini (llm.py) - SUCCESS") + print("โœ… openai/gpt-5-nano (llm.py) - SUCCESS") else: - print("โŒ openai/gpt-4o-mini (llm.py) - FAILED") + print("โŒ openai/gpt-5-nano (llm.py) - FAILED") print(f" Error: {result2}") if success1 and success2: diff --git a/src/praisonai-agents/mcp-agents.py b/src/praisonai-agents/mcp-agents.py index b3f389a74..8f38ef4cf 100644 --- a/src/praisonai-agents/mcp-agents.py +++ b/src/praisonai-agents/mcp-agents.py @@ -3,7 +3,7 @@ from praisonaiagents import Agent, MCP agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py") ) diff --git a/src/praisonai-agents/mongodb_comprehensive_example.py b/src/praisonai-agents/mongodb_comprehensive_example.py index 5267c0b87..2b3280e24 100644 --- a/src/praisonai-agents/mongodb_comprehensive_example.py +++ b/src/praisonai-agents/mongodb_comprehensive_example.py @@ -71,7 +71,7 @@ def main(): tools=[mongodb_tools], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # 2. Knowledge Curator Agent - manages knowledge base @@ -85,7 +85,7 @@ def main(): knowledge_config=mongodb_knowledge_config, memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # 3. Business Analyst Agent - analyzes data and provides insights @@ -99,7 +99,7 @@ def main(): tools=[mongodb_tools], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # 4. Customer Service Agent - handles customer interactions @@ -114,7 +114,7 @@ def main(): tools=[mongodb_tools], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create comprehensive business tasks diff --git a/src/praisonai-agents/mongodb_knowledge_basic.py b/src/praisonai-agents/mongodb_knowledge_basic.py index 354b31eaf..94caee6f0 100644 --- a/src/praisonai-agents/mongodb_knowledge_basic.py +++ b/src/praisonai-agents/mongodb_knowledge_basic.py @@ -59,7 +59,7 @@ def main(): knowledge=[os.path.join(os.path.dirname(__file__), "llms.md")], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a research assistant agent @@ -73,7 +73,7 @@ def main(): and properly categorized.""", memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks for knowledge management diff --git a/src/praisonai-agents/mongodb_knowledge_example.py b/src/praisonai-agents/mongodb_knowledge_example.py index 7e812ca96..77d9c2e56 100644 --- a/src/praisonai-agents/mongodb_knowledge_example.py +++ b/src/praisonai-agents/mongodb_knowledge_example.py @@ -59,7 +59,7 @@ def main(): knowledge=[os.path.join(os.path.dirname(__file__), "llms.md")], memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a research assistant agent @@ -73,7 +73,7 @@ def main(): and properly categorized.""", memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks for knowledge management diff --git a/src/praisonai-agents/mongodb_memory_basic.py b/src/praisonai-agents/mongodb_memory_basic.py index f8063dfb5..3bffda0ba 100644 --- a/src/praisonai-agents/mongodb_memory_basic.py +++ b/src/praisonai-agents/mongodb_memory_basic.py @@ -3,7 +3,7 @@ from praisonaiagents.memory import Memory from praisonaiagents.agent import ContextAgent import pymongo -context_agent = ContextAgent(llm="gpt-4o-mini", auto_analyze=False) +context_agent = ContextAgent(llm="gpt-5-nano", auto_analyze=False) context_output = context_agent.start("https://github.com/MervinPraison/PraisonAI/ Need to add Authentication") @@ -25,7 +25,7 @@ implementation_agent = Agent( goal="Implement authentication features based on project requirements", backstory="Expert software implementer specializing in authentication systems, security features, and seamless integration with existing codebases", memory=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", ) implementation_task = Task( diff --git a/src/praisonai-agents/mongodb_memory_example.py b/src/praisonai-agents/mongodb_memory_example.py index 1e00e459d..8b30e58ed 100644 --- a/src/praisonai-agents/mongodb_memory_example.py +++ b/src/praisonai-agents/mongodb_memory_example.py @@ -50,7 +50,7 @@ def main(): retrieve relevant information from your persistent memory store.""", memory=True, verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create research tasks diff --git a/src/praisonai-agents/mongodb_tools_example.py b/src/praisonai-agents/mongodb_tools_example.py index f1ded6c6a..6f0e7fa27 100644 --- a/src/praisonai-agents/mongodb_tools_example.py +++ b/src/praisonai-agents/mongodb_tools_example.py @@ -38,7 +38,7 @@ def main(): for data management and retrieval.""", tools=[mongodb_tools], verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a Data Analysis Agent @@ -51,7 +51,7 @@ def main(): identify patterns and trends in the stored information.""", tools=[mongodb_tools], verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks for MongoDB operations diff --git a/src/praisonai-agents/openai-basic.py b/src/praisonai-agents/openai-basic.py index 146beb27f..4988f45ae 100644 --- a/src/praisonai-agents/openai-basic.py +++ b/src/praisonai-agents/openai-basic.py @@ -2,6 +2,6 @@ from praisonaiagents import Agent agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) agent.start("Why sky is Blue?") \ No newline at end of file diff --git a/src/praisonai-agents/praisonaiagents/agent/agent.py b/src/praisonai-agents/praisonaiagents/agent/agent.py index 9aa225629..b1f58a165 100644 --- a/src/praisonai-agents/praisonaiagents/agent/agent.py +++ b/src/praisonai-agents/praisonaiagents/agent/agent.py @@ -716,7 +716,7 @@ Your Goal: {self.goal} error=f"Agent guardrail validation error: {str(e)}" ) - def _apply_guardrail_with_retry(self, response_text, prompt, temperature=0.2, tools=None, task_name=None, task_description=None, task_id=None): + def _apply_guardrail_with_retry(self, response_text, prompt, temperature=1.0, tools=None, task_name=None, task_description=None, task_id=None): """Apply guardrail validation with retry logic. Args: @@ -859,7 +859,7 @@ Your Goal: {self.goal}""" self._system_prompt_cache[cache_key] = system_prompt return system_prompt - def _build_messages(self, prompt, temperature=0.2, output_json=None, output_pydantic=None, tools=None): + def _build_messages(self, prompt, temperature=1.0, output_json=None, output_pydantic=None, tools=None): """Build messages list for chat completion. Args: @@ -1172,7 +1172,7 @@ Your Goal: {self.goal}""" reasoning_steps=reasoning_steps ) - def _chat_completion(self, messages, temperature=0.2, tools=None, stream=True, reasoning_steps=False, task_name=None, task_description=None, task_id=None): + def _chat_completion(self, messages, temperature=1.0, tools=None, stream=True, reasoning_steps=False, task_name=None, task_description=None, task_id=None): start_time = time.time() logging.debug(f"{self.name} sending messages to LLM: {messages}") @@ -1336,7 +1336,7 @@ Your Goal: {self.goal}""" # expand=False # ) - def chat(self, prompt, temperature=0.2, tools=None, output_json=None, output_pydantic=None, reasoning_steps=False, stream=None, task_name=None, task_description=None, task_id=None): + def chat(self, prompt, temperature=1.0, tools=None, output_json=None, output_pydantic=None, reasoning_steps=False, stream=None, task_name=None, task_description=None, task_id=None): # Reset the final display flag for each new conversation self._final_display_shown = False @@ -1694,7 +1694,7 @@ Output MUST be JSON with 'reflection' and 'satisfactory'. cleaned = cleaned[:-3].strip() return cleaned - async def achat(self, prompt: str, temperature=0.2, tools=None, output_json=None, output_pydantic=None, reasoning_steps=False, task_name=None, task_description=None, task_id=None): + async def achat(self, prompt: str, temperature=1.0, tools=None, output_json=None, output_pydantic=None, reasoning_steps=False, task_name=None, task_description=None, task_id=None): """Async version of chat method with self-reflection support.""" # Reset the final display flag for each new conversation self._final_display_shown = False @@ -2046,7 +2046,7 @@ Output MUST be JSON with 'reflection' and 'satisfactory'. final_response = await self._openai_client.async_client.chat.completions.create( model=self.llm, messages=messages, - temperature=0.2, + temperature=1.0, stream=True ) full_response_text = "" @@ -2169,7 +2169,7 @@ Output MUST be JSON with 'reflection' and 'satisfactory'. prompt=actual_prompt, system_prompt=self._build_system_prompt(tool_param), chat_history=self.chat_history, - temperature=kwargs.get('temperature', 0.2), + temperature=kwargs.get('temperature', 1.0), tools=tool_param, output_json=kwargs.get('output_json'), output_pydantic=kwargs.get('output_pydantic'), @@ -2220,7 +2220,7 @@ Output MUST be JSON with 'reflection' and 'satisfactory'. tool_param = tools # Build messages using the helper method - messages, original_prompt = self._build_messages(actual_prompt, kwargs.get('temperature', 0.2), + messages, original_prompt = self._build_messages(actual_prompt, kwargs.get('temperature', 1.0), kwargs.get('output_json'), kwargs.get('output_pydantic')) # Store chat history length for potential rollback @@ -2249,7 +2249,7 @@ Output MUST be JSON with 'reflection' and 'satisfactory'. completion_args = { "model": self.llm, "messages": messages, - "temperature": kwargs.get('temperature', 0.2), + "temperature": kwargs.get('temperature', 1.0), "stream": True } if formatted_tools: diff --git a/src/praisonai-agents/praisonaiagents/agent/context_agent.py b/src/praisonai-agents/praisonaiagents/agent/context_agent.py index 3551bac26..d456967a7 100644 --- a/src/praisonai-agents/praisonaiagents/agent/context_agent.py +++ b/src/praisonai-agents/praisonaiagents/agent/context_agent.py @@ -434,7 +434,7 @@ This report contains all agent interactions and outputs from a complete ContextA Provide comprehensive analysis that follows the PRD template principles and enables AI assistants to implement features that perfectly match existing codebase patterns.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -515,7 +515,7 @@ codebase style and architecture following PRD template principles.""" role="Expert Manual Codebase Analysis Specialist", goal="Perform comprehensive manual codebase analysis following PRD methodology", instructions="""Analyze the codebase samples following PRD template methodology for complete understanding.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -566,7 +566,7 @@ Analyze following PRD principles to extract patterns, conventions, and architect 6. Design pattern implementations 7. Code complexity metrics 8. API and interface patterns""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -624,7 +624,7 @@ Extract comprehensive patterns that follow PRD template principles for implement For each pattern, provide the pattern name, where it's used, and how to replicate it following PRD template principles.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -674,7 +674,7 @@ patterns and best practices for first-try success.""" goal="Analyze testing patterns for comprehensive validation framework design", instructions="""Analyze testing patterns to understand validation approaches and create comprehensive test frameworks following PRD methodology.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -801,7 +801,7 @@ Extract testing patterns for validation framework creation following PRD princip Confidence level for one-pass implementation Generate PRPs following this EXACT structure for first-try implementation success.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -850,7 +850,7 @@ on the first try following PRD template principles.""" 6. CODE QUALITY: Complexity analysis, maintainability 7. DOCUMENTATION VALIDATION: Documentation completeness 8. DEPENDENCY VALIDATION: Dependency analysis and security""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -897,7 +897,7 @@ following PRD template principles.""" instructions="""Compile all available documentation following PRD methodology including: README files, API documentation, setup guides, architecture docs, and any other relevant documentation that provides context for implementation.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -943,7 +943,7 @@ following PRD template principles.""" instructions="""Analyze integration points following PRD methodology including: APIs, databases, external services, configuration points, and any other integration requirements that affect implementation.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -1004,7 +1004,7 @@ following PRD template principles.""" 8. DOCUMENTATION UPDATES: Documentation to create/update 9. INTEGRATION STEPS: How to integrate with existing systems 10. VALIDATION CHECKPOINTS: Validation steps at each phase""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -1302,7 +1302,7 @@ Every agent interaction has been saved for full audit trail and reproducibility. GOAL: [extracted implementation goal] Be precise and extract only what is explicitly mentioned or clearly implied.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -1536,7 +1536,7 @@ Note: Detailed function/class metadata not available due to content access limit 5. Documentation topics Make the output easy for a file selection agent to understand which files contain what functionality.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -1770,7 +1770,7 @@ Focus on creating clear, structured metadata that will help with intelligent fil ["README.md", "src/auth/login.py", "config/settings.py", ...] Maximum 50 files for efficient analysis.""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -1923,7 +1923,7 @@ Maximum 50 files.""".format(goal=goal) 8. EXAMPLES: Similar features that can guide {goal} implementation Since these files were pre-selected for relevance, provide deep analysis of how each contributes to implementing: {goal}""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -2024,7 +2024,7 @@ Since these files were pre-selected for relevance, explain how each contributes - Success criteria for {goal} Focus everything on successfully implementing: {goal}""", - llm=self.llm if hasattr(self, 'llm') else "gpt-4o-mini", + llm=self.llm if hasattr(self, 'llm') else "gpt-5-nano", verbose=getattr(self, 'verbose', True) ) @@ -2303,13 +2303,13 @@ def create_context_agent(llm: Optional[Union[str, Any]] = None, **kwargs) -> Con Factory function to create a ContextAgent following Context Engineering and PRD methodology. Args: - llm: Language model to use (e.g., "gpt-4o-mini", "claude-3-haiku") + llm: Language model to use (e.g., "gpt-5-nano", "claude-3-haiku") **kwargs: Additional arguments to pass to ContextAgent constructor Returns: ContextAgent: Configured ContextAgent for comprehensive context generation following PRD principles """ if llm is None: - llm = "gpt-4o-mini" + llm = "gpt-5-nano" return ContextAgent(llm=llm, **kwargs) \ No newline at end of file diff --git a/src/praisonai-agents/praisonaiagents/agent/router_agent.py b/src/praisonai-agents/praisonaiagents/agent/router_agent.py index 4237842f3..70791c092 100644 --- a/src/praisonai-agents/praisonaiagents/agent/router_agent.py +++ b/src/praisonai-agents/praisonaiagents/agent/router_agent.py @@ -44,7 +44,7 @@ class RouterAgent(Agent): # Initialize model router self.model_router = model_router or ModelRouter() self.routing_strategy = routing_strategy - self.fallback_model = fallback_model or os.getenv('OPENAI_MODEL_NAME', 'gpt-4o-mini') + self.fallback_model = fallback_model or os.getenv('OPENAI_MODEL_NAME', 'gpt-5-nano') # Process models configuration self.available_models = self._process_models_config(models) diff --git a/src/praisonai-agents/praisonaiagents/llm/llm.py b/src/praisonai-agents/praisonaiagents/llm/llm.py index 4346cf7ef..545c48c83 100644 --- a/src/praisonai-agents/praisonaiagents/llm/llm.py +++ b/src/praisonai-agents/praisonaiagents/llm/llm.py @@ -62,7 +62,7 @@ class LLM: # OpenAI "gpt-4": 6144, # 8,192 actual "gpt-4o": 96000, # 128,000 actual - "gpt-4o-mini": 96000, # 128,000 actual + "gpt-5-nano": 96000, # 128,000 actual "gpt-4-turbo": 96000, # 128,000 actual "o1-preview": 96000, # 128,000 actual "o1-mini": 96000, # 128,000 actual diff --git a/src/praisonai-agents/praisonaiagents/llm/model_capabilities.py b/src/praisonai-agents/praisonaiagents/llm/model_capabilities.py index 8c3270911..58c6512d4 100644 --- a/src/praisonai-agents/praisonaiagents/llm/model_capabilities.py +++ b/src/praisonai-agents/praisonaiagents/llm/model_capabilities.py @@ -7,7 +7,7 @@ This module defines which models support specific features like structured outpu MODELS_SUPPORTING_STRUCTURED_OUTPUTS = { # OpenAI models "gpt-4o", - "gpt-4o-mini", + "gpt-5-nano", "gpt-4-turbo", "gpt-4-turbo-preview", "gpt-4-turbo-2024-04-09", @@ -46,7 +46,7 @@ MODELS_SUPPORTING_STRUCTURED_OUTPUTS = { MODELS_NOT_SUPPORTING_STRUCTURED_OUTPUTS = { # Audio preview models "gpt-4o-audio-preview", - "gpt-4o-mini-audio-preview", + "gpt-5-nano-audio-preview", # Legacy o1 models (don't support system messages either) "o1-preview-2024-09-12", diff --git a/src/praisonai-agents/praisonaiagents/llm/model_router.py b/src/praisonai-agents/praisonaiagents/llm/model_router.py index 8202c7541..f753c20d7 100644 --- a/src/praisonai-agents/praisonaiagents/llm/model_router.py +++ b/src/praisonai-agents/praisonaiagents/llm/model_router.py @@ -51,7 +51,7 @@ class ModelRouter: DEFAULT_MODELS = [ # Lightweight/cheap models for simple tasks ModelProfile( - name="gpt-4o-mini", + name="gpt-5-nano", provider="openai", complexity_range=(TaskComplexity.SIMPLE, TaskComplexity.MODERATE), cost_per_1k_tokens=0.00075, # Average of $0.00015 input, $0.0006 output diff --git a/src/praisonai-agents/praisonaiagents/llm/openai_client.py b/src/praisonai-agents/praisonaiagents/llm/openai_client.py index 858817a63..c0e1cbf2c 100644 --- a/src/praisonai-agents/praisonaiagents/llm/openai_client.py +++ b/src/praisonai-agents/praisonaiagents/llm/openai_client.py @@ -567,7 +567,7 @@ class OpenAIClient: self, messages: List[Dict], model: str, - temperature: float = 0.7, + temperature: float = 1.0, tools: Optional[List[Dict]] = None, start_time: Optional[float] = None, console: Optional[Console] = None, @@ -654,7 +654,7 @@ class OpenAIClient: self, messages: List[Dict], model: str, - temperature: float = 0.7, + temperature: float = 1.0, tools: Optional[List[Dict]] = None, start_time: Optional[float] = None, console: Optional[Console] = None, @@ -741,7 +741,7 @@ class OpenAIClient: self, messages: List[Dict[str, Any]], model: str = "gpt-4o", - temperature: float = 0.7, + temperature: float = 1.0, stream: bool = False, tools: Optional[List[Dict[str, Any]]] = None, tool_choice: Optional[Union[str, Dict[str, Any]]] = None, @@ -786,7 +786,7 @@ class OpenAIClient: self, messages: List[Dict[str, Any]], model: str = "gpt-4o", - temperature: float = 0.7, + temperature: float = 1.0, stream: bool = False, tools: Optional[List[Dict[str, Any]]] = None, tool_choice: Optional[Union[str, Dict[str, Any]]] = None, @@ -831,7 +831,7 @@ class OpenAIClient: self, messages: List[Dict[str, Any]], model: str = "gpt-4o", - temperature: float = 0.7, + temperature: float = 1.0, tools: Optional[List[Any]] = None, execute_tool_fn: Optional[Callable] = None, stream: bool = True, @@ -1009,7 +1009,7 @@ class OpenAIClient: self, messages: List[Dict[str, Any]], model: str = "gpt-4o", - temperature: float = 0.7, + temperature: float = 1.0, tools: Optional[List[Any]] = None, execute_tool_fn: Optional[Callable] = None, stream: bool = True, @@ -1190,7 +1190,7 @@ class OpenAIClient: self, messages: List[Dict[str, Any]], model: str = "gpt-4o", - temperature: float = 0.7, + temperature: float = 1.0, tools: Optional[List[Any]] = None, execute_tool_fn: Optional[Callable] = None, reasoning_steps: bool = False, @@ -1335,7 +1335,7 @@ class OpenAIClient: messages: List[Dict[str, Any]], response_format: BaseModel, model: str = "gpt-4o", - temperature: float = 0.7, + temperature: float = 1.0, **kwargs ) -> Any: """ @@ -1369,7 +1369,7 @@ class OpenAIClient: messages: List[Dict[str, Any]], response_format: BaseModel, model: str = "gpt-4o", - temperature: float = 0.7, + temperature: float = 1.0, **kwargs ) -> Any: """ diff --git a/src/praisonai-agents/praisonaiagents/mcp/mcp.py b/src/praisonai-agents/praisonaiagents/mcp/mcp.py index d8042cf07..83a255692 100644 --- a/src/praisonai-agents/praisonaiagents/mcp/mcp.py +++ b/src/praisonai-agents/praisonaiagents/mcp/mcp.py @@ -155,7 +155,7 @@ class MCP: # Method 1: Using command and args separately agent = Agent( instructions="You are a helpful assistant...", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP( command="/path/to/python", args=["/path/to/app.py"] @@ -165,14 +165,14 @@ class MCP: # Method 2: Using a single command string agent = Agent( instructions="You are a helpful assistant...", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("/path/to/python /path/to/app.py") ) # Method 3: Using an SSE endpoint agent = Agent( instructions="You are a helpful assistant...", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("http://localhost:8080/sse") ) @@ -514,7 +514,7 @@ class MCP: """Convert the MCP tool to an OpenAI-compatible tool definition. This method is specifically invoked by the Agent class when using - provider/model format (e.g., "openai/gpt-4o-mini"). + provider/model format (e.g., "openai/gpt-5-nano"). Returns: dict or list: OpenAI-compatible tool definition(s) diff --git a/src/praisonai-agents/praisonaiagents/memory/memory.py b/src/praisonai-agents/praisonaiagents/memory/memory.py index 600ff187a..066837b1c 100644 --- a/src/praisonai-agents/praisonaiagents/memory/memory.py +++ b/src/praisonai-agents/praisonaiagents/memory/memory.py @@ -1442,7 +1442,7 @@ class Memory: import litellm # Convert model name if it's in litellm format - model_name = llm or "gpt-4o-mini" + model_name = llm or "gpt-5-nano" response = litellm.completion( model=model_name, @@ -1459,7 +1459,7 @@ class Memory: client = OpenAI() response = client.chat.completions.create( - model=llm or "gpt-4o-mini", + model=llm or "gpt-5-nano", messages=[{ "role": "user", "content": custom_prompt or default_prompt diff --git a/src/praisonai-agents/praisonaiagents/task/task.py b/src/praisonai-agents/praisonaiagents/task/task.py index 136dd39e8..fa10e6968 100644 --- a/src/praisonai-agents/praisonaiagents/task/task.py +++ b/src/praisonai-agents/praisonaiagents/task/task.py @@ -322,7 +322,7 @@ class Task: if hasattr(self.agent.llm_instance, 'model'): llm_model = self.agent.llm_instance.model else: - llm_model = "gpt-4o-mini" # Default fallback + llm_model = "gpt-5-nano" # Default fallback elif hasattr(self.agent, 'llm') and self.agent.llm: # For standard model strings llm_model = self.agent.llm diff --git a/src/praisonai-agents/praisonaiagents/tools/train/data/generatecot.py b/src/praisonai-agents/praisonaiagents/tools/train/data/generatecot.py index e676e6604..078412ab0 100644 --- a/src/praisonai-agents/praisonaiagents/tools/train/data/generatecot.py +++ b/src/praisonai-agents/praisonaiagents/tools/train/data/generatecot.py @@ -27,7 +27,7 @@ class GenerateCOT: def __init__( self, qa_pairs: Optional[Dict[str, str]] = None, - model: str = "gpt-4o-mini", + model: str = "gpt-5-nano", api_key: Optional[str] = None, max_attempts: int = 3, verbose: bool = True, diff --git a/src/praisonai-agents/sequence.py b/src/praisonai-agents/sequence.py index 67929b80b..a2cb39792 100644 --- a/src/praisonai-agents/sequence.py +++ b/src/praisonai-agents/sequence.py @@ -4,7 +4,7 @@ import os sequential_agent = Agent( instructions="""You are a helpful assistant that can break down complex problems. Use the available tools when relevant to perform step-by-step analysis.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) diff --git a/src/praisonai-agents/sequence_llm.py b/src/praisonai-agents/sequence_llm.py index d6fcc56d2..698555aca 100644 --- a/src/praisonai-agents/sequence_llm.py +++ b/src/praisonai-agents/sequence_llm.py @@ -4,7 +4,7 @@ import os sequential_agent = Agent( instructions="""You are a helpful assistant that can break down complex problems. Use the available tools when relevant to perform step-by-step analysis.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) diff --git a/src/praisonai-agents/simple-api-mcp.py b/src/praisonai-agents/simple-api-mcp.py index df49e8e3e..93f8af8ac 100644 --- a/src/praisonai-agents/simple-api-mcp.py +++ b/src/praisonai-agents/simple-api-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You are a Tweet.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("http://localhost:8080/sse") ) search_agent.launch(path="/tweet", port=3030) \ No newline at end of file diff --git a/src/praisonai-agents/streaming-openai.py b/src/praisonai-agents/streaming-openai.py index 6a3e04322..340c7fd40 100644 --- a/src/praisonai-agents/streaming-openai.py +++ b/src/praisonai-agents/streaming-openai.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini", + llm="gpt-5-nano", stream=True ) diff --git a/src/praisonai-agents/test.py b/src/praisonai-agents/test.py index dd72c671d..3aa077909 100644 --- a/src/praisonai-agents/test.py +++ b/src/praisonai-agents/test.py @@ -13,7 +13,7 @@ allowed_dirs = [ filesystem_agent = Agent( instructions="""You are a helpful assistant that can interact with the filesystem. Use the available tools when relevant to manage files and directories.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP( command="npx", args=["-y", "@modelcontextprotocol/server-filesystem"] + allowed_dirs diff --git a/src/praisonai-agents/test_agent_simple.py b/src/praisonai-agents/test_agent_simple.py index fafecdd7b..6edb8e9a6 100644 --- a/src/praisonai-agents/test_agent_simple.py +++ b/src/praisonai-agents/test_agent_simple.py @@ -5,7 +5,7 @@ from praisonaiagents import Agent print("Creating agent...") agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print("Starting agent...") diff --git a/src/praisonai-agents/test_all_optimizations.py b/src/praisonai-agents/test_all_optimizations.py index c7d256cf3..64d0a9964 100644 --- a/src/praisonai-agents/test_all_optimizations.py +++ b/src/praisonai-agents/test_all_optimizations.py @@ -40,7 +40,7 @@ def test_agent_lazy_loading(): role="Assistant", goal="Help users", backstory="I am a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) init_time = time.time() - start print(f" Agent initialization: {init_time:.4f}s") @@ -67,7 +67,7 @@ def test_agent_system_prompt_cache(): goal="Test caching", backstory="I test caches", tools=[calculator], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # First build - no cache @@ -98,7 +98,7 @@ def test_agent_tool_formatting_cache(): goal="Use tools", backstory="I use tools", tools=[calculator, sample_tool], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # First format - no cache @@ -412,7 +412,7 @@ def test_console_lazy_loading(): print("\n13. Testing console lazy loading across all classes...") # Test Agent console - agent = Agent(instructions="Test", llm="gpt-4o-mini") + agent = Agent(instructions="Test", llm="gpt-5-nano") assert agent._console is None, "Agent console should not be initialized" console1 = agent.console assert agent._console is not None, "Agent console should be initialized" @@ -448,7 +448,7 @@ def test_with_openai_basic(): start = time.time() agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) agent_init = time.time() - start print(f" Agent initialization time: {agent_init:.4f}s") @@ -484,7 +484,7 @@ def benchmark_agent_creation(num_agents=5): goal="Help users", backstory="I am a helpful assistant", tools=[calculator] if i % 2 == 0 else None, # Half with tools - llm="gpt-4o-mini" + llm="gpt-5-nano" ) creation_time = time.time() - start times.append(creation_time) diff --git a/src/praisonai-agents/test_both_formats.py b/src/praisonai-agents/test_both_formats.py index 2191853ff..93d475840 100644 --- a/src/praisonai-agents/test_both_formats.py +++ b/src/praisonai-agents/test_both_formats.py @@ -4,14 +4,14 @@ from praisonaiagents import Agent, MCP import os def test_agent_direct(): - """Test using gpt-4o-mini directly (agent.py path)""" + """Test using gpt-5-nano directly (agent.py path)""" print("="*50) - print("Testing gpt-4o-mini (agent.py path)") + print("Testing gpt-5-nano (agent.py path)") print("="*50) agent = Agent( instructions="You are a helpful assistant that can break down complex problems.", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) @@ -20,14 +20,14 @@ def test_agent_direct(): return result def test_llm_class(): - """Test using openai/gpt-4o-mini (llm.py path)""" + """Test using openai/gpt-5-nano (llm.py path)""" print("\n" + "="*50) - print("Testing openai/gpt-4o-mini (llm.py path)") + print("Testing openai/gpt-5-nano (llm.py path)") print("="*50) agent = Agent( instructions="You are a helpful assistant that can break down complex problems.", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) @@ -45,8 +45,8 @@ if __name__ == "__main__": print("SUMMARY") print("="*50) print("โœ… Both formats work correctly!") - print("โœ… gpt-4o-mini uses agent.py direct OpenAI calls") - print("โœ… openai/gpt-4o-mini uses llm.py LiteLLM wrapper") + print("โœ… gpt-5-nano uses agent.py direct OpenAI calls") + print("โœ… openai/gpt-5-nano uses llm.py LiteLLM wrapper") print("โœ… Both support tool calling and MCP integration") except Exception as e: diff --git a/src/praisonai-agents/test_callback_enhancement.py b/src/praisonai-agents/test_callback_enhancement.py index 2bce92903..6e04faa61 100644 --- a/src/praisonai-agents/test_callback_enhancement.py +++ b/src/praisonai-agents/test_callback_enhancement.py @@ -42,7 +42,7 @@ def test_callback_enhancement(): role="Assistant", goal="Help with testing callbacks", backstory="I am a helpful assistant for testing purposes", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", verbose=True ) diff --git a/src/praisonai-agents/test_callback_fix.py b/src/praisonai-agents/test_callback_fix.py index 620621636..c76bf6756 100644 --- a/src/praisonai-agents/test_callback_fix.py +++ b/src/praisonai-agents/test_callback_fix.py @@ -34,7 +34,7 @@ agent = Agent( role="Assistant", goal="Help with tasks", backstory="I am a helpful assistant", - llm="gpt-4o-mini", # Using a simple model for testing + llm="gpt-5-nano", # Using a simple model for testing verbose=False ) diff --git a/src/praisonai-agents/test_duplicate_callback_fix.py b/src/praisonai-agents/test_duplicate_callback_fix.py index 972d6a10e..0075d2175 100644 --- a/src/praisonai-agents/test_duplicate_callback_fix.py +++ b/src/praisonai-agents/test_duplicate_callback_fix.py @@ -43,7 +43,7 @@ def test_single_display_no_tools(): MagicMock(choices=[MagicMock(delta=MagicMock(content="!"))]) ] - llm = LLM(model="gpt-4o-mini", verbose=False) + llm = LLM(model="gpt-5-nano", verbose=False) response = llm.get_response( prompt="Test prompt", verbose=True, @@ -139,7 +139,7 @@ def test_single_display_with_self_reflection(): mock_completion.side_effect = mock_streaming - llm = LLM(model="gpt-4o-mini", verbose=False, self_reflect=True, min_reflect=1, max_reflect=2) + llm = LLM(model="gpt-5-nano", verbose=False, self_reflect=True, min_reflect=1, max_reflect=2) response = llm.get_response( prompt="Test prompt", verbose=True, @@ -179,7 +179,7 @@ def test_async_single_display(): mock_acompletion.return_value = async_generator() - llm = LLM(model="gpt-4o-mini", verbose=False) + llm = LLM(model="gpt-5-nano", verbose=False) response = await llm.get_response_async( prompt="Test async", verbose=True, diff --git a/src/praisonai-agents/test_fix_simple.py b/src/praisonai-agents/test_fix_simple.py index 17c0c5365..28b03921a 100644 --- a/src/praisonai-agents/test_fix_simple.py +++ b/src/praisonai-agents/test_fix_simple.py @@ -14,7 +14,7 @@ def test_self_reflection_fix(): goal="Solve math problems accurately", backstory="You are a helpful math assistant", self_reflect=True, - llm="gpt-4o-mini", # Use a more widely available model + llm="gpt-5-nano", # Use a more widely available model verbose=True, tools=[evaluate], min_reflect=1, diff --git a/src/praisonai-agents/test_fix_verification.py b/src/praisonai-agents/test_fix_verification.py index 3919108dd..83b30a703 100644 --- a/src/praisonai-agents/test_fix_verification.py +++ b/src/praisonai-agents/test_fix_verification.py @@ -24,7 +24,7 @@ test_agent = Agent( role="Test Agent", goal="Test the fix", tools=[simple_tool], - llm="gpt-4o-mini", # Using OpenAI for testing + llm="gpt-5-nano", # Using OpenAI for testing verbose=False # This is key - verbose=False triggers the bug ) diff --git a/src/praisonai-agents/test_gemini_embedding.py b/src/praisonai-agents/test_gemini_embedding.py index f034d8fce..317b66938 100644 --- a/src/praisonai-agents/test_gemini_embedding.py +++ b/src/praisonai-agents/test_gemini_embedding.py @@ -29,7 +29,7 @@ def test_gemini_embedding(): role="Memory Tester", goal="Test memory storage with embeddings", backstory="An agent that tests memory functionality", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a task @@ -60,7 +60,7 @@ def test_gemini_embedding(): role="Memory Tester", goal="Test memory storage with explicit OpenAI embeddings", backstory="An agent that tests memory functionality", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) task2 = Task( @@ -95,7 +95,7 @@ def test_gemini_embedding(): role="Memory Tester with Gemini", goal="Test memory storage with Gemini embeddings", backstory="An agent that tests Gemini embedding functionality", - llm="gpt-4o-mini" # Still use GPT for chat, but Gemini for embeddings + llm="gpt-5-nano" # Still use GPT for chat, but Gemini for embeddings ) task3 = Task( diff --git a/src/praisonai-agents/test_langtrace.py b/src/praisonai-agents/test_langtrace.py index 8304c9641..129f3592d 100644 --- a/src/praisonai-agents/test_langtrace.py +++ b/src/praisonai-agents/test_langtrace.py @@ -13,7 +13,7 @@ langtrace.init( def example(): client = OpenAI() response = client.chat.completions.create( - model="gpt-4o-mini", + model="gpt-5-nano", messages=[ { "role": "system", diff --git a/src/praisonai-agents/test_multi_provider.py b/src/praisonai-agents/test_multi_provider.py index 2f4150596..93f8bf882 100644 --- a/src/praisonai-agents/test_multi_provider.py +++ b/src/praisonai-agents/test_multi_provider.py @@ -58,7 +58,7 @@ def test_router_agent(): name="Test Agent", role="Test Assistant", goal="Test multi-model functionality", - models=["gpt-4o-mini"], # Using single model for testing + models=["gpt-5-nano"], # Using single model for testing routing_strategy="auto", verbose=False ) @@ -86,7 +86,7 @@ def test_integration(): name="Integration Test Agent", role="Tester", goal="Test the integration", - models=["gpt-4o-mini"], # Single model for testing + models=["gpt-5-nano"], # Single model for testing routing_strategy="manual", # Use manual to avoid complexity verbose=False ) diff --git a/src/praisonai-agents/test_ollama_fix.py b/src/praisonai-agents/test_ollama_fix.py index ada9b5d1e..9e5e925ef 100644 --- a/src/praisonai-agents/test_ollama_fix.py +++ b/src/praisonai-agents/test_ollama_fix.py @@ -41,7 +41,7 @@ def test_ollama_provider_detection(): return False # Test non-Ollama provider - openai_llm = LLM(model="gpt-4o-mini") + openai_llm = LLM(model="gpt-5-nano") is_not_ollama = not openai_llm._is_ollama_provider() if is_not_ollama: @@ -99,7 +99,7 @@ def test_tool_summary_generation(): return False # Test with non-Ollama model (should NOT generate summary) - non_ollama_llm = LLM(model="gpt-4o-mini") + non_ollama_llm = LLM(model="gpt-5-nano") summary_non_ollama = non_ollama_llm._generate_ollama_tool_summary(tool_results, "") if summary_non_ollama is None: print("โœ… Tool summary generation correctly skips non-Ollama models") @@ -120,7 +120,7 @@ def test_backward_compatibility(): # Test that non-Ollama providers aren't affected models_to_test = [ - "gpt-4o-mini", + "gpt-5-nano", "claude-3-sonnet", "gemini/gemini-2.5-pro" ] diff --git a/src/praisonai-agents/test_real_streaming.py b/src/praisonai-agents/test_real_streaming.py index fb355af9b..549aa0a6a 100644 --- a/src/praisonai-agents/test_real_streaming.py +++ b/src/praisonai-agents/test_real_streaming.py @@ -53,7 +53,7 @@ def test_real_streaming(): role="Testing Assistant", goal="Test streaming behavior", backstory="I am a test agent for verifying streaming functionality.", - llm="gpt-4o-mini", # You can change this to test other providers + llm="gpt-5-nano", # You can change this to test other providers stream=test_case["stream"], verbose=test_case["verbose"] ) diff --git a/src/praisonai-agents/test_self_reflection.py b/src/praisonai-agents/test_self_reflection.py index 82fa0b63d..cd7b1e773 100644 --- a/src/praisonai-agents/test_self_reflection.py +++ b/src/praisonai-agents/test_self_reflection.py @@ -10,7 +10,7 @@ def test_agent_self_reflection(): agent = Agent( name="ReflectiveAgent", instructions="You are a helpful assistant.", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=True, min_reflect=1, max_reflect=3 @@ -23,7 +23,7 @@ def test_agent_self_reflection(): def test_llm_self_reflection(): """Test self-reflection in LLM class directly""" print("=== Testing LLM Self-Reflection ===") - llm = LLM(model="gpt-4o-mini") + llm = LLM(model="gpt-5-nano") response = llm.get_response( prompt="What is 2+2? Be brief.", @@ -39,7 +39,7 @@ def test_llm_self_reflection(): def test_llm_no_reflection(): """Test LLM without self-reflection for comparison""" print("=== Testing LLM Without Self-Reflection ===") - llm = LLM(model="gpt-4o-mini") + llm = LLM(model="gpt-5-nano") response = llm.get_response( prompt="What is 2+2? Be brief.", diff --git a/src/praisonai-agents/test_self_reflection_fix.py b/src/praisonai-agents/test_self_reflection_fix.py index e45bed9ee..20d0e6e44 100644 --- a/src/praisonai-agents/test_self_reflection_fix.py +++ b/src/praisonai-agents/test_self_reflection_fix.py @@ -36,7 +36,7 @@ def test_self_reflection_with_tools(): goal="Analyze and provide insights on given topics", backstory="You are an expert analyst with strong critical thinking skills", self_reflect=True, - llm="gpt-4o-mini", # Using OpenAI model for testing + llm="gpt-5-nano", # Using OpenAI model for testing verbose=True, tools=[mock_tool], max_reflect=2, # Keep it small for testing @@ -76,7 +76,7 @@ def test_self_reflection_without_tools(): goal="Analyze and provide insights on given topics", backstory="You are an expert analyst with strong critical thinking skills", self_reflect=True, - llm="gpt-4o-mini", # Using OpenAI model for testing + llm="gpt-5-nano", # Using OpenAI model for testing verbose=True, max_reflect=2, # Keep it small for testing min_reflect=1 @@ -115,7 +115,7 @@ def test_llm_directly(): mock_tool = create_mock_tool() # Create LLM instance - llm = LLM(model="gpt-4o-mini") + llm = LLM(model="gpt-5-nano") def mock_tool_executor(function_name, arguments): """Mock tool executor that simulates tool execution""" diff --git a/src/praisonai-agents/test_self_reflection_with_tools_verification.py b/src/praisonai-agents/test_self_reflection_with_tools_verification.py index 5f45a4f07..9924a0d37 100644 --- a/src/praisonai-agents/test_self_reflection_with_tools_verification.py +++ b/src/praisonai-agents/test_self_reflection_with_tools_verification.py @@ -26,7 +26,7 @@ def simple_calculator(operation: str, a: int, b: int) -> int: def test_llm_self_reflection_with_tools(): """Test self-reflection in LLM class directly with tools""" print("=== Testing LLM Self-Reflection WITH Tools ===") - llm = LLM(model="gpt-4o-mini") + llm = LLM(model="gpt-5-nano") def mock_tool_executor(function_name, arguments): """Mock tool executor for testing""" @@ -54,7 +54,7 @@ def test_llm_self_reflection_with_tools(): def test_llm_self_reflection_without_tools(): """Test self-reflection in LLM class directly without tools""" print("=== Testing LLM Self-Reflection WITHOUT Tools ===") - llm = LLM(model="gpt-4o-mini") + llm = LLM(model="gpt-5-nano") response = llm.get_response( prompt="Calculate 5 + 3 and then reflect on your answer", @@ -73,7 +73,7 @@ def test_agent_self_reflection_with_tools(): agent = Agent( name="CalculatorAgent", instructions="You are a helpful assistant with access to a calculator tool.", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=True, min_reflect=1, max_reflect=2, @@ -90,7 +90,7 @@ def test_agent_self_reflection_without_tools(): agent = Agent( name="BasicAgent", instructions="You are a helpful assistant.", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=True, min_reflect=1, max_reflect=2 diff --git a/src/praisonai-agents/test_sequential_fix.py b/src/praisonai-agents/test_sequential_fix.py index 01ce78d36..a7a2e84e5 100644 --- a/src/praisonai-agents/test_sequential_fix.py +++ b/src/praisonai-agents/test_sequential_fix.py @@ -4,14 +4,14 @@ from praisonaiagents import Agent, MCP import os def test_agent_direct(): - """Test using gpt-4o-mini directly (agent.py path)""" + """Test using gpt-5-nano directly (agent.py path)""" print("=" * 50) - print("Testing gpt-4o-mini (agent.py path)") + print("Testing gpt-5-nano (agent.py path)") print("=" * 50) agent = Agent( instructions="You are a helpful assistant that can break down complex problems.", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) @@ -20,14 +20,14 @@ def test_agent_direct(): return result def test_llm_class(): - """Test using openai/gpt-4o-mini (llm.py path)""" + """Test using openai/gpt-5-nano (llm.py path)""" print("\n" + "=" * 50) - print("Testing openai/gpt-4o-mini (llm.py path)") + print("Testing openai/gpt-5-nano (llm.py path)") print("=" * 50) agent = Agent( instructions="You are a helpful assistant that can break down complex problems.", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) @@ -45,8 +45,8 @@ if __name__ == "__main__": print("SUMMARY") print("=" * 50) print("โœ… Both formats work correctly!") - print("โœ… gpt-4o-mini uses agent.py direct OpenAI calls") - print("โœ… openai/gpt-4o-mini uses llm.py LiteLLM wrapper") + print("โœ… gpt-5-nano uses agent.py direct OpenAI calls") + print("โœ… openai/gpt-5-nano uses llm.py LiteLLM wrapper") print("โœ… Both support sequential tool calling and MCP integration") print("โœ… Sequential thinking tool works properly in both modes") diff --git a/src/praisonai-agents/test_stream_parameter_fix.py b/src/praisonai-agents/test_stream_parameter_fix.py index e5ee1c124..978e55c06 100644 --- a/src/praisonai-agents/test_stream_parameter_fix.py +++ b/src/praisonai-agents/test_stream_parameter_fix.py @@ -19,7 +19,7 @@ def test_stream_parameter(): role="Test Assistant", goal="Test streaming behavior", backstory="A test agent for verifying stream parameter handling", - llm="gpt-4o-mini", + llm="gpt-5-nano", stream=True, # Default to streaming verbose=True ) @@ -50,7 +50,7 @@ def test_stream_parameter(): role="Test Assistant 2", goal="Test non-streaming behavior", backstory="A test agent for verifying non-stream parameter handling", - llm="gpt-4o-mini", + llm="gpt-5-nano", stream=False, # Default to non-streaming verbose=True ) diff --git a/src/praisonai-agents/test_streaming_behavior.py b/src/praisonai-agents/test_streaming_behavior.py index 32a280785..03474d2fd 100644 --- a/src/praisonai-agents/test_streaming_behavior.py +++ b/src/praisonai-agents/test_streaming_behavior.py @@ -15,14 +15,14 @@ def test_streaming_behavior(): test_cases = [ { "name": "OpenAI - Stream True", - "llm": "gpt-4o-mini", + "llm": "gpt-5-nano", "stream": True, "verbose": True, "expected": "Should show real-time streaming" }, { "name": "OpenAI - Stream False", - "llm": "gpt-4o-mini", + "llm": "gpt-5-nano", "stream": False, "verbose": True, "expected": "Should show 'Generating...' animation during API call" diff --git a/src/praisonai-agents/test_streaming_logic.py b/src/praisonai-agents/test_streaming_logic.py index 07db2fe89..fed99a256 100644 --- a/src/praisonai-agents/test_streaming_logic.py +++ b/src/praisonai-agents/test_streaming_logic.py @@ -19,7 +19,7 @@ def test_streaming_logic(): print("1. Testing default agent (no stream parameter)...") agent1 = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print(f" โœ… Agent created successfully") @@ -35,7 +35,7 @@ def test_streaming_logic(): print("\n2. Testing explicit stream=False...") agent2 = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini", + llm="gpt-5-nano", stream=False ) @@ -52,7 +52,7 @@ def test_streaming_logic(): print("\n3. Testing explicit stream=True...") agent3 = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini", + llm="gpt-5-nano", stream=True ) diff --git a/src/praisonai-agents/test_telemetry_fix.py b/src/praisonai-agents/test_telemetry_fix.py index 6c1dca721..8bdb8b2eb 100644 --- a/src/praisonai-agents/test_telemetry_fix.py +++ b/src/praisonai-agents/test_telemetry_fix.py @@ -26,7 +26,7 @@ try: # Create agent with minimal setup agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print(f"[{datetime.now()}] Agent created successfully") diff --git a/src/praisonai-agents/test_telemetry_integration.py b/src/praisonai-agents/test_telemetry_integration.py index 0bc224a8d..e28ffbcc1 100644 --- a/src/praisonai-agents/test_telemetry_integration.py +++ b/src/praisonai-agents/test_telemetry_integration.py @@ -21,7 +21,7 @@ agent = Agent( role="Tester", goal="Test telemetry", backstory="I test things", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) task = Task( @@ -60,7 +60,7 @@ new_agent = Agent( role="Tester", goal="Test auto telemetry", backstory="I test auto-instrumentation", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print(f" New agent instrumented: {hasattr(new_agent.execute, '__wrapped__')}") diff --git a/src/praisonai-agents/test_token_tracking_fix.py b/src/praisonai-agents/test_token_tracking_fix.py index 719409045..ec36f0a8a 100644 --- a/src/praisonai-agents/test_token_tracking_fix.py +++ b/src/praisonai-agents/test_token_tracking_fix.py @@ -21,7 +21,7 @@ try: role="Test Role", goal="Test Goal", backstory="Test backstory", - llm="gpt-4o-mini", + llm="gpt-5-nano", metrics=True, base_url="http://localhost:1234/v1", # Use local URL to trigger LLM instance creation api_key="test-key" @@ -51,7 +51,7 @@ try: role="Test Role", goal="Test Goal", backstory="Test backstory", - llm={"model": "gpt-4o-mini", "base_url": "http://localhost:1234/v1"}, + llm={"model": "gpt-5-nano", "base_url": "http://localhost:1234/v1"}, metrics=True, api_key="test-key" ) @@ -78,7 +78,7 @@ try: role="Test Role", goal="Test Goal", backstory="Test backstory", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", metrics=True, api_key="test-key" ) diff --git a/src/praisonai-agents/test_user_code_pattern.py b/src/praisonai-agents/test_user_code_pattern.py index 332411f93..dab21c5d8 100644 --- a/src/praisonai-agents/test_user_code_pattern.py +++ b/src/praisonai-agents/test_user_code_pattern.py @@ -25,7 +25,7 @@ def test_user_code_pattern_with_tools(): goal="Analyze and provide insights on given topics", backstory="You are an expert analyst with strong critical thinking skills", self_reflect=True, - llm="gpt-4o-mini", # Using OpenAI instead of Gemini for testing + llm="gpt-5-nano", # Using OpenAI instead of Gemini for testing verbose=True, tools=[google_web_search_llm] ) @@ -67,7 +67,7 @@ def test_user_code_pattern_without_tools(): goal="Analyze and provide insights on given topics", backstory="You are an expert analyst with strong critical thinking skills", self_reflect=True, - llm="gpt-4o-mini", # Using OpenAI instead of Gemini for testing + llm="gpt-5-nano", # Using OpenAI instead of Gemini for testing verbose=True ) diff --git a/src/praisonai-agents/test_verbose_stream_combinations.py b/src/praisonai-agents/test_verbose_stream_combinations.py index 77dfd5ad8..9d290783e 100644 --- a/src/praisonai-agents/test_verbose_stream_combinations.py +++ b/src/praisonai-agents/test_verbose_stream_combinations.py @@ -21,7 +21,7 @@ def test_combination(verbose: bool, stream: bool, test_name: str): role="Test Assistant", goal="Test display behavior", backstory="A test agent", - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=verbose, stream=stream ) @@ -52,7 +52,7 @@ def main(): role="Test Assistant", goal="Test display behavior", backstory="A test agent", - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=True, stream=True # Agent default is streaming ) diff --git a/src/praisonai-agents/test_warnings.py b/src/praisonai-agents/test_warnings.py index 265f6cd5b..500ccda06 100644 --- a/src/praisonai-agents/test_warnings.py +++ b/src/praisonai-agents/test_warnings.py @@ -13,7 +13,7 @@ try: print("โœ… Import successful!") print("Testing Agent creation...") - agent = praisonaiagents.Agent(instructions="Test agent", llm="gpt-4o-mini") + agent = praisonaiagents.Agent(instructions="Test agent", llm="gpt-5-nano") print("โœ… Agent created successfully!") except Exception as e: diff --git a/src/praisonai-agents/tests/basic-agents-simple-token-demo.py b/src/praisonai-agents/tests/basic-agents-simple-token-demo.py index 371052dab..5db8d49e5 100644 --- a/src/praisonai-agents/tests/basic-agents-simple-token-demo.py +++ b/src/praisonai-agents/tests/basic-agents-simple-token-demo.py @@ -18,7 +18,7 @@ def main(): backstory="You are a knowledgeable assistant who explains scientific concepts clearly.", instructions="You are a helpful assistant", verbose=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create a task to answer the question diff --git a/src/praisonai-agents/tests/basic-agents.py b/src/praisonai-agents/tests/basic-agents.py index e3c5b9dd8..a3a347b74 100644 --- a/src/praisonai-agents/tests/basic-agents.py +++ b/src/praisonai-agents/tests/basic-agents.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent agent = Agent( instructions="You are a helpful assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) agent.start("Why sky is Blue?") \ No newline at end of file diff --git a/src/praisonai-agents/tests/code_agents_example.py b/src/praisonai-agents/tests/code_agents_example.py index dfac1f642..f4656950a 100644 --- a/src/praisonai-agents/tests/code_agents_example.py +++ b/src/praisonai-agents/tests/code_agents_example.py @@ -23,13 +23,13 @@ def code_interpreter(code: str): code_agent = Agent( name="code_agent", - llm="gpt-4o-mini", + llm="gpt-5-nano", backstory="Expert in writing Python scripts", self_reflect=False ) execution_agent = Agent( name="execution_agent", - llm="gpt-4o-mini", + llm="gpt-5-nano", backstory="Expert in executing Python scripts", self_reflect=False, tools=[code_interpreter] diff --git a/src/praisonai-agents/tests/cot-agents-batch.py b/src/praisonai-agents/tests/cot-agents-batch.py index 154a9e81d..aa125646b 100644 --- a/src/praisonai-agents/tests/cot-agents-batch.py +++ b/src/praisonai-agents/tests/cot-agents-batch.py @@ -8,7 +8,7 @@ cot_agent = Agent( goal="Generate and manage chain of thought solutions for Q&A pairs", backstory="Expert in breaking down problems and generating detailed solution steps", tools=[cot_save], - llm="gpt-4o-mini", # Using recommended model + llm="gpt-5-nano", # Using recommended model ) save_to_huggingface_agent = Agent( @@ -17,7 +17,7 @@ save_to_huggingface_agent = Agent( goal="Save the generated chain of thought solutions to a Huggingface dataset", backstory="Expert in saving data to Huggingface", tools=[cot_upload_to_huggingface], - llm="gpt-4o-mini", # Using recommended model + llm="gpt-5-nano", # Using recommended model ) # Define question-answer pairs to process in batches diff --git a/src/praisonai-agents/tests/cot-agents.py b/src/praisonai-agents/tests/cot-agents.py index bdc3d0a46..61836e622 100644 --- a/src/praisonai-agents/tests/cot-agents.py +++ b/src/praisonai-agents/tests/cot-agents.py @@ -29,7 +29,7 @@ qa_generator = Agent( role="Question Creator", goal="Create challenging math and logic questions", backstory="Expert in educational content creation", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[write_csv, count_questions] ) @@ -38,7 +38,7 @@ total_questions_evaluator = Agent( role="Total Questions Evaluator", goal="Evaluate the total number of questions in qa_pairs.csv file", backstory="Expert in evaluating the total number of questions in a file", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[count_questions], verbose=False ) @@ -49,7 +49,7 @@ cot_generator = Agent( goal="Generate and manage chain of thought solutions for Q&A pairs", backstory="Expert in breaking down problems and generating detailed solution steps", tools=[cot_save], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=False ) @@ -59,7 +59,7 @@ upload_to_huggingface = Agent( goal="Upload the generated chain of thought solutions to a Huggingface dataset", backstory="Expert in saving data to Huggingface", tools=[cot_upload_to_huggingface], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=False ) diff --git a/src/praisonai-agents/tests/example_callback.py b/src/praisonai-agents/tests/example_callback.py index 7d2347590..f9b49b063 100644 --- a/src/praisonai-agents/tests/example_callback.py +++ b/src/praisonai-agents/tests/example_callback.py @@ -127,9 +127,9 @@ def main(): verbose=True, allow_delegation=False, tools=[internet_search_tool], - llm="gpt-4o-mini", + llm="gpt-5-nano", markdown=True, - reflect_llm="gpt-4o-mini", + reflect_llm="gpt-5-nano", min_reflect=2, max_reflect=4 ) @@ -142,7 +142,7 @@ def main(): making complex tech topics interesting and easy to understand.""", verbose=True, allow_delegation=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[], markdown=True ) @@ -195,7 +195,7 @@ def main(): tasks=[task1, task2, task3, task4], verbose=True, process="sequential", - manager_llm="gpt-4o-mini" + manager_llm="gpt-5-nano" ) agents.start() diff --git a/src/praisonai-agents/tests/example_sequential.py b/src/praisonai-agents/tests/example_sequential.py index d46f31cd4..a11c62b88 100644 --- a/src/praisonai-agents/tests/example_sequential.py +++ b/src/praisonai-agents/tests/example_sequential.py @@ -39,9 +39,9 @@ researcher = Agent( verbose=True, allow_delegation=False, tools=[internet_search_tool], - llm="gpt-4o-mini", + llm="gpt-5-nano", markdown=True, - reflect_llm="gpt-4o-mini", + reflect_llm="gpt-5-nano", min_reflect=2, max_reflect=4 ) @@ -53,7 +53,7 @@ writer = Agent( making complex tech topics interesting and easy to understand.""", verbose=True, allow_delegation=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[], markdown=True ) @@ -104,7 +104,7 @@ agents = PraisonAIAgents( tasks=[task1, task2, task3, task4], verbose=False, process="sequential", # "sequential" or "hierarchical" - manager_llm="gpt-4o-mini" + manager_llm="gpt-5-nano" ) result = agents.start() diff --git a/src/praisonai-agents/tests/hackathon-judge-agent-code.py b/src/praisonai-agents/tests/hackathon-judge-agent-code.py index 92af5d8df..d6055c000 100644 --- a/src/praisonai-agents/tests/hackathon-judge-agent-code.py +++ b/src/praisonai-agents/tests/hackathon-judge-agent-code.py @@ -27,7 +27,7 @@ hackathon_judge = Agent( backstory="""You are an experienced hackathon judge and technical expert. You excel at evaluating innovation, technical implementation, and presentation quality. You provide constructive feedback and identify both strengths and areas for improvement.""", - llm="gpt-4o-mini", # Using vision-capable model + llm="gpt-5-nano", # Using vision-capable model self_reflect=False, knowledge="" ) diff --git a/src/praisonai-agents/tests/hackathon-judge-agent.py b/src/praisonai-agents/tests/hackathon-judge-agent.py index 92af5d8df..d6055c000 100644 --- a/src/praisonai-agents/tests/hackathon-judge-agent.py +++ b/src/praisonai-agents/tests/hackathon-judge-agent.py @@ -27,7 +27,7 @@ hackathon_judge = Agent( backstory="""You are an experienced hackathon judge and technical expert. You excel at evaluating innovation, technical implementation, and presentation quality. You provide constructive feedback and identify both strengths and areas for improvement.""", - llm="gpt-4o-mini", # Using vision-capable model + llm="gpt-5-nano", # Using vision-capable model self_reflect=False, knowledge="" ) diff --git a/src/praisonai-agents/tests/hackathon-judge-streamlit.py b/src/praisonai-agents/tests/hackathon-judge-streamlit.py index bead156b7..4e694f8c3 100644 --- a/src/praisonai-agents/tests/hackathon-judge-streamlit.py +++ b/src/praisonai-agents/tests/hackathon-judge-streamlit.py @@ -38,7 +38,7 @@ def get_hackathon_judge(): backstory="""You are an experienced hackathon judge and technical expert. You excel at evaluating innovation, technical implementation, and presentation quality. You provide constructive feedback and identify both strengths and areas for improvement.""", - llm="gpt-4o-mini", # Using vision-capable model + llm="gpt-5-nano", # Using vision-capable model self_reflect=False, knowledge="" ) diff --git a/src/praisonai-agents/tests/image-to-text-agent.py b/src/praisonai-agents/tests/image-to-text-agent.py index 9ea8e1da9..6f873b141 100644 --- a/src/praisonai-agents/tests/image-to-text-agent.py +++ b/src/praisonai-agents/tests/image-to-text-agent.py @@ -13,7 +13,7 @@ image_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/src/praisonai-agents/tests/image-understanding-agent.py b/src/praisonai-agents/tests/image-understanding-agent.py index 9ea8e1da9..6f873b141 100644 --- a/src/praisonai-agents/tests/image-understanding-agent.py +++ b/src/praisonai-agents/tests/image-understanding-agent.py @@ -13,7 +13,7 @@ image_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/src/praisonai-agents/tests/knowledge-agents-task.py b/src/praisonai-agents/tests/knowledge-agents-task.py index d6480c8e9..db683c710 100644 --- a/src/praisonai-agents/tests/knowledge-agents-task.py +++ b/src/praisonai-agents/tests/knowledge-agents-task.py @@ -29,7 +29,7 @@ config = { "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini", + "model": "gpt-5-nano", "temperature": 0, "max_tokens": 1000 } diff --git a/src/praisonai-agents/tests/knowledge-direct-simple-test.py b/src/praisonai-agents/tests/knowledge-direct-simple-test.py index 888d348cb..7f2257531 100644 --- a/src/praisonai-agents/tests/knowledge-direct-simple-test.py +++ b/src/praisonai-agents/tests/knowledge-direct-simple-test.py @@ -26,7 +26,7 @@ config = { "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini", + "model": "gpt-5-nano", "temperature": 0, "max_tokens": 1000 } diff --git a/src/praisonai-agents/tests/llm-langchain-toolcall.py b/src/praisonai-agents/tests/llm-langchain-toolcall.py index 91408cdb8..154dc6a91 100644 --- a/src/praisonai-agents/tests/llm-langchain-toolcall.py +++ b/src/praisonai-agents/tests/llm-langchain-toolcall.py @@ -9,7 +9,7 @@ agent = Agent( goal="Search for information from multiple sources", backstory="I am an AI assistant that can search YouTube and Wikipedia.", tools=[YouTubeSearchTool, WikipediaAPIWrapper], - llm="openai/gpt-4o-mini" + llm="openai/gpt-5-nano" ) # Create tasks to demonstrate both tools diff --git a/src/praisonai-agents/tests/llm-tool-call.py b/src/praisonai-agents/tests/llm-tool-call.py index e56c63b83..8b0104928 100644 --- a/src/praisonai-agents/tests/llm-tool-call.py +++ b/src/praisonai-agents/tests/llm-tool-call.py @@ -4,7 +4,7 @@ from praisonaiagents.tools import wiki_search, wiki_summary, wiki_page, wiki_ran agent1 = Agent( instructions="You are a Wikipedia Agent", tools=[wiki_search, wiki_summary, wiki_page, wiki_random, wiki_language], - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", verbose=10 ) agent1.start("history of AI in 1 line") @@ -12,7 +12,7 @@ agent1.start("history of AI in 1 line") agent2 = Agent( instructions="You are a Wikipedia Agent", tools=[wiki_search, wiki_summary, wiki_page, wiki_random, wiki_language], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=10 ) agent2.start("history of AI in 1 line") \ No newline at end of file diff --git a/src/praisonai-agents/tests/mcp-agents-detailed.py b/src/praisonai-agents/tests/mcp-agents-detailed.py index 6317c26e9..47d0fdc5c 100644 --- a/src/praisonai-agents/tests/mcp-agents-detailed.py +++ b/src/praisonai-agents/tests/mcp-agents-detailed.py @@ -3,7 +3,7 @@ from praisonaiagents import Agent, MCP agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP( command="/Users/praison/miniconda3/envs/mcp/bin/python", args=["/Users/praison/stockprice/app.py"] diff --git a/src/praisonai-agents/tests/mcp-agents.py b/src/praisonai-agents/tests/mcp-agents.py index b3f389a74..8f38ef4cf 100644 --- a/src/praisonai-agents/tests/mcp-agents.py +++ b/src/praisonai-agents/tests/mcp-agents.py @@ -3,7 +3,7 @@ from praisonaiagents import Agent, MCP agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py") ) diff --git a/src/praisonai-agents/tests/mcp-basic.py b/src/praisonai-agents/tests/mcp-basic.py index f8b365140..0d120367f 100644 --- a/src/praisonai-agents/tests/mcp-basic.py +++ b/src/praisonai-agents/tests/mcp-basic.py @@ -53,7 +53,7 @@ def stock_price_tool(symbol: str) -> str: # Create agent with the stock price tool agent = Agent( instructions="You are a helpful assistant that can check stock prices. When asked about stock prices, use the stock_price_tool.", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[stock_price_tool] ) diff --git a/src/praisonai-agents/tests/mcp-http-stream-example.py b/src/praisonai-agents/tests/mcp-http-stream-example.py index 129e36436..8c9e583be 100644 --- a/src/praisonai-agents/tests/mcp-http-stream-example.py +++ b/src/praisonai-agents/tests/mcp-http-stream-example.py @@ -60,7 +60,7 @@ try: name="Weather Assistant", instructions="You are a helpful weather assistant.", tools=MCP("http://localhost:8080"), # HTTP Stream transport - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print("Agent created successfully with HTTP Stream tools!") diff --git a/src/praisonai-agents/tests/mcp-mini-airbnb.py b/src/praisonai-agents/tests/mcp-mini-airbnb.py index dabe2d4c7..1304b9db3 100644 --- a/src/praisonai-agents/tests/mcp-mini-airbnb.py +++ b/src/praisonai-agents/tests/mcp-mini-airbnb.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) diff --git a/src/praisonai-agents/tests/mcp-mini-bravesearch.py b/src/praisonai-agents/tests/mcp-mini-bravesearch.py index 8a47dab94..ace206dd2 100644 --- a/src/praisonai-agents/tests/mcp-mini-bravesearch.py +++ b/src/praisonai-agents/tests/mcp-mini-bravesearch.py @@ -8,7 +8,7 @@ brave_api_key = os.getenv("BRAVE_API_KEY") search_agent = Agent( instructions="""You are a helpful assistant that can search the web for information. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @modelcontextprotocol/server-brave-search", env={"BRAVE_API_KEY": brave_api_key}) ) diff --git a/src/praisonai-agents/tests/mcp-multiagents.py b/src/praisonai-agents/tests/mcp-multiagents.py index fced6f263..40ed75ed1 100644 --- a/src/praisonai-agents/tests/mcp-multiagents.py +++ b/src/praisonai-agents/tests/mcp-multiagents.py @@ -3,7 +3,7 @@ import os stock_agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP( command="/Users/praison/miniconda3/envs/mcp/bin/python", args=["/Users/praison/stockprice/app.py"] @@ -15,7 +15,7 @@ brave_api_key = os.getenv("BRAVE_API_KEY") search_agent = Agent( instructions="""You are a helpful assistant that can search the web for information. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP(f'npx -y @smithery/cli@latest install @smithery-ai/brave-search --client claude --config "{{\\\"braveApiKey\\\":\\\"{brave_api_key}\\\"}}"') ) diff --git a/src/praisonai-agents/tests/mcp-npx-airbnb-agent-direct.py b/src/praisonai-agents/tests/mcp-npx-airbnb-agent-direct.py index 12f10a830..045a65f59 100644 --- a/src/praisonai-agents/tests/mcp-npx-airbnb-agent-direct.py +++ b/src/praisonai-agents/tests/mcp-npx-airbnb-agent-direct.py @@ -4,7 +4,7 @@ import npx_mcp_wrapper_main search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=npx_mcp_wrapper_main.MCP( command="npx", args=[ diff --git a/src/praisonai-agents/tests/mcp-npx-airbnb-stockprice.py b/src/praisonai-agents/tests/mcp-npx-airbnb-stockprice.py index 5d232585b..90146adfa 100644 --- a/src/praisonai-agents/tests/mcp-npx-airbnb-stockprice.py +++ b/src/praisonai-agents/tests/mcp-npx-airbnb-stockprice.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP( command="npx", args=[ @@ -18,7 +18,7 @@ search_agent.start("I want to book an apartment in Paris for 2 nights. 03/28 - 0 agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py") ) diff --git a/src/praisonai-agents/tests/mcp-npx-airbnb.py b/src/praisonai-agents/tests/mcp-npx-airbnb.py index 3b497d197..f57ab9040 100644 --- a/src/praisonai-agents/tests/mcp-npx-airbnb.py +++ b/src/praisonai-agents/tests/mcp-npx-airbnb.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP( command="npx", args=[ diff --git a/src/praisonai-agents/tests/mcp-npx-brave.py b/src/praisonai-agents/tests/mcp-npx-brave.py index f42a4947c..2a2ecdd9e 100644 --- a/src/praisonai-agents/tests/mcp-npx-brave.py +++ b/src/praisonai-agents/tests/mcp-npx-brave.py @@ -7,7 +7,7 @@ brave_api_key = os.getenv("BRAVE_API_KEY") search_agent = Agent( instructions="""You are a helpful assistant that can search the web for information. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP( command="npx", args=["-y", "@modelcontextprotocol/server-brave-search"], diff --git a/src/praisonai-agents/tests/mcp-npx-mini-airbnb-stockprice.py b/src/praisonai-agents/tests/mcp-npx-mini-airbnb-stockprice.py index f84321688..83408bec4 100644 --- a/src/praisonai-agents/tests/mcp-npx-mini-airbnb-stockprice.py +++ b/src/praisonai-agents/tests/mcp-npx-mini-airbnb-stockprice.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) @@ -11,7 +11,7 @@ search_agent.start("I want to book an apartment in Paris for 2 nights. 03/28 - 0 agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py") ) diff --git a/src/praisonai-agents/tests/mcp-python-stockprice.py b/src/praisonai-agents/tests/mcp-python-stockprice.py index a8f57e413..f09ce7046 100644 --- a/src/praisonai-agents/tests/mcp-python-stockprice.py +++ b/src/praisonai-agents/tests/mcp-python-stockprice.py @@ -3,7 +3,7 @@ from praisonaiagents import Agent, MCP agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py") ) diff --git a/src/praisonai-agents/tests/mcp-sse-direct-agent.py b/src/praisonai-agents/tests/mcp-sse-direct-agent.py index 061f694ba..90ccb97c1 100644 --- a/src/praisonai-agents/tests/mcp-sse-direct-agent.py +++ b/src/praisonai-agents/tests/mcp-sse-direct-agent.py @@ -198,7 +198,7 @@ def main(): # Create an agent with the tools assistant_agent = Agent( instructions=system_prompt, - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=client.tools, verbose=True ) diff --git a/src/praisonai-agents/tests/mcp-sse-weather.py b/src/praisonai-agents/tests/mcp-sse-weather.py index bcd48b77b..7d76c64d7 100644 --- a/src/praisonai-agents/tests/mcp-sse-weather.py +++ b/src/praisonai-agents/tests/mcp-sse-weather.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("http://localhost:8080/sse") ) diff --git a/src/praisonai-agents/tests/memory-add-search.py b/src/praisonai-agents/tests/memory-add-search.py index e5212c2f6..5e9815b26 100644 --- a/src/praisonai-agents/tests/memory-add-search.py +++ b/src/praisonai-agents/tests/memory-add-search.py @@ -39,7 +39,7 @@ class MemoryManager: "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini", + "model": "gpt-5-nano", "temperature": 0, "max_tokens": 1000 } diff --git a/src/praisonai-agents/tests/memory-search-advanced.py b/src/praisonai-agents/tests/memory-search-advanced.py index 9cd73e804..b77d7cfb2 100644 --- a/src/praisonai-agents/tests/memory-search-advanced.py +++ b/src/praisonai-agents/tests/memory-search-advanced.py @@ -36,7 +36,7 @@ class MemorySearcher: "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini", + "model": "gpt-5-nano", "temperature": 0, "max_tokens": 1000 } diff --git a/src/praisonai-agents/tests/memory-search-simple.py b/src/praisonai-agents/tests/memory-search-simple.py index 5dd38fc91..35dd4e892 100644 --- a/src/praisonai-agents/tests/memory-search-simple.py +++ b/src/praisonai-agents/tests/memory-search-simple.py @@ -21,7 +21,7 @@ config = { "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini" + "model": "gpt-5-nano" } } } diff --git a/src/praisonai-agents/tests/memory_example.py b/src/praisonai-agents/tests/memory_example.py index 5baf1263c..be4d245a6 100644 --- a/src/praisonai-agents/tests/memory_example.py +++ b/src/praisonai-agents/tests/memory_example.py @@ -33,14 +33,14 @@ def main(): role="Research Analyst", goal="Research and document key information about topics", backstory="Expert at analyzing and storing information in memory", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) retriever = Agent( role="Information Retriever", goal="Retrieve and verify stored information from memory", backstory="Specialist in searching and validating information from memory", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Task 1: Process the facts diff --git a/src/praisonai-agents/tests/memory_simple.py b/src/praisonai-agents/tests/memory_simple.py index 52c0bb70e..b0bed4d52 100644 --- a/src/praisonai-agents/tests/memory_simple.py +++ b/src/praisonai-agents/tests/memory_simple.py @@ -9,19 +9,19 @@ fact3 = "The year the first Josinga was released is 2007" fact_agent = Agent( name="Fact Agent", instructions="You are a fact agent, you store and retrieve facts in memory", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) research_agent = Agent( name="Research Agent", instructions="You are a research analyst, you research and document key points about topics", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) blog_agent = Agent( name="Blog Agent", instructions="You are a blog writer, you write a blog post about the research", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) fact_task = Task( diff --git a/src/praisonai-agents/tests/multi-agent-api.py b/src/praisonai-agents/tests/multi-agent-api.py index a41682bdb..05540bac8 100644 --- a/src/praisonai-agents/tests/multi-agent-api.py +++ b/src/praisonai-agents/tests/multi-agent-api.py @@ -2,17 +2,17 @@ from praisonaiagents import Agent weather_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) stock_agent = Agent( instructions="""You are a stock market agent that can provide information about stock prices and market trends.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) travel_agent = Agent( instructions="""You are a travel agent that can provide recommendations for destinations, hotels, and activities.""", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) weather_agent.launch(path="/weather", port=3030) diff --git a/src/praisonai-agents/tests/multimodal.py b/src/praisonai-agents/tests/multimodal.py index 0362abfd6..42b44a92d 100644 --- a/src/praisonai-agents/tests/multimodal.py +++ b/src/praisonai-agents/tests/multimodal.py @@ -7,7 +7,7 @@ vision_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/src/praisonai-agents/tests/pdf_agents_example.py b/src/praisonai-agents/tests/pdf_agents_example.py index 326c775bc..9f09a81fe 100644 --- a/src/praisonai-agents/tests/pdf_agents_example.py +++ b/src/praisonai-agents/tests/pdf_agents_example.py @@ -7,7 +7,7 @@ pdf_agent = Agent( goal="Analyze PDF documents to extract meaningful information", backstory="""You are an expert in PDF document analysis and text extraction. You excel at understanding document structure, extracting content, and analyzing textual information.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/src/praisonai-agents/tests/repetitive-agents.py b/src/praisonai-agents/tests/repetitive-agents.py index f3f3fd73d..ce2ec676a 100644 --- a/src/praisonai-agents/tests/repetitive-agents.py +++ b/src/praisonai-agents/tests/repetitive-agents.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, Task, PraisonAIAgents agent = Agent( instructions="You are a loop agent that creating a loop of tasks.", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) task = Task( diff --git a/src/praisonai-agents/tests/repetitive-manual-agents.py b/src/praisonai-agents/tests/repetitive-manual-agents.py index 12f036a08..9274f9776 100644 --- a/src/praisonai-agents/tests/repetitive-manual-agents.py +++ b/src/praisonai-agents/tests/repetitive-manual-agents.py @@ -82,7 +82,7 @@ identify_agent = Agent( role="Pending Task Identifier", goal="Identify the next pending task", tools=[get_next_task], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create the repetitive agent @@ -90,7 +90,7 @@ repetitive_agent = Agent( name="TaskProcessor", role="Task Processing Specialist", goal="Complete the task response", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) update_status_agent = Agent( @@ -98,7 +98,7 @@ update_status_agent = Agent( role="Status Updater", goal="Update the status of the task in CSV", tools=[update_task_status], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Define the repetitive task diff --git a/src/praisonai-agents/tests/simple-api-mcp.py b/src/praisonai-agents/tests/simple-api-mcp.py index 857361d4a..37eeb747e 100644 --- a/src/praisonai-agents/tests/simple-api-mcp.py +++ b/src/praisonai-agents/tests/simple-api-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="openai/gpt-4o-mini", + llm="openai/gpt-5-nano", tools=MCP("http://localhost:8080/sse") ) search_agent.launch(path="/weather", port=3030) \ No newline at end of file diff --git a/src/praisonai-agents/tests/simple-api.py b/src/praisonai-agents/tests/simple-api.py index 47b56b36f..8a2bd04b4 100644 --- a/src/praisonai-agents/tests/simple-api.py +++ b/src/praisonai-agents/tests/simple-api.py @@ -1,4 +1,4 @@ from praisonaiagents import Agent -agent = Agent(instructions="""You are a helpful assistant.""", llm="gpt-4o-mini") +agent = Agent(instructions="""You are a helpful assistant.""", llm="gpt-5-nano") agent.launch(path="/ask", port=3030) \ No newline at end of file diff --git a/src/praisonai-agents/tests/state_based_workflow_example.py b/src/praisonai-agents/tests/state_based_workflow_example.py index 20b2384bb..e4a09db9c 100644 --- a/src/praisonai-agents/tests/state_based_workflow_example.py +++ b/src/praisonai-agents/tests/state_based_workflow_example.py @@ -178,7 +178,7 @@ data_analyst = Agent( goal="Analyze data quality and set appropriate state", backstory="Expert in data quality assessment", tools=[analyze_data_quality, check_state_conditions], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) data_engineer = Agent( @@ -187,7 +187,7 @@ data_engineer = Agent( goal="Clean data based on state and process in batches", backstory="Specialist in data transformation and batch processing", tools=[clean_data_based_on_state, process_batch_with_state], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) report_generator = Agent( @@ -196,7 +196,7 @@ report_generator = Agent( goal="Generate comprehensive reports from workflow state", backstory="Expert in creating detailed analytical reports", tools=[generate_report_from_state], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks with state-based conditions diff --git a/src/praisonai-agents/tests/state_management_example.py b/src/praisonai-agents/tests/state_management_example.py index 6ca198913..c98309777 100644 --- a/src/praisonai-agents/tests/state_management_example.py +++ b/src/praisonai-agents/tests/state_management_example.py @@ -140,7 +140,7 @@ project_manager = Agent( goal="Initialize and manage project state effectively", backstory="Experienced project manager who tracks all project details", tools=[initialize_project_state, add_feature_to_project, check_project_status], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) developer = Agent( @@ -149,7 +149,7 @@ developer = Agent( goal="Implement features based on project state", backstory="Senior developer who implements features systematically", tools=[implement_next_feature, check_project_status], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) analyst = Agent( @@ -158,7 +158,7 @@ analyst = Agent( goal="Analyze project state and provide insights", backstory="Data analyst who provides comprehensive project reports", tools=[check_project_status, retrieve_session_history], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks that utilize state diff --git a/src/praisonai-agents/tests/state_with_memory_example.py b/src/praisonai-agents/tests/state_with_memory_example.py index e9b34ade3..00c0c940c 100644 --- a/src/praisonai-agents/tests/state_with_memory_example.py +++ b/src/praisonai-agents/tests/state_with_memory_example.py @@ -247,7 +247,7 @@ conversation_manager = Agent( backstory="Expert in conversation management and state tracking", tools=[initialize_conversation_state, add_conversation_turn, summarize_and_save_state], memory=shared_memory, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) memory_analyst = Agent( @@ -257,7 +257,7 @@ memory_analyst = Agent( backstory="Specialist in pattern recognition and memory analysis", tools=[search_conversation_memory, analyze_conversation_patterns, retrieve_user_history], memory=shared_memory, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks @@ -371,7 +371,7 @@ test_agent = Agent( backstory="Memory system tester", tools=[search_conversation_memory], memory=shared_memory, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) test_task = Task( diff --git a/src/praisonai-agents/tests/structured_agents_example.py b/src/praisonai-agents/tests/structured_agents_example.py index 9aa90d363..957911626 100644 --- a/src/praisonai-agents/tests/structured_agents_example.py +++ b/src/praisonai-agents/tests/structured_agents_example.py @@ -13,7 +13,7 @@ researcher = Agent( goal="Analyze and structure information about AI developments", backstory="Expert analyst specializing in AI technology trends", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[Tools.internet_search], self_reflect=False ) @@ -25,7 +25,7 @@ analyst = Agent( goal="Structure and analyze research findings", backstory="Senior data analyst with expertise in pattern recognition", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/src/praisonai-agents/tests/structured_response_example.py b/src/praisonai-agents/tests/structured_response_example.py index 115bc4d05..9dedd9277 100644 --- a/src/praisonai-agents/tests/structured_response_example.py +++ b/src/praisonai-agents/tests/structured_response_example.py @@ -35,7 +35,7 @@ def get_structured_analysis(query: str, verbose: bool = True) -> AnalysisReport: verbose=verbose, self_reflect=True, # Enable self-reflection for better quality markdown=True, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create the analysis prompt diff --git a/src/praisonai-agents/tests/telemetry_example.py b/src/praisonai-agents/tests/telemetry_example.py index 0e07629f3..00abb071a 100644 --- a/src/praisonai-agents/tests/telemetry_example.py +++ b/src/praisonai-agents/tests/telemetry_example.py @@ -44,7 +44,7 @@ def basic_telemetry_example(): goal="Find accurate information about topics", backstory="You are an expert researcher with attention to detail", tools=[DuckDuckGoSearchTool()], - llm="gpt-4o-mini" + llm="gpt-5-nano" ) writer = Agent( @@ -52,7 +52,7 @@ def basic_telemetry_example(): role="Content creator", goal="Create engaging content based on research", backstory="You are a skilled writer who creates clear, engaging content", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Create tasks @@ -115,7 +115,7 @@ def manual_telemetry_example(): role="General assistant", goal="Help with various tasks", backstory="You are a helpful AI assistant", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Manual telemetry - trace custom operations @@ -174,7 +174,7 @@ def advanced_telemetry_example(): role="Data analyst", goal="Analyze data and provide insights", backstory="You are an experienced data analyst", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) result = agent.chat("Analyze the trend: [10, 15, 13, 18, 22, 20, 25]") @@ -187,7 +187,7 @@ def advanced_telemetry_example(): role="Data analyst", goal="Analyze data and provide insights", backstory="You are an experienced data analyst", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Use context manager for grouped operations @@ -199,7 +199,7 @@ def advanced_telemetry_example(): # Record custom metrics telemetry.record_metric("analysis.steps", 3) - telemetry.record_cost(0.001, model="gpt-4o-mini") # Track costs + telemetry.record_cost(0.001, model="gpt-5-nano") # Track costs print("\nAnalysis complete. Telemetry data exported to OTLP collector.") @@ -220,7 +220,7 @@ def telemetry_with_errors_example(): role="Test agent", goal="Test error handling", backstory="An agent for testing", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # This will be traced and errors will be recorded diff --git a/src/praisonai-agents/tests/test.py b/src/praisonai-agents/tests/test.py index b6ccf92b4..a74f15567 100644 --- a/src/praisonai-agents/tests/test.py +++ b/src/praisonai-agents/tests/test.py @@ -26,7 +26,7 @@ planner_agent = Agent( goal="Create detailed story outlines with chapter breakdowns", backstory="Expert storyteller skilled in narrative structure and plot development", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) @@ -37,7 +37,7 @@ writer_agent = Agent( goal="Write engaging and cohesive story chapters", backstory="Experienced writer skilled in bringing stories to life with vivid details and engaging narrative", verbose=True, - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/src/praisonai-agents/tests/test_context_agent.py b/src/praisonai-agents/tests/test_context_agent.py index e6e499943..d610f570c 100644 --- a/src/praisonai-agents/tests/test_context_agent.py +++ b/src/praisonai-agents/tests/test_context_agent.py @@ -56,12 +56,12 @@ def test_basic_instantiation(): name="Test Context Engineer", role="Test Role", goal="Test Goal", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) print("โœ… Successfully created ContextAgent with custom parameters") # Test factory function - factory_agent = create_context_agent(llm="gpt-4o-mini") + factory_agent = create_context_agent(llm="gpt-5-nano") print("โœ… Successfully created ContextAgent using factory function") return True, [context_agent, custom_agent, factory_agent] diff --git a/src/praisonai-agents/tests/test_fix_comprehensive.py b/src/praisonai-agents/tests/test_fix_comprehensive.py index f8d698846..42b1a78b4 100644 --- a/src/praisonai-agents/tests/test_fix_comprehensive.py +++ b/src/praisonai-agents/tests/test_fix_comprehensive.py @@ -57,7 +57,7 @@ print("=" * 60) agent_gpt4 = Agent( instructions="You are a helpful assistant. You can use the tools provided to you to help the user. When asked to multiply a stock price, first get the stock price, then multiply it.", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[get_stock_price, multiply], verbose=True ) diff --git a/src/praisonai-agents/tests/test_llm_self_reflection_direct.py b/src/praisonai-agents/tests/test_llm_self_reflection_direct.py index ab77f87b4..97edceee8 100644 --- a/src/praisonai-agents/tests/test_llm_self_reflection_direct.py +++ b/src/praisonai-agents/tests/test_llm_self_reflection_direct.py @@ -9,7 +9,7 @@ def test_llm_direct(): print("=== Testing LLM Direct with Self-Reflection and Tools ===") # Create LLM instance - llm = LLM(model="gpt-4o-mini") + llm = LLM(model="gpt-5-nano") # Test with self-reflection and tools try: diff --git a/src/praisonai-agents/tests/test_ollama_async_fix.py b/src/praisonai-agents/tests/test_ollama_async_fix.py index 2911532dd..d8a15a260 100644 --- a/src/praisonai-agents/tests/test_ollama_async_fix.py +++ b/src/praisonai-agents/tests/test_ollama_async_fix.py @@ -135,12 +135,12 @@ async def main(): # Test sync methods print("\n1. Testing SYNC methods:") - openai_sync_success = test_model_sync("openai/gpt-4o-mini") + openai_sync_success = test_model_sync("openai/gpt-5-nano") ollama_sync_success = test_model_sync("ollama/llama3.2") # Test async methods print("\n2. Testing ASYNC methods:") - openai_async_success = await test_model_async("openai/gpt-4o-mini") + openai_async_success = await test_model_async("openai/gpt-5-nano") ollama_async_success = await test_model_async("ollama/llama3.2") # Summary diff --git a/src/praisonai-agents/tests/test_ollama_fix.py b/src/praisonai-agents/tests/test_ollama_fix.py index d6f8064ff..a35339c69 100644 --- a/src/praisonai-agents/tests/test_ollama_fix.py +++ b/src/praisonai-agents/tests/test_ollama_fix.py @@ -82,7 +82,7 @@ if __name__ == "__main__": # Test with OpenAI first (as baseline) print("\n1. Testing with OpenAI (baseline):") - openai_success = test_model("openai/gpt-4o-mini") + openai_success = test_model("openai/gpt-5-nano") # Test with Ollama print("\n2. Testing with Ollama:") diff --git a/src/praisonai-agents/tests/test_ollama_sequential_fix.py b/src/praisonai-agents/tests/test_ollama_sequential_fix.py index 447310482..14c849cfe 100644 --- a/src/praisonai-agents/tests/test_ollama_sequential_fix.py +++ b/src/praisonai-agents/tests/test_ollama_sequential_fix.py @@ -103,7 +103,7 @@ def test_provider_detection(): print("โœ… Ollama prefix detection works") # Test non-Ollama provider - openai_llm = LLM(model="gpt-4o-mini") + openai_llm = LLM(model="gpt-5-nano") assert not openai_llm._is_ollama_provider(), "Should not detect OpenAI as Ollama" print("โœ… Non-Ollama provider detection works") diff --git a/src/praisonai-agents/tests/test_self_reflection_fix_simple.py b/src/praisonai-agents/tests/test_self_reflection_fix_simple.py index 6b84e4873..4377db954 100644 --- a/src/praisonai-agents/tests/test_self_reflection_fix_simple.py +++ b/src/praisonai-agents/tests/test_self_reflection_fix_simple.py @@ -14,7 +14,7 @@ def test_self_reflection_fix(): goal="Solve math problems accurately", backstory="You are a helpful math assistant", self_reflect=True, - llm="gpt-4o-mini", # Use a more widely available model + llm="gpt-5-nano", # Use a more widely available model verbose=True, tools=[calculator], min_reflect=1, diff --git a/src/praisonai-agents/tests/ui.py b/src/praisonai-agents/tests/ui.py index 43e62b953..48a4b1a31 100644 --- a/src/praisonai-agents/tests/ui.py +++ b/src/praisonai-agents/tests/ui.py @@ -4,7 +4,7 @@ import gradio as gr def search_airbnb(query): agent = Agent( instructions="You help book apartments on Airbnb.", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) result = agent.start(query) diff --git a/src/praisonai-agents/tests/vector-db-agents.py b/src/praisonai-agents/tests/vector-db-agents.py index 048610bce..e8111cf99 100644 --- a/src/praisonai-agents/tests/vector-db-agents.py +++ b/src/praisonai-agents/tests/vector-db-agents.py @@ -16,7 +16,7 @@ rag_agent = Agent( name="RAG Agent", role="Information Specialist", goal="Retrieve knowledge efficiently", - llm="gpt-4o-mini" + llm="gpt-5-nano" ) # Define a task for the agent diff --git a/src/praisonai-agents/tests/video-agent.py b/src/praisonai-agents/tests/video-agent.py index a35b0c09d..f0a9894c6 100644 --- a/src/praisonai-agents/tests/video-agent.py +++ b/src/praisonai-agents/tests/video-agent.py @@ -7,7 +7,7 @@ video_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-4o-mini", + llm="gpt-5-nano", self_reflect=False ) diff --git a/src/praisonai-agents/tests/wikipedia-agent.py b/src/praisonai-agents/tests/wikipedia-agent.py index 620e34d46..debe7faa0 100644 --- a/src/praisonai-agents/tests/wikipedia-agent.py +++ b/src/praisonai-agents/tests/wikipedia-agent.py @@ -7,7 +7,7 @@ agent = Agent( self_reflect=True, min_reflect=3, max_reflect=5, - llm="gpt-4o-mini" + llm="gpt-5-nano" ) agent.start( "What is the history of AI?" diff --git a/src/praisonai-agents/tests/workflow-test-agents.py b/src/praisonai-agents/tests/workflow-test-agents.py index 7f8ea7d1d..1060e735b 100644 --- a/src/praisonai-agents/tests/workflow-test-agents.py +++ b/src/praisonai-agents/tests/workflow-test-agents.py @@ -36,7 +36,7 @@ qa_generator = Agent( role="Question Creator", goal="Create challenging math and logic questions", backstory="Expert in educational content creation", - llm="gpt-4o-mini", + llm="gpt-5-nano", tools=[write_csv, count_questions] ) @@ -46,7 +46,7 @@ cot_generator = Agent( goal="Generate and manage chain of thought solutions for Q&A pairs", backstory="Expert in breaking down problems and generating detailed solution steps", tools=[print_data], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=False ) @@ -56,7 +56,7 @@ upload_to_huggingface = Agent( goal="Upload the generated chain of thought solutions to a Huggingface dataset", backstory="Expert in saving data to Huggingface", tools=[upload_to_huggingface], - llm="gpt-4o-mini", + llm="gpt-5-nano", verbose=False ) diff --git a/src/praisonai-ts/.cursorrules b/src/praisonai-ts/.cursorrules index 83d863b8c..6c7ae8294 100644 --- a/src/praisonai-ts/.cursorrules +++ b/src/praisonai-ts/.cursorrules @@ -86,7 +86,7 @@ Below is a **high-level table** describing the main files/folders, the classes o async function callLLM(prompt: string) { const { text } = await generateText({ - model: "gpt-4o-mini", + model: "gpt-5-nano", prompt, // other config like temperature, maxTokens, etc. }); diff --git a/src/praisonai-ts/.windsurfrules b/src/praisonai-ts/.windsurfrules index 83d863b8c..6c7ae8294 100644 --- a/src/praisonai-ts/.windsurfrules +++ b/src/praisonai-ts/.windsurfrules @@ -86,7 +86,7 @@ Below is a **high-level table** describing the main files/folders, the classes o async function callLLM(prompt: string) { const { text } = await generateText({ - model: "gpt-4o-mini", + model: "gpt-5-nano", prompt, // other config like temperature, maxTokens, etc. }); diff --git a/src/praisonai-ts/src/agent/simple.ts b/src/praisonai-ts/src/agent/simple.ts index 6a11fff69..666093095 100644 --- a/src/praisonai-ts/src/agent/simple.ts +++ b/src/praisonai-ts/src/agent/simple.ts @@ -31,7 +31,7 @@ export class Agent { this.name = config.name || `Agent_${Math.random().toString(36).substr(2, 9)}`; this.verbose = config.verbose ?? process.env.PRAISON_VERBOSE !== 'false'; this.pretty = config.pretty ?? process.env.PRAISON_PRETTY === 'true'; - this.llm = config.llm || 'gpt-4o-mini'; + this.llm = config.llm || 'gpt-5-nano'; this.markdown = config.markdown ?? true; this.stream = config.stream ?? true; this.tools = config.tools; diff --git a/src/praisonai-ts/src/agent/types.ts b/src/praisonai-ts/src/agent/types.ts index e11ca470e..5fd952acb 100644 --- a/src/praisonai-ts/src/agent/types.ts +++ b/src/praisonai-ts/src/agent/types.ts @@ -54,7 +54,7 @@ export class Agent { this.goal = config.goal; this.backstory = config.backstory; this.verbose = config.verbose || false; - this.llm = new OpenAIService(config.llm || 'gpt-4o-mini'); + this.llm = new OpenAIService(config.llm || 'gpt-5-nano'); this.markdown = config.markdown || true; this.result = ''; Logger.debug(`Agent created: ${this.name}`, { config }); @@ -147,7 +147,7 @@ export class PraisonAIAgents { this.tasks = config.tasks; this.verbose = config.verbose || false; this.process = config.process || 'sequential'; - this.manager_llm = config.manager_llm || 'gpt-4o-mini'; + this.manager_llm = config.manager_llm || 'gpt-5-nano'; Logger.debug('PraisonAIAgents initialized', { config }); } diff --git a/src/praisonai-ts/src/llm/openai.ts b/src/praisonai-ts/src/llm/openai.ts index 6c2cef98e..143df4c9b 100644 --- a/src/praisonai-ts/src/llm/openai.ts +++ b/src/praisonai-ts/src/llm/openai.ts @@ -113,7 +113,7 @@ export class OpenAIService { private model: string; private client: OpenAI | null = null; - constructor(model: string = 'gpt-4o-mini') { + constructor(model: string = 'gpt-5-nano') { this.model = model; Logger.debug(`OpenAIService initialized with model: ${model}`); } diff --git a/src/praisonai/praisonai/agents_generator.py b/src/praisonai/praisonai/agents_generator.py index 37ea01ccf..8b23726fb 100644 --- a/src/praisonai/praisonai/agents_generator.py +++ b/src/praisonai/praisonai/agents_generator.py @@ -616,7 +616,7 @@ class AgentsGenerator: llm_model = details.get('llm') if llm_model: llm = PraisonAIModel( - model=llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o-mini", + model=llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-5-nano", base_url=self.config_list[0].get('base_url') if self.config_list else None, api_key=self.config_list[0].get('api_key') if self.config_list else None ).get_model() @@ -630,7 +630,7 @@ class AgentsGenerator: function_calling_llm_model = details.get('function_calling_llm') if function_calling_llm_model: function_calling_llm = PraisonAIModel( - model=function_calling_llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o-mini", + model=function_calling_llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-5-nano", base_url=self.config_list[0].get('base_url') if self.config_list else None, api_key=self.config_list[0].get('api_key') if self.config_list else None ).get_model() @@ -746,8 +746,8 @@ class AgentsGenerator: backstory=backstory_filled, tools=tools_list, # Pass the entire tools list to the agent allow_delegation=details.get('allow_delegation', False), - llm=details.get('llm', {}).get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o-mini", - function_calling_llm=details.get('function_calling_llm', {}).get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o-mini", + llm=details.get('llm', {}).get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-5-nano", + function_calling_llm=details.get('function_calling_llm', {}).get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-5-nano", max_iter=details.get('max_iter', 15), max_rpm=details.get('max_rpm'), max_execution_time=details.get('max_execution_time'), @@ -756,7 +756,7 @@ class AgentsGenerator: system_template=details.get('system_template'), prompt_template=details.get('prompt_template'), response_template=details.get('response_template'), - reflect_llm=details.get('reflect_llm', {}).get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o-mini", + reflect_llm=details.get('reflect_llm', {}).get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-5-nano", min_reflect=details.get('min_reflect', 1), max_reflect=details.get('max_reflect', 3), ) @@ -812,7 +812,7 @@ class AgentsGenerator: tasks=tasks, verbose=True, process="hierarchical", - manager_llm=config.get('manager_llm') or os.environ.get("MODEL_NAME") or "openai/gpt-4o-mini", + manager_llm=config.get('manager_llm') or os.environ.get("MODEL_NAME") or "openai/gpt-5-nano", memory=memory ) else: diff --git a/src/praisonai/praisonai/auto.py b/src/praisonai/praisonai/auto.py index b0264b064..050313631 100644 --- a/src/praisonai/praisonai/auto.py +++ b/src/praisonai/praisonai/auto.py @@ -108,7 +108,7 @@ Tools are not available for {framework}. To use tools, install: # Support multiple environment variable patterns for better compatibility # Priority order: MODEL_NAME > OPENAI_MODEL_NAME for model selection - model_name = os.environ.get("MODEL_NAME") or os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini") + model_name = os.environ.get("MODEL_NAME") or os.environ.get("OPENAI_MODEL_NAME", "gpt-5-nano") # Priority order for base_url: OPENAI_BASE_URL > OPENAI_API_BASE > OLLAMA_API_BASE # OPENAI_BASE_URL is the standard OpenAI SDK environment variable diff --git a/src/praisonai/praisonai/chainlit_ui.py b/src/praisonai/praisonai/chainlit_ui.py index 8e7ce6294..9e53ac730 100644 --- a/src/praisonai/praisonai/chainlit_ui.py +++ b/src/praisonai/praisonai/chainlit_ui.py @@ -16,7 +16,7 @@ logging.basicConfig(level=os.environ.get('LOGLEVEL', 'INFO').upper(), format='%( framework = "crewai" config_list = [ { - 'model': os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini"), + 'model': os.environ.get("OPENAI_MODEL_NAME", "gpt-5-nano"), 'base_url': os.environ.get("OPENAI_API_BASE", "https://api.openai.com/v1"), 'api_key': os.environ.get("OPENAI_API_KEY", "") } diff --git a/src/praisonai/praisonai/cli.py b/src/praisonai/praisonai/cli.py index b9619a013..9cea0aa11 100644 --- a/src/praisonai/praisonai/cli.py +++ b/src/praisonai/praisonai/cli.py @@ -124,7 +124,7 @@ class PraisonAI: # Create config_list with AutoGen compatibility # Support multiple environment variable patterns for better compatibility # Priority order: MODEL_NAME > OPENAI_MODEL_NAME for model selection - model_name = os.environ.get("MODEL_NAME") or os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini") + model_name = os.environ.get("MODEL_NAME") or os.environ.get("OPENAI_MODEL_NAME", "gpt-5-nano") # Priority order for base_url: OPENAI_BASE_URL > OPENAI_API_BASE > OLLAMA_API_BASE # OPENAI_BASE_URL is the standard OpenAI SDK environment variable @@ -910,7 +910,7 @@ class PraisonAI: # Use the same model configuration pattern as other CLI commands # Priority order: MODEL_NAME > OPENAI_MODEL_NAME for model selection - model_name = os.environ.get("MODEL_NAME") or os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini") + model_name = os.environ.get("MODEL_NAME") or os.environ.get("OPENAI_MODEL_NAME", "gpt-5-nano") # Create ContextAgent with user's LLM configuration agent = ContextAgent(llm=model_name, auto_analyze=auto_analyze) diff --git a/src/praisonai/praisonai/deploy.py b/src/praisonai/praisonai/deploy.py index da5dabd8d..e46eef845 100644 --- a/src/praisonai/praisonai/deploy.py +++ b/src/praisonai/praisonai/deploy.py @@ -91,7 +91,7 @@ class CloudDeployer: def set_environment_variables(self): """Sets environment variables with fallback to .env values or defaults.""" - os.environ["OPENAI_MODEL_NAME"] = os.getenv("OPENAI_MODEL_NAME", "gpt-4o-mini") + os.environ["OPENAI_MODEL_NAME"] = os.getenv("OPENAI_MODEL_NAME", "gpt-5-nano") os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY", "Enter your API key") os.environ["OPENAI_API_BASE"] = os.getenv("OPENAI_API_BASE", "https://api.openai.com/v1") @@ -110,7 +110,7 @@ class CloudDeployer: This method sets environment variables for the application. It uses the `os.environ` dictionary to set the following environment variables: - - `OPENAI_MODEL_NAME`: The name of the OpenAI model to use. If not specified in the .env file, it defaults to "gpt-4o-mini". + - `OPENAI_MODEL_NAME`: The name of the OpenAI model to use. If not specified in the .env file, it defaults to "gpt-5-nano". - `OPENAI_API_KEY`: The API key for accessing the OpenAI API. If not specified in the .env file, it defaults to "Enter your API key". - `OPENAI_API_BASE`: The base URL for the OpenAI API. If not specified in the .env file, it defaults to "https://api.openai.com/v1". """ diff --git a/src/praisonai/praisonai/inc/models.py b/src/praisonai/praisonai/inc/models.py index 0c091d9db..82d5eda46 100644 --- a/src/praisonai/praisonai/inc/models.py +++ b/src/praisonai/praisonai/inc/models.py @@ -44,7 +44,7 @@ class PraisonAIModel: base_url (str, optional): The base URL for the OpenAI API. Defaults to None. api_key (str, optional): The explicit API key to use. Takes precedence over environment variables. Defaults to None. """ - self.model = model or os.getenv("OPENAI_MODEL_NAME", "gpt-4o-mini") + self.model = model or os.getenv("OPENAI_MODEL_NAME", "gpt-5-nano") if self.model.startswith("openai/"): self.api_key_var = "OPENAI_API_KEY" self.base_url = base_url or "https://api.openai.com/v1" diff --git a/src/praisonai/praisonai/test.py b/src/praisonai/praisonai/test.py index 68a89fac9..c49da4f13 100644 --- a/src/praisonai/praisonai/test.py +++ b/src/praisonai/praisonai/test.py @@ -7,7 +7,7 @@ load_dotenv() import autogen config_list = [ { - 'model': os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini"), + 'model': os.environ.get("OPENAI_MODEL_NAME", "gpt-5-nano"), 'base_url': os.environ.get("OPENAI_API_BASE", "https://api.openai.com/v1"), 'api_key': os.environ.get("OPENAI_API_KEY") } diff --git a/src/praisonai/praisonai/ui/agents.py b/src/praisonai/praisonai/ui/agents.py index 005686098..14c2fbb8b 100644 --- a/src/praisonai/praisonai/ui/agents.py +++ b/src/praisonai/praisonai/ui/agents.py @@ -10,7 +10,7 @@ from praisonaiagents import Agent, Task, PraisonAIAgents, register_display_callb framework = "praisonai" config_list = [ { - 'model': os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini"), + 'model': os.environ.get("OPENAI_MODEL_NAME", "gpt-5-nano"), 'base_url': os.environ.get("OPENAI_API_BASE", "https://api.openai.com/v1"), 'api_key': os.environ.get("OPENAI_API_KEY", "") } @@ -641,7 +641,7 @@ async def set_profiles(current_user: cl.User): @cl.on_chat_start async def start_chat(): try: - model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-4o-mini") + model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-5-nano") cl.user_session.set("model_name", model_name) logger.debug(f"Model name: {model_name}") diff --git a/src/praisonai/praisonai/ui/chat.py b/src/praisonai/praisonai/ui/chat.py index ee732844b..be20cdbbf 100644 --- a/src/praisonai/praisonai/ui/chat.py +++ b/src/praisonai/praisonai/ui/chat.py @@ -225,7 +225,7 @@ async def send_count(): @cl.on_chat_start async def start(): - model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-4o-mini") + model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-5-nano") cl.user_session.set("model_name", model_name) logger.debug(f"Model name: {model_name}") settings = cl.ChatSettings( @@ -233,7 +233,7 @@ async def start(): TextInput( id="model_name", label="Enter the Model Name", - placeholder="e.g., gpt-4o-mini", + placeholder="e.g., gpt-5-nano", initial=model_name ) ] @@ -266,7 +266,7 @@ async def setup_agent(settings): @cl.on_message async def main(message: cl.Message): - model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-4o-mini") + model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-5-nano") message_history = cl.user_session.get("message_history", []) now = datetime.now().strftime("%Y-%m-%d %H:%M:%S") @@ -452,14 +452,14 @@ User Question: {message.content} @cl.on_chat_resume async def on_chat_resume(thread: ThreadDict): logger.info(f"Resuming chat: {thread['id']}") - model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-4o-mini") + model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-5-nano") logger.debug(f"Model name: {model_name}") settings = cl.ChatSettings( [ TextInput( id="model_name", label="Enter the Model Name", - placeholder="e.g., gpt-4o-mini", + placeholder="e.g., gpt-5-nano", initial=model_name ) ] diff --git a/src/praisonai/praisonai/ui/code.py b/src/praisonai/praisonai/ui/code.py index 5b8a42d03..affcc4779 100644 --- a/src/praisonai/praisonai/ui/code.py +++ b/src/praisonai/praisonai/ui/code.py @@ -232,7 +232,7 @@ async def start(): cl.user_session.set("model_name", model_name) else: # If no setting found, use default or environment variable - model_name = os.getenv("MODEL_NAME", "gpt-4o-mini") + model_name = os.getenv("MODEL_NAME", "gpt-5-nano") cl.user_session.set("model_name", model_name) logger.debug(f"Model name: {model_name}") @@ -246,7 +246,7 @@ async def start(): TextInput( id="model_name", label="Enter the Model Name", - placeholder="e.g., gpt-4o-mini", + placeholder="e.g., gpt-5-nano", initial=model_name ), Switch( @@ -361,7 +361,7 @@ tools = [{ @cl.on_message async def main(message: cl.Message): - model_name = load_setting("model_name") or os.getenv("MODEL_NAME") or "gpt-4o-mini" + model_name = load_setting("model_name") or os.getenv("MODEL_NAME") or "gpt-5-nano" claude_code_enabled = cl.user_session.get("claude_code_enabled", False) message_history = cl.user_session.get("message_history", []) repo_path_to_use = os.environ.get("PRAISONAI_CODE_REPO_PATH", ".") @@ -634,7 +634,7 @@ async def send_count(): @cl.on_chat_resume async def on_chat_resume(thread: ThreadDict): logger.info(f"Resuming chat: {thread['id']}") - model_name = load_setting("model_name") or os.getenv("MODEL_NAME") or "gpt-4o-mini" + model_name = load_setting("model_name") or os.getenv("MODEL_NAME") or "gpt-5-nano" # Load Claude Code setting (check CLI flag first, then database setting) claude_code_enabled = os.getenv("PRAISONAI_CLAUDECODE_ENABLED", "false").lower() == "true" if not claude_code_enabled: @@ -645,7 +645,7 @@ async def on_chat_resume(thread: ThreadDict): TextInput( id="model_name", label="Enter the Model Name", - placeholder="e.g., gpt-4o-mini", + placeholder="e.g., gpt-5-nano", initial=model_name ), Switch( diff --git a/src/praisonai/praisonai/ui/realtime.py b/src/praisonai/praisonai/ui/realtime.py index 502e2d675..dd51fef3f 100644 --- a/src/praisonai/praisonai/ui/realtime.py +++ b/src/praisonai/praisonai/ui/realtime.py @@ -229,7 +229,7 @@ except Exception as e: @cl.on_chat_start async def start(): initialize_db() - model_name = os.getenv("OPENAI_MODEL_NAME") or os.getenv("MODEL_NAME", "gpt-4o-mini-realtime-preview-2024-12-17") + model_name = os.getenv("OPENAI_MODEL_NAME") or os.getenv("MODEL_NAME", "gpt-5-nano-realtime-preview-2024-12-17") cl.user_session.set("model_name", model_name) cl.user_session.set("message_history", []) # Initialize message history logger.debug(f"Model name: {model_name}") @@ -238,7 +238,7 @@ async def start(): # TextInput( # id="model_name", # label="Enter the Model Name", - # placeholder="e.g., gpt-4o-mini-realtime-preview-2024-12-17", + # placeholder="e.g., gpt-5-nano-realtime-preview-2024-12-17", # initial=model_name # ) # ] @@ -382,7 +382,7 @@ async def on_audio_start(): openai_realtime = cl.user_session.get("openai_realtime") if not openai_realtime.is_connected(): - model_name = cl.user_session.get("model_name") or os.getenv("OPENAI_MODEL_NAME") or os.getenv("MODEL_NAME", "gpt-4o-mini-realtime-preview-2024-12-17") + model_name = cl.user_session.get("model_name") or os.getenv("OPENAI_MODEL_NAME") or os.getenv("MODEL_NAME", "gpt-5-nano-realtime-preview-2024-12-17") await openai_realtime.connect(model_name) logger.info("Connected to OpenAI realtime") @@ -435,14 +435,14 @@ def auth_callback(username: str, password: str): @cl.on_chat_resume async def on_chat_resume(thread: ThreadDict): logger.info(f"Resuming chat: {thread['id']}") - model_name = os.getenv("OPENAI_MODEL_NAME") or os.getenv("MODEL_NAME") or "gpt-4o-mini-realtime-preview-2024-12-17" + model_name = os.getenv("OPENAI_MODEL_NAME") or os.getenv("MODEL_NAME") or "gpt-5-nano-realtime-preview-2024-12-17" logger.debug(f"Model name: {model_name}") settings = cl.ChatSettings( [ TextInput( id="model_name", label="Enter the Model Name", - placeholder="e.g., gpt-4o-mini-realtime-preview-2024-12-17", + placeholder="e.g., gpt-5-nano-realtime-preview-2024-12-17", initial=model_name ) ] diff --git a/src/praisonai/praisonai/ui/realtimeclient/__init__.py b/src/praisonai/praisonai/ui/realtimeclient/__init__.py index 0879f635b..4d3da4fb9 100644 --- a/src/praisonai/praisonai/ui/realtimeclient/__init__.py +++ b/src/praisonai/praisonai/ui/realtimeclient/__init__.py @@ -129,7 +129,7 @@ class RealtimeAPI(RealtimeEventHandler): def log(self, *args): logger.debug(f"[Websocket/{datetime.utcnow().isoformat()}]", *args) - async def connect(self, model='gpt-4o-mini-realtime-preview-2024-12-17'): + async def connect(self, model='gpt-5-nano-realtime-preview-2024-12-17'): if self.is_connected(): raise Exception("Already connected") @@ -576,7 +576,7 @@ class RealtimeClient(RealtimeEventHandler): # Use provided model, OPENAI_MODEL_NAME environment variable, or default if model is None: - model = os.getenv("OPENAI_MODEL_NAME", 'gpt-4o-mini-realtime-preview-2024-12-17') + model = os.getenv("OPENAI_MODEL_NAME", 'gpt-5-nano-realtime-preview-2024-12-17') await self.realtime.connect(model) await self.update_session() @@ -747,7 +747,7 @@ class RealtimeClient(RealtimeEventHandler): if not self.is_connected(): try: logger.info("Attempting to reconnect to OpenAI Realtime API...") - model = os.getenv("OPENAI_MODEL_NAME", 'gpt-4o-mini-realtime-preview-2024-12-17') + model = os.getenv("OPENAI_MODEL_NAME", 'gpt-5-nano-realtime-preview-2024-12-17') await self.connect(model) return True except Exception as e: diff --git a/src/praisonai/tests/agents-advanced.yaml b/src/praisonai/tests/agents-advanced.yaml index 5c96ac575..32dc3a029 100644 --- a/src/praisonai/tests/agents-advanced.yaml +++ b/src/praisonai/tests/agents-advanced.yaml @@ -6,9 +6,9 @@ roles: goal: Analyze data on lung diseases role: Research Analyst llm: - model: "openai/gpt-4o-mini" + model: "openai/gpt-5-nano" function_calling_llm: - model: "openai/gpt-4o-mini" + model: "openai/gpt-5-nano" allow_delegation: False max_execution_time: max_iter: @@ -31,9 +31,9 @@ roles: goal: Compile comprehensive content on lung disease causes role: Medical Writer llm: - model: "openai/gpt-4o-mini" + model: "openai/gpt-5-nano" function_calling_llm: - model: "openai/gpt-4o-mini" + model: "openai/gpt-5-nano" tasks: content_creation: description: Create detailed content summarizing the research findings on @@ -47,7 +47,7 @@ roles: goal: Review and refine content on lung disease causes role: Editor llm: - model: "openai/gpt-4o-mini" + model: "openai/gpt-5-nano" tasks: content_review: description: Edit and refine the compiled content on lung disease causes for diff --git a/src/praisonai/tests/conftest.py b/src/praisonai/tests/conftest.py index 3dd55507f..e34393812 100644 --- a/src/praisonai/tests/conftest.py +++ b/src/praisonai/tests/conftest.py @@ -24,7 +24,7 @@ def sample_agent_config(): 'goal': 'Perform testing tasks', 'backstory': 'An expert testing agent', 'llm': { - 'model': 'gpt-4o-mini', + 'model': 'gpt-5-nano', 'api_key': 'test-key' } } diff --git a/src/praisonai/tests/integration/test_rag_integration.py b/src/praisonai/tests/integration/test_rag_integration.py index 4d8870c42..1e4f24d63 100644 --- a/src/praisonai/tests/integration/test_rag_integration.py +++ b/src/praisonai/tests/integration/test_rag_integration.py @@ -29,7 +29,7 @@ class TestRAGIntegration: "llm": { "provider": "openai", "config": { - "model": "gpt-4o-mini", + "model": "gpt-5-nano", "temperature": 0.1, "max_tokens": 4000 } diff --git a/src/praisonai/tests/source/autogen_function_tools.py b/src/praisonai/tests/source/autogen_function_tools.py index a9d742183..bbf9e77f8 100644 --- a/src/praisonai/tests/source/autogen_function_tools.py +++ b/src/praisonai/tests/source/autogen_function_tools.py @@ -21,7 +21,7 @@ assistant = ConversableAgent( system_message="You are a helpful AI assistant. " "You can help with simple calculations. " "Return 'TERMINATE' when the task is done.", - llm_config={"config_list": [{"model": "gpt-4o-mini", "api_key": os.environ["OPENAI_API_KEY"]}]}, + llm_config={"config_list": [{"model": "gpt-5-nano", "api_key": os.environ["OPENAI_API_KEY"]}]}, ) user_proxy = ConversableAgent( diff --git a/src/praisonai/tests/source/autogen_langchain_tools.py b/src/praisonai/tests/source/autogen_langchain_tools.py index addb32d34..71bfea9ac 100644 --- a/src/praisonai/tests/source/autogen_langchain_tools.py +++ b/src/praisonai/tests/source/autogen_langchain_tools.py @@ -63,7 +63,7 @@ llm_config = { generate_llm_config(custom_tool), generate_llm_config(read_file_tool), ], - "config_list": [{"model": "gpt-4o-mini", "api_key": os.environ["OPENAI_API_KEY"]}], + "config_list": [{"model": "gpt-5-nano", "api_key": os.environ["OPENAI_API_KEY"]}], "timeout": 120, } diff --git a/src/praisonai/tests/test_custom_tools_fix.py b/src/praisonai/tests/test_custom_tools_fix.py index 6f121510e..a47942c58 100644 --- a/src/praisonai/tests/test_custom_tools_fix.py +++ b/src/praisonai/tests/test_custom_tools_fix.py @@ -15,7 +15,7 @@ roles: role: "Information Researcher" goal: "Find and analyze information using multiple tools" backstory: "You are an expert researcher with access to multiple information sources" - llm: "gpt-4o-mini" + llm: "gpt-5-nano" tools: - search_web - get_weather diff --git a/src/praisonai/tests/test_double_api_fix.py b/src/praisonai/tests/test_double_api_fix.py index 81e025c2b..e89207eca 100644 --- a/src/praisonai/tests/test_double_api_fix.py +++ b/src/praisonai/tests/test_double_api_fix.py @@ -25,7 +25,7 @@ def test_streaming_with_tools(): """Test that streaming with tools makes only one API call.""" # Initialize LLM - llm = LLM(model="gpt-4o-mini", verbose=True) + llm = LLM(model="gpt-5-nano", verbose=True) # Track API calls api_call_count = 0 @@ -100,7 +100,7 @@ def test_streaming_with_tools(): def test_non_streaming_with_tools(): """Test non-streaming mode with tools.""" - llm = LLM(model="gpt-4o-mini", verbose=False) + llm = LLM(model="gpt-5-nano", verbose=False) api_call_count = 0 @@ -152,7 +152,7 @@ def test_provider_detection(): # Test different providers providers_to_test = [ - ("gpt-4o-mini", True, "OpenAI GPT-4o-mini"), + ("gpt-5-nano", True, "OpenAI gpt-5-nano"), ("gpt-3.5-turbo", True, "OpenAI GPT-3.5"), ("claude-3-5-sonnet", True, "Anthropic Claude"), ("gemini-2.0-flash", True, "Google Gemini"), diff --git a/src/praisonai/tests/unit/test_core_agents.py b/src/praisonai/tests/unit/test_core_agents.py index 8e1f59549..433ed8f0a 100644 --- a/src/praisonai/tests/unit/test_core_agents.py +++ b/src/praisonai/tests/unit/test_core_agents.py @@ -27,7 +27,7 @@ class TestAgent: def test_agent_with_llm_dict(self): """Test agent creation with LLM dictionary.""" llm_config = { - 'model': 'gpt-4o-mini', + 'model': 'gpt-5-nano', 'api_key': 'test-key', 'temperature': 0.7 } @@ -210,8 +210,8 @@ class TestLLMIntegration: def test_llm_creation(self): """Test LLM creation with different providers.""" - llm = LLM(model='gpt-4o-mini', api_key='test-key') - assert llm.model == 'gpt-4o-mini' + llm = LLM(model='gpt-5-nano', api_key='test-key') + assert llm.model == 'gpt-5-nano' assert llm.api_key == 'test-key' @patch('litellm.completion') @@ -257,7 +257,7 @@ class TestLLMIntegration: mock_completion.side_effect = mock_completion_side_effect - llm = LLM(model='gpt-4o-mini', api_key='test-key') + llm = LLM(model='gpt-5-nano', api_key='test-key') response = llm.get_response("Hello") assert response is not None diff --git a/src/praisonai/tests/unit/test_ollama_fix.py b/src/praisonai/tests/unit/test_ollama_fix.py index d2037b2df..5c7b11dc1 100644 --- a/src/praisonai/tests/unit/test_ollama_fix.py +++ b/src/praisonai/tests/unit/test_ollama_fix.py @@ -28,7 +28,7 @@ def test_ollama_provider_detection(): # Test 3: Non-Ollama model os.environ.pop("OPENAI_BASE_URL", None) - llm3 = LLM(model="gpt-4o-mini") + llm3 = LLM(model="gpt-5-nano") assert llm3._is_ollama_provider() == False, "Should not detect non-Ollama" print("โœ“ Non-Ollama detection works")