Skip to content

Commit 30e101a

Browse files
authored
Async iterator needs to be consumed with async for (openai#179)
1 parent 6d8f1d3 commit 30e101a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai/api_resources/fine_tune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,5 +200,5 @@ async def astream_events(
200200
api_version,
201201
organization,
202202
)
203-
for line in response
203+
async for line in response
204204
)

0 commit comments

Comments
 (0)