Fix syntax for new_messages object in streaming.mdx (Python example)

This commit is contained in:
Javad Koushyar 2025-12-16 18:05:45 -06:00 committed by GitHub
parent f6a016f49d
commit c74e37ce4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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 }]
```
</Tab>
<Tab title="JavaScript">