pub enum Model {
Show 33 variants
Tiny,
TinyQ5_1,
TinyQ8_0,
TinyEn,
TinyEnQ5_1,
TinyEnQ8_0,
Base,
BaseQ5_1,
BaseQ8_0,
BaseEn,
BaseEnQ5_1,
BaseEnQ8_0,
Small,
SmallQ5_1,
SmallQ8_0,
SmallEn,
SmallEnQ5_1,
SmallEnQ8_0,
Medium,
MediumQ5_0,
MediumQ8_0,
MediumEn,
MediumEnQ5_0,
MediumEnQ8_0,
Large,
LargeV2,
LargeV2Q5_0,
LargeV2Q8_0,
LargeV3,
LargeV3Q5_0,
LargeV3Turbo,
LargeV3TurboQ5_0,
LargeV3TurboQ8_0,
}Expand description
OpenAI supported models
Variants§
Tiny
The tiny model.
TinyQ5_1
The tiny-q5_1 model.
TinyQ8_0
The tiny-q8_0 model.
TinyEn
The tiny model with only English support.
TinyEnQ5_1
The tiny-q5_1 model with only English support.
TinyEnQ8_0
The tiny-q8_0 model with only English support.
Base
The base model.
BaseQ5_1
The base-q5_1 model.
BaseQ8_0
The base-q8_0 model.
BaseEn
The base model with only English support.
BaseEnQ5_1
The base-q5_1 model with only English support.
BaseEnQ8_0
The base-q8_0 model with only English support.
Small
The small model.
SmallQ5_1
The small-q5_1 model.
SmallQ8_0
The small-q8_0 model.
SmallEn
The small model with only English support.
SmallEnQ5_1
The small-q5_1 model with only English support.
SmallEnQ8_0
The small-q8_0 model with only English support.
Medium
The medium model.
MediumQ5_0
The medium-q5_0 model.
MediumQ8_0
The medium-q8_0 model.
MediumEn
The medium model with only English support.
MediumEnQ5_0
The medium-q5_0 model with only English support.
MediumEnQ8_0
The medium-q8_0 model with only English support.
Large
The large model.
LargeV2
The large model v2.
LargeV2Q5_0
LargeV2Q8_0
LargeV3
The large model v3.
LargeV3Q5_0
The large_v3-q5_0 model v3.
LargeV3Turbo
The large model v3 turbo.
LargeV3TurboQ5_0
The large_v3_turbo-q5_0 model v3 turbo.
LargeV3TurboQ8_0
The large_v3_turbo-q8_0 model v3 turbo.
Implementations§
Source§impl Model
impl Model
Sourcepub fn is_multilingual(&self) -> bool
pub fn is_multilingual(&self) -> bool
True if the model supports multiple languages, false otherwise.
pub async fn download_model( &self, force_download: bool, ) -> Result<PathBuf, Error>
pub async fn download_model_listener( &self, force_download: bool, tx: UnboundedSender<Event>, ) -> Result<PathBuf, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
fn to_sample_(self) -> U
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.