Skip to content

fix(antigravity): resolve HTTP 400 toolConfig and HTTP 403 x-goog-user-project errors - #14909

Closed
torch817 wants to merge 2 commits into
cheaper-inference:release/v3.8.51from
torch817:fix/antigravity-tool-config-and-headers
Closed

torch817 wants to merge 2 commits into
cheaper-inference:release/v3.8.51from
torch817:fix/antigravity-tool-config-and-headers

Conversation

@torch817

@torch817 torch817 commented Sep 26, 2026 •

Copy link
Copy Markdown

This PR fixes two issue areas when interacting with Google Antigravity endpoints:

  1. Fix [WIP] Add FastAPI OpenAI-compatible LLM gateway with routing #1 (HTTP 400): Strip toolConfig from translated tools in antigravityToOpenAIRequest to prevent schema rejection errors when tools are defined.
  2. Fix build(deps): bump actions/github-script from 7 to 8 #2 (HTTP 403): Scrub x-goog-user-project header in scrubProxyAndFingerprintHeaders to prevent permission/project rejection errors from Google backend.

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Thanks for this, @torch817.

I checked both changes against release/v3.8.51, and neither one affects the path that actually runs:

  • toolConfig is never copied into the upstream request in the current code, so the new test passes even without this PR.
  • x-goog-user-project gets set again by applyAntigravityClientProfileHeaders() after the scrub. There is also already a one-time retry without that header on a 403 (open-sse/executors/antigravity/executeAttempt.ts).

Because of that, I'm closing this PR. If you still see the error on the current release/v3.8.51, please open an issue with a reproduction (model, request shape, and the upstream error) so we can fix it at the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants