加入了新的模型,使用更强的模型玩
This commit is contained in:
5
robot.py
5
robot.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user