Skip to content

Commit 6166f3d

Browse files
committed
Update google.py
1 parent 8ab8bd0 commit 6166f3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydantic_ai_slim/pydantic_ai/models/google.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ async def _get_event_iterator(self) -> AsyncIterator[ModelResponseStreamEvent]:
640640
if candidate.finish_reason == 'STOP': # pragma: no cover
641641
# Normal completion - skip this chunk
642642
continue
643+
elif candidate.finish_reason == 'MALFORMED_FUNCTION_CALL': # pragma: no cover
644+
continue
643645
elif candidate.finish_reason == 'SAFETY': # pragma: no cover
644646
raise UnexpectedModelBehavior('Safety settings triggered', str(chunk))
645647
else: # pragma: no cover

0 commit comments

Comments
 (0)