@ai-sdk/openai
4.0.121 · 17 Nov 2026Apache-2.025.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/openai From 3.0.138 to 4.0.121
125 releases in betweenevery note read
- 7
- changes to make
- 0
- advisories fixed
- 90
- new
- 105
- fixes
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Deprecated4.0.96
Release by release
- Fixed
Return input transformations in responses provider metadata
- Fixed
- New
openai: Add GPT-6.2 Astra and GPT-6.2 Sol model support
- New
- Fixed
openai: Send
additionalToolsdefinitions only for tools registered in the request
- Fixed
- Fixed
Derive known model ID suggestions from each provider's model catalog declarations so catalog updates automatically update autocomplete, while preserving existing suggestions, endpoint-specific model lists, and support for custom model IDs.
- Fixed
- New
Add experimental extraction models backed by structured language model output
- New
- New
openai: Add positioned additionalTools and accept custom and namespace tools
- Fixed
Forward the provider's configured fetch transport when downloading file inputs. Add a
fetchoption tocreateDownloadso core downloads can also useguarded-fetchfor opt-in DNS validation on Node.js. The function returned bycreateDownloadcan now also be passed asexperimental_downloadtogenerateTextandstreamText, andexperimental_downloadnow also handles generated file URLs returned by the model, so one hook covers all core downloads. Document that the default URL checks do not resolve DNS and recommend the guarded transport or network egress controls for untrusted URLs. - Fixed
openai: Keep tool-result additionalTools for parallel results and openai options
- New
- New
Support positioned Responses API format updates so changing structured output schemas can preserve earlier reasoning and prompt cache reuse. Add a stable request-level text format override and expose prompt cache comparison diagnostics for generation, streaming, and batch results.
- New
4.0.114nothing new or fixed in the note
1 other line we could not sort, mostly version bumps
- 4.0.0
Start v7 pre-release
93 internal lines (docs, tests, tooling) left out.
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.