-
Notifications
You must be signed in to change notification settings - Fork 212
fix: update Deepseek configurations #1083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
95d7338
c2298f9
df966fe
ba1d5f0
753cd3a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,56 +14,32 @@ export const deepSeekModels = { | |
| contextWindow: 1_000_000, | ||
| supportsImages: true, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: ["disable", "low", "medium", "high", "xhigh"], | ||
| supportsReasoningEffort: ["disable", "low", "high", "max"], // Updated 2026-08-01 | ||
| preserveReasoning: true, | ||
| reasoningEffort: "high", | ||
| inputPrice: 0.14, // $0.14 per million tokens (cache miss) - Updated Apr 29, 2026 | ||
| outputPrice: 0.28, // $0.28 per million tokens - Updated Apr 29, 2026 | ||
| cacheWritesPrice: 0.14, // $0.14 per million tokens (cache miss) - Updated Apr 29, 2026 | ||
| cacheReadsPrice: 0.0028, // $0.0028 per million tokens (cache hit) - Updated Apr 29, 2026 | ||
| inputPrice: 0, // the inputs are priced as cache read/write, so `inputPrice` should be 0 | ||
| // the peak/off-peak pricing policy has not been implemented yet - Updated 2026-08-01 | ||
| outputPrice: 0.28, // $0.28 per million tokens - Updated 2026-08-01 | ||
| cacheWritesPrice: 0.14, // $0.14 per million tokens (cache miss) - Updated 2026-08-01 | ||
| cacheReadsPrice: 0.0028, // $0.0028 per million tokens (cache hit) - Updated 2026-08-01 | ||
| description: `DeepSeek-V4-Flash is DeepSeek's fast, cost-efficient V4 model. It supports thinking and non-thinking modes, JSON output, tool calls, chat prefix completion (beta), and FIM completion (beta) in non-thinking mode.`, | ||
| }, | ||
| "deepseek-v4-pro": { | ||
| maxTokens: 384_000, | ||
| contextWindow: 1_000_000, | ||
| supportsImages: true, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: ["disable", "low", "medium", "high", "xhigh"], | ||
| supportsReasoningEffort: ["disable", "high", "max"], // Updated 2026-08-01 | ||
| preserveReasoning: true, | ||
| reasoningEffort: "high", | ||
| // TODO(deepseek): Re-check V4 Pro discounted prices after DeepSeek's 2026-05-31 discount end date. | ||
| inputPrice: 0.435, // $0.435 per million tokens (cache miss, discounted) - Updated Apr 29, 2026 | ||
| outputPrice: 0.87, // $0.87 per million tokens (discounted) - Updated Apr 29, 2026 | ||
| cacheWritesPrice: 0.435, // $0.435 per million tokens (cache miss, discounted) - Updated Apr 29, 2026 | ||
| cacheReadsPrice: 0.003625, // $0.003625 per million tokens (cache hit, discounted) - Updated Apr 29, 2026 | ||
| inputPrice: 0, // the inputs are priced as cache read/write, so `inputPrice` should be 0 | ||
| // the peak/off-peak pricing policy has not been implemented yet - Updated 2026-08-01 | ||
| outputPrice: 0.87, // $0.87 per million tokens - Updated 2026-08-01 | ||
| cacheWritesPrice: 0.435, // $0.435 per million tokens (cache miss) - Updated 2026-08-01 | ||
| cacheReadsPrice: 0.003625, // $0.003625 per million tokens (cache hit) - Updated 2026-08-01 | ||
| description: `DeepSeek-V4-Pro is DeepSeek's strongest V4 model for reasoning, coding, long-context, and agentic workloads. It supports thinking and non-thinking modes, JSON output, tool calls, chat prefix completion (beta), and FIM completion (beta) in non-thinking mode.`, | ||
| }, | ||
| // TODO(deepseek): Remove this compatibility alias after DeepSeek's 2026-07-24 retirement date. | ||
| "deepseek-chat": { | ||
| maxTokens: 8192, // 8K max output | ||
| contextWindow: 128_000, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| inputPrice: 0.28, // $0.28 per million tokens (cache miss) - Updated Dec 9, 2025 | ||
| outputPrice: 0.42, // $0.42 per million tokens - Updated Dec 9, 2025 | ||
| cacheWritesPrice: 0.28, // $0.28 per million tokens (cache miss) - Updated Dec 9, 2025 | ||
| cacheReadsPrice: 0.028, // $0.028 per million tokens (cache hit) - Updated Dec 9, 2025 | ||
| description: `Legacy compatibility alias for the non-thinking mode of deepseek-v4-flash. DeepSeek plans to deprecate this model name on 2026-07-24.`, | ||
| }, | ||
| // TODO(deepseek): Remove this compatibility alias after DeepSeek's 2026-07-24 retirement date. | ||
| "deepseek-reasoner": { | ||
| maxTokens: 8192, // 8K max output | ||
| contextWindow: 128_000, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| preserveReasoning: true, | ||
| inputPrice: 0.28, // $0.28 per million tokens (cache miss) - Updated Dec 9, 2025 | ||
| outputPrice: 0.42, // $0.42 per million tokens - Updated Dec 9, 2025 | ||
| cacheWritesPrice: 0.28, // $0.28 per million tokens (cache miss) - Updated Dec 9, 2025 | ||
| cacheReadsPrice: 0.028, // $0.028 per million tokens (cache hit) - Updated Dec 9, 2025 | ||
| description: `Legacy compatibility alias for the thinking mode of deepseek-v4-flash. DeepSeek plans to deprecate this model name on 2026-07-24.`, | ||
| }, | ||
| } as const satisfies Record<string, ModelInfo> | ||
|
|
||
| // https://api-docs.deepseek.com/quick_start/parameter_settings | ||
| export const DEEP_SEEK_DEFAULT_TEMPERATURE = 0.3 | ||
| export const DEEP_SEEK_DEFAULT_TEMPERATURE = 0.0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about setting this to 0 completely. I know their docs say 0 for coding, but I think you still need a bit of variance there for 'creativity', 0.3 felt right to me.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can remove this change if you insist. But according to https://api-docs.deepseek.com/guides/thinking_mode:
So it's only going to affect the case when the reasoning effor is set to "disable" anyway. Besides, this is just the default value. The users can always adjust the actual temperature in the extension. |
||
Uh oh!
There was an error while loading. Please reload this page.