fix: remove non-functional Antigravity image models from imageRegistry

The models gemini-2.5-flash-preview-image-generation and
gemini-3.1-flash-image-preview were surfacing in the model catalog
via getAllImageModels() from imageRegistry.ts, not from the live
upstream API. Removed them from the image provider registry.
This commit is contained in:
Chris Staley
2026-03-31 23:13:56 -06:00
parent 5df8abcddf
commit ff158282e7
2 changed files with 2 additions and 13 deletions

View File

@@ -63,10 +63,7 @@ export const IMAGE_PROVIDERS = {
authType: "oauth",
authHeader: "bearer",
format: "gemini-image", // Special format: uses Gemini generateContent API
models: [
{ id: "gemini-2.5-flash-preview-image-generation", name: "Gemini 2.5 Flash Image" },
{ id: "gemini-3.1-flash-image-preview", name: "Gemini 3.1 Flash Image Preview" },
],
models: [],
supportedSizes: ["1024x1024"],
},

View File

@@ -154,15 +154,7 @@ const PROVIDER_MODELS_CONFIG: Record<string, ProviderModelsConfigEntry> = {
authHeader: "Authorization",
authPrefix: "Bearer ",
body: {},
parseResponse: (data) => {
const excluded = new Set([
"gemini-2.5-flash-preview-image-generation",
"gemini-3.1-flash-image-preview",
"gemini-3-pro-low",
"gemini-3-pro-high",
]);
return (data.models || []).filter((m: any) => !excluded.has(m.model || m.id));
},
parseResponse: (data) => data.models || [],
},
openai: {
url: "https://api.openai.com/v1/models",