MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

how to support kimi?

Open victor-u opened this issue 1 year ago • 4 comments

https://platform.moonshot.cn/docs/api-reference#%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B

llm:
  api_type: ""  # or azure / ollama / open_llm etc. Check LLMType for more options
  model: "moonshot-v1-8k"  # or gpt-3.5-turbo-1106 / gpt-4-1106-preview
  base_url: "https://api.moonshot.cn/v1"  # or forward url / other llm url
  api_key: "sk-xxxx"

victor-u avatar Apr 01 '24 16:04 victor-u

https://docs.deepwisdom.ai/main/en/guide/get_started/configuration.html

llm:
  api_type: 'moonshot'
  base_url: 'https://api.moonshot.cn/v1'
  api_key: 'YOUR_API_KEY'
  model: 'moonshot-v1-8k'

geekan avatar Apr 02 '24 02:04 geekan

Maybe the document sidebar needs to be optimized here, change Configuration to a more specific name, or add a subtitle

geekan avatar Apr 02 '24 02:04 geekan

Great work! I have a question: if I deploy the url and key myself, how should I integrate it into metagpt? In other words, how should I customize the llm interface?

yingweima2022 avatar Apr 09 '24 09:04 yingweima2022

Supported LLMs, you can refer to documentation and code. To support new llm you can look at the corresponding abstract functions in base_llm that need to be implemented.

seehi avatar Apr 09 '24 10:04 seehi