Skip to main content

parse_embeddings_response

Function parse_embeddings_response 

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

Parse an OpenAI-compatible embeddings response into the first vector.