Method: OpenAI::Models::CompletionCreateParams#temperature

Defined in:
lib/openai/models/completion_create_params.rb

#temperatureFloat?

What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.

We generally recommend altering this or top_p but not both.

Returns:

  • (Float, nil)


165
# File 'lib/openai/models/completion_create_params.rb', line 165

optional :temperature, Float, nil?: true