Class: ActiveGenie::Config::LlmConfig
- Inherits:
-
BaseConfig
- Object
- BaseConfig
- ActiveGenie::Config::LlmConfig
- Defined in:
- lib/active_genie/configs/llm_config.rb
Instance Attribute Summary collapse
- #max_fibers ⇒ Object
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
- #max_tokens ⇒ Object
-
#model ⇒ Object
Returns the value of attribute model.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#provider_name ⇒ Object
readonly
Returns the value of attribute provider_name.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#recommended_model ⇒ Object
Returns the value of attribute recommended_model.
-
#retry_delay ⇒ Object
Returns the value of attribute retry_delay.
- #temperature ⇒ Object
Method Summary
Methods inherited from BaseConfig
#attributes, #initialize, #to_h
Constructor Details
This class inherits a constructor from ActiveGenie::Config::BaseConfig
Instance Attribute Details
#max_fibers ⇒ Object
17 18 19 |
# File 'lib/active_genie/configs/llm_config.rb', line 17 def max_fibers @max_fibers ||= 10 end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
8 9 10 |
# File 'lib/active_genie/configs/llm_config.rb', line 8 def max_retries @max_retries end |
#max_tokens ⇒ Object
21 22 23 |
# File 'lib/active_genie/configs/llm_config.rb', line 21 def max_tokens @max_tokens ||= 4096 end |
#model ⇒ Object
Returns the value of attribute model.
8 9 10 |
# File 'lib/active_genie/configs/llm_config.rb', line 8 def model @model end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
8 9 10 |
# File 'lib/active_genie/configs/llm_config.rb', line 8 def open_timeout @open_timeout end |
#provider_name ⇒ Object (readonly)
Returns the value of attribute provider_name.
11 12 13 |
# File 'lib/active_genie/configs/llm_config.rb', line 11 def provider_name @provider_name end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
8 9 10 |
# File 'lib/active_genie/configs/llm_config.rb', line 8 def read_timeout @read_timeout end |
#recommended_model ⇒ Object
Returns the value of attribute recommended_model.
8 9 10 |
# File 'lib/active_genie/configs/llm_config.rb', line 8 def recommended_model @recommended_model end |
#retry_delay ⇒ Object
Returns the value of attribute retry_delay.
8 9 10 |
# File 'lib/active_genie/configs/llm_config.rb', line 8 def retry_delay @retry_delay end |
#temperature ⇒ Object
13 14 15 |
# File 'lib/active_genie/configs/llm_config.rb', line 13 def temperature @temperature ||= 0 end |