Class Usage
Usage statistics for the completion request.
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
Properties
CompletionTokens
Declaration
[JsonProperty(PropertyName = "completionTokens")]
public int? CompletionTokens { get; set; }
Property Value
Type |
Description |
int? |
Number of tokens in the generated completion.
|
CompletionTokensDetails
Declaration
[JsonProperty(PropertyName = "completionTokensDetails")]
public CompletionTokensDetails CompletionTokensDetails { get; set; }
Property Value
PromptTokens
Declaration
[JsonProperty(PropertyName = "promptTokens")]
public int? PromptTokens { get; set; }
Property Value
Type |
Description |
int? |
Number of tokens in the prompt.
|
PromptTokensDetails
Declaration
[JsonProperty(PropertyName = "promptTokensDetails")]
public PromptTokensDetails PromptTokensDetails { get; set; }
Property Value
TotalTokens
Declaration
[JsonProperty(PropertyName = "totalTokens")]
public int? TotalTokens { get; set; }
Property Value
Type |
Description |
int? |
Total number of tokens used in the request (prompt + completion).
|