pub fn sse_single_response(
message: ResponseMessage,
finish_reason: &str,
model: &str,
) -> ResponseExpand description
Emit a complete non-streaming response as an SSE event sequence
Used when the caller requested stream: true but the backend performed a
non-streaming complete() (e.g. for tool-calling downgrade). Produces:
- Role announcement chunk with content and/or
tool_calls - Final chunk with
finish_reason [DONE]sentinel