mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3167] [CLOSED] serve: accept the three thinking-budget field names (pi's thinkingTokenBudgetField) as aliases #4486
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4486
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3167
Author: @shizhx
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:serve-thinking-budget-aliases📝 Commits (1)
77b442fserve: accept the three thinking-budget field names (pi's thinkingTokenBudgetField) as aliases📊 Changes
3 files changed (+49 additions, -1 deletions)
View changed files
📝
docs/DETAILS.md(+5 -1)📝
serve/server.py(+9 -0)📝
serve/test_server.py(+35 -0)📄 Description
Summary
pi's
thinkingTokenBudgetFieldcan be any of the other providers' names for the same budget; clients sendthinking_token_budget(vLLM),thinking_budget(Qwen) orthinking_budget_tokens(llama.cpp). Those fields were silently ignored, so the thinking budget never applied. The serve layer now copies the first alias present intoreasoning_budget_tokensbefore dispatching; the request's ownreasoning_budget_tokenswins.Serve layer only — 9 lines in
serve/server.pyplus tests and the DETAILS.md note. No engine change; the budget machinery itself (#123) is untouched.Evidence
477ac13c, same four tests — the alias is ignored, thinking runs to the end, a bad alias is not rejected:Merge Danger
Door: Two-way. Additive serve-layer normalization; rolling back is a revert, and nothing downstream knows the budget came from an alias. Default path stays byte-identical: a request without any of the three aliases has
reasoning_budget_tokensleft untouched.Blast Radius: small — requests carrying one of the alias fields now have it applied as the thinking budget (previously ignored), and an invalid alias value now 400s like
reasoning_budget_tokensdoes (previously 200 and ignored).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.