Skip to main content

decode_openai_stream_with_limits

Function decode_openai_stream_with_limits 

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

Decodes OpenAI chat-completion SSE under caller-supplied limits.