pub struct TopLogprob {
pub token: String,
pub logprob: f32,
pub bytes: Option<Vec<u8>>,
}
Fields§
§token: String
The token.
logprob: f32
A list of integers representing the UTF-8 bytes representation of the token.
Useful in instances where characters are represented by multiple tokens and
their byte representations must be combined to generate the correct text
representation. Can be null
if there is no bytes representation for the token.
bytes: Option<Vec<u8>>
List of the most likely tokens and their log probability, at this token
position. In rare cases, there may be fewer than the number of requested
top_logprobs
returned.
Trait Implementations§
Source§impl Debug for TopLogprob
impl Debug for TopLogprob
Source§impl<'de> Deserialize<'de> for TopLogprob
impl<'de> Deserialize<'de> for TopLogprob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TopLogprob
impl RefUnwindSafe for TopLogprob
impl Send for TopLogprob
impl Sync for TopLogprob
impl Unpin for TopLogprob
impl UnwindSafe for TopLogprob
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