pub enum Provider {
OpenRouter,
Ollama,
Anthropic,
OpenAi,
Mistral,
Connect,
Custom(String),
}Expand description
LLM backend variant. Used to route completion requests and select the
correct crate::llm::LlmProvider implementation from the registry.
Variants§
OpenRouter
Ollama
Anthropic
OpenAi
Mistral
Mistral’s API (https://api.mistral.ai).
Connect
Proxy to a remote Flash connect server (client-side use).
Custom(String)
A provider implemented by an application or third-party crate.
Custom identifiers round-trip through model configuration, so providers do not need to claim compatibility with a built-in backend.
Implementations§
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
impl Eq for Provider
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Forget for Provider
impl Freeze for Provider
impl Move for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin 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