pub struct CompletionLogprobs {
pub tokens: Option<Vec<String>>,
pub token_logprobs: Option<Vec<f32>>,
pub text_offset: Option<Vec<u32>>,
pub top_logprobs: Option<Vec<HashMap<String, f32>>>,
}Expand description
Log probability information for tokens.
Fields§
§tokens: Option<Vec<String>>List of tokens.
token_logprobs: Option<Vec<f32>>Log probabilities for each token.
text_offset: Option<Vec<u32>>Text offset for each token.
top_logprobs: Option<Vec<HashMap<String, f32>>>Top log probabilities for each position.
Trait Implementations§
Source§impl Clone for CompletionLogprobs
impl Clone for CompletionLogprobs
Source§fn clone(&self) -> CompletionLogprobs
fn clone(&self) -> CompletionLogprobs
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 CompletionLogprobs
impl Debug for CompletionLogprobs
Source§impl<'de> Deserialize<'de> for CompletionLogprobs
impl<'de> Deserialize<'de> for CompletionLogprobs
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 CompletionLogprobs
impl RefUnwindSafe for CompletionLogprobs
impl Send for CompletionLogprobs
impl Sync for CompletionLogprobs
impl Unpin for CompletionLogprobs
impl UnwindSafe for CompletionLogprobs
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