Skip to content

🦋 New version release#77

Merged
brentrager merged 1 commit into
mainfrom
changeset-release/main
Jul 8, 2026
Merged

🦋 New version release#77
brentrager merged 1 commit into
mainfrom
changeset-release/main

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@smooai/smooth-operator-core@0.20.4

Patch Changes

  • 4755fcc: feat(dotnet): clamp max_tokens to the model's output ceiling (.NET parity)

    AgentOptions gains MaxOutputTokens (the budget), ModelMaxOutputTokens (the
    model's hard output ceiling), and EffectiveMaxTokens = min(budget, ceiling)
    (never 0; null budget = leave max_tokens unset; null/≤0 ceiling = graceful
    passthrough). SmoothAgent now sends the clamped value as the request's
    ChatOptions.MaxOutputTokens. Mirrors the Rust engine's with_model_ceiling /
    effective_max_tokens so a policy/budget max_tokens can never exceed what the
    model can physically emit — otherwise a reasoning model burns its budget on
    reasoning and returns empty, or the upstream 400s (e.g. groq-compound's 8192
    output cap under a 32768 budget). The ceiling is sourced from the gateway's
    /model/info by the consumer (kept out of the engine). EPIC th-1cc9fa.

@brentrager brentrager force-pushed the changeset-release/main branch from 578ed06 to 77b201d Compare July 8, 2026 20:28
@brentrager brentrager merged commit 0725020 into main Jul 8, 2026
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