Skip to main content

parse_response

Function parse_response 

Source
pub fn parse_response(
    provider: &str,
    body: &str,
    latency_ms: u64,
) -> Result<CloudAiResponse, CloudAiError>
Expand description

Parse a Chat Completions response body. provider is the caller’s name, stamped into errors and the returned CloudAiResponse.provider.