Spaces:
Paused
Paused
Mirrowel commited on
Commit ·
bb86601
1
Parent(s): ab3f77b
refactor(gemini): 🔨 switch to sequential rotation mode and adjust tier priority for gemini-3 models
Browse files- Changed default rotation mode from "balanced" to "sequential" to optimize credential usage by sticking with one credential until rate-limited (429), then switching
- Updated Gemini-3 model tier requirement from priority 1 to priority 2 to correctly reflect paid tier credentials
src/rotator_library/providers/gemini_cli_provider.py
CHANGED
|
@@ -187,8 +187,8 @@ def _env_int(key: str, default: int) -> int:
|
|
| 187 |
class GeminiCliProvider(GeminiAuthBase, ProviderInterface):
|
| 188 |
skip_cost_calculation = True
|
| 189 |
|
| 190 |
-
#
|
| 191 |
-
default_rotation_mode: str = "
|
| 192 |
|
| 193 |
# =========================================================================
|
| 194 |
# TIER CONFIGURATION
|
|
@@ -506,7 +506,7 @@ class GeminiCliProvider(GeminiAuthBase, ProviderInterface):
|
|
| 506 |
|
| 507 |
# Gemini 3 requires paid tier
|
| 508 |
if model_name.startswith("gemini-3-"):
|
| 509 |
-
return
|
| 510 |
|
| 511 |
return None # All other models have no restrictions
|
| 512 |
|
|
|
|
| 187 |
class GeminiCliProvider(GeminiAuthBase, ProviderInterface):
|
| 188 |
skip_cost_calculation = True
|
| 189 |
|
| 190 |
+
# Sequential mode - stick with one credential until it gets a 429, then switch
|
| 191 |
+
default_rotation_mode: str = "sequential"
|
| 192 |
|
| 193 |
# =========================================================================
|
| 194 |
# TIER CONFIGURATION
|
|
|
|
| 506 |
|
| 507 |
# Gemini 3 requires paid tier
|
| 508 |
if model_name.startswith("gemini-3-"):
|
| 509 |
+
return 2 # Only priority 2 (paid) credentials
|
| 510 |
|
| 511 |
return None # All other models have no restrictions
|
| 512 |
|