Skip to content

Commit 2907e5c

Browse files
committed
Updated Streaming Response docs, thanks Koissi!
1 parent 68abf2a commit 2907e5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/guides/streaming-response.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ for chunk in interpreter.chat("What's 34/24?", stream=True, display=False):
1717
{"role": "assistant", "type": "code", "format": "python", "content": "24"}
1818
{"role": "assistant", "type": "code", "format": "python", "end": True}
1919
20-
{"role": "computer", "type": "confirmation", "format": "execution", "content": {"type": "code", "language": "python", "code": "34 / 24"}}
20+
{"role": "computer", "type": "confirmation", "format": "execution", "content": {"type": "code", "format": "python", "content": "34 / 24"}},
2121
2222
{"role": "computer", "type": "console", "start": True}
2323
{"role": "computer", "type": "console", "format": "active_line", "content": "1"}
2424
{"role": "computer", "type": "console", "format": "output", "content": "1.4166666666666667\n"}
25+
{"role": "computer", "type": "console", "format": "active_line", "content": None},
2526
{"role": "computer", "type": "console", "end": True}
2627
2728
{"role": "assistant", "type": "message", "start": True}

0 commit comments

Comments
 (0)