Spaces:
Paused
Paused
Mirrowel commited on
Commit ·
3298177
1
Parent(s): ae56762
refactor(gemini): 🔨 remove redundant model and project fields from request payload
Browse filesThe `model` and `project` parameters were being incorrectly included at the top level of the request payload. These fields are not part of the Gemini API request body structure and should only be used for endpoint construction or authentication context.
src/rotator_library/providers/gemini_cli_provider.py
CHANGED
|
@@ -1438,8 +1438,6 @@ class GeminiCliProvider(GeminiAuthBase, ProviderInterface):
|
|
| 1438 |
|
| 1439 |
# Build request payload
|
| 1440 |
request_payload = {
|
| 1441 |
-
"model": model_name,
|
| 1442 |
-
"project": project_id,
|
| 1443 |
"request": {
|
| 1444 |
"contents": contents,
|
| 1445 |
},
|
|
|
|
| 1438 |
|
| 1439 |
# Build request payload
|
| 1440 |
request_payload = {
|
|
|
|
|
|
|
| 1441 |
"request": {
|
| 1442 |
"contents": contents,
|
| 1443 |
},
|