Skip to content

Docs: The Anthropic/Bedrock Provider has not specified that it combines the maxToken and thinkingBudget values. #8478

@DeJeune

Description

@DeJeune

Description

https://ai-sdk.dev/providers/ai-sdk-providers/anthropic#reasoning

but in source code:

if (isThinking && thinkingBudget != null) {
if (inferenceConfig.maxTokens != null) {
inferenceConfig.maxTokens += thinkingBudget;
} else {
inferenceConfig.maxTokens = thinkingBudget + 4096; // Default + thinking budget maxTokens = 4096, TODO update default in v5

AI SDK Version

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions