diff --git a/src/core/context/context-management/context-window-utils.ts b/src/core/context/context-management/context-window-utils.ts index 6e658c14..1e6e1383 100644 --- a/src/core/context/context-management/context-window-utils.ts +++ b/src/core/context/context-management/context-window-utils.ts @@ -13,7 +13,7 @@ export function getContextWindowInfo(api: ApiHandler) { // Handle special cases like DeepSeek if (api instanceof OpenAiHandler && api.getModel().id.toLowerCase().includes("deepseek")) { - contextWindow = 64_000 + contextWindow = 128_000 } let maxAllowedSize: number diff --git a/src/shared/api.ts b/src/shared/api.ts index 387e507e..ca842f9f 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -1246,7 +1246,7 @@ export const deepSeekDefaultModelId: DeepSeekModelId = "deepseek-chat" export const deepSeekModels = { "deepseek-chat": { maxTokens: 8_000, - contextWindow: 64_000, + contextWindow: 128_000, supportsImages: false, supportsPromptCache: true, // supports context caching, but not in the way anthropic does it (deepseek reports input tokens and reads/writes in the same usage report) FIXME: we need to show users cache stats how deepseek does it inputPrice: 0, // technically there is no input price, it's all either a cache hit or miss (ApiOptions will not show this). Input is the sum of cache reads and writes @@ -1256,7 +1256,7 @@ export const deepSeekModels = { }, "deepseek-reasoner": { maxTokens: 8_000, - contextWindow: 64_000, + contextWindow: 128_000, supportsImages: false, supportsPromptCache: true, // supports context caching, but not in the way anthropic does it (deepseek reports input tokens and reads/writes in the same usage report) FIXME: we need to show users cache stats how deepseek does it inputPrice: 0, // technically there is no input price, it's all either a cache hit or miss (ApiOptions will not show this)