Class: LlmOrchestrator::OpenAIConfig
- Inherits:
-
Object
- Object
- LlmOrchestrator::OpenAIConfig
- Defined in:
- lib/llm_orchestrator.rb
Overview
Configuration class for OpenAI-specific settings
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
-
#model ⇒ Object
Returns the value of attribute model.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
Instance Method Summary collapse
-
#initialize ⇒ OpenAIConfig
constructor
A new instance of OpenAIConfig.
Constructor Details
#initialize ⇒ OpenAIConfig
Returns a new instance of OpenAIConfig.
47 48 49 50 51 52 |
# File 'lib/llm_orchestrator.rb', line 47 def initialize @api_key = nil @model = "gpt-3.5-turbo" @temperature = 0.7 @max_tokens = 1000 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
45 46 47 |
# File 'lib/llm_orchestrator.rb', line 45 def api_key @api_key end |
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
45 46 47 |
# File 'lib/llm_orchestrator.rb', line 45 def max_tokens @max_tokens end |
#model ⇒ Object
Returns the value of attribute model.
45 46 47 |
# File 'lib/llm_orchestrator.rb', line 45 def model @model end |
#temperature ⇒ Object
Returns the value of attribute temperature.
45 46 47 |
# File 'lib/llm_orchestrator.rb', line 45 def temperature @temperature end |