pub struct ChatLogProbsSnapshotEvent {
pub choice_index: u32,
pub values: Vec<ChatCompletionTokenLogprob>,
pub snapshot: Vec<ChatCompletionTokenLogprob>,
}Expand description
表示 token logprobs 增量和当前聚合快照。
Fields§
§choice_index: u32候选索引。
values: Vec<ChatCompletionTokenLogprob>本次 logprobs 增量。
snapshot: Vec<ChatCompletionTokenLogprob>当前累计 logprobs。
Trait Implementations§
Source§impl Clone for ChatLogProbsSnapshotEvent
impl Clone for ChatLogProbsSnapshotEvent
Source§fn clone(&self) -> ChatLogProbsSnapshotEvent
fn clone(&self) -> ChatLogProbsSnapshotEvent
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 ChatLogProbsSnapshotEvent
impl Debug for ChatLogProbsSnapshotEvent
Source§impl<'de> Deserialize<'de> for ChatLogProbsSnapshotEvent
impl<'de> Deserialize<'de> for ChatLogProbsSnapshotEvent
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
impl StructuralPartialEq for ChatLogProbsSnapshotEvent
Auto Trait Implementations§
impl Freeze for ChatLogProbsSnapshotEvent
impl RefUnwindSafe for ChatLogProbsSnapshotEvent
impl Send for ChatLogProbsSnapshotEvent
impl Sync for ChatLogProbsSnapshotEvent
impl Unpin for ChatLogProbsSnapshotEvent
impl UnsafeUnpin for ChatLogProbsSnapshotEvent
impl UnwindSafe for ChatLogProbsSnapshotEvent
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