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>
57 lines
1.7 KiB
JavaScript
57 lines
1.7 KiB
JavaScript
import { CLAUDE_API_HEADERS } from "../shared.js";
|
|
|
|
export default {
|
|
id: "deepseek",
|
|
priority: 110,
|
|
alias: "deepseek",
|
|
aliases: [
|
|
"ds",
|
|
],
|
|
uiAlias: "ds",
|
|
display: {
|
|
name: "DeepSeek",
|
|
icon: "bolt",
|
|
color: "#4D6BFE",
|
|
textIcon: "DS",
|
|
website: "https://deepseek.com",
|
|
notice: {
|
|
apiKeyUrl: "https://platform.deepseek.com/api_keys",
|
|
},
|
|
},
|
|
category: "apikey",
|
|
transport: {
|
|
baseUrl: "https://api.deepseek.com/chat/completions",
|
|
validateUrl: "https://api.deepseek.com/models",
|
|
reasoningInject: {
|
|
scope: "all",
|
|
},
|
|
},
|
|
// Multi-endpoint: pick the transport matching client sourceFormat to skip translation.
|
|
transports: [
|
|
{
|
|
format: "openai",
|
|
baseUrl: "https://api.deepseek.com/chat/completions",
|
|
auth: { combined: true, header: "Authorization", scheme: "bearer" },
|
|
},
|
|
{
|
|
format: "claude",
|
|
baseUrl: "https://api.deepseek.com/anthropic/v1/messages",
|
|
headers: { ...CLAUDE_API_HEADERS },
|
|
auth: { combined: true, header: "x-api-key", scheme: "raw" },
|
|
},
|
|
],
|
|
models: [
|
|
{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro" },
|
|
{ id: "deepseek-v4-pro-max", name: "DeepSeek V4 Pro Max", upstreamModelId: "deepseek-v4-pro" },
|
|
{ id: "deepseek-v4-pro-none", name: "DeepSeek V4 Pro No Thinking", upstreamModelId: "deepseek-v4-pro" },
|
|
{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash" },
|
|
{ id: "deepseek-v4-flash-vision-exp", name: "DeepSeek V4 Flash Vision (Exp)" },
|
|
{ id: "deepseek-chat", name: "DeepSeek V3.2 Chat" },
|
|
{ id: "deepseek-reasoner", name: "DeepSeek V3.2 Reasoner" },
|
|
],
|
|
features: {
|
|
usage: true,
|
|
usageApikey: true,
|
|
},
|
|
};
|