Skip to content

Commit 079c5a3

Browse files
authored
Merge branch 'main' into fix-821-grok-provider-options-index-sig
2 parents 26d183e + 6f3b353 commit 079c5a3

10 files changed

Lines changed: 696 additions & 250 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-gemini': minor
3+
---
4+
5+
Upgrade `@google/genai` to v2 and migrate the experimental text-interactions adapter to the SDK 2.x step-based streaming API (`step.start` / `step.delta` / `step.stop`), replacing the prior `content.*` events. Streamed function-call arguments are now accumulated from `arguments_delta` fragments and parsed leniently with `partial-json`, so an incomplete or truncated buffer keeps the last good arguments instead of resetting them and no longer logs a parse error per fragment. Exported built-in-tool CUSTOM event payloads now carry `Interactions.*Step` values, and structured output uses the polymorphic `response_format` request shape.

packages/ai-gemini/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@
6464
"text-to-speech"
6565
],
6666
"dependencies": {
67-
"@google/genai": "^1.43.0",
68-
"@tanstack/ai-utils": "workspace:*"
67+
"@google/genai": "^2.8.0",
68+
"@tanstack/ai-utils": "workspace:*",
69+
"partial-json": "^0.1.7"
6970
},
7071
"peerDependencies": {
7172
"@tanstack/ai": "workspace:^"

0 commit comments

Comments
 (0)