pub struct TokenizationRequest {
pub model: String,
pub prompt: String,
pub tokens: bool,
pub token_ids: bool,
}Fields§
§model: StringName of the model tasked with completing the prompt. E.g. luminous-base.
prompt: StringString to tokenize.
tokens: boolSet this value to true to return text-tokens.
token_ids: boolSet this value to `true to return numeric token-ids.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenizationRequest
impl RefUnwindSafe for TokenizationRequest
impl Send for TokenizationRequest
impl Sync for TokenizationRequest
impl Unpin for TokenizationRequest
impl UnwindSafe for TokenizationRequest
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> 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