mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 06:35:00 +08:00
fix(registry): remove defunct gemini-3-flash-agent model from antigravity provider
Remove gemini-3-flash-agent and legacy gemini-3.5-flash entries from the embedded antigravity model registry in models.json, as upstream Google Cloud Code / Antigravity endpoints return 500 UNKNOWN for these model IDs. Update excluded model tests to assert against active model gemini-pro-agent instead.
This commit is contained in:
@@ -3476,37 +3476,6 @@
|
||||
"text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "gemini-3-flash-agent",
|
||||
"object": "model",
|
||||
"owned_by": "antigravity",
|
||||
"type": "antigravity",
|
||||
"display_name": "Gemini 3.5 Flash (High)",
|
||||
"name": "gemini-3-flash-agent",
|
||||
"description": "Gemini 3.5 Flash (High)",
|
||||
"context_length": 1048576,
|
||||
"max_completion_tokens": 65536,
|
||||
"thinking": {
|
||||
"min": 128,
|
||||
"max": 32768,
|
||||
"dynamic_allowed": true,
|
||||
"levels": [
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high"
|
||||
]
|
||||
},
|
||||
"supportedInputModalities": [
|
||||
"text",
|
||||
"image",
|
||||
"audio",
|
||||
"video"
|
||||
],
|
||||
"supportedOutputModalities": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "gemini-3.1-flash-image",
|
||||
"object": "model",
|
||||
@@ -3641,67 +3610,8 @@
|
||||
"supportedOutputModalities": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "gemini-3.5-flash-low",
|
||||
"object": "model",
|
||||
"owned_by": "antigravity",
|
||||
"type": "antigravity",
|
||||
"display_name": "Gemini 3.5 Flash (Medium)",
|
||||
"name": "gemini-3.5-flash-low",
|
||||
"description": "Gemini 3.5 Flash (Medium)",
|
||||
"context_length": 1048576,
|
||||
"max_completion_tokens": 65535,
|
||||
"thinking": {
|
||||
"min": 1,
|
||||
"max": 65535,
|
||||
"dynamic_allowed": true,
|
||||
"levels": [
|
||||
"low",
|
||||
"medium",
|
||||
"high"
|
||||
]
|
||||
},
|
||||
"supportedInputModalities": [
|
||||
"text",
|
||||
"image",
|
||||
"audio",
|
||||
"video"
|
||||
],
|
||||
"supportedOutputModalities": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "gemini-3.5-flash-extra-low",
|
||||
"object": "model",
|
||||
"owned_by": "antigravity",
|
||||
"type": "antigravity",
|
||||
"display_name": "Gemini 3.5 Flash (Low)",
|
||||
"name": "gemini-3.5-flash-extra-low",
|
||||
"description": "Gemini 3.5 Flash (Low)",
|
||||
"context_length": 1048576,
|
||||
"max_completion_tokens": 65535,
|
||||
"thinking": {
|
||||
"min": 1,
|
||||
"max": 65535,
|
||||
"dynamic_allowed": true,
|
||||
"levels": [
|
||||
"low",
|
||||
"medium",
|
||||
"high"
|
||||
]
|
||||
},
|
||||
"supportedInputModalities": [
|
||||
"text",
|
||||
"image",
|
||||
"audio",
|
||||
"video"
|
||||
],
|
||||
"supportedOutputModalities": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
|
||||
],
|
||||
"xai": [
|
||||
{
|
||||
|
||||
@@ -280,7 +280,7 @@ func TestRegisterModelsForAuth_AntigravityFetchesWebSearchCapability(t *testing.
|
||||
switch strings.TrimSpace(model.ID) {
|
||||
case "gemini-3.1-flash-lite":
|
||||
webSearchModel = model
|
||||
case "gemini-3-flash-agent":
|
||||
case "gemini-pro-agent":
|
||||
agentModel = model
|
||||
case "gpt-oss-120b-medium":
|
||||
staticOnlyModel = model
|
||||
@@ -302,10 +302,10 @@ func TestRegisterModelsForAuth_AntigravityFetchesWebSearchCapability(t *testing.
|
||||
t.Fatalf("static token limits should be preserved, got=%#v static=%#v", webSearchModel, staticWebSearchModel)
|
||||
}
|
||||
if agentModel == nil {
|
||||
t.Fatal("expected gemini-3-flash-agent to be registered")
|
||||
t.Fatal("expected gemini-pro-agent to be registered")
|
||||
}
|
||||
if agentModel.SupportsWebSearch {
|
||||
t.Fatal("gemini-3-flash-agent should not support web search")
|
||||
t.Fatal("gemini-pro-agent should not support web search")
|
||||
}
|
||||
if staticOnlyModel == nil {
|
||||
t.Fatal("expected static-only Antigravity model to remain registered")
|
||||
|
||||
Reference in New Issue
Block a user