Class ApiChatCompletionsResponseUsageCompletionTokenDetails
- java.lang.Object
-
- de.xima.fc.prompt.ms.impl.service.generic_oai.client.json.ApiChatCompletionsResponseUsageCompletionTokenDetails
-
public final class ApiChatCompletionsResponseUsageCompletionTokenDetails extends Object
Breakdown of tokens used in a completion.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongacceptedPredictionTokens()When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.LongaudioTokens()Audio input tokens generated by the model.LongreasoningTokens()Tokens generated by the model for reasoning.LongrejectedPredictionTokens()When using Predicted Outputs, the number of tokens in the prediction that did not appear in the completion.
-
-
-
Method Detail
-
acceptedPredictionTokens
public Long acceptedPredictionTokens()
When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.- Returns:
- The number of accepted prediction tokens.
-
audioTokens
public Long audioTokens()
Audio input tokens generated by the model.- Returns:
- The number of audio tokens.
-
reasoningTokens
public Long reasoningTokens()
Tokens generated by the model for reasoning.- Returns:
- The number of reasoning tokens.
-
rejectedPredictionTokens
public Long rejectedPredictionTokens()
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.- Returns:
- The number of rejected prediction tokens.
-
-