MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

Ollama运行报错

Open bobwong89757 opened this issue 11 months ago • 1 comments

Bug description

image

Bug solved method

Environment information

  • LLM type and model name: Ollama, llama2
  • System version: mac os 13.1
  • Python version: 3.11.8
# Full Example: https://github.com/geekan/MetaGPT/blob/main/config/config2.example.yaml
# Reflected Code: https://github.com/geekan/MetaGPT/blob/main/metagpt/config2.py
llm:
  api_type: ollama
  base_url: 'http://127.0.0.1:11434/api'
  model: 'llama2'

bobwong89757 avatar Mar 09 '24 10:03 bobwong89757

api_key is required

iorisa avatar Mar 11 '24 06:03 iorisa

I have the same issue, what is the api_key for ollama?

yanwun avatar Mar 18 '24 01:03 yanwun

api_key: "ollama" can pass

T-bagwell avatar Mar 18 '24 10:03 T-bagwell