โ€ข unknown-model-123 โ†’ ๐Ÿ’ฅ Unexpected error

October 3, 2025 ยท View on GitHub

Please ensure your .env file is in the agentflow directory, and make sure the following API keys are configured:

  • OPENAI_API_KEY (used for RAG summary in tools)
  • GOOGLE_API_KEY (for Google Search tool)
  • DASHSCOPE_API_KEY (for calling Qwen-2.5-7B-Instruct - recommended for China/Singapore users)

If you are not using these three default APIs, please adjust them in the corresponding locations.

For example: adjust the model in tools/base_generator/tool.py to together-Qwen/Qwen2.5-7B-Instruct


Test your env before going on

Please ensure tools, engine and IP are properly configured before proceeding.

Test tools

please run the following command to test all tools:

cd agentflow/agentflow
bash ./tools/test_all_tools.sh

A test.log will be saved in each tool's file.

Success example:

Testing all tools
Tools:
  - base_generator
  - google_search
  - python_coder
  - web_search
  - wikipedia_search

Running tests in parallel...
Testing base_generator...
โœ… base_generator passed
Testing google_search...
โœ… google_search passed
Testing python_coder...
โœ… python_coder passed
Testing wikipedia_search...
โœ… wikipedia_search passed
Testing web_search...
โœ… web_search passed

โœ… All tests passed

LLM engine test

Please run the following command to test all LLM engines:

cd PROJECT_ROOT
python agentflow/scripts/test_llm_engine.py

Example output:

๐Ÿš€ Starting fault-tolerant test for 11 engines...
๐Ÿงช Testing: 'gpt-4o' | kwargs={}
โœ… Success: Created ChatOpenAI
๐Ÿงช Testing: 'dashscope-qwen2.5-3b-instruct' | kwargs={}
โœ… Success: Created ChatDashScope
๐Ÿงช Testing: 'gemini-1.5-pro' | kwargs={}
โœ… Success: Created ChatGemini
============================================================
๐Ÿ“‹ TEST SUMMARY
============================================================
โœ… Passed: 3
   โ€ข gpt-4o โ†’ ChatOpenAI
   โ€ข dashscope-qwen2.5-3b-instruct โ†’ ChatDashScope
   โ€ข gemini-1.5-pro โ†’ ChatGemini
โŒ Failed: 8
   โ€ข azure-gpt-4 โ†’ ๐Ÿšซ API key not found in environment
   โ€ข claude-3-5-sonnet โ†’ ๐Ÿšซ API key not found in environment
   โ€ข deepseek-chat โ†’ ๐Ÿšซ API key not found in environment
   โ€ข grok โ†’ ๐Ÿšซ API key not found in environment
   โ€ข vllm-meta-llama/Llama-3-8b-instruct โ†’ ๐Ÿšซ Connection failed
   โ€ข together-meta-llama/Llama-3-70b-chat-hf โ†’ ๐Ÿšซ API key not found
   โ€ข ollama-llama3 โ†’ ๐Ÿšซ Connection failed
   โ€ข unknown-model-123 โ†’ ๐Ÿ’ฅ Unexpected error
============================================================
๐ŸŽ‰ Testing complete. Script did NOT crash despite errors.

IP test

test your public IP(just for saving the logs files)

cd PROJECT_ROOT
python util/get_pub_ip.py