Class EmbeddingsUsage
Measurment of the amount of tokens used in this request and response.
Inheritance
object
EmbeddingsUsage
Implements
IEquatable<EmbeddingsUsage>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotnetPrompt.LLM.OpenAI.Model
Assembly: DotnetPrompt.LLM.OpenAI.dll
Syntax
public record EmbeddingsUsage : IEquatable<EmbeddingsUsage>
Properties
| Improve this Doc View SourcePromptTokens
Number of tokens sent in the original request.
Declaration
[JsonPropertyName("prompt_tokens")]
public int PromptTokens { get; init; }
Property Value
Type | Description |
---|---|
int |
TotalTokens
Total number of tokens transacted in this request/response.
Declaration
[JsonPropertyName("total_tokens")]
public int TotalTokens { get; init; }
Property Value
Type | Description |
---|---|
int |
Implements
System.IEquatable<T>