pub struct MistralProvider { /* private fields */ }Expand description
Mistral AI provider for inference
Implementations§
Source§impl MistralProvider
impl MistralProvider
Sourcepub fn large(api_key: &str) -> Self
pub fn large(api_key: &str) -> Self
Create with Mistral Large 3 (state-of-the-art, open-weight, general-purpose multimodal model)
Sourcepub fn medium(api_key: &str) -> Self
pub fn medium(api_key: &str) -> Self
Create with Mistral Medium 3.1 (frontier-class multimodal model)
Sourcepub fn codestral(api_key: &str) -> Self
pub fn codestral(api_key: &str) -> Self
Create with Codestral (cutting-edge code generation model)
Sourcepub fn devstral(api_key: &str) -> Self
pub fn devstral(api_key: &str) -> Self
Create with Devstral (excels at software engineering use cases)
Sourcepub fn ministral_8b(api_key: &str) -> Self
pub fn ministral_8b(api_key: &str) -> Self
Create with Ministral 8B (lightweight model with best-in-class text and vision)
Sourcepub fn ministral_3b(api_key: &str) -> Self
pub fn ministral_3b(api_key: &str) -> Self
Create with Ministral 3B (tiny and efficient model)
Sourcepub fn pixtral(api_key: &str) -> Self
pub fn pixtral(api_key: &str) -> Self
Create with Pixtral Large (frontier-class multimodal vision model)
Sourcepub fn nemo(api_key: &str) -> Self
pub fn nemo(api_key: &str) -> Self
Create with Mistral Nemo 12B (multilingual open source model)
Sourcepub fn with_base_url(self, base_url: &str) -> Self
pub fn with_base_url(self, base_url: &str) -> Self
Set a custom base URL (useful for self-hosted or proxy setups)
Trait Implementations§
Source§impl Debug for MistralProvider
impl Debug for MistralProvider
Source§impl LlmProvider for MistralProvider
impl LlmProvider for MistralProvider
Source§fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the provider is available
Auto Trait Implementations§
impl Freeze for MistralProvider
impl !RefUnwindSafe for MistralProvider
impl Send for MistralProvider
impl Sync for MistralProvider
impl Unpin for MistralProvider
impl !UnwindSafe for MistralProvider
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more