Skip to content
Closed
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
4 changes: 2 additions & 2 deletions 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 Do not bump ai before migrating AIStream usage

This workspace still imports AIStream and AIStreamCallbacksAndOptions from ai in apis/node/src/anthropic.ts, but AI SDK v5 removed those legacy stream helpers. With this dependency installed, the node lambda typecheck/bundle will fail on missing exports before the package can build, so this needs to stay on the 2.x line or migrate the Anthropic stream wrapper to the v5 streaming APIs in the same change.

Useful? React with 👍 / 👎.

"aws-lambda": "^1.0.7",
"axios": "^1.15.2",
"binary-search": "^1.3.6",
Expand All @@ -29,7 +29,7 @@
"dotenv": "^16.3.1",
"esbuild": "^0.27.0",
"eventsource-parser": "^1.1.1",
"express": "^4.19.2",
"express": "^4.22.0",
"openai": "^4.104.0",
"redis": "^4.6.8"
},
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 Keep ai compatible with trimStartOfStreamHelper

@braintrust/proxy still imports trimStartOfStreamHelper from ai in packages/proxy/utils/openai.ts, but the AI SDK v5 package no longer exports that helper. Any build of the proxy package (and consumers that bundle it) will fail resolving that import after this dependency bump, so either keep the existing v2 dependency or replace this helper before upgrading.

Useful? React with 👍 / 👎.

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