From c74e37ce4adea3a8c015dfe7282b4ac9b1850511 Mon Sep 17 00:00:00 2001 From: Javad Koushyar <93967783+j0m0k0@users.noreply.github.com> Date: Tue, 16 Dec 2025 18:05:45 -0600 Subject: [PATCH] Fix syntax for new_messages object in streaming.mdx (Python example) --- docs/capabilities/streaming.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/capabilities/streaming.mdx b/docs/capabilities/streaming.mdx index 1467afcd8..14b14b7d5 100644 --- a/docs/capabilities/streaming.mdx +++ b/docs/capabilities/streaming.mdx @@ -50,7 +50,7 @@ To enable streaming in the SDKs, set the `stream` parameter to `True`. content += chunk.message.content # append the accumulated fields to the messages for the next request - new_messages = [{ role: 'assistant', thinking: thinking, content: content }] + new_messages = [{ 'role': 'assistant', 'thinking': thinking, 'content': content }] ``` @@ -96,4 +96,4 @@ To enable streaming in the SDKs, set the `stream` parameter to `True`. main().catch(console.error) ``` - \ No newline at end of file +