Skip to main content

parse_json_response

Function parse_json_response 

Source
pub async fn parse_json_response(
    response: Response,
    provider_name: &str,
) -> Result<Value, LLMError>
Expand description

Parses a JSON response body from an HTTP response, mapping errors to LLMError::Provider with a formatted message including the provider name.