Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
feat(opencode-go): register 4 missing models from upstream catalog
Jefersson Lemese9ead52a4226
diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.tsindex 02b40ebf9a..ddbbe4550b 100644--- a/open-sse/config/providerRegistry.ts+++ b/open-sse/config/providerRegistry.ts@@ -1288,10 +1288,14 @@ export const REGISTRY: Record<string, RegistryEntry> = {{ id: "kimi-k2.5", name: "Kimi K2.5" },{ id: "mimo-v2.5-pro", name: "MiMo-V2.5-Pro" },{ id: "mimo-v2.5", name: "MiMo-V2.5" },+ { id: "mimo-v2-pro", name: "MiMo-V2-Pro" },+ { id: "mimo-v2-omni", name: "MiMo-V2-Omni" },{ id: "minimax-m2.7", name: "MiniMax M2.7", targetFormat: "claude" },{ id: "minimax-m2.5", name: "MiniMax M2.5", targetFormat: "claude" },+ { id: "qwen3.7-max", name: "Qwen3.7 Max" },{ id: "qwen3.6-plus", name: "Qwen3.6 Plus" },{ id: "qwen3.5-plus", name: "Qwen3.5 Plus" },+ { id: "hy3-preview", name: "Hunyuan3 Preview" },{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro", supportsReasoning: true },{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash", supportsReasoning: true },],diff --git a/src/shared/constants/modelSpecs.ts b/src/shared/constants/modelSpecs.tsindex 89bed6cf96..23785f561a 100644--- a/src/shared/constants/modelSpecs.ts+++ b/src/shared/constants/modelSpecs.ts@@ -217,6 +217,15 @@ export const MODEL_SPECS: Record<string, ModelSpec> = {aliases: ["kimi-k2.6-thinking", "kimi-for-coding"],},+ // ── Qwen3.7 Max (Bailian multimodal — text/image/video) ─────────+ "qwen3.7-max": {+ maxOutputTokens: 8192,+ contextWindow: 200000,+ supportsThinking: true,+ supportsTools: true,+ supportsVision: true,+ },+// ── Xiaomi MiMo V2.5 (1M context, consensus across 7+ sync sources) ──"mimo-v2.5-pro": {maxOutputTokens: 131072,@@ -230,6 +239,12 @@ export const MODEL_SPECS: Record<string, ModelSpec> = {supportsTools: true,supportsVision: true,},+ "mimo-v2-pro": {+ maxOutputTokens: 131072,+ contextWindow: 262144,+ supportsTools: true,+ supportsVision: true,+ },"mimo-v2-omni": {maxOutputTokens: 131072,contextWindow: 262144,diff --git a/tests/unit/opencode-executor.test.ts b/tests/unit/opencode-executor.test.tsindex 986fc94bbe..d17243783a 100644--- a/tests/unit/opencode-executor.test.ts+++ b/tests/unit/opencode-executor.test.ts@@ -253,6 +253,30 @@ describe("OpencodeExecutor", () => {});assert.deepEqual(fetchCalls[0].options.headers, result.headers);});++ it("routes opencode-go catalog-only models to chat completions", async () => {+ // Register new models+ registerModel("opencode-go", { id: "qwen3.7-max", name: "Qwen3.7 Max" });+ registerModel("opencode-go", { id: "mimo-v2-pro", name: "MiMo-V2-Pro" });+ registerModel("opencode-go", { id: "mimo-v2-omni", name: "MiMo-V2-Omni" });+ registerModel("opencode-go", { id: "hy3-preview", name: "Hunyuan3 Preview" });++ // qwen3.7-max+ const qwen37 = await goExecutor.execute(createInput("qwen3.7-max"));+ assert.equal(qwen37.url, "https://opencode.ai/zen/go/v1/chat/completions");++ // mimo-v2-pro+ const mimoPro = await goExecutor.execute(createInput("mimo-v2-pro"));+ assert.equal(mimoPro.url, "https://opencode.ai/zen/go/v1/chat/completions");++ // mimo-v2-omni+ const mimoOmni = await goExecutor.execute(createInput("mimo-v2-omni"));+ assert.equal(mimoOmni.url, "https://opencode.ai/zen/go/v1/chat/completions");++ // hy3-preview+ const hy3 = await goExecutor.execute(createInput("hy3-preview"));+ assert.equal(hy3.url, "https://opencode.ai/zen/go/v1/chat/completions");+ });});describe("user-agent forwarding", () => {