This commit is contained in:
Javad Koushyar 2026-01-06 15:38:57 +08:00 committed by GitHub
commit 89e3707799
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">
@ -96,4 +96,4 @@ To enable streaming in the SDKs, set the `stream` parameter to `True`.
main().catch(console.error)
```
</Tab>
</Tabs>
</Tabs>