|
|
@@ -6,9 +6,11 @@
|
|
|
* - API key:https://platform.deepseek.com/api_keys
|
|
|
* - API 文档:https://api-docs.deepseek.com/
|
|
|
* - 模型列表:https://api-docs.deepseek.com/quick_start/pricing
|
|
|
+ * - V4 开源模型:https://huggingface.co/collections/deepseek-ai/deepseek-v4
|
|
|
*
|
|
|
- * 官方 API 仅 2 个 id:deepseek-chat (V3.2 non-thinking) / deepseek-reasoner (V3.2 thinking)。
|
|
|
- * V4/R2 等新模型发布时会替换同 id 背后的底层模型(alias 模式),id 本身保持不变。
|
|
|
+ * 官方 API 主模型:deepseek-v4-flash / deepseek-v4-pro。
|
|
|
+ * deepseek-chat / deepseek-reasoner 是兼容别名,官方标注将在 2026-07-24 废弃,
|
|
|
+ * 分别对应 deepseek-v4-flash 的非思考模式 / 思考模式。
|
|
|
*/
|
|
|
import type { InkosEndpoint } from "../types.js";
|
|
|
|
|
|
@@ -18,13 +20,15 @@ export const DEEPSEEK: InkosEndpoint = {
|
|
|
group: "china",
|
|
|
api: "openai-completions",
|
|
|
baseUrl: "https://api.deepseek.com",
|
|
|
- checkModel: "deepseek-chat",
|
|
|
+ checkModel: "deepseek-v4-flash",
|
|
|
temperatureRange: [0, 2],
|
|
|
defaultTemperature: 1,
|
|
|
writingTemperature: 1.5,
|
|
|
temperatureHint: "创意写作推荐 1.5",
|
|
|
models: [
|
|
|
- { id: "deepseek-chat", maxOutput: 8192, contextWindowTokens: 131072, enabled: true, releasedAt: "2025-12-01" },
|
|
|
- { id: "deepseek-reasoner", maxOutput: 65536, contextWindowTokens: 131072, enabled: true, releasedAt: "2025-12-01" },
|
|
|
+ { id: "deepseek-v4-flash", maxOutput: 393216, contextWindowTokens: 1_000_000, enabled: true, releasedAt: "2026-04-24" },
|
|
|
+ { id: "deepseek-v4-pro", maxOutput: 393216, contextWindowTokens: 1_000_000, enabled: true, releasedAt: "2026-04-24" },
|
|
|
+ { id: "deepseek-chat", maxOutput: 393216, contextWindowTokens: 1_000_000, releasedAt: "2026-04-24" },
|
|
|
+ { id: "deepseek-reasoner", maxOutput: 393216, contextWindowTokens: 1_000_000, releasedAt: "2026-04-24" },
|
|
|
],
|
|
|
};
|