update gemini model

This commit is contained in:
6vision
2024-07-04 01:44:53 +08:00
parent bb2880191a
commit 87525bb383
2 changed files with 8 additions and 3 deletions

View File

@@ -25,6 +25,8 @@ class GoogleGeminiBot(Bot):
# 复用文心的token计算方式
self.sessions = SessionManager(BaiduWenxinSession, model=conf().get("model") or "gpt-3.5-turbo")
self.model = conf().get("model") or "gemini-pro"
if self.model == "gemini":
self.model = "gemini-pro"
def reply(self, query, context: Context = None) -> Reply:
try:
if context.type != ContextType.TEXT: