pub enum Client {
Show 17 variants
Anthropic(Client),
Azure(Client),
Cohere(Client),
DeepSeek(Client),
Galadriel(Client),
Gemini(Client),
Groq(Client),
HuggingFace(Client),
Hyperbolic(Client),
Mira(Client),
Moonshot(Client),
OpenAI(Client),
OpenRouter(Client),
Ollama(Client),
Perplexity(Client),
Together(Client),
Xai(Client),
}Variants§
Anthropic(Client)
Azure(Client)
Cohere(Client)
DeepSeek(Client)
Galadriel(Client)
Gemini(Client)
Groq(Client)
HuggingFace(Client)
Hyperbolic(Client)
Mira(Client)
Moonshot(Client)
OpenAI(Client)
OpenRouter(Client)
Ollama(Client)
Perplexity(Client)
Together(Client)
Xai(Client)
Implementations§
Source§impl Client
impl Client
Sourcepub async fn completion_model(&self, model: &str) -> Box<dyn CompletionModel>
pub async fn completion_model(&self, model: &str) -> Box<dyn CompletionModel>
Returns a completion model wrapper for the given provider and model name.
Sourcepub async fn embedding_model(
&self,
model: &str,
input_type: Option<&str>,
) -> Option<Box<dyn EmbeddingModel>>
pub async fn embedding_model( &self, model: &str, input_type: Option<&str>, ) -> Option<Box<dyn EmbeddingModel>>
Returns an embedding model wrapper for the given provider and model name.
Returns None if the provider does not support embeddings or
if improper input type is provided (cohere requires a input type).
pub async fn embedding_model_with_ndims( &self, model: &str, ndims: usize, input_type: Option<&str>, ) -> Option<Box<dyn EmbeddingModel>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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