Skip to content

Commit 7dfd1b7

Browse files
committed
change anthropic max_tokens
1 parent b935b60 commit 7dfd1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spoon_ai/llm/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def _get_provider_defaults(self, provider_name: str) -> Dict[str, Any]:
335335
'anthropic': {
336336
'model': 'claude-sonnet-4-20250514',
337337
'base_url': 'https://api.anthropic.com',
338-
'max_tokens': 200000,
338+
'max_tokens': 63000, # Claude Sonnet-4 supports max_token of context <64000
339339
'temperature': 0.1, # Lower temperature for Claude
340340
**{k: v for k, v in common_defaults.items() if k != 'temperature'}
341341
},

0 commit comments

Comments
 (0)