pub enum ProviderKind {
Show 36 variants
Deepseek,
DeepseekAnthropic,
NvidiaNim,
Openai,
Atlascloud,
WanjieArk,
Volcengine,
Openrouter,
XiaomiMimo,
Novita,
Fireworks,
Siliconflow,
Arcee,
SiliconflowCN,
Moonshot,
Sglang,
Vllm,
Ollama,
Huggingface,
Together,
Qianfan,
OpenaiCodex,
Anthropic,
Openmodel,
Zai,
Stepfun,
Minimax,
MinimaxAnthropic,
Deepinfra,
Sakana,
LongCat,
OpencodeGo,
Meta,
Xai,
Telecomjs,
Custom,
}Variants§
Deepseek
DeepseekAnthropic
NvidiaNim
Openai
Atlascloud
WanjieArk
Volcengine
Openrouter
XiaomiMimo
Novita
Fireworks
Siliconflow
Arcee
SiliconflowCN
Moonshot
Sglang
Vllm
Ollama
Huggingface
Together
Qianfan
OpenaiCodex
Anthropic
Openmodel
Zai
Stepfun
Minimax
MinimaxAnthropic
Deepinfra
Sakana
LongCat
OpencodeGo
Meta
Xai
Telecomjs
Jiangsu Telecom TokenHub (OpenAI-compatible).
An AI gateway operated by Jiangsu Telecom that speaks the OpenAI Chat Completions wire protocol and serves a broad model catalog; each API key may access a different subset of models.
Custom
User-defined OpenAI-compatible endpoint (#1519).
A single dynamic identity for arbitrary [providers.<name>] kind="openai-compatible" entries. It speaks the OpenAI Chat Completions
wire protocol and carries no built-in base URL/model — the concrete
endpoint and model arrive via config (base_url / model) and the
route’s base_url_override, never from this static descriptor.
Implementations§
Source§impl ProviderKind
impl ProviderKind
pub const ALL: [Self; 36]
pub fn all() -> &'static [Self]
pub fn names_hint() -> String
pub fn as_str(self) -> &'static str
pub fn parse(value: &str) -> Option<Self>
pub fn is_siliconflow(self) -> bool
Sourcepub fn provider(self) -> &'static dyn Provider
pub fn provider(self) -> &'static dyn Provider
Return the built-in metadata entry for this provider.
This is a metadata foundation only; runtime routing still resolves
through crate::ConfigToml::resolve_runtime_options.
Trait Implementations§
Source§impl Clone for ProviderKind
impl Clone for ProviderKind
Source§fn clone(&self) -> ProviderKind
fn clone(&self) -> ProviderKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProviderKind
Source§impl Debug for ProviderKind
impl Debug for ProviderKind
Source§impl Default for ProviderKind
impl Default for ProviderKind
Source§fn default() -> ProviderKind
fn default() -> ProviderKind
Source§impl<'de> Deserialize<'de> for ProviderKind
impl<'de> Deserialize<'de> for ProviderKind
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>,
impl Eq for ProviderKind
Source§impl PartialEq for ProviderKind
impl PartialEq for ProviderKind
Source§impl Serialize for ProviderKind
impl Serialize for ProviderKind
impl StructuralPartialEq for ProviderKind
Auto Trait Implementations§
impl Freeze for ProviderKind
impl RefUnwindSafe for ProviderKind
impl Send for ProviderKind
impl Sync for ProviderKind
impl Unpin for ProviderKind
impl UnsafeUnpin for ProviderKind
impl UnwindSafe for ProviderKind
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.