Skip to main content

default_sqlite_path

Function default_sqlite_path 

Source
pub fn default_sqlite_path() -> PathBuf
Expand description

Returns the default absolute path for the SQLite fallback database.

Resolution order:

  1. LITELLM_SQLITE_PATH explicit file override (if set and non-empty)
  2. LITELLM_DATA_DIR/gateway.db (if LITELLM_DATA_DIR is set and non-empty)
  3. <data_local_dir>/litellm-rs/gateway.db (platform-specific)
  4. /tmp/litellm-rs/gateway.db (ultimate fallback)