Class: ActiveGenie::Config::LlmConfig

Inherits:
BaseConfig
  • Object
show all
Defined in:
lib/active_genie/configs/llm_config.rb

Instance Attribute Summary collapse

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_fibersObject



17
18
19
# File 'lib/active_genie/configs/llm_config.rb', line 17

def max_fibers
  @max_fibers ||= 10
end

#max_retriesObject

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_tokensObject



21
22
23
# File 'lib/active_genie/configs/llm_config.rb', line 21

def max_tokens
  @max_tokens ||= 4096
end

#modelObject

Returns the value of attribute model.



8
9
10
# File 'lib/active_genie/configs/llm_config.rb', line 8

def model
  @model
end

#open_timeoutObject

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_nameObject (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_timeoutObject

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

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_delayObject

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

#temperatureObject



13
14
15
# File 'lib/active_genie/configs/llm_config.rb', line 13

def temperature
  @temperature ||= 0
end