pub enum ProviderType {
OpenAI,
Anthropic,
Gemini,
OpenRouter,
XAI,
HuggingFace,
Ollama,
LMStudio,
VsCodeCopilot,
Mock,
Mistral,
AzureOpenAI,
}Expand description
Supported provider types
Variants§
OpenAI
OpenAI provider (cloud API)
Anthropic
Anthropic provider (Claude models)
Gemini
Gemini provider (Google AI / VertexAI)
OpenRouter
OpenRouter provider (200+ models)
XAI
xAI provider (Grok models via api.x.ai)
HuggingFace
HuggingFace Hub provider (open-source models)
Ollama
Ollama provider (local models)
LMStudio
LM Studio provider (OpenAI-compatible local API)
VsCodeCopilot
VSCode Copilot provider (via proxy)
Mock
Mock provider (testing only)
Mistral
Mistral AI (La Plateforme)
AzureOpenAI
Azure OpenAI Service (enterprise deployments)
Implementations§
Source§impl ProviderType
impl ProviderType
Sourcepub fn from_str(s: &str) -> Option<Self>
pub fn from_str(s: &str) -> Option<Self>
Parse provider type from string (case-insensitive)
§Examples
use edgequake_llm::ProviderType;
assert_eq!(ProviderType::from_str("openai"), Some(ProviderType::OpenAI));
assert_eq!(ProviderType::from_str("OLLAMA"), Some(ProviderType::Ollama));
assert_eq!(ProviderType::from_str("lm-studio"), Some(ProviderType::LMStudio));
assert_eq!(ProviderType::from_str("azure"), Some(ProviderType::AzureOpenAI));Trait Implementations§
Source§impl Clone for ProviderType
impl Clone for ProviderType
Source§fn clone(&self) -> ProviderType
fn clone(&self) -> ProviderType
Returns a duplicate of the value. Read more
1.0.0 · 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 ProviderType
impl Debug for ProviderType
Source§impl PartialEq for ProviderType
impl PartialEq for ProviderType
impl Copy for ProviderType
impl Eq for ProviderType
impl StructuralPartialEq for ProviderType
Auto Trait Implementations§
impl Freeze for ProviderType
impl RefUnwindSafe for ProviderType
impl Send for ProviderType
impl Sync for ProviderType
impl Unpin for ProviderType
impl UnsafeUnpin for ProviderType
impl UnwindSafe for ProviderType
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.