Skip to main content

check_streaming_completion

Function check_streaming_completion 

Source
pub fn check_streaming_completion(
    config: &Config,
    model_id: &str,
) -> Result<CheckOutcome, CloudflareError>
Expand description

Check (b): streaming completion. Acceptance (feedback 02 20-streaming): first valid SSE event within 20 s, at least one content delta, a terminal chunk with non-null finish_reason, clean close with no protocol error, no duplicate terminal event, total duration under the configured timeout.