Packages

@ai-sdk/openai

4.0.108 · 3 Nov 2026Apache-2.022M / weekRepositoryHomepagenpmAtom feed

Your version

4.0.104

27 Oct 2026Where it was published

4.0.108 is the newest release of 4.x.

In short

2 new4 fixed1 internal

Release note

Patch Changes

  • openai: Add GPT-6.1 Terra model support

  • openai: Read transcription duration from usage for duration-billed json responses

    durationInSeconds now falls back to usage.seconds when usage.type is duration and the response has no top-level duration (e.g. gpt-transcribe with the default json response format).

  • Support streaming transcription with gpt-live-transcribe and gpt-transcribe. For these models the language provider option is sent as a single-entry languages list. gpt-transcribe warns about and omits streaming.delay, which it does not support. gpt-live-transcribe rejects non-streaming transcription, since it has no REST endpoint.

  • openai: Strip propertyNames schemas that omit type: 'string' (e.g. Zod 3 records with constrained keys) instead of throwing an unsupported functionality error

  • openai: Report unfinished web searches as tool errors

  • openai: Only send transcription response format and timestamp defaults when needed

    Transcription requests no longer send response_format=verbose_json or timestamp_granularities=segment unless the caller sets them or the model needs them. Previously, any providerOptions.openai value (such as a prompt) caused verbose_json to be sent for models like gpt-transcribe, which rejected the request.