pub struct ResponseLogProb {
pub token: String,
pub logprob: Number,
pub top_logprobs: Option<Vec<Item>>,
}
Expand description
A logprob is the logarithmic probability that the model assigns to producing a particular token at a given position in the sequence. Less-negative (higher) logprob values indicate greater model confidence in that token choice.
Fields§
§token: String
A possible text token.
logprob: Number
The log probability of this token.
top_logprobs: Option<Vec<Item>>
The log probability of the top 20 most likely tokens.
Implementations§
Trait Implementations§
Source§impl Clone for ResponseLogProb
impl Clone for ResponseLogProb
Source§fn clone(&self) -> ResponseLogProb
fn clone(&self) -> ResponseLogProb
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 ResponseLogProb
impl Debug for ResponseLogProb
Source§impl<'de> Deserialize<'de> for ResponseLogProb
impl<'de> Deserialize<'de> for ResponseLogProb
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
Source§impl PartialEq for ResponseLogProb
impl PartialEq for ResponseLogProb
Source§impl Serialize for ResponseLogProb
impl Serialize for ResponseLogProb
impl StructuralPartialEq for ResponseLogProb
Auto Trait Implementations§
impl Freeze for ResponseLogProb
impl RefUnwindSafe for ResponseLogProb
impl Send for ResponseLogProb
impl Sync for ResponseLogProb
impl Unpin for ResponseLogProb
impl UnwindSafe for ResponseLogProb
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