Skip to content

Max tokens fixes#1092

Merged
rumpl merged 2 commits intodocker:mainfrom
rumpl:fix-max-tokens
Dec 15, 2025
Merged

Max tokens fixes#1092
rumpl merged 2 commits intodocker:mainfrom
rumpl:fix-max-tokens

Conversation

@rumpl
Copy link
Copy Markdown
Member

@rumpl rumpl commented Dec 15, 2025

If no max_tokens were set we would set it to 8k in the anthropic case. This is way less than the 64k that its models can do.

We will now look at the models.dev data to get the limit and use it if it's defined, if not we set 32k as a more sensible default.

If a limit is set in the yaml we take that one of course.

Fixes #1090

Since it's optional

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl rumpl requested a review from a team as a code owner December 15, 2025 15:42
@rumpl rumpl changed the title config: Make max tokens a pointer Max tokens fixes Dec 15, 2025
@rumpl rumpl merged commit d6af657 into docker:main Dec 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic tool call with large arguments

2 participants