ASSISTANTS
Stream Mode
1. Using Stream Mode in Python
1.1 Stream Mode with the OpenAI Library
It is recommended to use the OpenAI library for stream mode in most scenarios.
1.2 Stream Mode with the Requests Library
If you are using the requests library for non-OpenAI scenarios, such as using the SiliconCloud API, you need to ensure that both the payload and the request parameters are set to stream mode.