Class: OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::SamplingParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::SamplingParams
- Defined in:
- lib/openai/models/evals/create_eval_completions_run_data_source.rb
Overview
Instance Attribute Summary collapse
-
#max_completion_tokens ⇒ Integer?
The maximum number of tokens in the generated output.
-
#seed ⇒ Integer?
A seed value to initialize the randomness, during sampling.
-
#temperature ⇒ Float?
A higher temperature increases randomness in the outputs.
-
#top_p ⇒ Float?
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
Instance Method Summary collapse
- #initialize(max_completion_tokens: nil, seed: nil, temperature: nil, top_p: nil) ⇒ Object constructor
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(max_completion_tokens: nil, seed: nil, temperature: nil, top_p: nil) ⇒ Object
|
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 453
|
Instance Attribute Details
#max_completion_tokens ⇒ Integer?
The maximum number of tokens in the generated output.
433 |
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 433 optional :max_completion_tokens, Integer |
#seed ⇒ Integer?
A seed value to initialize the randomness, during sampling.
439 |
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 439 optional :seed, Integer |
#temperature ⇒ Float?
A higher temperature increases randomness in the outputs.
445 |
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 445 optional :temperature, Float |
#top_p ⇒ Float?
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
451 |
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 451 optional :top_p, Float |