CompletionsUsagePromptTokensDetails Class
- java.
lang. Object - com.
azure. ai. openai. models. CompletionsUsagePromptTokensDetails
- com.
Implements
public final class CompletionsUsagePromptTokensDetails
implements JsonSerializable<CompletionsUsagePromptTokensDetails>
The CompletionsUsagePromptTokensDetails model.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Completions |
fromJson(JsonReader jsonReader)
Reads an instance of Completions |
Integer |
getCachedTokens()
Get the cached |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static CompletionsUsagePromptTokensDetails fromJson(JsonReader jsonReader)
Reads an instance of CompletionsUsagePromptTokensDetails from the JsonReader.
Parameters:
jsonReader
- The JsonReader being read.
Returns:
An instance of CompletionsUsagePromptTokensDetails if the JsonReader was pointing to an instance of it,
or null if it was pointing to JSON null.
Throws:
- If an error occurs while reading the CompletionsUsagePromptTokensDetails.
getCachedTokens
public Integer getCachedTokens()
Get the cachedTokens property: The number of cached prompt tokens.
Returns:
the cachedTokens value.
toJson
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java