fix: max tokens when using models like opus with providers other than anthropic (#4307)

This commit is contained in:
Aiden Cline
2025-11-13 14:39:09 -08:00
committed by GitHub
parent d0b4169a6b
commit 0c51feb9c2
3 changed files with 101 additions and 3 deletions

View File

@@ -345,7 +345,7 @@ export namespace SessionPrompt {
maxRetries: 0,
activeTools: Object.keys(tools).filter((x) => x !== "invalid"),
maxOutputTokens: ProviderTransform.maxOutputTokens(
model.providerID,
model.npm ?? "",
params.options,
model.info.limit.output,
OUTPUT_TOKEN_MAX,