mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 07:30:20 +00:00
fix: refresh DeepSeek pricing to current V3.2 rates (#54143) (thanks @arkyu2077)
* fix: add actual DeepSeek API pricing to model catalog Replace zero-cost placeholder with real pricing from DeepSeek docs: - deepseek-chat (V3): /bin/bash.27/1M input, .10/1M output, /bin/bash.07 cache read - deepseek-reasoner (R1): /bin/bash.55/1M input, .19/1M output, /bin/bash.14 cache read Fixes #54134 * fix: refresh DeepSeek pricing to current V3.2 rates * fix: refresh DeepSeek pricing to current V3.2 rates (#54143) (thanks @arkyu2077) --------- Co-authored-by: Jasmine Zhang <jasminezhang@192.168.1.75> Co-authored-by: Ayaan Zaidi <hi@obviy.us>
This commit is contained in:
@@ -2,12 +2,12 @@ import type { ModelDefinitionConfig } from "../config/types.models.js";
|
||||
|
||||
export const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
|
||||
|
||||
// TODO: fill in actual DeepSeek API pricing
|
||||
// DeepSeek V3.2 API pricing (per 1M tokens)
|
||||
// https://api-docs.deepseek.com/quick_start/pricing
|
||||
const DEEPSEEK_DEFAULT_COST = {
|
||||
input: 0,
|
||||
output: 0,
|
||||
cacheRead: 0,
|
||||
const DEEPSEEK_V3_2_COST = {
|
||||
input: 0.28,
|
||||
output: 0.42,
|
||||
cacheRead: 0.028,
|
||||
cacheWrite: 0,
|
||||
};
|
||||
|
||||
@@ -19,7 +19,7 @@ export const DEEPSEEK_MODEL_CATALOG: ModelDefinitionConfig[] = [
|
||||
input: ["text"],
|
||||
contextWindow: 131072,
|
||||
maxTokens: 8192,
|
||||
cost: DEEPSEEK_DEFAULT_COST,
|
||||
cost: DEEPSEEK_V3_2_COST,
|
||||
compat: { supportsUsageInStreaming: true },
|
||||
},
|
||||
{
|
||||
@@ -29,7 +29,7 @@ export const DEEPSEEK_MODEL_CATALOG: ModelDefinitionConfig[] = [
|
||||
input: ["text"],
|
||||
contextWindow: 131072,
|
||||
maxTokens: 65536,
|
||||
cost: DEEPSEEK_DEFAULT_COST,
|
||||
cost: DEEPSEEK_V3_2_COST,
|
||||
compat: { supportsUsageInStreaming: true },
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user