[GH-ISSUE #354] How do I control how much the tool thinks, either by length or intensity? #169

Closed
opened 2026-11-04 01:40:37 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @lcglook1 on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/354

In OpenCode, a simple bug fix can cause the reasoning process to go all the way up to 32,000 tokens

Image
Originally created by @lcglook1 on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/354 In OpenCode, a simple bug fix can cause the reasoning process to go all the way up to 32,000 tokens <img width="903" height="852" alt="Image" src="https://github.com/user-attachments/assets/08e1d95f-8485-4d87-b13e-692d67b267c8" />
Author
Owner

@Niko1221 commented on GitHub (Oct 1, 2026):

Thinking can be controlled three ways (details in DETAILS.md, "Thinking levels"):

  1. The level per request: "reasoning_effort": "none" | "low" | "medium" | "high" (OpenAI API). Without one, the model uses its own default, high. The level is an instruction the model was trained with, not a hard limit.
  2. For apps that don't send a level (like OpenCode here): open the chat page (http://127.0.0.1:8000), choose the thinking level in the Sampling drawer, turn on Use for other apps too and save. From their next request, OpenCode and other API clients get that level unless they send their own.
  3. A hard cap: add "reasoning_budget_tokens": 4000 (any number) to your strata-<model>.json and restart. Thinking then stops at that many tokens and the model answers from there. A request's own reasoning_budget_tokens takes precedence; 0 means no cap.

For small fixes, low plus a budget of a few thousand tokens works well. Closing as answered; please reopen if a setting doesn't take effect.

<!-- gh-comment-id:5938370619 --> @Niko1221 commented on GitHub (Oct 1, 2026): Thinking can be controlled three ways (details in [DETAILS.md](https://github.com/Niko1221/Strata/blob/main/docs/DETAILS.md), "Thinking levels"): 1. **The level per request:** `"reasoning_effort": "none" | "low" | "medium" | "high"` (OpenAI API). Without one, the model uses its own default, `high`. The level is an instruction the model was trained with, not a hard limit. 2. **For apps that don't send a level (like OpenCode here):** open the chat page (http://127.0.0.1:8000), choose the thinking level in the Sampling drawer, turn on **Use for other apps too** and save. From their next request, OpenCode and other API clients get that level unless they send their own. 3. **A hard cap:** add `"reasoning_budget_tokens": 4000` (any number) to your `strata-<model>.json` and restart. Thinking then stops at that many tokens and the model answers from there. A request's own `reasoning_budget_tokens` takes precedence; `0` means no cap. For small fixes, `low` plus a budget of a few thousand tokens works well. Closing as answered; please reopen if a setting doesn't take effect.
Author
Owner

@Niko1221 commented on GitHub (Oct 2, 2026):

A correction to my answer above: the chat page is at http://127.0.0.1:8080 (setup's default port), not 8000. Sorry about that.

<!-- gh-comment-id:5943823708 --> @Niko1221 commented on GitHub (Oct 2, 2026): A correction to my answer above: the chat page is at **http://127.0.0.1:8080** (setup's default port), not 8000. Sorry about that.
Author
Owner

@lcglook1 commented on GitHub (Oct 2, 2026):

It would be great if I could configure this setting right when starting the model. I've only managed to change it to 'low' in the web interface, but I'm still not quite sure how to do it via the API tools.

<!-- gh-comment-id:5948628444 --> @lcglook1 commented on GitHub (Oct 2, 2026): It would be great if I could configure this setting right when starting the model. I've only managed to change it to 'low' in the web interface, but I'm still not quite sure how to do it via the API tools.
Author
Owner

@lcglook1 commented on GitHub (Oct 2, 2026):

I still can't figure out where to modify "reasoning_budget_tokens": 4000

<!-- gh-comment-id:5948656100 --> @lcglook1 commented on GitHub (Oct 2, 2026): I still can't figure out where to modify "reasoning_budget_tokens": 4000
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#169
No description provided.