Skip to content

Commit 48cf4a2

Browse files
ci: apply automated fixes
1 parent dcbe006 commit 48cf4a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.changeset/fix-gemini-thought-signature-part-level.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ fix(ai-gemini): read/write thoughtSignature at Part level for Gemini 3.x
77
Gemini 3.x models emit `thoughtSignature` as a Part-level sibling of `functionCall` (per the `@google/genai` `Part` type definition), not nested inside `functionCall`. The adapter was reading from `functionCall.thoughtSignature` (which doesn't exist in the SDK types) and writing it back nested inside `functionCall`, causing the Gemini API to reject subsequent tool-call turns with `400 INVALID_ARGUMENT: "Function call is missing a thought_signature"`.
88

99
This fix:
10+
1011
- **Read side:** reads `part.thoughtSignature` first, falls back to `functionCall.thoughtSignature` for older Gemini 2.x models
1112
- **Write side:** emits `thoughtSignature` as a Part-level sibling of `functionCall` instead of nesting it inside

0 commit comments

Comments
 (0)