增加了claude api的调用方法

This commit is contained in:
FB208
2024-03-12 10:39:51 +08:00
parent 2074f27aff
commit 805bea0d5f
8 changed files with 215 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
channel factory
"""
from common import const
from common.log import logger
def create_bot(bot_type):
@@ -43,7 +44,9 @@ def create_bot(bot_type):
elif bot_type == const.CLAUDEAI:
from bot.claude.claude_ai_bot import ClaudeAIBot
return ClaudeAIBot()
elif bot_type == const.CLAUDEAPI:
from bot.claudeapi.claude_api_bot import ClaudeAPIBot
return ClaudeAPIBot()
elif bot_type == const.QWEN:
from bot.ali.ali_qwen_bot import AliQwenBot
return AliQwenBot()