Class: OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::SamplingParams

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/evals/run_create_params.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • max_completion_tokens (Integer) (defaults to: nil)

    The maximum number of tokens in the generated output.

  • seed (Integer) (defaults to: nil)

    A seed value to initialize the randomness, during sampling.

  • temperature (Float) (defaults to: nil)

    A higher temperature increases randomness in the outputs.

  • top_p (Float) (defaults to: nil)

    An alternative to temperature for nucleus sampling; 1.0 includes all tokens.



# File 'lib/openai/models/evals/run_create_params.rb', line 585

Instance Attribute Details

#max_completion_tokensInteger?

The maximum number of tokens in the generated output.

Returns:

  • (Integer, nil)


565
# File 'lib/openai/models/evals/run_create_params.rb', line 565

optional :max_completion_tokens, Integer

#seedInteger?

A seed value to initialize the randomness, during sampling.

Returns:

  • (Integer, nil)


571
# File 'lib/openai/models/evals/run_create_params.rb', line 571

optional :seed, Integer

#temperatureFloat?

A higher temperature increases randomness in the outputs.

Returns:

  • (Float, nil)


577
# File 'lib/openai/models/evals/run_create_params.rb', line 577

optional :temperature, Float

#top_pFloat?

An alternative to temperature for nucleus sampling; 1.0 includes all tokens.

Returns:

  • (Float, nil)


583
# File 'lib/openai/models/evals/run_create_params.rb', line 583

optional :top_p, Float