pub enum Mistral {
Large,
Small,
Nemo,
Codestral,
Embed,
}Expand description
Represents a Mistral AI model
Variants§
Large
Mistral Large
Small
Mistral Small
Nemo
Open Mistral Nemo
Codestral
Codestral
Embed
Mistral Embed
Trait Implementations§
Source§impl HTTPProvider<Mistral> for MistralProvider
impl HTTPProvider<Mistral> for MistralProvider
Source§impl MistralModelInfo for Mistral
impl MistralModelInfo for Mistral
fn mistral_model_id(&self) -> String
Source§impl ModelInfo for Mistral
impl ModelInfo for Mistral
Source§fn context_window(&self) -> usize
fn context_window(&self) -> usize
Context window size in tokens
Source§fn max_output_tokens(&self) -> usize
fn max_output_tokens(&self) -> usize
Maximum number of output tokens
NOTE: we may want to do something smart here to have this be
context-dependent. for example if you set the right headers
for anthropic, 3.7 can output 128k instead of 64k.
impl Copy for Mistral
impl Eq for Mistral
impl StructuralPartialEq for Mistral
Auto Trait Implementations§
impl Freeze for Mistral
impl RefUnwindSafe for Mistral
impl Send for Mistral
impl Sync for Mistral
impl Unpin for Mistral
impl UnwindSafe for Mistral
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.