Merge pull request #1849 from wayshall/kimi

feat: 增加moonshot api集成
This commit is contained in:
zhayujie
2024-04-26 15:17:52 +08:00
committed by GitHub
5 changed files with 203 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ class Bridge(object):
if model_type in ["claude"]:
self.btype["chat"] = const.CLAUDEAI
if model_type in ["moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k"]:
self.btype["chat"] = const.MOONSHOT
self.bots = {}
self.chat_bots = {}
# 模型对应的接口