Skip to content

Commit ef8f1f1

Browse files
authored
Async iterator needs to be consumed with async for (#179)
1 parent e7ee4da commit ef8f1f1

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)