We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab8bd0 commit 6166f3dCopy full SHA for 6166f3d
pydantic_ai_slim/pydantic_ai/models/google.py
@@ -640,6 +640,8 @@ async def _get_event_iterator(self) -> AsyncIterator[ModelResponseStreamEvent]:
640
if candidate.finish_reason == 'STOP': # pragma: no cover
641
# Normal completion - skip this chunk
642
continue
643
+ elif candidate.finish_reason == 'MALFORMED_FUNCTION_CALL': # pragma: no cover
644
+ continue
645
elif candidate.finish_reason == 'SAFETY': # pragma: no cover
646
raise UnexpectedModelBehavior('Safety settings triggered', str(chunk))
647
else: # pragma: no cover
0 commit comments