#[non_exhaustive]pub enum ModelMode {
Chat,
Embedding,
ImageGeneration,
AudioTranscription,
AudioSpeech,
Rerank,
Moderation,
Completion,
VideoGeneration,
Search,
Ocr,
}Expand description
The operational mode of a model.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Chat
Chat / conversational completion.
Embedding
Text embedding / vectorization.
ImageGeneration
Image generation.
AudioTranscription
Audio transcription (speech-to-text).
AudioSpeech
Audio speech (text-to-speech).
Rerank
Reranking.
Moderation
Content moderation.
Completion
Legacy text completion.
VideoGeneration
Video generation.
Search
Search.
Ocr
Optical character recognition.
Trait Implementations§
impl Copy for ModelMode
impl Eq for ModelMode
impl StructuralPartialEq for ModelMode
Auto Trait Implementations§
impl Freeze for ModelMode
impl RefUnwindSafe for ModelMode
impl Send for ModelMode
impl Sync for ModelMode
impl Unpin for ModelMode
impl UnsafeUnpin for ModelMode
impl UnwindSafe for ModelMode
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