Package com.azure.ai.openai.models
Class EmbeddingsUsage
java.lang.Object
com.azure.ai.openai.models.EmbeddingsUsage
Measurement of the amount of tokens used in this request and response.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the promptTokens property: Number of tokens sent in the original request.intGet the totalTokens property: Total number of tokens transacted in this request/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.
-