chore: tidy up deprecated models from windsurf provider (#2279)

Integrated into release/v3.8.0 — removes deprecated Windsurf models and adds gemini-3.1-pro-low to Cascade list
This commit is contained in:
backryun
2026-05-15 22:47:39 +09:00
committed by GitHub
parent 5e949276d4
commit eba07d8918
2 changed files with 6 additions and 64 deletions

View File

@@ -1373,7 +1373,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "swe-1.6", name: "SWE-1.6" },
{ id: "swe-1.5-fast", name: "SWE-1.5 Fast" },
{ id: "swe-1.5", name: "SWE-1.5" },
{ id: "swe-check", name: "SWE Check" },
// ── Claude Opus 4.7 — effort-tiered ─────────────────────────────────
{ id: "claude-opus-4.7-max", name: "Claude Opus 4.7 Max", contextLength: 200000 },
{ id: "claude-opus-4.7-xhigh", name: "Claude Opus 4.7 XHigh", contextLength: 200000 },
@@ -1406,21 +1405,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {
},
{ id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5", contextLength: 200000 },
{ id: "claude-haiku-4.5", name: "Claude Haiku 4.5", contextLength: 200000 },
// ── Claude 4.1 / 4 ──────────────────────────────────────────────────
{ id: "claude-4.1-opus-thinking", name: "Claude 4.1 Opus Thinking", contextLength: 200000 },
{ id: "claude-4.1-opus", name: "Claude 4.1 Opus", contextLength: 200000 },
{ id: "claude-4-opus-thinking", name: "Claude 4 Opus Thinking", contextLength: 200000 },
{ id: "claude-4-opus", name: "Claude 4 Opus", contextLength: 200000 },
{ id: "claude-4-sonnet-thinking", name: "Claude 4 Sonnet Thinking", contextLength: 200000 },
{ id: "claude-4-sonnet", name: "Claude 4 Sonnet", contextLength: 200000 },
// ── Claude 3.x ──────────────────────────────────────────────────────
{
id: "claude-3.7-sonnet-thinking",
name: "Claude 3.7 Sonnet Thinking",
contextLength: 200000,
},
{ id: "claude-3.7-sonnet", name: "Claude 3.7 Sonnet", contextLength: 200000 },
{ id: "claude-3.5-sonnet", name: "Claude 3.5 Sonnet", contextLength: 200000 },
// ── GPT-5.5 — effort-tiered (+ fast/priority variants) ──────────────
{ id: "gpt-5.5-xhigh-fast", name: "GPT-5.5 XHigh Fast", contextLength: 200000 },
{ id: "gpt-5.5-xhigh", name: "GPT-5.5 XHigh", contextLength: 200000 },
@@ -1432,7 +1416,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "gpt-5.5-low", name: "GPT-5.5 Low", contextLength: 200000 },
{ id: "gpt-5.5-none-fast", name: "GPT-5.5 None Fast", contextLength: 200000 },
{ id: "gpt-5.5-none", name: "GPT-5.5 None", contextLength: 200000 },
{ id: "gpt-5.5-review", name: "GPT-5.5 Review", contextLength: 200000 },
// ── GPT-5.4 — effort-tiered (+ mini + fast variants) ────────────────
{ id: "gpt-5.4-xhigh-fast", name: "GPT-5.4 XHigh Fast", contextLength: 200000 },
{ id: "gpt-5.4-xhigh", name: "GPT-5.4 XHigh", contextLength: 200000 },
@@ -1464,7 +1447,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "gpt-5.2-low", name: "GPT-5.2 Low", contextLength: 200000 },
{ id: "gpt-5.2-none", name: "GPT-5.2 None", contextLength: 200000 },
// ── GPT-5 ────────────────────────────────────────────────────────────
{ id: "gpt-5-codex", name: "GPT-5 Codex", contextLength: 200000 },
{ id: "gpt-5", name: "GPT-5", contextLength: 200000 },
// ── GPT-4.1 / 4o ────────────────────────────────────────────────────
{ id: "gpt-4.1", name: "GPT-4.1", contextLength: 200000 },
@@ -1475,28 +1457,16 @@ export const REGISTRY: Record<string, RegistryEntry> = {
// ── Gemini ───────────────────────────────────────────────────────────
{ id: "gemini-3.1-pro-high", name: "Gemini 3.1 Pro High", contextLength: 1000000 },
{ id: "gemini-3.1-pro-low", name: "Gemini 3.1 Pro Low", contextLength: 1000000 },
{ id: "gemini-3.0-pro", name: "Gemini 3.0 Pro", contextLength: 1000000 },
{ id: "gemini-3.0-flash-high", name: "Gemini 3.0 Flash High", contextLength: 1000000 },
{ id: "gemini-3.0-flash-medium", name: "Gemini 3.0 Flash Medium", contextLength: 1000000 },
{ id: "gemini-3.0-flash-low", name: "Gemini 3.0 Flash Low", contextLength: 1000000 },
{ id: "gemini-3.0-flash-minimal", name: "Gemini 3.0 Flash Minimal", contextLength: 1000000 },
{ id: "gemini-3.0-flash-high", name: "Gemini 3 Flash High", contextLength: 1000000 },
{ id: "gemini-3.0-flash-medium", name: "Gemini 3 Flash Medium", contextLength: 1000000 },
{ id: "gemini-3.0-flash-low", name: "Gemini 3 Flash Low", contextLength: 1000000 },
{ id: "gemini-3.0-flash-minimal", name: "Gemini 3 Flash Minimal", contextLength: 1000000 },
{ id: "gemini-2.5-pro", name: "Gemini 2.5 Pro", contextLength: 1000000 },
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash", contextLength: 1000000 },
// ── Others ───────────────────────────────────────────────────────────
{ id: "deepseek-v4", name: "DeepSeek V4", contextLength: 64000 },
{ id: "deepseek-r1", name: "DeepSeek R1", contextLength: 64000 },
{ id: "deepseek-v3-2", name: "DeepSeek V3-2", contextLength: 64000 },
{ id: "deepseek-v3", name: "DeepSeek V3", contextLength: 64000 },
{ id: "grok-3-mini-thinking", name: "Grok 3 Mini Thinking", contextLength: 131000 },
{ id: "grok-3-mini", name: "Grok 3 Mini", contextLength: 131000 },
{ id: "grok-3", name: "Grok 3", contextLength: 131000 },
{ id: "grok-code-fast-1", name: "Grok Code Fast 1", contextLength: 131000 },
{ id: "kimi-k2.6", name: "Kimi K2.6", contextLength: 131000 },
{ id: "kimi-k2.5", name: "Kimi K2.5", contextLength: 131000 },
{ id: "kimi-k2", name: "Kimi K2", contextLength: 131000 },
{ id: "glm-5.1", name: "GLM-5.1", contextLength: 128000 },
{ id: "glm-5", name: "GLM-5", contextLength: 128000 },
{ id: "glm-4.7", name: "GLM-4.7", contextLength: 128000 },
],
},
@@ -1521,7 +1491,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "swe-1.6", name: "SWE-1.6" },
{ id: "swe-1.5-fast", name: "SWE-1.5 Fast" },
{ id: "swe-1.5", name: "SWE-1.5" },
{ id: "swe-check", name: "SWE Check" },
// Claude Opus 4.7
{ id: "claude-opus-4.7-max", name: "Claude Opus 4.7 Max", contextLength: 200000 },
{ id: "claude-opus-4.7-high", name: "Claude Opus 4.7 High", contextLength: 200000 },
@@ -1563,8 +1532,8 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "gpt-5.2-low", name: "GPT-5.2 Low", contextLength: 200000 },
// Gemini
{ id: "gemini-3.1-pro-high", name: "Gemini 3.1 Pro High", contextLength: 1000000 },
{ id: "gemini-3.0-pro", name: "Gemini 3.0 Pro", contextLength: 1000000 },
{ id: "gemini-3.0-flash-high", name: "Gemini 3.0 Flash High", contextLength: 1000000 },
{ id: "gemini-3.1-pro-low", name: "Gemini 3.1 Pro Low", contextLength: 1000000 },
{ id: "gemini-3.0-flash-high", name: "Gemini 3 Flash High", contextLength: 1000000 },
{ id: "gemini-2.5-pro", name: "Gemini 2.5 Pro", contextLength: 1000000 },
// Others
{ id: "deepseek-v4", name: "DeepSeek V4", contextLength: 64000 },

View File

@@ -53,7 +53,6 @@ const MODEL_ALIAS_MAP: Record<string, string> = {
"swe-1.6": "swe-1-6",
"swe-1.5-fast": "swe-1p5", // fast variant
"swe-1.5": "swe-1p5",
"swe-check": "swe-check",
// ── Claude Opus 4.7 ──────────────────────────────────────────────────────
"claude-opus-4.7-max": "claude-opus-4-7-max",
"claude-opus-4.7-xhigh": "claude-opus-4-7-xhigh",
@@ -80,17 +79,6 @@ const MODEL_ALIAS_MAP: Record<string, string> = {
"claude-4.5-sonnet-thinking": "MODEL_PRIVATE_3",
"claude-4.5-sonnet": "MODEL_PRIVATE_2",
"claude-4.5-haiku": "MODEL_PRIVATE_11",
// ── Claude 4 ─────────────────────────────────────────────────────────────
"claude-4-opus-thinking": "MODEL_CLAUDE_4_OPUS_THINKING",
"claude-4-opus": "MODEL_CLAUDE_4_OPUS",
"claude-4-sonnet-thinking": "MODEL_CLAUDE_4_SONNET_THINKING",
"claude-4-sonnet": "MODEL_CLAUDE_4_SONNET",
"claude-4.1-opus-thinking": "MODEL_CLAUDE_4_1_OPUS_THINKING",
"claude-4.1-opus": "MODEL_CLAUDE_4_1_OPUS",
// ── Claude 3.x ───────────────────────────────────────────────────────────
"claude-3.7-sonnet-thinking": "CLAUDE_3_7_SONNET_20250219_THINKING",
"claude-3.7-sonnet": "CLAUDE_3_7_SONNET_20250219",
"claude-3.5-sonnet": "CLAUDE_3_5_SONNET_20241022",
// ── GPT-5.5 ──────────────────────────────────────────────────────────────
"gpt-5.5-xhigh-fast": "gpt-5-5-xhigh-priority",
"gpt-5.5-high-fast": "gpt-5-5-high-priority",
@@ -138,41 +126,26 @@ const MODEL_ALIAS_MAP: Record<string, string> = {
"gpt-5.2-none": "MODEL_GPT_5_2_NONE",
"gpt-5.2": "MODEL_GPT_5_2_MEDIUM",
// ── GPT-5 ────────────────────────────────────────────────────────────────
"gpt-5-codex": "gpt-5-codex",
"gpt-5": "gpt-5",
// ── GPT-4.1 / 4o ─────────────────────────────────────────────────────────
"gpt-4.1": "MODEL_CHAT_GPT_4_1_2025_04_14",
"gpt-4.1-mini": "gpt-4.1-mini",
"gpt-4.1-nano": "gpt-4.1-nano",
"gpt-4o": "MODEL_CHAT_GPT_4O_2024_08_06",
"gpt-4o-mini": "gpt-4o-mini",
// ── Gemini ────────────────────────────────────────────────────────────────
"gemini-3.1-pro-high": "gemini-3-1-pro-high",
"gemini-3.1-pro-low": "gemini-3-1-pro-low",
"gemini-3.1-pro": "gemini-3-1-pro-high",
"gemini-3.0-pro": "gemini-3-pro",
"gemini-3.0-flash-high": "MODEL_GOOGLE_GEMINI_3_0_FLASH_HIGH",
"gemini-3.0-flash-medium": "MODEL_GOOGLE_GEMINI_3_0_FLASH_MEDIUM",
"gemini-3.0-flash-low": "MODEL_GOOGLE_GEMINI_3_0_FLASH_LOW",
"gemini-3.0-flash-minimal": "MODEL_GOOGLE_GEMINI_3_0_FLASH_MINIMAL",
"gemini-3.0-flash": "MODEL_GOOGLE_GEMINI_3_0_FLASH_HIGH",
"gemini-2.5-pro": "MODEL_GOOGLE_GEMINI_2_5_PRO",
"gemini-2.5-flash": "gemini-2.5-flash",
// ── Others ───────────────────────────────────────────────────────────────
"deepseek-v4": "deepseek-v4",
"deepseek-r1": "deepseek-r1",
"deepseek-v3-2": "deepseek-v3-2",
"deepseek-v3": "deepseek-v3",
"grok-3-mini-thinking": "MODEL_XAI_GROK_3_MINI_REASONING",
"grok-3-mini": "grok-3-mini",
"grok-3": "MODEL_XAI_GROK_3",
"grok-code-fast-1": "grok-code-fast-1",
"kimi-k2.6": "kimi-k2-6",
"kimi-k2.5": "kimi-k2-5",
"kimi-k2": "MODEL_KIMI_K2",
"glm-5.1": "glm-5-1",
"glm-5": "glm-5",
"glm-4.7": "MODEL_GLM_4_7",
};
function resolveWsModelId(model: string): string {