feat: add qianfan chat bot

This commit is contained in:
jimmyzhuu
2026-04-29 16:19:27 +08:00
parent 6f68ed6bce
commit 161fc6cdf0
5 changed files with 313 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ def create_bot(bot_type):
from models.deepseek.deepseek_bot import DeepSeekBot
return DeepSeekBot()
elif bot_type == const.QIANFAN:
from models.qianfan.qianfan_bot import QianfanBot
return QianfanBot()
elif bot_type in (const.OPENAI, const.CHATGPT, const.CUSTOM): # OpenAI-compatible API
from models.chatgpt.chat_gpt_bot import ChatGPTBot
return ChatGPTBot()