Repository navigation
Default every model to high reasoning effort; Haiku levels are thinking budgets - #549
Merged
Merged
Conversation
…ng budgets Closes part of #548. DEFAULT_REASONING_EFFORT = high replaces the per-model defaults table, so Sonnet (sent high explicitly, the API default), Haiku, Luna and gpt-oss run at high on every provider, and a new model does too. Haiku has no effort field, so its level is a thinking budget: low 1024, medium 2048, high 4096, none no thinking, xhigh and max clamp to high. A budget that would not fit under max_tokens is lowered to leave 1024 tokens for the answer. ANTHROPIC_THINKING_BUDGET_TOKENS is removed: the example file shipped 2048, so a server that copied it would have kept Haiku off the new default. Tested: 3691 offline tests; budget, default, fit and explicit-thinking tests; 11 mutations killed.
Tested: not applicable (docs).
This was referenced Sep 29, 2026
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #548. Follows #546 (the
reasoning_effortkey).What
Every model runs at
highreasoning effort unless a community says otherwise, on every provider:output_config.effort: highsent explicitly (the API's own default, so no change on the Claude Platform)high)highhighhighhighOne
DEFAULT_REASONING_EFFORT = "high"replaces the per-model defaults table, so a model added later runs athightoo.Haiku
Haiku 4.5 has no effort field; it thinks with a token budget.
Its level is now that budget (
THINKING_BUDGET_TOKENS):low1024 (the API's floor),medium2048 (what it ran at before),high4096,noneno thinking;xhighandmaxgivehigh, since a larger budget leaves too little ofmax_tokens(default 8000) for the answer.A budget that would not fit under the request's
max_tokensis lowered to leave 1024 tokens for the answer instead of failing every request.On OpenRouter, Haiku's level goes in the
reasoning.effortbody field, and OpenRouter turns it into a budget.Behavior changes to look at
reasoning_effort: mediumfor the old behavior.ANTHROPIC_THINKING_BUDGET_TOKENSis removed (departing from the issue text, which kept it):.env.exampleshipped it as 2048, so a server that copied the example would have kept Haiku on the old budget and the new default would not have taken effect there.Settingsignores unknown variables (extra="ignore"), so a leftover value is harmless, and a test pins that it is not a source. There is no longer a deployment-wide switch for Haiku's thinking; a community setsnoneor a level.reasoning: {effort: high}by default (Haiku ran without reasoning there; Sonnet at OpenRouter's own level).Not verified by a request
There is no Anthropic or OpenRouter key on the development machine.
Haiku's budget levels are OSA's mapping, not a provider's; the budget shape (
thinking: {type: enabled, budget_tokens}) is the one Haiku already ran with.I could not read the deployments' environment (SSH to the host was refused), so whether a server exports
ANTHROPIC_MAX_OUTPUT_TOKENSbelow 5120 is unknown; the fit rule makes that case lower the budget instead of failing.The first real request through Haiku on the dev deployment is the check to run after merge.
Tests
highfor Sonnet, Haiku, Luna and gpt-oss on every platform; the Haiku budget table; a pinned level-by-level result for every model.none,xhighandmaxclamped, explicitthinkingwins, budget lowered to fitmax_tokensand still refused when there is no room; Sonnetoutput_configwhen unset; OpenRouterreasoningfor Sonnet, Haiku, Luna and gpt-oss when unset; the retired setting is not read.create_community_assistant, Haiku gets the community's level as a budget.none, the effort field and explicit thinking; all are killed.Docs
ADR 0015 amended, CHANGELOG,
.context/yaml_registry.md,.env.example, the schema field docstring.The schema reference on docs.osc.earth (
osc-docs) still needs thereasoning_effortrow.