Show / Hide Table of Contents

Class CompletionTokensDetails

Breakdown of tokens used in a completion.

Inheritance
object
CompletionTokensDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class CompletionTokensDetails

Properties

AcceptedPredictionTokens

Declaration
[JsonProperty(PropertyName = "acceptedPredictionTokens")]
public int? AcceptedPredictionTokens { get; set; }
Property Value
Type Description
int?

When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.

ReasoningTokens

Declaration
[JsonProperty(PropertyName = "reasoningTokens")]
public int? ReasoningTokens { get; set; }
Property Value
Type Description
int?

Tokens generated by the model for reasoning.

RejectedPredictionTokens

Declaration
[JsonProperty(PropertyName = "rejectedPredictionTokens")]
public int? RejectedPredictionTokens { get; set; }
Property Value
Type Description
int?

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.

In this article
Back to top