pub struct CustomProviderConfig {
pub name: String,
pub base_url: String,
pub auth_header: AuthHeaderFormat,
pub model_prefixes: Vec<String>,
}Expand description
Configuration for registering a custom LLM provider at runtime.
Fields§
§name: StringUnique name for this provider (e.g., “my-provider”).
base_url: StringBase URL for the provider’s API (e.g., “https://api.my-provider.com/v1”).
auth_header: AuthHeaderFormatAuthentication header format.
model_prefixes: Vec<String>Model name prefixes that route to this provider (e.g., [“my-”]).
Trait Implementations§
Source§impl Clone for CustomProviderConfig
impl Clone for CustomProviderConfig
Source§fn clone(&self) -> CustomProviderConfig
fn clone(&self) -> CustomProviderConfig
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 CustomProviderConfig
impl Debug for CustomProviderConfig
Source§impl<'de> Deserialize<'de> for CustomProviderConfig
impl<'de> Deserialize<'de> for CustomProviderConfig
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 CustomProviderConfig
impl RefUnwindSafe for CustomProviderConfig
impl Send for CustomProviderConfig
impl Sync for CustomProviderConfig
impl Unpin for CustomProviderConfig
impl UnsafeUnpin for CustomProviderConfig
impl UnwindSafe for CustomProviderConfig
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