pub struct ProxyConfig {
pub server: ServerConfig,
pub general: GeneralConfig,
pub models: Vec<ModelEntry>,
pub aliases: Vec<AliasEntry>,
pub rate_limit: Option<RateLimitConfig>,
pub budget: Option<BudgetConfig>,
pub cache: Option<CacheConfig>,
pub files: Option<FileStorageConfig>,
pub keys: Vec<VirtualKeyConfig>,
pub health: Option<HealthConfig>,
pub cooldown: Option<CooldownConfig>,
}Expand description
Root configuration for the liter-llm proxy server.
Loaded from a liter-llm-proxy.toml file. After deserialization all
${VAR_NAME} patterns in string values are replaced with the
corresponding environment variable.
Fields§
§server: ServerConfig§general: GeneralConfig§models: Vec<ModelEntry>§aliases: Vec<AliasEntry>§rate_limit: Option<RateLimitConfig>§budget: Option<BudgetConfig>§cache: Option<CacheConfig>§files: Option<FileStorageConfig>§keys: Vec<VirtualKeyConfig>§health: Option<HealthConfig>§cooldown: Option<CooldownConfig>Implementations§
Source§impl ProxyConfig
impl ProxyConfig
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProxyConfig
impl Debug for ProxyConfig
Source§impl Default for ProxyConfig
impl Default for ProxyConfig
Source§fn default() -> ProxyConfig
fn default() -> ProxyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProxyConfig
impl<'de> Deserialize<'de> for ProxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProxyConfig
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
impl UnwindSafe for ProxyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more