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 +