diff --git a/.changeset/fix-infinite-tool-loop.md b/.changeset/fix-infinite-tool-loop.md deleted file mode 100644 index 9d3f4de1c..000000000 --- a/.changeset/fix-infinite-tool-loop.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@tanstack/ai-client': patch ---- - -fix: prevent infinite tool call loop when server tool finishes with stop - -When the server-side agent loop executes a tool and the model finishes with `finishReason: 'stop'`, the client no longer auto-sends another request. Previously this caused infinite loops with non-OpenAI providers that respond minimally after tool execution. diff --git a/examples/ts-svelte-chat/CHANGELOG.md b/examples/ts-svelte-chat/CHANGELOG.md index d28444728..18f220e51 100644 --- a/examples/ts-svelte-chat/CHANGELOG.md +++ b/examples/ts-svelte-chat/CHANGELOG.md @@ -1,5 +1,14 @@ # ts-svelte-chat +## 0.1.26 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + - @tanstack/ai-openai@0.7.2 + - @tanstack/ai-svelte@0.6.11 + ## 0.1.25 ### Patch Changes diff --git a/examples/ts-svelte-chat/package.json b/examples/ts-svelte-chat/package.json index 2eba8128e..3983e3b69 100644 --- a/examples/ts-svelte-chat/package.json +++ b/examples/ts-svelte-chat/package.json @@ -1,7 +1,7 @@ { "name": "ts-svelte-chat", "private": true, - "version": "0.1.25", + "version": "0.1.26", "type": "module", "scripts": { "dev": "vite dev --port 3000", diff --git a/examples/ts-vue-chat/CHANGELOG.md b/examples/ts-vue-chat/CHANGELOG.md index ff61960bb..2ecbc2b9c 100644 --- a/examples/ts-vue-chat/CHANGELOG.md +++ b/examples/ts-vue-chat/CHANGELOG.md @@ -1,5 +1,15 @@ # ts-vue-chat +## 0.1.26 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + - @tanstack/ai-openai@0.7.2 + - @tanstack/ai-vue@0.6.11 + - @tanstack/ai-vue-ui@0.1.22 + ## 0.1.25 ### Patch Changes diff --git a/examples/ts-vue-chat/package.json b/examples/ts-vue-chat/package.json index 0acc14c11..ee5e2e6e0 100644 --- a/examples/ts-vue-chat/package.json +++ b/examples/ts-vue-chat/package.json @@ -1,6 +1,6 @@ { "name": "ts-vue-chat", - "version": "0.1.25", + "version": "0.1.26", "private": true, "type": "module", "scripts": { diff --git a/examples/vanilla-chat/CHANGELOG.md b/examples/vanilla-chat/CHANGELOG.md index bc8e9a554..8b6e0bec2 100644 --- a/examples/vanilla-chat/CHANGELOG.md +++ b/examples/vanilla-chat/CHANGELOG.md @@ -1,5 +1,12 @@ # vanilla-chat +## 0.0.26 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + ## 0.0.25 ### Patch Changes diff --git a/examples/vanilla-chat/package.json b/examples/vanilla-chat/package.json index 1f56d4803..986fa37f3 100644 --- a/examples/vanilla-chat/package.json +++ b/examples/vanilla-chat/package.json @@ -2,7 +2,7 @@ "name": "vanilla-chat", "private": true, "type": "module", - "version": "0.0.25", + "version": "0.0.26", "scripts": { "start": "vite --port 3001", "dev": "vite --port 3001", diff --git a/packages/typescript/ai-client/CHANGELOG.md b/packages/typescript/ai-client/CHANGELOG.md index 2be5d439c..a3ace199d 100644 --- a/packages/typescript/ai-client/CHANGELOG.md +++ b/packages/typescript/ai-client/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/ai-client +## 0.7.6 + +### Patch Changes + +- fix: prevent infinite tool call loop when server tool finishes with stop ([#412](https://github.com/TanStack/ai/pull/412)) + + When the server-side agent loop executes a tool and the model finishes with `finishReason: 'stop'`, the client no longer auto-sends another request. Previously this caused infinite loops with non-OpenAI providers that respond minimally after tool execution. + ## 0.7.5 ### Patch Changes diff --git a/packages/typescript/ai-client/package.json b/packages/typescript/ai-client/package.json index 281d94b3a..3278afef1 100644 --- a/packages/typescript/ai-client/package.json +++ b/packages/typescript/ai-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-client", - "version": "0.7.5", + "version": "0.7.6", "description": "Framework-agnostic headless client for TanStack AI", "author": "", "license": "MIT", diff --git a/packages/typescript/ai-preact/CHANGELOG.md b/packages/typescript/ai-preact/CHANGELOG.md index 20f9ef8b2..aa912436c 100644 --- a/packages/typescript/ai-preact/CHANGELOG.md +++ b/packages/typescript/ai-preact/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/ai-preact +## 0.6.11 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + ## 0.6.10 ### Patch Changes diff --git a/packages/typescript/ai-preact/package.json b/packages/typescript/ai-preact/package.json index 469d6fcf9..10a521278 100644 --- a/packages/typescript/ai-preact/package.json +++ b/packages/typescript/ai-preact/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-preact", - "version": "0.6.10", + "version": "0.6.11", "description": "Preact hooks for TanStack AI", "author": "", "license": "MIT", diff --git a/packages/typescript/ai-react/CHANGELOG.md b/packages/typescript/ai-react/CHANGELOG.md index 3b40052f2..525bad1a8 100644 --- a/packages/typescript/ai-react/CHANGELOG.md +++ b/packages/typescript/ai-react/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/ai-react +## 0.7.7 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + ## 0.7.6 ### Patch Changes diff --git a/packages/typescript/ai-react/package.json b/packages/typescript/ai-react/package.json index 88f4858c5..23c0c656c 100644 --- a/packages/typescript/ai-react/package.json +++ b/packages/typescript/ai-react/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-react", - "version": "0.7.6", + "version": "0.7.7", "description": "React hooks for TanStack AI", "author": "", "license": "MIT", diff --git a/packages/typescript/ai-solid/CHANGELOG.md b/packages/typescript/ai-solid/CHANGELOG.md index b6315171b..28b94e317 100644 --- a/packages/typescript/ai-solid/CHANGELOG.md +++ b/packages/typescript/ai-solid/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/ai-solid +## 0.6.11 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + ## 0.6.10 ### Patch Changes diff --git a/packages/typescript/ai-solid/package.json b/packages/typescript/ai-solid/package.json index d71e459da..3d85ed521 100644 --- a/packages/typescript/ai-solid/package.json +++ b/packages/typescript/ai-solid/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-solid", - "version": "0.6.10", + "version": "0.6.11", "description": "Solid hooks for TanStack AI", "author": "", "license": "MIT", diff --git a/packages/typescript/ai-svelte/CHANGELOG.md b/packages/typescript/ai-svelte/CHANGELOG.md index 052e321fd..e01135ac1 100644 --- a/packages/typescript/ai-svelte/CHANGELOG.md +++ b/packages/typescript/ai-svelte/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/ai-svelte +## 0.6.11 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + ## 0.6.10 ### Patch Changes diff --git a/packages/typescript/ai-svelte/package.json b/packages/typescript/ai-svelte/package.json index 756cc71ee..4f633a24f 100644 --- a/packages/typescript/ai-svelte/package.json +++ b/packages/typescript/ai-svelte/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-svelte", - "version": "0.6.10", + "version": "0.6.11", "description": "Svelte bindings for TanStack AI", "author": "", "license": "MIT", diff --git a/packages/typescript/ai-vue-ui/CHANGELOG.md b/packages/typescript/ai-vue-ui/CHANGELOG.md index 3254ba6e4..c0d468a32 100644 --- a/packages/typescript/ai-vue-ui/CHANGELOG.md +++ b/packages/typescript/ai-vue-ui/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/ai-vue-ui +## 0.1.22 + +### Patch Changes + +- Updated dependencies []: + - @tanstack/ai-vue@0.6.11 + ## 0.1.21 ### Patch Changes diff --git a/packages/typescript/ai-vue-ui/package.json b/packages/typescript/ai-vue-ui/package.json index 3f1016d1b..031c35c45 100644 --- a/packages/typescript/ai-vue-ui/package.json +++ b/packages/typescript/ai-vue-ui/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-vue-ui", - "version": "0.1.21", + "version": "0.1.22", "description": "Headless Vue components for building AI chat interfaces", "module": "./src/index.ts", "types": "./src/index.ts", diff --git a/packages/typescript/ai-vue/CHANGELOG.md b/packages/typescript/ai-vue/CHANGELOG.md index cd1f49c67..9b432fbb2 100644 --- a/packages/typescript/ai-vue/CHANGELOG.md +++ b/packages/typescript/ai-vue/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/ai-vue +## 0.6.11 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + ## 0.6.10 ### Patch Changes diff --git a/packages/typescript/ai-vue/package.json b/packages/typescript/ai-vue/package.json index 1b4a87c72..3f6cf90a5 100644 --- a/packages/typescript/ai-vue/package.json +++ b/packages/typescript/ai-vue/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-vue", - "version": "0.6.10", + "version": "0.6.11", "description": "Vue hooks for TanStack AI", "author": "", "license": "MIT", diff --git a/packages/typescript/smoke-tests/e2e/CHANGELOG.md b/packages/typescript/smoke-tests/e2e/CHANGELOG.md index bb481cc70..921c6c58a 100644 --- a/packages/typescript/smoke-tests/e2e/CHANGELOG.md +++ b/packages/typescript/smoke-tests/e2e/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/smoke-tests-e2e +## 0.0.32 + +### Patch Changes + +- Updated dependencies [[`c0ae603`](https://github.com/TanStack/ai/commit/c0ae603b4febbfc2d5f549a67e107a4bd0ec09cc)]: + - @tanstack/ai-client@0.7.6 + - @tanstack/ai-openai@0.7.2 + - @tanstack/ai-react@0.7.7 + ## 0.0.31 ### Patch Changes diff --git a/packages/typescript/smoke-tests/e2e/package.json b/packages/typescript/smoke-tests/e2e/package.json index f0dc9f474..1fa19f243 100644 --- a/packages/typescript/smoke-tests/e2e/package.json +++ b/packages/typescript/smoke-tests/e2e/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/smoke-tests-e2e", - "version": "0.0.31", + "version": "0.0.32", "description": "E2E tests for TanStack AI chat", "private": true, "type": "module",