mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
Merge pull request #2716 from cowagent/fix-gemini-model-attribute
fix: add missing model property to GoogleGeminiBot
This commit is contained in:
@@ -34,6 +34,13 @@ class GoogleGeminiBot(Bot):
|
||||
def api_key(self):
|
||||
return conf().get("gemini_api_key")
|
||||
|
||||
@property
|
||||
def model(self):
|
||||
model_name = conf().get("model") or "gemini-pro"
|
||||
if model_name == "gemini":
|
||||
model_name = "gemini-pro"
|
||||
return model_name
|
||||
|
||||
@property
|
||||
def api_base(self):
|
||||
base = conf().get("gemini_api_base", "").strip()
|
||||
|
||||
Reference in New Issue
Block a user