Skip to content

fix(core): cap Alibaba thinking budget variants at 64k - #51154

Merged
rekram1-node merged 1 commit into
v2from
qwen-thinking-variants
Sep 24, 2026
Merged

rekram1-node merged 1 commit into
v2from
qwen-thinking-variants

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Issue for this PR

N/A. Found while testing default output limits for #51021.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Alibaba thinking budget variants now stop at 64k. Anthropic's already stop at 32k.

models.dev lists budget_tokens support for these models without a maximum, so variant.ts derived the budgets from the catalog output limit: max was the output limit minus one, and high was half of it.

Model Output limit Before (high / max) After
qwen3.7-plus, qwen3.7-max 131,072 65,536 / 131,071 32,000 / 63,999
Kimi K2.6, K2.7 Code (Token Plan) 262,144 131,072 / 262,143 32,000 / 63,999
Qwen 3.5 / 3.6 family 65,536 32,768 / 65,535 32,000 / 63,999
Qwen Plus, Qwen Flash 32,768 16,384 / 32,767 unchanged

How did you verify your code works?

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@rekram1-node rekram1-node changed the title fix(core): skip thinking budget variants for Qwen models fix(core): cap Alibaba thinking budgets and skip them for Qwen Sep 24, 2026
@rekram1-node rekram1-node changed the title fix(core): cap Alibaba thinking budgets and skip them for Qwen fix(core): cap Alibaba thinking budget variants at 64k Sep 24, 2026
@rekram1-node
rekram1-node merged commit 499c2fe into v2 Sep 24, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the qwen-thinking-variants branch September 24, 2026 18:14
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.

1 participant