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:
parent
a6fc149788
commit
4e6545e5f2
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue