feat: increase max token limit for Claude model claude-3-7-sonnet-20250219
- Added logging for dynamic max tokens based on model details. - Increased max token limit for Claude model from 8000 to 128000. - Included beta header for Anthropik API call.
This commit is contained in:
@@ -17,7 +17,7 @@ export default class AnthropicProvider extends BaseProvider {
|
||||
name: 'claude-3-7-sonnet-20250219',
|
||||
label: 'Claude 3.7 Sonnet',
|
||||
provider: 'Anthropic',
|
||||
maxTokenAllowed: 8000,
|
||||
maxTokenAllowed: 128000,
|
||||
},
|
||||
{
|
||||
name: 'claude-3-5-sonnet-latest',
|
||||
@@ -95,6 +95,7 @@ export default class AnthropicProvider extends BaseProvider {
|
||||
});
|
||||
const anthropic = createAnthropic({
|
||||
apiKey,
|
||||
headers: { 'anthropic-beta': 'output-128k-2025-02-19' },
|
||||
});
|
||||
|
||||
return anthropic(model);
|
||||
|
||||
Reference in New Issue
Block a user