Skip to content

Commit e20217c

Browse files
authored
fix(genapi): avoid break in python snippets for stream
1 parent 7b96580 commit e20217c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/generative-apis/how-to/query-language-models.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ The service also supports asynchronous mode for any chat completion.
250250
if event.type == "response.output_text.delta":
251251
print(event.delta, end="")
252252
elif event.type == "response.completed":
253-
break
253+
continue
254254

255255
asyncio.run(main())
256256
```

0 commit comments

Comments
 (0)