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 66fa21a commit 4d39c9bCopy full SHA for 4d39c9b
pydantic_ai_slim/pydantic_ai/models/openai.py
@@ -1171,6 +1171,9 @@ async def _get_event_iterator(self) -> AsyncIterator[ModelResponseStreamEvent]:
1171
except IndexError:
1172
continue
1173
1174
+ if choice.delta is None:
1175
+ continue
1176
+
1177
# Handle the text part of the response
1178
content = choice.delta.content
1179
if content is not None:
0 commit comments