Namespace Logprobs
Properties
Optional textOffset
text
Offset: Array<number>
Optional tokenLogprobs
token
Logprobs: Array<number>
Optional topLogprobs
top
Logprobs: Array<object>
Functions
getDeserializedJsonObj
- getDeserializedJsonObj(obj: Logprobs): object
-
Parameters
Returns object
getJsonObj
-
Parameters
Returns object
Includes the logarithmic probabilities for the most likely output tokens and the chosen tokens.
For example, if the log probability is 5, the API returns a list of the 5 most likely tokens. The API returns the log probability of the sampled token, so there might be up to logprobs+1 elements in the response.