pub struct ProviderConfig {
pub name: String,
pub api_base: String,
pub default_model: String,
pub tiers: HashMap<String, TierInfo>,
pub defaults: DefaultConfig,
pub source: ModelSource,
}Expand description
Per-provider settings: endpoint, default model, named tiers, and the fallback limits for unknown identifiers.
One ProviderConfig exists per AI vendor (Anthropic Claude, OpenAI,
Bedrock, Ollama, …) and is stored in ModelConfiguration::providers
keyed by provider name. tiers maps tier names to TierInfo
descriptions; the same names appear on ModelSpec::tier. defaults
is the per-provider DefaultConfig used as a fallback when a model
identifier does not match any ModelSpec. source is
loader-populated and records the highest-precedence layer that
contributed any field to this provider block.
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.
source: ModelSourceLayer that contributed this provider block. Populated by the loader.
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more