Skip to content

Commit e426bd9

Browse files
authored
Update pydantic_ai_slim/pydantic_ai/models/openai.py
1 parent 7421545 commit e426bd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ async def _get_event_iterator(self) -> AsyncIterator[ModelResponseStreamEvent]:
11711171
except IndexError:
11721172
continue
11731173

1174+
# When using Azure OpenAI and an async content filter is enabled, the openai SDK can return None deltas.
11741175
if choice.delta is None: # pyright: ignore[reportUnnecessaryComparison]
11751176
continue
11761177

0 commit comments

Comments
 (0)