Switch primary model to Pro, Flash as fallback

Now that REST polling removes the 30s GCP LB timeout constraint,
gemini-3.1-pro-preview is restored as primary and gemini-3-flash-preview
is used only when Pro fails or times out.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-18 15:37:56 +00:00
parent a6fc149788
commit 4e6545e5f2

View file

@ -38,8 +38,8 @@ class GeminiService:
api_key=api_key,
http_options={"timeout": _FALLBACK_TIMEOUT_MS},
)
self.model = "gemini-3-flash-preview"
self.fallback_model = "gemini-3.1-pro-preview"
self.model = "gemini-3.1-pro-preview"
self.fallback_model = "gemini-3-flash-preview"
async def _generate_content(
self,