@ai-sdk/openai
4.0.108 · 3 Nov 2026Apache-2.022M / weekRepositoryHomepagenpmAtom feed
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
usagefor duration-billedjsonresponsesdurationInSecondsnow falls back tousage.secondswhenusage.typeisdurationand the response has no top-levelduration(e.g.gpt-transcribewith the defaultjsonresponse format).Support streaming transcription with
gpt-live-transcribeandgpt-transcribe. For these models thelanguageprovider option is sent as a single-entrylanguageslist.gpt-transcribewarns about and omitsstreaming.delay, which it does not support.gpt-live-transcriberejects non-streaming transcription, since it has no REST endpoint.openai: Strip
propertyNamesschemas that omittype: 'string'(e.g. Zod 3 records with constrained keys) instead of throwing an unsupported functionality erroropenai: 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_jsonortimestamp_granularities=segmentunless the caller sets them or the model needs them. Previously, anyproviderOptions.openaivalue (such as aprompt) causedverbose_jsonto be sent for models likegpt-transcribe, which rejected the request.