We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355ebc6 commit b2b6a8eCopy full SHA for b2b6a8e
xiaogpt/bot/gemini_bot.py
@@ -40,7 +40,7 @@ def __init__(
40
from google.auth import api_key
41
42
credentials = api_key.Credentials(gemini_key)
43
- if len(gemini_api_domain) > 0:
+ if gemini_api_domain:
44
print("Use custom gemini_api_domain: " + gemini_api_domain)
45
credentials._universe_domain = gemini_api_domain
46
genai.configure(
@@ -56,7 +56,7 @@ def __init__(
56
57
self.history = []
58
model = genai.GenerativeModel(
59
- model_name=gemini_model or "gemini-pro",
+ model_name=gemini_model or "gemini-2.0-flash-lite",
60
generation_config=generation_config,
61
safety_settings=safety_settings,
62
)
0 commit comments