pub struct Logprobs {
pub text_offset: Option<Vec<usize>>,
pub token_logprobs: Option<Vec<f32>>,
pub tokens: Option<Vec<String>>,
pub top_logprobs: Option<Vec<HashMap<String, f32>>>,
}
Fields§
§text_offset: Option<Vec<usize>>
The offset into the generated text for each token.
token_logprobs: Option<Vec<f32>>
The log probability of each token in the generated text.
tokens: Option<Vec<String>>
The tokens generated by the model.
top_logprobs: Option<Vec<HashMap<String, f32>>>
The top log probabilities for each token position.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Logprobs
impl<'de> Deserialize<'de> for Logprobs
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 Logprobs
impl RefUnwindSafe for Logprobs
impl Send for Logprobs
impl Sync for Logprobs
impl Unpin for Logprobs
impl UnwindSafe for Logprobs
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