Method: OpenApiOpenAIClient::CreateCompletionRequest#best_of
- Defined in:
- lib/openapi_openai/models/create_completion_request.rb
#best_of ⇒ Object
Generates ‘best_of` completions server-side and returns the "best" (the one with the highest log probability per token). Results cannot be streamed. When used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return – `best_of` must be greater than `n`. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.
55 56 57 |
# File 'lib/openapi_openai/models/create_completion_request.rb', line 55 def best_of @best_of end |