pub struct ProvidersConfig {Show 53 fields
pub deepseek: ProviderConfig,
pub deepseek_cn: ProviderConfig,
pub deepseek_anthropic: ProviderConfig,
pub nvidia_nim: ProviderConfig,
pub openai: ProviderConfig,
pub atlascloud: ProviderConfig,
pub wanjie_ark: ProviderConfig,
pub volcengine: ProviderConfig,
pub openrouter: ProviderConfig,
pub orcarouter: ProviderConfig,
pub xiaomi_mimo: ProviderConfig,
pub novita: ProviderConfig,
pub fireworks: ProviderConfig,
pub siliconflow: ProviderConfig,
pub siliconflow_cn: ProviderConfig,
pub arcee: ProviderConfig,
pub moonshot: ProviderConfig,
pub sglang: ProviderConfig,
pub vllm: ProviderConfig,
pub ollama: ProviderConfig,
pub ollama_cloud: ProviderConfig,
pub huggingface: ProviderConfig,
pub modelscope: ProviderConfig,
pub deepinfra: ProviderConfig,
pub together: ProviderConfig,
pub qianfan: ProviderConfig,
pub openai_codex: ProviderConfig,
pub anthropic: ProviderConfig,
pub openmodel: ProviderConfig,
pub zai: ProviderConfig,
pub stepfun: ProviderConfig,
pub minimax: ProviderConfig,
pub minimax_anthropic: ProviderConfig,
pub sakana: ProviderConfig,
pub longcat: ProviderConfig,
pub opencode_go: ProviderConfig,
pub opencode_zen: ProviderConfig,
pub meta: ProviderConfig,
pub xai: ProviderConfig,
pub mistral: ProviderConfig,
pub google: ProviderConfig,
pub antigravity: ProviderConfig,
pub telecomjs: ProviderConfig,
pub edenai: ProviderConfig,
pub zenmux: ProviderConfig,
pub csdn: ProviderConfig,
pub concentrate: ProviderConfig,
pub codewhale: ProviderConfig,
pub modelstudio_token_plan: ProviderConfig,
pub modelstudio_token_plan_anthropic: ProviderConfig,
pub modelstudio_coding_plan: ProviderConfig,
pub modelstudio_coding_plan_anthropic: ProviderConfig,
pub custom: HashMap<String, ProviderConfig>,
}Fields§
§deepseek: ProviderConfig§deepseek_cn: ProviderConfig§deepseek_anthropic: ProviderConfig§nvidia_nim: ProviderConfig§openai: ProviderConfig§atlascloud: ProviderConfig§wanjie_ark: ProviderConfig§volcengine: ProviderConfig§openrouter: ProviderConfig§orcarouter: ProviderConfig§xiaomi_mimo: ProviderConfig§novita: ProviderConfig§fireworks: ProviderConfig§siliconflow: ProviderConfig§siliconflow_cn: ProviderConfig§arcee: ProviderConfig§moonshot: ProviderConfig§sglang: ProviderConfig§vllm: ProviderConfig§ollama: ProviderConfig§ollama_cloud: ProviderConfig§huggingface: ProviderConfig§modelscope: ProviderConfig§deepinfra: ProviderConfig§together: ProviderConfig§qianfan: ProviderConfig§openai_codex: ProviderConfig§anthropic: ProviderConfig§openmodel: ProviderConfig§zai: ProviderConfig§stepfun: ProviderConfig§minimax: ProviderConfig§minimax_anthropic: ProviderConfig§sakana: ProviderConfig§longcat: ProviderConfig§opencode_go: ProviderConfig§opencode_zen: ProviderConfig§meta: ProviderConfig§xai: ProviderConfig§mistral: ProviderConfig§google: ProviderConfig§antigravity: ProviderConfig§telecomjs: ProviderConfig§edenai: ProviderConfigEden AI — OpenAI-compatible AI gateway (aggregator).
zenmux: ProviderConfigZenMux — OpenAI-compatible AI gateway (aggregator).
csdn: ProviderConfigCSDN 星图 — OpenAI-compatible hosted platform and Coding Plan.
concentrate: ProviderConfigConcentrate — OpenAI Responses-compatible AI gateway (aggregator).
codewhale: ProviderConfigCodewhale API — account-backed model access over connected provider keys.
modelstudio_token_plan: ProviderConfigAlibaba Cloud Model Studio — Token Plan (OpenAI-compatible Chat Completions).
modelstudio_token_plan_anthropic: ProviderConfigAlibaba Cloud Model Studio — Token Plan Anthropic-compatible endpoint.
modelstudio_coding_plan: ProviderConfigAlibaba Cloud Model Studio — Coding Plan (OpenAI-compatible Chat Completions).
modelstudio_coding_plan_anthropic: ProviderConfigAlibaba Cloud Model Studio — Coding Plan Anthropic-compatible endpoint.
custom: HashMap<String, ProviderConfig>Arbitrary user-named custom providers (#1519).
Captures every [providers.<name>] table whose key is not one of the
built-in providers above. Each entry is an OpenAI-compatible custom
endpoint selected via provider = "<name>"; routing reads its
base_url / model / api_key_env through ProviderKind::Custom.
Implementations§
Source§impl ProvidersConfig
impl ProvidersConfig
Sourcepub fn custom_provider_config(&self, name: &str) -> Option<&ProviderConfig>
pub fn custom_provider_config(&self, name: &str) -> Option<&ProviderConfig>
Look up a user-defined custom provider table by its [providers.<name>]
key (#1519). Returns None when no entry with that exact name exists.
Trait Implementations§
Source§impl Clone for ProvidersConfig
impl Clone for ProvidersConfig
Source§impl Debug for ProvidersConfig
impl Debug for ProvidersConfig
Source§impl Default for ProvidersConfig
impl Default for ProvidersConfig
Source§impl<'de> Deserialize<'de> for ProvidersConfig
impl<'de> Deserialize<'de> for ProvidersConfig
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>,
Auto Trait Implementations§
impl Forget for ProvidersConfig
impl Freeze for ProvidersConfig
impl Move for ProvidersConfig
impl RefUnwindSafe for ProvidersConfig
impl Send for ProvidersConfig
impl Sync for ProvidersConfig
impl Unpin for ProvidersConfig
impl UnsafeUnpin for ProvidersConfig
impl UnwindSafe for ProvidersConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.