Packages

@ai-sdk/openai-compatible

3.0.93 · 17 Nov 2026Apache-2.014.4M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.69

18 Aug 2026Where it was published

2.0.94 is the newest release of 2.x.

In short

1 fixed

Release note

Patch Changes

  • openai-compatible: Preserve unmapped usage fields in usage.raw

    usage.raw is 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 nested prompt_tokens_details and
    completion_tokens_details objects 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 losing audio_tokens, image_tokens and text_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 same raw field.

    Only usage.raw changes. 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.