Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/adapter-deepseek/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class DeepseekClient extends PlatformModelAndEmbeddingsClient<ClientConfi
modelInfo: info,
requester: this._requester,
model,
modelMaxContextSize: info.maxTokens,
Comment thread
dingyi222666 marked this conversation as resolved.
maxTokenLimit: Math.floor(
(info.maxTokens || 1_000_000) * this._config.maxContextRatio
),
Expand Down
1 change: 1 addition & 0 deletions packages/adapter-doubao/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class DouBaoClient extends PlatformModelAndEmbeddingsClient<ClientConfig>
modelInfo: info,
requester: this._requester,
model,
modelMaxContextSize: info.maxTokens,
Comment thread
dingyi222666 marked this conversation as resolved.
maxTokenLimit: Math.floor(
(info.maxTokens || 100_000) * this._config.maxContextRatio
),
Expand Down
2 changes: 1 addition & 1 deletion packages/shared-adapter/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function getModelMaxContextSize(info: ModelInfo): number {
'gemini-3.0-pro': 1_097_152,
'gemini-3.1-pro': 1_097_152,
'gemini-2.0': 2097152,
deepseek: 128000,
deepseek: 1_000_000,
Comment thread
dingyi222666 marked this conversation as resolved.
'llama3.1': 128000,
'command-r-plus': 128000,
'moonshot-v1-8k': 8192,
Expand Down
Loading