mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 22:27:13 +08:00
feat: 增加moonshot api集成
moonshot本来可直接使用openai sdk, 但是要求openai sdk必须在1.0以上,与本项目冲突, 故现使用http接口对接的方式集成
This commit is contained in:
@@ -59,5 +59,9 @@ def create_bot(bot_type):
|
||||
from bot.zhipuai.zhipuai_bot import ZHIPUAIBot
|
||||
return ZHIPUAIBot()
|
||||
|
||||
elif bot_type == const.MOONSHOT:
|
||||
from bot.moonshot.moonshot_bot import MoonshotBot
|
||||
return MoonshotBot()
|
||||
|
||||
|
||||
raise RuntimeError
|
||||
|
||||
Reference in New Issue
Block a user