Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions open-sse/config/antigravityModelAliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export const ANTIGRAVITY_PUBLIC_MODELS = Object.freeze([

export const ANTIGRAVITY_MODEL_ALIASES = Object.freeze({
// gemini-3.1-pro-low is not aliased: the upstream accepts it verbatim.
// gemini-3.1-pro-high: the discovery slot returns HTTP 400 on v1internal;
// the live upstream id is gemini-pro-agent (see ANTIGRAVITY_PUBLIC_MODELS).
"gemini-3.1-pro-high": "gemini-pro-agent",
"gemini-3-pro-image-preview": "gemini-3-pro-image",
// Legacy Claude display ids → current upstream ids. NOTE: an earlier comment here
// assumed Claude was removed from Antigravity 2.0 and would 404; discussion #3184
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/antigravity-model-aliases.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test("isUserCallableAntigravityModelId only allows public chat-capable model IDs
assert.equal(isUserCallableAntigravityModelId("claude-sonnet-4-6"), true);
assert.equal(isUserCallableAntigravityModelId("claude-sonnet-5"), false);
// The advertised pro-high discovery slot rejects content requests; use pro-agent High.
assert.equal(isUserCallableAntigravityModelId("gemini-3.1-pro-high"), false);
assert.equal(isUserCallableAntigravityModelId("gemini-3.1-pro-high"), true);
assert.equal(isUserCallableAntigravityModelId("gemini-pro-agent"), true);
assert.equal(isUserCallableAntigravityModelId("gemini-3.1-pro-low"), true);
assert.equal(isUserCallableAntigravityModelId("tab_flash_lite_preview"), false);
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/antigravity-retired-public-models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { CLI_TOOLS } from "../../src/shared/constants/cliTools.ts";

const RETIRED_PUBLIC_MODELS = [
"gemini-3-pro-preview",
"gemini-3.1-pro-high",
"gemini-2.5-pro",
"gemini-2.5-computer-use-preview-10-2025",
] as const;
Expand Down Expand Up @@ -82,7 +81,7 @@ test("AGY free-model metadata excludes unavailable Gemini 2.5 Pro", () => {
);
});

test("Antigravity and AGY expose gemini-pro-agent as the only Gemini 3.1 Pro High id", () => {
test("Antigravity and AGY expose gemini-pro-agent and gemini-3.1-pro-high as callable Gemini 3.1 Pro High ids", () => {
const antigravityModels = new Map(
ANTIGRAVITY_PUBLIC_MODELS.map((model) => [model.id, model.name])
);
Expand All @@ -91,7 +90,7 @@ test("Antigravity and AGY expose gemini-pro-agent as the only Gemini 3.1 Pro Hig

assert.equal(antigravityModels.has("gemini-3.1-pro-high"), false);
assert.equal(agyModels.has("gemini-3.1-pro-high"), false);
assert.equal(isUserCallableAntigravityModelId("gemini-3.1-pro-high"), false);
assert.equal(isUserCallableAntigravityModelId("gemini-3.1-pro-high"), true);
assert.equal(isUserCallableAgyModelId("gemini-3.1-pro-high"), false);
assert.deepEqual(getAntigravityModelFallbacks("gemini-3.1-pro-high"), []);
assert.equal(
Expand Down
Loading