78 lines
3.0 KiB
JavaScript
78 lines
3.0 KiB
JavaScript
export default {
|
|
id: "commandcode",
|
|
priority: 100,
|
|
alias: "commandcode",
|
|
aliases: [
|
|
"cmc",
|
|
],
|
|
uiAlias: "cmc",
|
|
display: {
|
|
name: "Command Code",
|
|
icon: "smart_toy",
|
|
color: "#000000",
|
|
textIcon: "CC",
|
|
website: "https://commandcode.ai",
|
|
notice: {
|
|
text: "Use your CommandCode CLI API key (starts with user_...) from ~/.commandcode/auth.json or commandcode.ai/studio.",
|
|
apiKeyUrl: "https://commandcode.ai/studio",
|
|
},
|
|
},
|
|
category: "apikey",
|
|
transport: {
|
|
baseUrl: "https://api.commandcode.ai/alpha/generate",
|
|
format: "commandcode",
|
|
forceStream: true,
|
|
headers: {
|
|
"x-command-code-version": "0.45.0",
|
|
"x-cli-environment": "cli",
|
|
"User-Agent": "cli",
|
|
},
|
|
// Quota/billing endpoints (same alpha API the official CLI /usage calls).
|
|
// whoami resolves orgId; credits+subscription+usage/summary then report the
|
|
// 5-hour/weekly windows, plan, and period credits. See services/usage/commandcode.js.
|
|
usage: {
|
|
baseUrl: "https://api.commandcode.ai",
|
|
whoamiUrl: "/alpha/whoami",
|
|
creditsUrl: "/alpha/billing/credits",
|
|
subscriptionsUrl: "/alpha/billing/subscriptions",
|
|
summaryUrl: "/alpha/usage/summary",
|
|
},
|
|
},
|
|
features: {
|
|
usage: true,
|
|
usageApikey: true,
|
|
},
|
|
models: [
|
|
{ id: "deepseek/deepseek-v4-pro", name: "DeepSeek V4 Pro" },
|
|
{ id: "deepseek/deepseek-v4-flash", name: "DeepSeek V4 Flash" },
|
|
{ id: "moonshotai/Kimi-K2.7-Code", name: "Kimi K2.7 Code" },
|
|
{ id: "moonshotai/Kimi-K2.7-Code-Highspeed", name: "Kimi K2.7 Code Highspeed" },
|
|
{ id: "moonshotai/Kimi-K2.6", name: "Kimi K2.6" },
|
|
{ id: "moonshotai/Kimi-K2.5", name: "Kimi K2.5" },
|
|
{ id: "zai-org/GLM-5.2", name: "GLM 5.2" },
|
|
{ id: "zai-org/GLM-5.2-Fast", name: "GLM 5.2 Fast" },
|
|
{ id: "zai-org/GLM-5.1", name: "GLM 5.1" },
|
|
{ id: "zai-org/GLM-5", name: "GLM 5" },
|
|
{ id: "MiniMaxAI/MiniMax-M3", name: "MiniMax M3" },
|
|
{ id: "MiniMaxAI/MiniMax-M2.7", name: "MiniMax M2.7" },
|
|
{ id: "MiniMaxAI/MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
{ id: "xiaomi/mimo-v2.5-pro", name: "MiMo V2.5 Pro" },
|
|
{ id: "xiaomi/mimo-v2.5", name: "MiMo V2.5" },
|
|
{ id: "Qwen/Qwen3.7-Max", name: "Qwen 3.7 Max" },
|
|
{ id: "Qwen/Qwen3.7-Plus", name: "Qwen 3.7 Plus" },
|
|
{ id: "Qwen/Qwen3.6-Max-Preview", name: "Qwen 3.6 Max Preview" },
|
|
{ id: "Qwen/Qwen3.6-Plus", name: "Qwen 3.6 Plus" },
|
|
{ id: "stepfun/Step-3.7-Flash", name: "Step 3.7 Flash" },
|
|
{ id: "stepfun/Step-3.5-Flash", name: "Step 3.5 Flash" },
|
|
{ id: "tencent/Hy3", name: "Tencent Hy3" },
|
|
{ id: "nvidia/nemotron-3-ultra-550b-a55b", name: "Nemotron 3 Ultra 550B A55B" },
|
|
{ id: "thinkingmachines/inkling", name: "Inkling" },
|
|
{ id: "claude-sonnet-5", name: "Claude Sonnet 5" },
|
|
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
|
|
{ id: "claude-fable-5", name: "Claude Fable 5" },
|
|
{ id: "claude-opus-4-8", name: "Claude Opus 4.8" },
|
|
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
|
|
{ id: "claude-haiku-4-5", name: "Claude Haiku 4.5" },
|
|
],
|
|
};
|