Skip to main content

decode_openai_stream

Function decode_openai_stream 

Source
pub fn decode_openai_stream(
    runner: Symbol,
    model: &str,
    body: &[u8],
    include_raw: bool,
) -> Result<Expr>
Expand description

Decodes an OpenAI chat-completion SSE body into a single model-response transcript, optionally embedding the raw provider chunks.