Search Results for

    Show / Hide Table of Contents

    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 Source

    PromptTokens

    Number of tokens sent in the original request.

    Declaration
    [JsonPropertyName("prompt_tokens")]
    public int PromptTokens { get; init; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    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>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt