ai icon indicating copy to clipboard operation
ai copied to clipboard

BUG: After updating package to latest beta version, some new features are removed

Open iborqe opened this issue 1 year ago • 2 comments

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"

iborqe avatar Jul 11 '25 15:07 iborqe

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

iborqe avatar Jul 12 '25 07:07 iborqe

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 stopWhen and isToolUIPart appeared to be missing after updating packages.
  • The reporter later confirmed that removing package-lock.json and node_modules, then reinstalling the beta packages, fixed the problem.

lgrammel avatar Jul 22 '26 14:07 lgrammel