pub struct MistralNativeProvider { /* private fields */ }Expand description
Calls api.mistral.ai/v1/chat/completions with an API key.
Supports all Mistral chat models:
mistral-small-latest— fastest, cheapest (€0.10/1M tokens in)mistral-medium-latest— balancedmistral-large-latest— most capablecodestral-latest— code specialist
Set MISTRAL_API_KEY to your API key from console.mistral.ai.
Override model with VERTEX_AI_MODEL (name reused for compatibility) or
the new MISTRAL_MODEL env var.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MistralNativeProvider
impl !RefUnwindSafe for MistralNativeProvider
impl Send for MistralNativeProvider
impl Sync for MistralNativeProvider
impl Unpin for MistralNativeProvider
impl UnsafeUnpin for MistralNativeProvider
impl !UnwindSafe for MistralNativeProvider
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