Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

424 B
Raw Blame
#[derive(Clone, Debug, PartialEq, Eq, thiserror::Error)]
pub enum Error {
    #[error("cache is unavailable")]
    Unavailable,
    #[error("invalid cache entry")]
    InvalidEntry,
    #[error("flushing Redis requires an explicit namespace")]
    UnscopedFlush,
    #[error("operation is not supported by this cache")]
    UnsupportedOperation,
    #[error("semantic cache requires request messages")]
    MissingPrompt,
}