|
@@ -1,8 +1,18 @@
|
|
|
/**
|
|
/**
|
|
|
- * 火山 CodingPlan (豆包 coding)
|
|
|
|
|
|
|
+ * 火山方舟 Coding Plan (豆包编程订阅)
|
|
|
*
|
|
*
|
|
|
* - 官网:https://www.volcengine.com/product/ark
|
|
* - 官网:https://www.volcengine.com/product/ark
|
|
|
- * - 火山方舟针对编程场景的 Doubao 模型套餐。
|
|
|
|
|
|
|
+ * - 订阅入口:https://www.volcengine.com/docs/82379/1925114
|
|
|
|
|
+ * - 快速开始:https://www.volcengine.com/docs/82379/1928261
|
|
|
|
|
+ * - 模型价格:https://www.volcengine.com/docs/82379/1544106
|
|
|
|
|
+ * - Anthropic 协议 baseUrl:https://ark.cn-beijing.volces.com/api/coding
|
|
|
|
|
+ *
|
|
|
|
|
+ * 火山方舟 Coding Plan 是火山引擎针对编程场景的订阅服务,订阅包内解锁多家
|
|
|
|
|
+ * 主力编程模型(豆包 / MiniMax / GLM / DeepSeek / Kimi),走 Anthropic
|
|
|
|
|
+ * 兼容协议,Claude Code / Cursor 等客户端可直连。
|
|
|
|
|
+ *
|
|
|
|
|
+ * 注:baseUrl 是 /api/coding(不是 /api/v3/anthropic)—— 后者是火山通用
|
|
|
|
|
+ * Anthropic 兼容接入,和 CodingPlan 订阅计量不通。
|
|
|
*/
|
|
*/
|
|
|
import type { InkosEndpoint } from "../types.js";
|
|
import type { InkosEndpoint } from "../types.js";
|
|
|
|
|
|
|
@@ -10,19 +20,22 @@ export const VOLCENGINE_CODING_PLAN: InkosEndpoint = {
|
|
|
id: "volcengineCodingPlan",
|
|
id: "volcengineCodingPlan",
|
|
|
label: "火山 Coding Plan",
|
|
label: "火山 Coding Plan",
|
|
|
api: "anthropic-messages",
|
|
api: "anthropic-messages",
|
|
|
- baseUrl: "https://ark.cn-beijing.volces.com/api/v3/anthropic",
|
|
|
|
|
- checkModel: "doubao-seed-code",
|
|
|
|
|
|
|
+ baseUrl: "https://ark.cn-beijing.volces.com/api/coding",
|
|
|
|
|
+ checkModel: "doubao-seed-2.0-code",
|
|
|
temperatureRange: [0, 1],
|
|
temperatureRange: [0, 1],
|
|
|
defaultTemperature: 0.7,
|
|
defaultTemperature: 0.7,
|
|
|
writingTemperature: 1,
|
|
writingTemperature: 1,
|
|
|
models: [
|
|
models: [
|
|
|
- { id: "doubao-seed-code", maxOutput: 32000, contextWindowTokens: 256000, enabled: true, releasedAt: "2025-11-01", deploymentName: "doubao-seed-code-preview-251028" },
|
|
|
|
|
- { id: "doubao-seed-2.0-code", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15", deploymentName: "doubao-seed-2-0-code-preview-260215" },
|
|
|
|
|
- { id: "doubao-seed-2.0-pro", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15", deploymentName: "doubao-seed-2-0-pro-260215" },
|
|
|
|
|
- { id: "doubao-seed-2.0-lite", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15", deploymentName: "doubao-seed-2-0-lite-260215" },
|
|
|
|
|
- { id: "MiniMax-M2.5", maxOutput: 131072, contextWindowTokens: 204800, enabled: true, releasedAt: "2026-02-12" },
|
|
|
|
|
- { id: "glm-4.7", maxOutput: 131072, contextWindowTokens: 200000, enabled: true, releasedAt: "2025-12-01" },
|
|
|
|
|
- { id: "deepseek-v3.2", maxOutput: 65536, contextWindowTokens: 262144, enabled: true, releasedAt: "2025-12-01" },
|
|
|
|
|
- { id: "kimi-k2.5", maxOutput: 32768, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-01-27" },
|
|
|
|
|
|
|
+ // --- Doubao-Seed-2.0 主力(2026-02-14 发布) ---
|
|
|
|
|
+ { id: "doubao-seed-2.0-code", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
|
|
|
+ { id: "doubao-seed-2.0-pro", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
|
|
|
+ { id: "doubao-seed-2.0-lite", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
|
|
|
+ // --- 老版 ---
|
|
|
|
|
+ { id: "doubao-seed-code", maxOutput: 32000, contextWindowTokens: 256000, releasedAt: "2025-11-01" },
|
|
|
|
|
+ // --- 订阅包里的第三方模型 ---
|
|
|
|
|
+ { id: "minimax-m2.5", maxOutput: 131072, contextWindowTokens: 204800, enabled: true },
|
|
|
|
|
+ { id: "glm-4.7", maxOutput: 131072, contextWindowTokens: 200000, enabled: true },
|
|
|
|
|
+ { id: "deepseek-v3.2", maxOutput: 65536, contextWindowTokens: 262144, enabled: true },
|
|
|
|
|
+ { id: "kimi-k2.5", maxOutput: 32768, contextWindowTokens: 262144, enabled: true },
|
|
|
],
|
|
],
|
|
|
};
|
|
};
|