How to use
To stream completions, setstream=true
when calling the chat completions api.
This returns an object that streams the response as data-only server-sent events. To extract chunks,
use the delta field instead of the message field.
Empower supports the streaming in both message and tool use responses.
Code Example
The Empower API is fully compatible with the OpenAI API. Below, we will provide a few code examples demonstrating how to utilize this compatibility using the OpenAI SDK:python