Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/use-ai-sdk-major.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ if (major !== "6" && major !== "7") {

// AI SDK v7 pairs with @ai-sdk/* and workers-ai-provider v4; v6 pairs with
// @ai-sdk/* and workers-ai-provider v3.
//
// ai@6.0.260 through 6.0.263 regress tool-result handling in the Workers
// runtime. Cap compatibility coverage at the last known-good v6 release until
// an upstream patch restores the affected client-tool and HITL behavior.
const AI_V6_RANGE = ">=6.0.0 <6.0.260";

const ranges =
major === "6"
? {
ai: "^6.0.0",
ai: AI_V6_RANGE,
"@ai-sdk/react": "^3.0.0",
"@ai-sdk/openai": "^3.0.0",
"@ai-sdk/anthropic": "^3.0.0",
Expand Down
Loading