Vendors shipped four multimodal models the registry did not carry: - glm-5.3-flash — z.ai's first natively multimodal GLM-5, 1M context, image + video + pdf input (glm, glm-cn, opencode-go) - deepseek-v4-flash-vision-exp — image input at V4-Flash text parity, 1M context / 384k output (deepseek, opencode-go) - grok-4.6, grok-4.5 — 500k context; 4.6 has no text output limit (xai) Capabilities needed hand entries because the existing globs mis-matched: *glm-5* and *deepseek-v4* carry no vision, and *grok-4* would have capped grok-4.6 at 256k instead of 500k. The grok-4.6 pattern sits above the generic *grok-4* so it wins the first-match lookup. Also corrects glm-4.6v / glm-4.5v, which were missing video input and declared no maxOutput, and backfills glm-4.6v on glm-cn — zhipuai serves it and the sibling provider already listed it. tests/unit/opencode-go-models.test.js pins the opencode-go model list, so its expected array moves with the registry. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
52 lines
2.7 KiB
JavaScript
52 lines
2.7 KiB
JavaScript
export default {
|
|
id: "opencode-go",
|
|
priority: 210,
|
|
alias: "opencode-go",
|
|
aliases: [
|
|
"ocg",
|
|
],
|
|
uiAlias: "ocg",
|
|
display: {
|
|
name: "OpenCode Go",
|
|
icon: "terminal",
|
|
color: "#E87040",
|
|
textIcon: "OC",
|
|
website: "https://opencode.ai/auth",
|
|
notice: {
|
|
text: "OpenCode Go subscription: $5/mo (then 0/mo). Access to Kimi, GLM, Qwen, MiMo, MiniMax models.",
|
|
apiKeyUrl: "https://opencode.ai/auth",
|
|
},
|
|
},
|
|
category: "apikey",
|
|
transport: {
|
|
baseUrl: "https://opencode.ai/zen/go/v1/chat/completions",
|
|
headers: {},
|
|
},
|
|
// Multi-endpoint: pick the transport matching the client sourceFormat to skip
|
|
// translation. Guarded per-model by `supportedFormats` (see chatCore) because
|
|
// opencode-go models differ in endpoint support.
|
|
transports: [
|
|
{ format: "openai", baseUrl: "https://opencode.ai/zen/go/v1/chat/completions", auth: { combined: true, header: "Authorization", scheme: "bearer" } },
|
|
{ format: "claude", baseUrl: "https://opencode.ai/zen/go/v1/messages", auth: { combined: true, header: "x-api-key", scheme: "raw", anthropicVersion: true } },
|
|
{ format: "openai-responses", baseUrl: "https://opencode.ai/zen/go/v1/responses", auth: { combined: true, header: "Authorization", scheme: "bearer" } },
|
|
],
|
|
models: [
|
|
{ id: "glm-5.3-flash", name: "GLM 5.3 Flash (Vision)", supportedFormats: ["openai"] },
|
|
{ id: "glm-5.2", name: "GLM 5.2", supportedFormats: ["openai"] },
|
|
{ id: "glm-5.1", name: "GLM 5.1", supportedFormats: ["openai"] },
|
|
{ id: "kimi-k2.7-code", name: "Kimi K2.7 Code", supportedFormats: ["openai"] },
|
|
{ id: "kimi-k2.6", name: "Kimi K2.6", supportedFormats: ["openai"] },
|
|
{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro", supportedFormats: ["openai", "claude", "openai-responses"] },
|
|
{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash", supportedFormats: ["openai", "claude", "openai-responses"] },
|
|
{ id: "deepseek-v4-flash-vision-exp", name: "DeepSeek V4 Flash Vision (Exp)", supportedFormats: ["openai", "claude", "openai-responses"] },
|
|
{ id: "mimo-v2.5", name: "MiMo V2.5", supportedFormats: ["openai"] },
|
|
{ id: "mimo-v2.5-pro", name: "MiMo V2.5 Pro", supportedFormats: ["openai"] },
|
|
{ id: "minimax-m3", name: "MiniMax M3", supportedFormats: ["openai", "claude"] },
|
|
{ id: "minimax-m2.7", name: "MiniMax M2.7", supportedFormats: ["openai", "claude"] },
|
|
{ id: "minimax-m2.5", name: "MiniMax M2.5", supportedFormats: ["openai", "claude"] },
|
|
{ id: "qwen3.7-max", name: "Qwen 3.7 Max", supportedFormats: ["openai", "claude"] },
|
|
{ id: "qwen3.7-plus", name: "Qwen 3.7 Plus", supportedFormats: ["openai", "claude"] },
|
|
{ id: "qwen3.6-plus", name: "Qwen 3.6 Plus", supportedFormats: ["openai", "claude"] },
|
|
],
|
|
};
|