From 5de191f62f0b70370aec9df32bdf98aa1483fefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=A6=A8=E5=85=83?= Date: Mon, 16 Mar 2026 19:26:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E9=BB=98=E8=AE=A4=E7=AB=AF=E7=82=B9=20URL=20=E5=B9=B6?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20Coding=20Plan=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - anthropic: 去掉多余的 /v1(Anthropic 原生 API 不带版本路径) - deepseek: 去掉 /v1(官方推荐不带版本后缀) - minimax: 域名从 minimax.io 改为 minimaxi.com(国内正式域名) - 新增 compute/coding-plans/ 目录(8 个 Coding Plan 供应商配置) - manifest presetDataVersion 9 → 10 Co-Authored-By: Claude Opus 4.6 --- compute/coding-plans/_index.json | 13 ++++++ compute/coding-plans/dashscope-coding.json | 43 ++++++++++++++++++++ compute/coding-plans/infini-coding.json | 33 +++++++++++++++ compute/coding-plans/kwai-coding.json | 31 ++++++++++++++ compute/coding-plans/minimax-coding.json | 34 ++++++++++++++++ compute/coding-plans/moonshot-coding.json | 33 +++++++++++++++ compute/coding-plans/moorethread-coding.json | 31 ++++++++++++++ compute/coding-plans/volcengine-coding.json | 37 +++++++++++++++++ compute/coding-plans/zhipu-coding.json | 43 ++++++++++++++++++++ compute/providers/anthropic.json | 2 +- compute/providers/deepseek.json | 2 +- compute/providers/minimax.json | 2 +- manifest.json | 4 +- 13 files changed, 303 insertions(+), 5 deletions(-) create mode 100644 compute/coding-plans/_index.json create mode 100644 compute/coding-plans/dashscope-coding.json create mode 100644 compute/coding-plans/infini-coding.json create mode 100644 compute/coding-plans/kwai-coding.json create mode 100644 compute/coding-plans/minimax-coding.json create mode 100644 compute/coding-plans/moonshot-coding.json create mode 100644 compute/coding-plans/moorethread-coding.json create mode 100644 compute/coding-plans/volcengine-coding.json create mode 100644 compute/coding-plans/zhipu-coding.json diff --git a/compute/coding-plans/_index.json b/compute/coding-plans/_index.json new file mode 100644 index 0000000..0f94730 --- /dev/null +++ b/compute/coding-plans/_index.json @@ -0,0 +1,13 @@ +{ + "description": "Coding Plan 预设加载顺序索引", + "order": [ + "zhipu-coding", + "dashscope-coding", + "volcengine-coding", + "minimax-coding", + "moonshot-coding", + "infini-coding", + "moorethread-coding", + "kwai-coding" + ] +} diff --git a/compute/coding-plans/dashscope-coding.json b/compute/coding-plans/dashscope-coding.json new file mode 100644 index 0000000..d41fd08 --- /dev/null +++ b/compute/coding-plans/dashscope-coding.json @@ -0,0 +1,43 @@ +{ + "id": "provider-dashscope-coding-001", + "provider": "dashscope", + "brandGroup": "dashscope", + "label": "百炼 Coding Plan", + "baseUrl": "https://coding.dashscope.aliyuncs.com/v1", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat", "reasoning"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "none", + "consoleUrl": "https://bailian.console.aliyun.com/" + } + }, + "models": [ + { + "modelName": "qwen3-coder-plus", + "displayName": "Qwen3 Coder Plus (Coding)", + "serviceType": ["chat"], + "description": "阿里云百炼 Coding Plan,Qwen3 编程增强版", + "contextWindow": 131072, + "maxOutputTokens": 16384, + "capabilities": ["chat", "reasoning", "code", "tool_use"], + "source": "preset" + }, + { + "modelName": "qwen3-max", + "displayName": "Qwen3 Max (Coding)", + "serviceType": ["chat"], + "description": "阿里云百炼 Coding Plan,Qwen3 Max 旗舰模型", + "contextWindow": 131072, + "maxOutputTokens": 16384, + "capabilities": ["chat", "reasoning", "code", "multilingual"], + "source": "preset" + } + ] +} diff --git a/compute/coding-plans/infini-coding.json b/compute/coding-plans/infini-coding.json new file mode 100644 index 0000000..24cbe65 --- /dev/null +++ b/compute/coding-plans/infini-coding.json @@ -0,0 +1,33 @@ +{ + "id": "provider-infini-coding-001", + "provider": "infini", + "brandGroup": "infini", + "label": "无问芯穹 Coding Plan", + "baseUrl": "https://cloud.infini-ai.com/maas/coding/v1", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat", "reasoning"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "none", + "consoleUrl": "https://cloud.infini-ai.com/console" + } + }, + "models": [ + { + "modelName": "deepseek-v3", + "displayName": "DeepSeek V3 (芯穹 Coding)", + "serviceType": ["chat"], + "description": "无问芯穹 Coding Plan,DeepSeek V3 编程优化", + "contextWindow": 128000, + "maxOutputTokens": 8192, + "capabilities": ["chat", "reasoning", "code", "multilingual"], + "source": "preset" + } + ] +} diff --git a/compute/coding-plans/kwai-coding.json b/compute/coding-plans/kwai-coding.json new file mode 100644 index 0000000..5ed31d0 --- /dev/null +++ b/compute/coding-plans/kwai-coding.json @@ -0,0 +1,31 @@ +{ + "id": "provider-kwai-coding-001", + "provider": "kwai", + "brandGroup": "kwai", + "label": "快手 KwaiKAT Coding Plan", + "baseUrl": "https://wanqing.streamlakeapi.com/api/gateway/coding/v1", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "none", + "consoleUrl": "https://console.streamlake.ai/wanqing/" + } + }, + "models": [ + { + "modelName": "kwai-coder", + "displayName": "KwaiKAT Coder (Coding)", + "serviceType": ["chat"], + "description": "快手 KwaiKAT Coding Plan,编程辅助模型", + "capabilities": ["chat", "code"], + "source": "preset" + } + ] +} diff --git a/compute/coding-plans/minimax-coding.json b/compute/coding-plans/minimax-coding.json new file mode 100644 index 0000000..8e7ec7d --- /dev/null +++ b/compute/coding-plans/minimax-coding.json @@ -0,0 +1,34 @@ +{ + "id": "provider-minimax-coding-001", + "provider": "minimax", + "brandGroup": "minimax", + "label": "MiniMax Coding Plan", + "baseUrl": "https://api.minimaxi.com/v1", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat", "reasoning"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "rest-api", + "endpoint": "https://api.minimaxi.com/v1/coding/usage", + "consoleUrl": "https://platform.minimaxi.com/" + } + }, + "models": [ + { + "modelName": "MiniMax-M1", + "displayName": "MiniMax-M1 (Coding)", + "serviceType": ["chat"], + "description": "MiniMax Coding Plan,M1 旗舰模型", + "contextWindow": 1000000, + "maxOutputTokens": 131072, + "capabilities": ["chat", "reasoning", "code", "long_context"], + "source": "preset" + } + ] +} diff --git a/compute/coding-plans/moonshot-coding.json b/compute/coding-plans/moonshot-coding.json new file mode 100644 index 0000000..802534e --- /dev/null +++ b/compute/coding-plans/moonshot-coding.json @@ -0,0 +1,33 @@ +{ + "id": "provider-moonshot-coding-001", + "provider": "moonshot", + "brandGroup": "moonshot", + "label": "Kimi Code", + "baseUrl": "https://api.kimi.com/coding/v1", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat", "reasoning"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "none", + "consoleUrl": "https://platform.moonshot.cn/" + } + }, + "models": [ + { + "modelName": "kimi-k2", + "displayName": "Kimi K2 (Coding)", + "serviceType": ["chat"], + "description": "Kimi Code 套餐,万亿参数 MoE 模型,128K 上下文", + "contextWindow": 128000, + "maxOutputTokens": 8192, + "capabilities": ["chat", "reasoning", "code", "tool_use", "agent"], + "source": "preset" + } + ] +} diff --git a/compute/coding-plans/moorethread-coding.json b/compute/coding-plans/moorethread-coding.json new file mode 100644 index 0000000..7b18f67 --- /dev/null +++ b/compute/coding-plans/moorethread-coding.json @@ -0,0 +1,31 @@ +{ + "id": "provider-moorethread-coding-001", + "provider": "moorethread", + "brandGroup": "moorethread", + "label": "摩尔线程 Coding Plan", + "baseUrl": "https://api.mthreads.com/v1", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "none", + "consoleUrl": "https://www.mthreads.com/console" + } + }, + "models": [ + { + "modelName": "mt-coder", + "displayName": "MT Coder (Coding)", + "serviceType": ["chat"], + "description": "摩尔线程 Coding Plan,国产 GPU 推理", + "capabilities": ["chat", "code"], + "source": "preset" + } + ] +} diff --git a/compute/coding-plans/volcengine-coding.json b/compute/coding-plans/volcengine-coding.json new file mode 100644 index 0000000..b32fa66 --- /dev/null +++ b/compute/coding-plans/volcengine-coding.json @@ -0,0 +1,37 @@ +{ + "id": "provider-volcengine-coding-001", + "provider": "volcengine", + "brandGroup": "volcengine", + "label": "火山引擎 Coding Plan", + "baseUrl": "https://ark.cn-beijing.volces.com/api/coding/v3", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat", "reasoning"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "response-header", + "headerKeys": { + "remaining": "x-ratelimit-remaining", + "limit": "x-ratelimit-limit", + "reset": "x-ratelimit-reset" + }, + "consoleUrl": "https://console.volcengine.com/ark" + }, + "modelIdOverride": "ark-code-latest" + }, + "models": [ + { + "modelName": "ark-code-latest", + "displayName": "Ark Code Latest (Auto)", + "serviceType": ["chat"], + "description": "自动路由最优编程模型(Doubao-Seed-Code / GLM-4.7 / DeepSeek-V3.2 / Kimi-K2 等)", + "capabilities": ["code", "reasoning", "chat"], + "source": "preset" + } + ] +} diff --git a/compute/coding-plans/zhipu-coding.json b/compute/coding-plans/zhipu-coding.json new file mode 100644 index 0000000..c50485d --- /dev/null +++ b/compute/coding-plans/zhipu-coding.json @@ -0,0 +1,43 @@ +{ + "id": "provider-zhipu-coding-001", + "provider": "zhipu", + "brandGroup": "zhipu", + "label": "智谱 Coding Plan", + "baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4", + "apiFormat": "openai-completions", + "apiKeyRef": "", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "accessMode": "coding-plan", + "services": ["chat", "reasoning"], + "codingPlan": { + "quotas": {}, + "usageTracking": { + "method": "none", + "consoleUrl": "https://open.bigmodel.cn/console/overview" + } + }, + "models": [ + { + "modelName": "glm-5", + "displayName": "GLM-5 (Coding)", + "serviceType": ["chat"], + "description": "智谱 GLM-5 Coding Plan 版本,745B MoE,编程能力登顶", + "contextWindow": 192000, + "maxOutputTokens": 128000, + "capabilities": ["chat", "reasoning", "code", "deep_thinking", "long_context"], + "source": "preset" + }, + { + "modelName": "glm-4.7", + "displayName": "GLM-4.7 (Coding)", + "serviceType": ["chat"], + "description": "智谱 GLM-4.7 Coding Plan 版本,200K 上下文", + "contextWindow": 200000, + "maxOutputTokens": 128000, + "capabilities": ["chat", "reasoning", "code", "deep_thinking", "long_context"], + "source": "preset" + } + ] +} diff --git a/compute/providers/anthropic.json b/compute/providers/anthropic.json index 81cd738..d205155 100644 --- a/compute/providers/anthropic.json +++ b/compute/providers/anthropic.json @@ -2,7 +2,7 @@ "id": "provider-anthropic-001", "provider": "anthropic", "label": "Anthropic Claude", - "baseUrl": "https://api.anthropic.com/v1", + "baseUrl": "https://api.anthropic.com", "apiFormat": "anthropic-messages", "apiKeyRef": "anthropic", "apiKeyVerified": false, diff --git a/compute/providers/deepseek.json b/compute/providers/deepseek.json index 472e443..69cd4f1 100644 --- a/compute/providers/deepseek.json +++ b/compute/providers/deepseek.json @@ -2,7 +2,7 @@ "id": "provider-deepseek-001", "provider": "deepseek", "label": "DeepSeek", - "baseUrl": "https://api.deepseek.com/v1", + "baseUrl": "https://api.deepseek.com", "apiFormat": "openai-completions", "apiKeyRef": "deepseek", "apiKeyVerified": false, diff --git a/compute/providers/minimax.json b/compute/providers/minimax.json index e9d2dd9..27a638b 100644 --- a/compute/providers/minimax.json +++ b/compute/providers/minimax.json @@ -2,7 +2,7 @@ "id": "provider-minimax-001", "provider": "minimax", "label": "MiniMax", - "baseUrl": "https://api.minimax.io/v1", + "baseUrl": "https://api.minimaxi.com/v1", "apiFormat": "openai-completions", "apiKeyRef": "minimax", "apiKeyVerified": false, diff --git a/manifest.json b/manifest.json index 5289e4b..6947485 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "version": "1.0.0", - "presetDataVersion": 9, - "updatedAt": "2026-03-03", + "presetDataVersion": 10, + "updatedAt": "2026-03-16", "description": "DesireCore 官方配置中心" }