pub struct CompletionUsageCompletionTokensDetails {
pub accepted_prediction_tokens: Option<i32>,
pub audio_tokens: Option<i32>,
pub reasoning_tokens: Option<i32>,
pub rejected_prediction_tokens: Option<i32>,
}
Fields§
§accepted_prediction_tokens: Option<i32>
When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.
audio_tokens: Option<i32>
Audio input tokens generated by the model.
reasoning_tokens: Option<i32>
Tokens generated by the model for reasoning.
rejected_prediction_tokens: Option<i32>
When using Predicted Outputs, the number of tokens in the prediction that did not appear in the completion. However, like reasoning tokens, these tokens are still counted in the total completion tokens for purposes of billing, output, and context window limits.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CompletionUsageCompletionTokensDetails
impl<'de> Deserialize<'de> for CompletionUsageCompletionTokensDetails
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 CompletionUsageCompletionTokensDetails
impl RefUnwindSafe for CompletionUsageCompletionTokensDetails
impl Send for CompletionUsageCompletionTokensDetails
impl Sync for CompletionUsageCompletionTokensDetails
impl Unpin for CompletionUsageCompletionTokensDetails
impl UnwindSafe for CompletionUsageCompletionTokensDetails
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