mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #34] [MERGED] Thinking budget leaves room for the answer #291
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#291
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/mw00/project-maya/pull/34
Author: @ksanislo
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @mw00
Base:
main← Head:think-reserve📝 Commits (1)
8e71ec4serve: the thinking budget leaves room for the answer (STRATA_GLM_THINK_RESERVE, at least 1024 tokens or a quarter of max_tokens)📊 Changes
2 files changed (+11 additions, -3 deletions)
View changed files
📝
README.md(+1 -0)📝
serve/server.py(+10 -3)📄 Description
thinking_budget(32768) ignores the request'smax_tokens. A client withmax_tokens8192, or nomax_tokensat the default 32K context, can run out while still thinking: no answer at all.min(thinking_budget, max_tokens - max(STRATA_GLM_THINK_RESERVE, max_tokens/4)), reserve default 1024. Largermax_tokens: unchanged.Measured - Maya-M,
max_tokens2000, high effort: thinking closed at 976 tokens, complete answer,finish_reason: stop(before:length, no content). Server tests pass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.