Class Usage
- Namespace
- OpenAI
- Assembly
- OpenAI-DotNet.dll
public sealed class Usage
- Inheritance
-
Usage
- Inherited Members
Constructors
Usage()
public Usage()
Properties
CompletionTokens
[JsonInclude]
[JsonPropertyName("completion_tokens")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public int? CompletionTokens { get; }
Property Value
- int?
CompletionTokensDetails
[JsonInclude]
[JsonPropertyName("completion_tokens_details")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CompletionTokensDetails CompletionTokensDetails { get; }
Property Value
PromptTokens
[JsonInclude]
[JsonPropertyName("prompt_tokens")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public int? PromptTokens { get; }
Property Value
- int?
PromptTokensDetails
[JsonInclude]
[JsonPropertyName("prompt_tokens_details")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public PromptTokensDetails PromptTokensDetails { get; }
Property Value
TotalTokens
[JsonInclude]
[JsonPropertyName("total_tokens")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public int? TotalTokens { get; }
Property Value
- int?
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator +(Usage, Usage)
public static Usage operator +(Usage a, Usage b)