#![allow(missing_docs)]
use litellm_rs::server;
use std::process::ExitCode;
#[cfg(feature = "tracing")]
use tracing::Level;
fn init_logging() {
#[cfg(feature = "tracing")]
{
tracing_subscriber::fmt()
.with_max_level(Level::INFO)
.with_target(false)
.with_thread_ids(false)
.init();
}
}
#[tokio::main]
async fn main() -> ExitCode {
init_logging();
match server::builder::run_server().await {
Ok(()) => ExitCode::SUCCESS,
Err(e) => {
eprintln!("Error: {}", e);
ExitCode::FAILURE
}
}
}