Skip to content

chore(deps): bump ai to v6 and @ai-sdk/* to match - #64

Merged
lautaropaske merged 1 commit into
mainfrom
lautaropaske/grokbot-grade-alert
Nov 3, 2026
Merged

lautaropaske merged 1 commit into
mainfrom
lautaropaske/grokbot-grade-alert

Conversation

@lautaropaske

@lautaropaske lautaropaske commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The "exists error in production @ vercel (open-silver)" alert fired for /api/grade because AI Gateway started returning a deprecation warning for AI SDK 5. The SDK printed it to stderr, and Vercel tags stderr as ERROR. This PR fixes the cause: the SDK moves to v6, so the gateway no longer sends the warning.

-"ai": "^5.0.223"            +"ai": "^6.0.322"
-"@ai-sdk/gateway": "^4.0.115"  +"^3.0.228"   # v4 is the ai v7 line
-"@ai-sdk/react": "^4.0.154"    +"^3.0.325"   # v4 is the ai v7 line
-"@ai-sdk/google": "^2.0.86"    +"^3.0.141"
-"@ai-sdk/openai": "^2.0.117"   +"^3.0.136"
-"@ai-sdk/xai": "^2.0.84"       +"^3.0.149"

Every package is pinned to its ai-v6 dist-tag line. @ai-sdk/gateway and @ai-sdk/react were already on 4.x, which belongs to the v7 line, so they move to 3.x to match. That leaves one ai and one gateway in the tree.

The only breaking change that touched code: LanguageModelUsage now requires inputTokenDetails and outputTokenDetails. That's in a test fixture in tests/api/grade.test.ts. No app code changed.

Evidence

  • Before (production, v5): since 2026-11-03 03:07 UTC, each graded request also logs at ERROR:
    (node:8) Warning: AI SDK Warning: AI Gateway support for AI SDK 5 is deprecated. Upgrade to AI SDK 6 or later…
    All 11 affected requests returned 200 with outcome: graded.
  • After (this PR's preview, v6): POST /api/grade with public/a_resume.pdf returned 200, grade A, in 18s. Runtime logs show only {"http.route":"/api/grade","outcome":"graded",…,"finishReason":"stop"}, with no AI SDK warning and no stderr line.
  • bunx tsc --noEmit, bun run lint and bun run test (195/195) all pass.

Merge Danger

Door: two-way

This is a dependency bump; reverting the commit undoes it.

Blast Radius: AI routes

/api/grade was checked live on the preview. Roast-me (streamObject and experimental_useObject) passes tsc and its tests, but wasn't run live.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
open-silver Ready Ready Preview Nov 3, 2026 11:34am UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lautaropaske
lautaropaske force-pushed the lautaropaske/grokbot-grade-alert branch from 23b2b5c to 1436465 Compare November 3, 2026 11:32
@lautaropaske lautaropaske changed the title fix(observability): log AI SDK warnings at WARN chore(deps): bump ai to v6 and @ai-sdk/* to match Nov 3, 2026
@lautaropaske
lautaropaske merged commit 453439d into main Nov 3, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 14364659 Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant