pub struct InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem {
pub bytes: Option<Vec<i64>>,
pub logprob: f64,
pub token: String,
pub top_logprobs: Vec<InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItemTopLogprobsItem>,
}Expand description
InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
JSON schema
{
"type": "object",
"required": [
"bytes",
"logprob",
"token",
"top_logprobs"
],
"properties": {
"bytes": {
"description": "A list of integers representing the UTF-8 bytes representation of the token. Can be null if there is no bytes representation for the token.",
"type": [
"array",
"null"
],
"items": {
"type": "integer"
}
},
"logprob": {
"description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.",
"examples": [
-1.2345
],
"type": "number"
},
"token": {
"description": "The token.",
"examples": [
"Hello"
],
"type": "string"
},
"top_logprobs": {
"description": "List of the most likely tokens and their log probability, at this token position.",
"type": "array",
"items": {
"type": "object",
"required": [
"bytes",
"logprob",
"token"
],
"properties": {
"bytes": {
"type": [
"array",
"null"
],
"items": {
"type": "integer"
}
},
"logprob": {
"description": "The log probability of this token.",
"examples": [
-1.2345
],
"type": "number"
},
"token": {
"description": "The token.",
"examples": [
"Hello"
],
"type": "string"
}
}
}
}
}
}Fields§
§bytes: Option<Vec<i64>>A list of integers representing the UTF-8 bytes representation of the token. Can be null if there is no bytes representation for the token.
logprob: f64§token: StringThe token.
top_logprobs: Vec<InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItemTopLogprobsItem>List of the most likely tokens and their log probability, at this token position.
Trait Implementations§
Source§impl Clone for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl Clone for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
Source§fn clone(
&self,
) -> InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
fn clone( &self, ) -> InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
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 InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl<'de> Deserialize<'de> for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
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 From<&InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem> for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl From<&InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem> for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
Source§fn from(
value: &InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem,
) -> Self
fn from( value: &InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem, ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl RefUnwindSafe for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl Send for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl Sync for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl Unpin for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl UnsafeUnpin for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
impl UnwindSafe for InferenceCreateChatCompletionResponseChoicesItemLogprobsRefusalItem
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