pub async fn create_chat_completion_stream(
client: &OpenAIClient,
request: &CreateChatCompletionRequest,
) -> Result<impl Stream<Item = Result<CreateChatCompletionChunk, OpenAIError>>, OpenAIError>Expand description
Creates a streaming chat-based completion using the OpenAI Chat Completions API.
When stream is set to Some(true), partial updates (chunks) are returned.
Each item in the stream is a partial update represented by CreateChatCompletionChunk.