Skip to content

Commit 6a91bf9

Browse files
committed
fix(rotator_library): 🐛 update gemini-2.5-pro quota
Updates the quota tracker for `gemini-2.5-pro` from 1000 to 1. Also in this commit: - refactor: remove redundant `_get_antigravity_logs_dir` function in favor of centralized path management
1 parent 00f4bbe commit 6a91bf9

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/rotator_library/providers/antigravity_provider.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ def __init__(self, finish_message: str, raw_response: Dict[str, Any]):
223223

224224

225225
# Directory paths - use centralized path management
226-
def _get_antigravity_logs_dir():
227-
return get_logs_dir() / "antigravity_logs"
228-
229226

230227
def _get_antigravity_cache_dir():
231228
return get_cache_dir(subdir="antigravity")
@@ -485,8 +482,6 @@ def _generate_stable_session_id(contents: List[Dict[str, Any]]) -> str:
485482
Uses SHA256 hash of the first user message to create a deterministic
486483
session ID, ensuring the same conversation gets the same session ID.
487484
Falls back to random session ID if no user message found.
488-
489-
Per CLIProxyAPI Go implementation: generateStableSessionID()
490485
"""
491486
import hashlib
492487
import struct
@@ -3318,7 +3313,7 @@ def _transform_to_antigravity_format(
33183313
)
33193314

33203315
# Prepend Antigravity agent system instruction to existing system instruction
3321-
# Per CLIProxyAPI Go buildRequest(): Sets request.systemInstruction.role = "user"
3316+
# Sets request.systemInstruction.role = "user"
33223317
# and sets parts.0.text to the agent identity/guidelines
33233318
# We preserve any existing parts by shifting them (Antigravity = parts[0], existing = parts[1:])
33243319
#

src/rotator_library/providers/utilities/antigravity_quota_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
# Gemini 2.5 Flash Lite - SEPARATE pool (verified: 0.02% per request = 5000 requests)
7070
"gemini-2.5-flash-lite": 5000,
7171
# Gemini 2.5 Pro - UNVERIFIED/UNUSED (assumed 0.1% = 1000 requests)
72-
"gemini-2.5-pro": 1000,
72+
"gemini-2.5-pro": 1,
7373
},
7474
"free-tier": {
7575
# Claude/GPT-OSS group (verified: 2.0% per request = 50 requests)
@@ -92,7 +92,7 @@
9292
# Gemini 2.5 Flash Lite - SEPARATE pool (verified: 0.02% per request = 5000 requests)
9393
"gemini-2.5-flash-lite": 5000,
9494
# Gemini 2.5 Pro - UNVERIFIED/UNUSED (assumed 0.1% = 1000 requests)
95-
"gemini-2.5-pro": 1000,
95+
"gemini-2.5-pro": 1,
9696
},
9797
}
9898

0 commit comments

Comments
 (0)