π¦ New version release - #180
Open
brentrager wants to merge 1 commit into
Open
Conversation
brentrager
force-pushed
the
changeset-release/main
branch
from
August 19, 2026 00:54
807ce24 to
5d7b1a7
Compare
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.
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@1.11.0
Minor Changes
875b7a6: Ask the gateway for usage on every streaming request (
stream_options: {"include_usage": true}), in allfive engines.
The OpenAI streaming API omits usage unless it is explicitly requested, and nothing here ever
requested it. So the missing usage chunk was never the gateway losing data β it was the gateway
correctly honouring a request that never asked. Everything built on top of that misattribution
compensates for one unset request parameter: two char-count estimators,
prompt_tokenshardcoded to0,completion_tokens = content.len() / 4, theusage_estimatedandcost_estimatedflags, and across-language "is this measured?" convention.
Verified against llm.smoo.ai (LiteLLM 1.95.0,
groq-gpt-oss-120b), same prompt both ways:"prompt_tokens": 73, "completion_tokens": 8Sent only when streaming: it is meaningless otherwise, and leaving it off keeps a non-streaming
request byte-identical to before. Python honours an explicit caller-supplied
stream_optionsratherthan overriding it.
Not fixed by this, and worth knowing: the per-request cost headers are present on a streamed
response but all read
0.0, because at header-flush time the completion has not been priced yet.parse_gateway_costalready maps0toNone, so gateway cost stays unavailable on the streamingpath and the
response_idβLiteLLM_SpendLogs.request_idjoin remains the only authoritativeper-turn cost there.
@smooai/smooth-operator-temporal@1.9.4
Patch Changes