pub struct MistralChatModel { /* private fields */ }Expand description
Mistral Chat Completions model handle.
Cheap to clone. Multiple clones share the underlying HTTP client and
authentication state via Mistral’s Arc.
Trait Implementations§
Source§impl Clone for MistralChatModel
impl Clone for MistralChatModel
Source§fn clone(&self) -> MistralChatModel
fn clone(&self) -> MistralChatModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MistralChatModel
impl Debug for MistralChatModel
Source§impl LanguageModel for MistralChatModel
impl LanguageModel for MistralChatModel
Source§fn supported_urls<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = SupportedUrls> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn supported_urls<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = SupportedUrls> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
URL patterns the model can ingest natively, by media type. Read more
Source§fn do_generate<'life0, 'async_trait>(
&'life0 self,
options: CallOptions,
) -> Pin<Box<dyn Future<Output = Result<GenerateResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn do_generate<'life0, 'async_trait>(
&'life0 self,
options: CallOptions,
) -> Pin<Box<dyn Future<Output = Result<GenerateResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run a non-streaming generation. Read more
Source§fn do_stream<'life0, 'async_trait>(
&'life0 self,
options: CallOptions,
) -> Pin<Box<dyn Future<Output = Result<StreamResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn do_stream<'life0, 'async_trait>(
&'life0 self,
options: CallOptions,
) -> Pin<Box<dyn Future<Output = Result<StreamResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run a streaming generation. Read more
Source§fn specification_version(&self) -> &'static str
fn specification_version(&self) -> &'static str
Specification version (currently
"v4"). Read moreAuto Trait Implementations§
impl Freeze for MistralChatModel
impl !RefUnwindSafe for MistralChatModel
impl Send for MistralChatModel
impl Sync for MistralChatModel
impl Unpin for MistralChatModel
impl UnsafeUnpin for MistralChatModel
impl !UnwindSafe for MistralChatModel
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