Method: OpenApiOpenAIClient::CreateCompletionRequest#logprobs

Defined in:
lib/openapi_openai/models/create_completion_request.rb

#logprobsObject

Include the log probabilities on the ‘logprobs` most likely tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response. The maximum value for `logprobs` is 5.



41
42
43
# File 'lib/openapi_openai/models/create_completion_request.rb', line 41

def logprobs
  @logprobs
end