Repository navigation
Conversation
diegosouzapw
added a commit
to diegosouzapw/OmniRoute
that referenced
this pull request
Jul 17, 2026
* feat(mitm): add Antigravity reasoning-effort overrides
The Antigravity MITM alias mapping only ever swapped the destination model;
there was no way to override the reasoning effort Antigravity's own
thinkingConfig requested. Alias entries are now `{ model?, reasoningEffort? }`
(a legacy plain-string mapping still normalizes to `{ model }`, so no DB
migration is required). The standalone proxy (server.cjs) forwards the chosen
tier as a top-level `reasoningEffortOverride` on the intercepted request; the
antigravity->openai translator honors it ahead of its thinkingConfig-derived
guess, and an explicit "none" suppresses reasoning_effort entirely even when
Antigravity's own request asked for thinking. Reuses the existing canonical
5-tier reasoning vocabulary (`@/shared/reasoning/effortStandardization.ts`,
with max/extra aliasing to xhigh) instead of introducing a new one. The API
route validates the reasoning-effort value at the boundary and the Antigravity
tool card UI now exposes a per-model reasoning-effort selector alongside the
existing model-mapping input.
Co-authored-by: Truong Fiu <gnourtf@gmail.com>
Inspired-by: decolua/9router#2584
* chore(changelog): fragment for #7228
---------
Co-authored-by: Truong Fiu <gnourtf@gmail.com>
HouMinXi
pushed a commit
to HouMinXi/OmniRoute
that referenced
this pull request
Aug 2, 2026
…7228) * feat(mitm): add Antigravity reasoning-effort overrides The Antigravity MITM alias mapping only ever swapped the destination model; there was no way to override the reasoning effort Antigravity's own thinkingConfig requested. Alias entries are now `{ model?, reasoningEffort? }` (a legacy plain-string mapping still normalizes to `{ model }`, so no DB migration is required). The standalone proxy (server.cjs) forwards the chosen tier as a top-level `reasoningEffortOverride` on the intercepted request; the antigravity->openai translator honors it ahead of its thinkingConfig-derived guess, and an explicit "none" suppresses reasoning_effort entirely even when Antigravity's own request asked for thinking. Reuses the existing canonical 5-tier reasoning vocabulary (`@/shared/reasoning/effortStandardization.ts`, with max/extra aliasing to xhigh) instead of introducing a new one. The API route validates the reasoning-effort value at the boundary and the Antigravity tool card UI now exposes a per-model reasoning-effort selector alongside the existing model-mapping input. Co-authored-by: Truong Fiu <gnourtf@gmail.com> Inspired-by: decolua/9router#2584 * chore(changelog): fragment for diegosouzapw#7228 --------- Co-authored-by: Truong Fiu <gnourtf@gmail.com>
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…7228) * feat(mitm): add Antigravity reasoning-effort overrides The Antigravity MITM alias mapping only ever swapped the destination model; there was no way to override the reasoning effort Antigravity's own thinkingConfig requested. Alias entries are now `{ model?, reasoningEffort? }` (a legacy plain-string mapping still normalizes to `{ model }`, so no DB migration is required). The standalone proxy (server.cjs) forwards the chosen tier as a top-level `reasoningEffortOverride` on the intercepted request; the antigravity->openai translator honors it ahead of its thinkingConfig-derived guess, and an explicit "none" suppresses reasoning_effort entirely even when Antigravity's own request asked for thinking. Reuses the existing canonical 5-tier reasoning vocabulary (`@/shared/reasoning/effortStandardization.ts`, with max/extra aliasing to xhigh) instead of introducing a new one. The API route validates the reasoning-effort value at the boundary and the Antigravity tool card UI now exposes a per-model reasoning-effort selector alongside the existing model-mapping input. Co-authored-by: Truong Fiu <gnourtf@gmail.com> Inspired-by: decolua/9router#2584 * chore(changelog): fragment for diegosouzapw#7228 --------- Co-authored-by: Truong Fiu <gnourtf@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add per-source-model reasoning effort overrides to the Antigravity MITM Proxy alongside the existing destination model mappings.
Each Antigravity model row now supports:
Defaultpreserves the thinking configuration sent by Antigravity. Explicit selections override the request and are translated through 9Router's existing unified thinking pipeline.Changes
{ model, reasoningEffort }entries.Default.Backward compatibility
Existing mappings remain valid:
{ "gemini-3-flash-agent": "provider/model-id" }They are normalized at the API and standalone MITM boundaries into:
{ "gemini-3-flash-agent": { "model": "provider/model-id" } }No database migration is required.
Verification
git diff --checkpassed.Notes