加入了新的模型,使用更强的模型玩

This commit is contained in:
liuwei
2025-02-12 16:34:32 +08:00
parent c33d7bf58d
commit 0408bdb21c
7 changed files with 169 additions and 23 deletions

View File

@@ -20,6 +20,7 @@ from base.func_chengyu import cy
from base.func_news import News
from base.func_tigerbot import TigerBot
from base.func_xinghuo_web import XinghuoWeb
from base.func_claude import Claude
from configuration import Config
from constants import ChatType
from job_mgmt import Job
@@ -57,6 +58,8 @@ class Robot(Job):
self.chat = BardAssistant(self.config.BardAssistant)
elif chat_type == ChatType.ZhiPu.value and ZhiPu.value_check(self.config.ZhiPu):
self.chat = ZhiPu(self.config.ZhiPu)
elif chat_type == ChatType.CLAUDE.value and Claude.value_check(self.config.CLAUDE):
self.chat = Claude(self.config.CLAUDE)
else:
self.LOG.warning("未配置模型")
self.chat = None
@@ -73,6 +76,8 @@ class Robot(Job):
self.chat = BardAssistant(self.config.BardAssistant)
elif ZhiPu.value_check(self.config.ZhiPu):
self.chat = ZhiPu(self.config.ZhiPu)
elif Claude.value_check(self.config.CLAUDE):
self.chat = Claude(self.config.CLAUDE)
else:
self.LOG.warning("未配置模型")
self.chat = None