Class EmbeddingsUsage

java.lang.Object
com.azure.ai.openai.models.EmbeddingsUsage

public final class EmbeddingsUsage extends Object
Measurement of the amount of tokens used in this request and response.
  • Method Details

    • getPromptTokens

      public int getPromptTokens()
      Get the promptTokens property: Number of tokens sent in the original request.
      Returns:
      the promptTokens value.
    • getTotalTokens

      public int getTotalTokens()
      Get the totalTokens property: Total number of tokens transacted in this request/response.
      Returns:
      the totalTokens value.