CompletionsUsagePromptTokensDetails Class
- java.
lang. Object - com.
azure. ai. openai. models. CompletionsUsagePromptTokensDetails
- com.
Implements
public final class CompletionsUsagePromptTokensDetails
implements JsonSerializable<CompletionsUsagePromptTokensDetails>
The CompletionsUsagePromptTokensDetails model.
Modifier and Type | Method and Description |
---|---|
static
Completions |
from Reads an instance of Completions |
Integer |
get Get the cached |
Json |
to |
Methods inherited from java.lang.Object
fromJson
public static CompletionsUsagePromptTokensDetails fromJson(JsonReader jsonReader)
Reads an instance of CompletionsUsagePromptTokensDetails from the JsonReader.
Parameters:
Returns:
Throws:
getCachedTokens
public Integer getCachedTokens()
Get the cachedTokens property: The number of cached prompt tokens.
Returns:
toJson
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: