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]

595 B
Raw Blame
use std::{io, path::PathBuf};

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("reading {path}")]
    Read {
        path: PathBuf,
        #[source]
        source: io::Error,
    },
    #[error("starting the Postgres container")]
    Container(#[from] testcontainers_modules::testcontainers::TestcontainersError),
    #[error("connecting to the Postgres container")]
    Connect(#[from] sqlx::Error),
    #[error("applying the Prisma migrations")]
    Migrate(#[from] sqlx::migrate::MigrateError),
    #[error("running cargo sqlx prepare")]
    Prepare(#[source] io::Error),
}