Method: OpenApiOpenAIClient::CreateCompletionRequest#frequency_penalty
- Defined in:
- lib/openapi_openai/models/create_completion_request.rb
#frequency_penalty ⇒ Object
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model’s likelihood to repeat the same line verbatim. [See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)
52 53 54 |
# File 'lib/openapi_openai/models/create_completion_request.rb', line 52 def frequency_penalty @frequency_penalty end |