Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apis/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"@braintrust/proxy": "workspace:*",
"@supabase/supabase-js": "^2.32.0",
"ai": "2.2.22",
"ai": "5.0.52",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep ai on a version that still exports AIStream

In apis/node, pnpm run build runs tsc --noEmit and esbuild over src/local.ts; that path imports AIStream and AIStreamCallbacksAndOptions from ai in apis/node/src/anthropic.ts. AI SDK 5 removed the legacy stream helpers (the v5 docs mark AIStream as removed in AI SDK 4.0), so this dependency bump makes the Node package fail to typecheck/bundle anywhere the Anthropic stream helper is included unless the code is migrated or the major upgrade is held back.

Useful? React with 👍 / 👎.

"aws-lambda": "^1.0.7",
"axios": "^1.15.2",
"binary-search": "^1.3.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"@opentelemetry/exporter-metrics-otlp-http": "^0.204.0",
"@opentelemetry/resources": "^2.1.0",
"@opentelemetry/sdk-metrics": "^2.1.0",
"ai": "2.2.37",
"ai": "5.0.52",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore the removed trim helper before upgrading ai

@braintrust/proxy still imports trimStartOfStreamHelper from ai in packages/proxy/utils/openai.ts, but the AI SDK 5 public entrypoint no longer exports that legacy helper. Because this package's build script bundles the utils entrypoint with tsup, upgrading ai here will break builds or module loading for the proxy utils until the trimming logic is replaced locally or the SDK migration is completed.

Useful? React with 👍 / 👎.

"cache-control-parser": "^2.0.6",
"content-disposition": "^0.5.4",
"date-fns": "^4.1.0",
Expand Down
Loading
Loading