@ai-sdk/openai-compatible
3.0.93 · 17 Nov 2026Apache-2.014.4M / weekRepositoryHomepagenpmAtom feed
3.0.94 is the newest release of 3.x.
In short
1 fixed
Release note
The section about @ai-sdk/openai-compatible of a note shared by several packages.
Patch Changes
openai-compatible: Preserve unmapped usage fields in
usage.rawusage.rawis specified as usage "in the shape that the provider returns",
and the chat model already parsed the usage object loosely so that extra
top-level fields survived. The nestedprompt_tokens_detailsandcompletion_tokens_detailsobjects were still strict, so anything a provider
reported inside them was dropped — which is where providers put their most
distinguishing detail. The existing "should preserve extra usage fields"
fixture was itself losingaudio_tokens,image_tokensandtext_tokens
this way.Both nested objects are now parsed loosely, as is the completion model's usage
schema, which was strict throughout despite feeding the samerawfield.Only
usage.rawchanges. The mapped token counts are unaffected.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.