Method: OpenApiOpenAIClient::CreateCompletionRequest#presence_penalty
- Defined in:
- lib/openapi_openai/models/create_completion_request.rb
#presence_penalty ⇒ Object
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model’s likelihood to talk about new topics. [See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)
49 50 51 |
# File 'lib/openapi_openai/models/create_completion_request.rb', line 49 def presence_penalty @presence_penalty end |