mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
Switch validateGeminiLikeProvider from query-param auth (?key=) to x-goog-api-key header auth, matching the actual request pipeline. Parse Google error response bodies to distinguish auth failures (API_KEY_INVALID, API_KEY_EXPIRED, PERMISSION_DENIED) from other 400 errors. Google returns 400 (not 401/403) for invalid keys. Add 5 new test cases covering 400/401 rejection paths and success. Fixes #976 Co-authored-by: oyi77 <oyi77@users.noreply.github.com>