Skip to content

Commit 3f13201

Browse files
committed
fixup!
1 parent 2d21186 commit 3f13201

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/openai/_streaming.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ def __stream__(self) -> Iterator[_T]:
7676
)
7777

7878
yield process_data(data=data, cast_to=cast_to, response=response)
79+
7980
else:
8081
data = sse.json()
82+
8183
if sse.event == "error" and is_mapping(data) and data.get("error"):
8284
message = None
8385
error = data.get("error")

0 commit comments

Comments
 (0)