mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
38 lines
1.3 KiB
Rust
38 lines
1.3 KiB
Rust
//! LiteLLM AI Gateway library.
|
|
//!
|
|
//! Two layers, split by feature so the Python `cdylib` can depend on the I/O
|
|
//! without pulling in the HTTP server:
|
|
//!
|
|
//! - Call-type modules such as [`ocr`]: provider transforms, lifecycle hooks,
|
|
//! and provider I/O. Always available — no feature required. These predate the
|
|
//! rule that a route's entrypoint and handler live in `litellm-core` (see
|
|
//! `litellm_core::messages`) and move there as they are touched.
|
|
//! - [`io`]: compatibility exports and realtime WebSocket splice helpers.
|
|
//! - The server modules ([`auth`], [`routes`], [`state`]) and anything pulling
|
|
//! `axum` are gated behind the `server` feature, which the `litellm-ai-gateway`
|
|
//! binary turns on. The `python-config` feature additionally pulls in [`python`]
|
|
//! for the load-time config reader.
|
|
|
|
pub mod audio_transcription;
|
|
mod client;
|
|
pub mod io;
|
|
pub mod ocr;
|
|
|
|
/// GIL-activity tracking. Pure (atomics only); shared by the `server` routes and
|
|
/// the `python-config` reader, so it is available without either feature.
|
|
pub mod gil;
|
|
|
|
#[cfg(feature = "server")]
|
|
pub mod auth;
|
|
#[cfg(feature = "server")]
|
|
pub mod routes;
|
|
#[cfg(feature = "server")]
|
|
pub mod state;
|
|
|
|
mod constants;
|
|
pub mod integrations;
|
|
#[cfg(feature = "server")]
|
|
mod realtime;
|
|
|
|
#[cfg(feature = "python-config")]
|
|
pub mod python;
|