Commit 702d035cf70a
Changed files (1)
modules
xmpp-research-bot
modules/xmpp-research-bot/bot.py
@@ -67,15 +67,16 @@ class ResearchBot(slixmpp.ClientXMPP):
self.anthropic_client = AnthropicVertex(project_id=project_id, region=region)
# Initialize Gemini client if available
+ # Note: Gemini 3 models require the global endpoint
self.gemini_client = None
if GEMINI_AVAILABLE:
try:
self.gemini_client = genai.Client(
vertexai=True,
project=project_id,
- location=region
+ location='global' # Gemini 3 models only available on global endpoint
)
- log.info("Gemini client initialized successfully")
+ log.info("Gemini client initialized successfully (global endpoint)")
except Exception as e:
log.warning(f"Failed to initialize Gemini client: {e}")