โข 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