-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update dependency @ai-sdk/openai to v3 #1038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 2 files
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
de3299b to
916c7fb
Compare
| }, | ||
| "dependencies": { | ||
| "@ai-sdk/openai": "2.0.88", | ||
| "@ai-sdk/openai": "3.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Updating @ai-sdk/openai to v3.0.1 without updating the ai package creates an interface mismatch, as streamText() expects a model with an older provider interface.
Severity: CRITICAL | Confidence: High
🔍 Detailed Analysis
The update of @ai-sdk/openai to v3.0.1 introduces a breaking change to its provider interface. The existing ai package (v5.0.116) and its streamText() function depend on an older provider interface (@ai-sdk/provider@2.0.0). The new @ai-sdk/openai package provides a model object implementing a newer interface (@ai-sdk/provider@3.0.0). This version mismatch will cause a runtime error when streamText() is called with the incompatible model object, which will break the chat functionality.
💡 Suggested Fix
To resolve the incompatibility, update the ai and @ai-sdk/react packages to versions that are compatible with @ai-sdk/openai@3.0.1. This will ensure all related packages use the same provider interface specification, preventing the runtime type mismatch.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: package.json#L19
Potential issue: The update of `@ai-sdk/openai` to v3.0.1 introduces a breaking change
to its provider interface. The existing `ai` package (v5.0.116) and its `streamText()`
function depend on an older provider interface (`@ai-sdk/provider@2.0.0`). The new
`@ai-sdk/openai` package provides a model object implementing a newer interface
(`@ai-sdk/provider@3.0.0`). This version mismatch will cause a runtime error when
`streamText()` is called with the incompatible model object, which will break the chat
functionality.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 7883506
This PR contains the following updates:
2.0.88->3.0.1Release Notes
vercel/ai (@ai-sdk/openai)
v3.0.1Compare Source
Patch Changes
v3.0.0Compare Source
Major Changes
51054a9: Addai/rscwith support for AI Server ComponentsConfiguration
📅 Schedule: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.