Value error, Please set your API key in config2.yaml [type=value_error, input_value='YOUR_API_KEY', input_type=str]
Bug description
Bug solved method
Environment information
- LLM type and model name: ollama qwen 2.5 coder 14b
- System version: windows 11
- Python version:Python 3.9.21
- MetaGPT version or branch:
- packages version:
- installation method:
llm: api_type: "ollama" # or azure / ollama / open_llm etc. Check LLMType for more options model: "qwen2.5-coder:14b" # or gpt-3.5-turbo-1106 / gpt-4-1106-preview base_url: "http://localhost:11434" # or forward url / other llm url api_key: "YOUR_API_KEY"
Screenshots or logs
how to find api key for ollama models ?
For the configuration of ollama's config2.yaml, you can refer to this document: ollama-api
If it is a local ollama model, you can fill in any string, but it cannot be an empty string, left unfilled, or YOUR_API_KEY.
This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.
Tried this but I got new errror
This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.
Due to the lack of updates or replies by the user for a long time, we will close it. Please reopen it if necessary.