Skip to content

Commit 94055c2

Browse files
Use unique thought_signature in gemini streamed response
1 parent 359c6d2 commit 94055c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ async def _get_event_iterator(self) -> AsyncIterator[ModelResponseStreamEvent]:
676676
if part.thought_signature:
677677
signature = base64.b64encode(part.thought_signature).decode('utf-8')
678678
yield self._parts_manager.handle_thinking_delta(
679-
vendor_part_id='thinking',
679+
vendor_part_id=uuid4(),
680680
signature=signature,
681681
provider_name=self.provider_name,
682682
)

0 commit comments

Comments
 (0)