pub struct ProviderConfigFile {Show 13 fields
pub protocol: Option<ProviderProtocol>,
pub base_url: Option<String>,
pub default_model: Option<String>,
pub models: Option<Vec<ModelEntry>>,
pub display_name: Option<String>,
pub api_key_env: Option<String>,
pub organization: Option<String>,
pub project: Option<String>,
pub aws: Option<ProviderAwsConfigFile>,
pub headers: BTreeMap<String, String>,
pub auth_header: Option<String>,
pub capabilities: ProviderCapabilityOverrides,
pub reasoning_effort: Option<ReasoningEffort>,
}Fields§
§protocol: Option<ProviderProtocol>§base_url: Option<String>§default_model: Option<String>§models: Option<Vec<ModelEntry>>§display_name: Option<String>§api_key_env: Option<String>§organization: Option<String>§project: Option<String>§aws: Option<ProviderAwsConfigFile>§headers: BTreeMap<String, String>§auth_header: Option<String>Overrides the authentication header name for the Anthropic Messages protocol
(x-api-key by default). Some gateways fronting the protocol expect api-key
instead. Ignored by the OpenAI-compatible protocol (which uses bearer auth via
Authorization).
capabilities: ProviderCapabilityOverrides§reasoning_effort: Option<ReasoningEffort>reasoning_effort wire parameter. None = do not send, use provider default.
Trait Implementations§
Source§impl Clone for ProviderConfigFile
impl Clone for ProviderConfigFile
Source§fn clone(&self) -> ProviderConfigFile
fn clone(&self) -> ProviderConfigFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderConfigFile
impl Debug for ProviderConfigFile
Source§impl Default for ProviderConfigFile
impl Default for ProviderConfigFile
Source§fn default() -> ProviderConfigFile
fn default() -> ProviderConfigFile
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProviderConfigFile
impl PartialEq for ProviderConfigFile
Source§fn eq(&self, other: &ProviderConfigFile) -> bool
fn eq(&self, other: &ProviderConfigFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProviderConfigFile
Auto Trait Implementations§
impl Freeze for ProviderConfigFile
impl RefUnwindSafe for ProviderConfigFile
impl Send for ProviderConfigFile
impl Sync for ProviderConfigFile
impl Unpin for ProviderConfigFile
impl UnsafeUnpin for ProviderConfigFile
impl UnwindSafe for ProviderConfigFile
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