Revert "dev: remove max_tokens from Claude"

This reverts commit 3bce60893e.
This commit is contained in:
KernelDeimos 2025-01-30 12:18:26 -05:00
parent 3bce60893e
commit 05ced4e625

View File

@ -251,6 +251,7 @@ class ClaudeService extends BaseService {
const msg = await this.anthropic.messages.create({
model: model ?? this.get_default_model(),
max_tokens: (model === 'claude-3-5-sonnet-20241022' || model === 'claude-3-5-sonnet-20240620') ? 8192 : 4096,
temperature: 0,
system: PUTER_PROMPT + JSON.stringify(system_prompts),
messages: adapted_messages,