MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

Value error, Please set your API key in config2.yaml [type=value_error, input_value='YOUR_API_KEY', input_type=str]

Open gokulcoder7 opened this issue 11 months ago • 5 comments

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

Image

gokulcoder7 avatar Jan 17 '25 15:01 gokulcoder7

how to find api key for ollama models ?

gokulcoder7 avatar Jan 17 '25 15:01 gokulcoder7

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.

iorisa avatar Jan 18 '25 03:01 iorisa

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

github-actions[bot] avatar Feb 18 '25 00:02 github-actions[bot]

Tried this but I got new errror

gokulcoder7 avatar Feb 22 '25 02:02 gokulcoder7

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

github-actions[bot] avatar Apr 02 '25 00:04 github-actions[bot]

Due to the lack of updates or replies by the user for a long time, we will close it. Please reopen it if necessary.

better629 avatar May 16 '25 13:05 better629