@Ravi K Both the completions and chat APIs support a stream
parameter, which when set to true
, streams the response back from the model via Server Sevent Events (SSE).
The same is supported in the SDKs available as well. For example, in C#, you can use the GetChatCompletionsStreaming/GetChatCompletionsStreamingAsync methods for chat completions and the GetCompletionsStreaming/GetCompletionsStreamingAsync methods for regular completions.