pub struct ChatCompletionStreamChoiceLogprobs {
pub content: Vec<ChatCompletionTokenLogprob>,
pub refusal: Vec<ChatCompletionTokenLogprob>,
}Expand description
Log probability information for the choice.
JSON schema
{
"description": "Log probability information for the choice.",
"type": "object",
"required": [
"content",
"refusal"
],
"properties": {
"content": {
"description": "A list of message content tokens with log probability information.",
"type": "array",
"items": {
"$ref": "#/definitions/ChatCompletionTokenLogprob"
}
},
"refusal": {
"description": "A list of message refusal tokens with log probability information.",
"type": "array",
"items": {
"$ref": "#/definitions/ChatCompletionTokenLogprob"
}
}
}
}Fields§
§content: Vec<ChatCompletionTokenLogprob>A list of message content tokens with log probability information.
refusal: Vec<ChatCompletionTokenLogprob>A list of message refusal tokens with log probability information.
Trait Implementations§
Source§impl Clone for ChatCompletionStreamChoiceLogprobs
impl Clone for ChatCompletionStreamChoiceLogprobs
Source§fn clone(&self) -> ChatCompletionStreamChoiceLogprobs
fn clone(&self) -> ChatCompletionStreamChoiceLogprobs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ChatCompletionStreamChoiceLogprobs
impl<'de> Deserialize<'de> for ChatCompletionStreamChoiceLogprobs
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 ChatCompletionStreamChoiceLogprobs
impl RefUnwindSafe for ChatCompletionStreamChoiceLogprobs
impl Send for ChatCompletionStreamChoiceLogprobs
impl Sync for ChatCompletionStreamChoiceLogprobs
impl Unpin for ChatCompletionStreamChoiceLogprobs
impl UnsafeUnpin for ChatCompletionStreamChoiceLogprobs
impl UnwindSafe for ChatCompletionStreamChoiceLogprobs
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