pub enum TiktokenModel {
Cl100kBase,
P50kBase,
P50kEdit,
R50kBase,
}Expand description
Supported Tiktoken models
Variants§
Cl100kBase
GPT-4, GPT-3.5-turbo, text-embedding-ada-002
P50kBase
Codex models, text-davinci-002, text-davinci-003
P50kEdit
Use for edit models like text-davinci-edit-001, code-davinci-edit-001
R50kBase
GPT-3 models like davinci
Trait Implementations§
Source§impl Clone for TiktokenModel
impl Clone for TiktokenModel
Source§fn clone(&self) -> TiktokenModel
fn clone(&self) -> TiktokenModel
Returns a duplicate of the value. Read more
1.0.0 · 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 TiktokenModel
impl Debug for TiktokenModel
impl Copy for TiktokenModel
Auto Trait Implementations§
impl Freeze for TiktokenModel
impl RefUnwindSafe for TiktokenModel
impl Send for TiktokenModel
impl Sync for TiktokenModel
impl Unpin for TiktokenModel
impl UnsafeUnpin for TiktokenModel
impl UnwindSafe for TiktokenModel
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<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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more