pub struct ConfigManager { /* private fields */ }
Implementations§
Source§impl ConfigManager
impl ConfigManager
pub fn new() -> Self
pub fn new_with_path(config_path: Option<String>) -> Self
pub async fn load_config(&mut self) -> Result<()>
pub fn get_model_config(&self, model_name: &str) -> ResolvedModelConfig
pub fn get_api_base_for_model(&self, model_name: &str) -> String
pub fn is_provider(&self, model_name: &str, provider: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigManager
impl RefUnwindSafe for ConfigManager
impl Send for ConfigManager
impl Sync for ConfigManager
impl Unpin for ConfigManager
impl UnwindSafe for ConfigManager
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