chat_blocking

Function chat_blocking 

Source
pub async fn chat_blocking(
    target: &TargetEndpoint,
    body: &Value,
    timeout: Duration,
) -> Result<BlockingOutcome>
Expand description

2026-09-26: POST to /v1/chat/completions and read the whole JSON response. Errors on a timeout, a non-200 (with the server’s message when readable) and a body that is not JSON.