diff --git a/.changeset/dirty-beers-stare.md b/.changeset/dirty-beers-stare.md deleted file mode 100644 index b770a3cd1a6b..000000000000 --- a/.changeset/dirty-beers-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'ai': patch ---- - -feat (ai/core): Add option `throwErrorForEmptyVectors` to cosineSimilarity diff --git a/.changeset/smooth-beans-worry.md b/.changeset/smooth-beans-worry.md deleted file mode 100644 index 8b106b5a0b9a..000000000000 --- a/.changeset/smooth-beans-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'ai': patch ---- - -feat (ai/ui): add appendResponseMessages helper diff --git a/examples/ai-core/package.json b/examples/ai-core/package.json index 0645b1909757..297554865bfc 100644 --- a/examples/ai-core/package.json +++ b/examples/ai-core/package.json @@ -24,7 +24,7 @@ "@opentelemetry/sdk-node": "0.54.2", "@opentelemetry/auto-instrumentations-node": "0.54.0", "@opentelemetry/sdk-trace-node": "1.28.0", - "ai": "4.0.36", + "ai": "4.0.37", "dotenv": "16.4.5", "mathjs": "14.0.0", "zod": "3.23.8", diff --git a/examples/express/package.json b/examples/express/package.json index 9ac57c3c7573..6b3d3f982f10 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@ai-sdk/openai": "1.0.19", - "ai": "4.0.36", + "ai": "4.0.37", "dotenv": "16.4.5", "express": "5.0.1" }, diff --git a/examples/fastify/package.json b/examples/fastify/package.json index 18c322feb5b0..997b0aa25906 100644 --- a/examples/fastify/package.json +++ b/examples/fastify/package.json @@ -4,7 +4,7 @@ "private": true, "dependencies": { "@ai-sdk/openai": "1.0.19", - "ai": "4.0.36", + "ai": "4.0.37", "dotenv": "16.4.5", "fastify": "5.1.0" }, diff --git a/examples/hono/package.json b/examples/hono/package.json index d412a34aeb3e..13bb72a09f33 100644 --- a/examples/hono/package.json +++ b/examples/hono/package.json @@ -5,7 +5,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.19", "@hono/node-server": "1.13.7", - "ai": "4.0.36", + "ai": "4.0.37", "dotenv": "16.4.5", "hono": "4.6.9" }, diff --git a/examples/nest/package.json b/examples/nest/package.json index 2210f5f5ff7a..d0ea2298bd63 100644 --- a/examples/nest/package.json +++ b/examples/nest/package.json @@ -19,7 +19,7 @@ "@nestjs/common": "^10.4.15", "@nestjs/core": "^10.0.0", "@nestjs/platform-express": "^10.4.9", - "ai": "4.0.36", + "ai": "4.0.37", "reflect-metadata": "^0.2.0", "rxjs": "^7.8.1" }, diff --git a/examples/next-fastapi/package.json b/examples/next-fastapi/package.json index 61e23612529d..7f6150112640 100644 --- a/examples/next-fastapi/package.json +++ b/examples/next-fastapi/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@ai-sdk/ui-utils": "1.0.10", - "ai": "4.0.36", + "ai": "4.0.37", "geist": "^1.3.1", "next": "latest", "react": "^18", diff --git a/examples/next-google-vertex/package.json b/examples/next-google-vertex/package.json index 6f90b4eca379..52f1a8a46488 100644 --- a/examples/next-google-vertex/package.json +++ b/examples/next-google-vertex/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@ai-sdk/google-vertex": "2.0.18", - "ai": "4.0.36", + "ai": "4.0.37", "geist": "^1.3.1", "next": "latest", "react": "^18", diff --git a/examples/next-langchain/package.json b/examples/next-langchain/package.json index 464c9ef79baa..3143060aaed1 100644 --- a/examples/next-langchain/package.json +++ b/examples/next-langchain/package.json @@ -12,7 +12,7 @@ "@ai-sdk/react": "1.0.11", "@langchain/openai": "0.0.28", "@langchain/core": "0.1.63", - "ai": "4.0.36", + "ai": "4.0.37", "langchain": "0.1.36", "next": "latest", "react": "^18", diff --git a/examples/next-openai-kasada-bot-protection/package.json b/examples/next-openai-kasada-bot-protection/package.json index 6a6d5f7f872d..ff004c133fef 100644 --- a/examples/next-openai-kasada-bot-protection/package.json +++ b/examples/next-openai-kasada-bot-protection/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.19", "@vercel/functions": "latest", - "ai": "4.0.36", + "ai": "4.0.37", "next": "latest", "react": "^18", "react-dom": "^18", diff --git a/examples/next-openai-pages/package.json b/examples/next-openai-pages/package.json index 3410063546cb..b83f66ce4f22 100644 --- a/examples/next-openai-pages/package.json +++ b/examples/next-openai-pages/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.19", "@ai-sdk/react": "1.0.11", - "ai": "4.0.36", + "ai": "4.0.37", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/next-openai-telemetry-sentry/package.json b/examples/next-openai-telemetry-sentry/package.json index c414a344dc4f..b3230dc44a4c 100644 --- a/examples/next-openai-telemetry-sentry/package.json +++ b/examples/next-openai-telemetry-sentry/package.json @@ -17,7 +17,7 @@ "@sentry/nextjs": "^8.42.0", "@sentry/opentelemetry": "8.22.0", "@vercel/otel": "1.10.0", - "ai": "4.0.36", + "ai": "4.0.37", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/next-openai-telemetry/package.json b/examples/next-openai-telemetry/package.json index 0ac75355a01e..c5e6a739d2aa 100644 --- a/examples/next-openai-telemetry/package.json +++ b/examples/next-openai-telemetry/package.json @@ -15,7 +15,7 @@ "@opentelemetry/sdk-logs": "0.55.0", "@opentelemetry/instrumentation": "0.52.1", "@vercel/otel": "1.10.0", - "ai": "4.0.36", + "ai": "4.0.37", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/next-openai-upstash-rate-limits/package.json b/examples/next-openai-upstash-rate-limits/package.json index 7a9e59f6dc71..2e504b905ab6 100644 --- a/examples/next-openai-upstash-rate-limits/package.json +++ b/examples/next-openai-upstash-rate-limits/package.json @@ -12,7 +12,7 @@ "@ai-sdk/openai": "1.0.19", "@upstash/ratelimit": "^0.4.3", "@vercel/kv": "^0.2.2", - "ai": "4.0.36", + "ai": "4.0.37", "next": "latest", "react": "^18", "react-dom": "^18", diff --git a/examples/next-openai/package.json b/examples/next-openai/package.json index 0003afef85a8..7e4e0b9e2a8a 100644 --- a/examples/next-openai/package.json +++ b/examples/next-openai/package.json @@ -13,7 +13,7 @@ "@ai-sdk/ui-utils": "1.0.10", "@ai-sdk/react": "1.0.11", "@vercel/blob": "^0.26.0", - "ai": "4.0.36", + "ai": "4.0.37", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/node-http-server/package.json b/examples/node-http-server/package.json index 2dfc5099b3d6..761fd6651228 100644 --- a/examples/node-http-server/package.json +++ b/examples/node-http-server/package.json @@ -4,7 +4,7 @@ "private": true, "dependencies": { "@ai-sdk/openai": "1.0.19", - "ai": "4.0.36", + "ai": "4.0.37", "dotenv": "16.4.5", "zod": "3.23.8", "zod-to-json-schema": "3.23.5" diff --git a/examples/nuxt-openai/package.json b/examples/nuxt-openai/package.json index fa83ebf0312a..77bfd86452a2 100644 --- a/examples/nuxt-openai/package.json +++ b/examples/nuxt-openai/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/vue": "1.0.11", "@ai-sdk/openai": "1.0.19", - "ai": "4.0.36", + "ai": "4.0.37", "zod": "3.23.8" }, "devDependencies": { diff --git a/examples/solidstart-openai/package.json b/examples/solidstart-openai/package.json index 9cb77edcabb3..7578f231aa0c 100644 --- a/examples/solidstart-openai/package.json +++ b/examples/solidstart-openai/package.json @@ -19,7 +19,7 @@ "@solidjs/meta": "0.29.4", "@solidjs/router": "^0.15.1", "@solidjs/start": "^1.0.10", - "ai": "4.0.36", + "ai": "4.0.37", "solid-js": "^1.9.3", "zod": "^3.23.8" }, diff --git a/examples/sveltekit-openai/package.json b/examples/sveltekit-openai/package.json index 15e96f236829..b52f7267dd7d 100644 --- a/examples/sveltekit-openai/package.json +++ b/examples/sveltekit-openai/package.json @@ -12,7 +12,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.19", "@ai-sdk/svelte": "1.0.11", - "ai": "4.0.36", + "ai": "4.0.37", "openai": "4.52.6", "zod": "^3.23.8" }, diff --git a/examples/swarm/package.json b/examples/swarm/package.json index dff2b4e0fdb5..96c7b9368031 100644 --- a/examples/swarm/package.json +++ b/examples/swarm/package.json @@ -9,8 +9,8 @@ "@ai-sdk/groq": "1.0.11", "@ai-sdk/mistral": "1.0.8", "@ai-sdk/openai": "1.0.19", - "@ai-sdk/swarm": "0.0.45", - "ai": "4.0.36", + "@ai-sdk/swarm": "0.0.46", + "ai": "4.0.37", "dotenv": "16.4.5", "zod": "3.23.8", "zod-to-json-schema": "3.23.5", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 56ae69401e0c..67f52f28f4db 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,5 +1,12 @@ # ai +## 4.0.37 + +### Patch Changes + +- 8304ed8: feat (ai/core): Add option `throwErrorForEmptyVectors` to cosineSimilarity +- ed28182: feat (ai/ui): add appendResponseMessages helper + ## 4.0.36 ### Patch Changes diff --git a/packages/ai/package.json b/packages/ai/package.json index 97069517aaa6..db9ab0dca9b7 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "ai", - "version": "4.0.36", + "version": "4.0.37", "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript", "license": "Apache-2.0", "sideEffects": false, diff --git a/packages/ai/tests/e2e/next-server/CHANGELOG.md b/packages/ai/tests/e2e/next-server/CHANGELOG.md index 92091caa7a75..c3f39fce260a 100644 --- a/packages/ai/tests/e2e/next-server/CHANGELOG.md +++ b/packages/ai/tests/e2e/next-server/CHANGELOG.md @@ -4,6 +4,14 @@ ### Patch Changes +- Updated dependencies [8304ed8] +- Updated dependencies [ed28182] + - ai@4.0.37 + +## 0.0.1 + +### Patch Changes + - ai@4.0.36 ## 0.0.1 diff --git a/packages/swarm/CHANGELOG.md b/packages/swarm/CHANGELOG.md index 35d525e55b01..ebba96ed7700 100644 --- a/packages/swarm/CHANGELOG.md +++ b/packages/swarm/CHANGELOG.md @@ -1,5 +1,13 @@ # @ai-sdk/swarm +## 0.0.46 + +### Patch Changes + +- Updated dependencies [8304ed8] +- Updated dependencies [ed28182] + - ai@4.0.37 + ## 0.0.45 ### Patch Changes diff --git a/packages/swarm/package.json b/packages/swarm/package.json index 3add35546989..5fdaef340179 100644 --- a/packages/swarm/package.json +++ b/packages/swarm/package.json @@ -1,6 +1,6 @@ { "name": "@ai-sdk/swarm", - "version": "0.0.45", + "version": "0.0.46", "license": "Apache-2.0", "sideEffects": false, "main": "./dist/index.js", @@ -27,7 +27,7 @@ } }, "dependencies": { - "ai": "4.0.36", + "ai": "4.0.37", "zod": "3.23.8" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 701949b7e69a..ac1eeea0b026 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,7 +123,7 @@ importers: specifier: 1.28.0 version: 1.28.0(@opentelemetry/api@1.9.0) ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -154,7 +154,7 @@ importers: specifier: 1.0.19 version: link:../../packages/openai ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -182,7 +182,7 @@ importers: specifier: 1.0.19 version: link:../../packages/openai ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -210,7 +210,7 @@ importers: specifier: 1.13.7 version: 1.13.7(hono@4.6.9) ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -244,7 +244,7 @@ importers: specifier: ^10.4.9 version: 10.4.9(@nestjs/common@10.4.15(reflect-metadata@0.2.2)(rxjs@7.8.1))(@nestjs/core@10.4.2) ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai reflect-metadata: specifier: ^0.2.0 @@ -323,7 +323,7 @@ importers: specifier: 1.0.10 version: link:../../packages/ui-utils ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai geist: specifier: ^1.3.1 @@ -375,7 +375,7 @@ importers: specifier: 2.0.18 version: link:../../packages/google-vertex ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai geist: specifier: ^1.3.1 @@ -427,7 +427,7 @@ importers: specifier: 0.0.28 version: 0.0.28 ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai langchain: specifier: 0.1.36 @@ -485,7 +485,7 @@ importers: specifier: ^0.26.0 version: 0.26.0 ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai next: specifier: latest @@ -543,7 +543,7 @@ importers: specifier: latest version: 1.5.2(@aws-sdk/credential-provider-web-identity@3.662.0(@aws-sdk/client-sts@3.662.0)) ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai next: specifier: latest @@ -595,7 +595,7 @@ importers: specifier: 1.0.11 version: link:../../packages/react ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai next: specifier: latest @@ -662,7 +662,7 @@ importers: specifier: 1.10.0 version: 1.10.0(@opentelemetry/api-logs@0.55.0)(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.52.1(@opentelemetry/api@1.9.0))(@opentelemetry/resources@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-logs@0.55.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-metrics@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.29.0(@opentelemetry/api@1.9.0)) ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai next: specifier: latest @@ -735,7 +735,7 @@ importers: specifier: 1.10.0 version: 1.10.0(@opentelemetry/api-logs@0.55.0)(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.52.1(@opentelemetry/api@1.9.0))(@opentelemetry/resources@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-logs@0.55.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-metrics@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.28.0(@opentelemetry/api@1.9.0)) ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai next: specifier: latest @@ -793,7 +793,7 @@ importers: specifier: ^0.2.2 version: 0.2.4 ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai next: specifier: latest @@ -842,7 +842,7 @@ importers: specifier: 1.0.19 version: link:../../packages/openai ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -873,7 +873,7 @@ importers: specifier: 1.0.11 version: link:../../packages/vue ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai zod: specifier: 3.23.8 @@ -937,7 +937,7 @@ importers: specifier: ^1.0.10 version: 1.0.10(@testing-library/jest-dom@6.6.3)(solid-js@1.9.3)(vinxi@0.4.3(@types/node@22.7.4)(@upstash/redis@1.34.3)(ioredis@5.4.1)(terser@5.31.3)(typescript@5.6.3))(vite@6.0.3(@types/node@22.7.4)(jiti@2.4.0)(terser@5.31.3)(tsx@4.19.2)(yaml@2.5.0)) ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai solid-js: specifier: ^1.9.3 @@ -968,7 +968,7 @@ importers: specifier: 1.0.11 version: link:../../packages/svelte ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai openai: specifier: 4.52.6 @@ -1032,13 +1032,13 @@ importers: specifier: 1.0.19 version: link:../../packages/openai '@ai-sdk/swarm': - specifier: 0.0.45 + specifier: 0.0.46 version: link:../../packages/swarm '@google/generative-ai': specifier: 0.21.0 version: 0.21.0 ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -1811,7 +1811,7 @@ importers: packages/swarm: dependencies: ai: - specifier: 4.0.36 + specifier: 4.0.37 version: link:../ai zod: specifier: 3.23.8