fix: increase default max_tokens for Anthropic API to 32k

This commit is contained in:
Nate 2025-07-19 22:40:56 -07:00
parent b25a71c8ff
commit a8b9ce85a1

View file

@ -81,7 +81,7 @@ export class AnthropicApi implements BaseLlmApi {
: systemMessage,
top_p: oaiBody.top_p,
temperature: oaiBody.temperature,
max_tokens: oaiBody.max_tokens ?? 4096, // max_tokens is required
max_tokens: oaiBody.max_tokens ?? 32_000, // max_tokens is required
model: oaiBody.model,
stop_sequences: stop,
stream: oaiBody.stream,