Class: LlmOrchestrator::OpenAIConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/llm_orchestrator.rb

Overview

Configuration class for OpenAI-specific settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOpenAIConfig

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_keyObject

Returns the value of attribute api_key.



45
46
47
# File 'lib/llm_orchestrator.rb', line 45

def api_key
  @api_key
end

#max_tokensObject

Returns the value of attribute max_tokens.



45
46
47
# File 'lib/llm_orchestrator.rb', line 45

def max_tokens
  @max_tokens
end

#modelObject

Returns the value of attribute model.



45
46
47
# File 'lib/llm_orchestrator.rb', line 45

def model
  @model
end

#temperatureObject

Returns the value of attribute temperature.



45
46
47
# File 'lib/llm_orchestrator.rb', line 45

def temperature
  @temperature
end