BUG: After updating package to latest beta version, some new features are removed
Description
After updating ai and @ai-sdk/openai and @ai-sdk/react to latest beta version, some features are removed. Like stopWhen and isToolUIPart. It seems like this version has reverted to v4.
AI SDK Version
"@ai-sdk/openai": "^2.0.0-beta.6" "@ai-sdk/react": "^2.0.0-beta.14" "ai": "^5.0.0-beta.14"
By removing package-lock.json and node_modules folder and and removing @ai-sdk/openai @ai-sdk/react @ai-sdk/react from package.json and install them using npm install @ai-sdk/openai@beta @ai-sdk/react@beta ai@beta, it will fix
Identify issue type
Identified as None
Confidence: High
Rationale
The reported behavior was caused by the local dependency installation or lockfile state and was resolved by a clean reinstall, with no remaining AI SDK defect identified.
Evidence
- The reporter says beta APIs such as
stopWhenandisToolUIPartappeared to be missing after updating packages. - The reporter later confirmed that removing
package-lock.jsonandnode_modules, then reinstalling the beta packages, fixed the problem.