tian-minghui / openai-style-api

支持将openai、claude、azure openai, gemini,kimi, 智谱AI,通义千问,讯飞星火API等模型服务方的调用转为openai方式调用。屏蔽不同大模型API的差异,统一用openai api标准格式使用大模型(Shield the differences between different large model APIs and use large models in a unified openai API standard format)
MIT License
328 stars 55 forks source link

添加对 kimi 的支持 #23

Closed michael19960921 closed 4 months ago

michael19960921 commented 4 months ago

几时可以支持 KIMI 的模型? 我看了下 kimi 的接口和 openai 几乎是完全兼容的. 不知道现有是支持的

tian-minghui commented 4 months ago

可以的,协议一样,默认是能够支持的, 如下配置就行 { "token": "kimi-GxqT3BlbkFJj1", "type": "openai", "config": { "api_base": "https://api.moonshot.cn/v1/", "api_key": "sk-xxxxxx", "model": "moonshot-v1-8k" } }