pub enum TokenizerId {
Cl100kBase,
O200kBase,
}Expand description
Stable identifier for a registered tokenizer.
Must be stable across releases so the measurement-record
pricing_snapshot_id and dialect-dispatch replay reproduce byte-for-byte.
Variants§
Cl100kBase
OpenAI cl100k_base (GPT-4, GPT-3.5-turbo).
O200kBase
OpenAI o200k_base (GPT-4o, GPT-5 approximation).
Implementations§
Trait Implementations§
Source§impl Clone for TokenizerId
impl Clone for TokenizerId
Source§fn clone(&self) -> TokenizerId
fn clone(&self) -> TokenizerId
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 TokenizerId
impl Debug for TokenizerId
Source§impl Hash for TokenizerId
impl Hash for TokenizerId
Source§impl PartialEq for TokenizerId
impl PartialEq for TokenizerId
impl Copy for TokenizerId
impl Eq for TokenizerId
impl StructuralPartialEq for TokenizerId
Auto Trait Implementations§
impl Freeze for TokenizerId
impl RefUnwindSafe for TokenizerId
impl Send for TokenizerId
impl Sync for TokenizerId
impl Unpin for TokenizerId
impl UnsafeUnpin for TokenizerId
impl UnwindSafe for TokenizerId
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.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