ChatChoiceLogProbabilityInfo Class
- java.
lang. Object - com.
azure. ai. openai. models. ChatChoiceLogProbabilityInfo
- com.
Implements
public final class ChatChoiceLogProbabilityInfo
implements JsonSerializable<ChatChoiceLogProbabilityInfo>
Log probability information for a choice, as requested via 'logprobs' and 'top_logprobs'.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
List<Chat |
getContent()
Get the content property: The list of log probability information entries for the choice's message content tokens, as requested via the 'logprobs' option. |
List<Chat |
getRefusal()
Get the refusal property: The list of log probability information entries for the choice's message refusal message tokens, as requested via the 'logprobs' option. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ChatChoiceLogProbabilityInfo fromJson(JsonReader jsonReader)
Reads an instance of ChatChoiceLogProbabilityInfo from the JsonReader.
Parameters:
Returns:
Throws:
getContent
public List
Get the content property: The list of log probability information entries for the choice's message content tokens, as requested via the 'logprobs' option.
Returns:
getRefusal
public List
Get the refusal property: The list of log probability information entries for the choice's message refusal message tokens, as requested via the 'logprobs' option.
Returns:
toJson
Applies to
Azure SDK for Java