Merge c74e37ce4a into 76912c062a
This commit is contained in:
commit
89e3707799
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue