pub enum Provider {
Gemini,
OpenAI,
Anthropic,
DeepSeek,
OpenRouter,
Ollama,
LmStudio,
Moonshot,
XAI,
ZAI,
}Expand description
Supported AI model providers
Variants§
Gemini
Google Gemini models
OpenAI
OpenAI GPT models
Anthropic
Anthropic Claude models
DeepSeek
DeepSeek native models
OpenRouter
OpenRouter marketplace models
Ollama
Local Ollama models
LmStudio
LM Studio local server (OpenAI-compatible)
Moonshot
Moonshot.ai models
XAI
xAI Grok models
ZAI
Z.AI GLM models
Implementations§
Source§impl Provider
impl Provider
Sourcepub fn default_api_key_env(&self) -> &'static str
pub fn default_api_key_env(&self) -> &'static str
Get the default API key environment variable for this provider
Sourcepub fn all_providers() -> Vec<Provider>
pub fn all_providers() -> Vec<Provider>
Get all supported providers
Sourcepub fn supports_reasoning_effort(&self, model: &str) -> bool
pub fn supports_reasoning_effort(&self, model: &str) -> bool
Determine if the provider supports configurable reasoning effort for the model
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Provider
impl<'de> Deserialize<'de> for Provider
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
Source§impl JsonSchema for Provider
impl JsonSchema for Provider
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl Copy for Provider
impl Eq for Provider
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnwindSafe for Provider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.