fix(security): keep Gemini key out of request URLs
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 15m5s
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 15m5s
This commit is contained in:
@@ -105,7 +105,8 @@ async def probe_gemini_version() -> ProviderVersionInfo:
|
||||
async with httpx.AsyncClient(timeout=8.0) as client:
|
||||
resp = await client.get(
|
||||
"https://generativelanguage.googleapis.com/v1beta/models",
|
||||
params={"key": api_key, "pageSize": 50},
|
||||
params={"pageSize": 50},
|
||||
headers={"x-goog-api-key": api_key},
|
||||
)
|
||||
resp.raise_for_status()
|
||||
data = resp.json()
|
||||
|
||||
Reference in New Issue
Block a user