pub fn create_chat_completion_stream<C, Fut, B, E>(
client: C,
request: &CreateChatCompletionRequest,
) -> CreateChatCompletionStream<Fut, B, E> ⓘ
Expand description
Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses.
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.