Class: CleoQualityReview::LlmConfig
- Inherits:
-
Object
- Object
- CleoQualityReview::LlmConfig
- Defined in:
- lib/cleo_quality_review/llm_config.rb
Overview
Configuration for LLM provider
Constant Summary collapse
- PROVIDER =
"openai"
Instance Method Summary collapse
-
#initialize(env: ENV) ⇒ LlmConfig
constructor
A new instance of LlmConfig.
- #open_ai_config ⇒ LlmProviders::OpenAi::Config
-
#provider ⇒ String
The provider name.
- #stub_config ⇒ LlmProviders::Stub::Config
Constructor Details
#initialize(env: ENV) ⇒ LlmConfig
Returns a new instance of LlmConfig.
13 14 15 |
# File 'lib/cleo_quality_review/llm_config.rb', line 13 def initialize(env: ENV) @env = env end |
Instance Method Details
#open_ai_config ⇒ LlmProviders::OpenAi::Config
25 26 27 |
# File 'lib/cleo_quality_review/llm_config.rb', line 25 def open_ai_config @open_ai_config ||= LlmProviders::OpenAi::Config.new(env: env) end |
#provider ⇒ String
Returns the provider name.
19 20 21 |
# File 'lib/cleo_quality_review/llm_config.rb', line 19 def provider PROVIDER end |
#stub_config ⇒ LlmProviders::Stub::Config
31 32 33 34 |
# File 'lib/cleo_quality_review/llm_config.rb', line 31 def stub_config require_relative "llm_providers/stub" @stub_config ||= LlmProviders::Stub::Config.new(env: env) end |