Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef8f1f1

Browse files
authored
Async iterator needs to be consumed with async for (openai#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

+1-1
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)