pub struct ProviderConfig {
pub name: String,
pub api_base: String,
pub default_model: String,
pub tiers: HashMap<String, TierInfo>,
pub defaults: DefaultConfig,
}Expand description
Provider-specific configuration.
Fields§
§name: StringHuman-readable provider name.
api_base: StringBase URL for API requests.
default_model: StringDefault model identifier to use if none specified.
tiers: HashMap<String, TierInfo>Available performance tiers and their descriptions.
defaults: DefaultConfigDefault configuration for unknown models.
Trait Implementations§
Source§impl Debug for ProviderConfig
impl Debug for ProviderConfig
Source§impl<'de> Deserialize<'de> for ProviderConfig
impl<'de> Deserialize<'de> for ProviderConfig
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 ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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