pub fn sse_response(stream: ChatStream, model: &str) -> ResponseExpand description
Convert a ChatStream into an SSE response in OpenAI streaming format
Emits:
- An initial chunk with role=“assistant” and empty content
- Content delta chunks as they arrive from the provider
- A final chunk with
finish_reason data: [DONE]terminator