ChatTokenLogProbabilityInfo Class
- java.
lang. Object - com.
azure. ai. openai. models. ChatTokenLogProbabilityInfo
- com.
Implements
public final class ChatTokenLogProbabilityInfo
implements JsonSerializable<ChatTokenLogProbabilityInfo>
A representation of the log probability information for a single message content token.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
List<Integer> |
getBytes()
Get the bytes property: A list of integers representing the UTF-8 bytes representation of the token. |
double |
getLogprob()
Get the logprob property: The log probability of the message content token. |
String |
getToken()
Get the token property: The message content token. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ChatTokenLogProbabilityInfo fromJson(JsonReader jsonReader)
Reads an instance of ChatTokenLogProbabilityInfo from the JsonReader.
Parameters:
Returns:
Throws:
getBytes
public List
Get the bytes property: A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.
Returns:
getLogprob
public double getLogprob()
Get the logprob property: The log probability of the message content token.
Returns:
getToken
public String getToken()
Get the token property: The message content token.
Returns:
toJson
Applies to
Azure SDK for Java