mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-05 08:06:21 +08:00
update gemini model
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user