Repository navigation
fix(examples): align OpenAI provider v4 with AI SDK 7 - #2057
Conversation
Bumps [@ai-sdk/openai](https://github.com/vercel/ai/tree/HEAD/packages/openai) from 3.0.109 to 4.0.83. - [Release notes](https://github.com/vercel/ai/releases) - [Changelog](https://github.com/vercel/ai/blob/main/packages/openai/CHANGELOG.md) - [Commits](https://github.com/vercel/ai/commits/@ai-sdk/openai@4.0.83/packages/openai) --- updated-dependencies: - dependency-name: "@ai-sdk/openai" dependency-version: 4.0.83 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aed7224a56
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Reviewed the private-example migration to AI SDK 7/OpenAI provider 4, instructions rename, and declaration metadata patch. Published SDK runtime, public APIs, and AI SDK 6/7 peer support remain unchanged. Example typechecks, 233 adapter/stream tests, and the offline AI SDK 7 interoperability probe pass. Independent review found no blockers. Require green CI before merging.
Updates the private AI SDK examples to @ai-sdk/openai 4.0.83 and aligns the UI example with ai 7 / @ai-sdk/react 4. The script now uses
instructions, and its README explains the migration.This does not change published SDK code, public APIs, or existing AI SDK 6/7 support. Consumers of the published packages do not need to migrate. Developers copying the updated UI example should use the AI SDK 7 dependency set and migration guide linked in its README.
Restores eventsource-parser's legacy TypeScript stream declaration mapping with a metadata-only patch so package declaration checks pass.
Validation: affected example typechecks, 233 adapter/stream tests, an offline AI SDK 7 interoperability probe, and all GitHub CI checks pass. Local full verification had the documented Docker/macOS environment failures; green GitHub CI is the user-approved final gate.