Class: Axn::RubyLLM::Configuration
- Inherits:
-
Object
- Object
- Axn::RubyLLM::Configuration
- Defined in:
- lib/axn/ruby_llm/configuration.rb
Constant Summary collapse
- DEFAULT_MODEL =
"gpt-4o-mini"
Instance Attribute Summary collapse
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 |
# File 'lib/axn/ruby_llm/configuration.rb', line 10 def initialize @default_model = DEFAULT_MODEL @enabled = true end |
Instance Attribute Details
#default_model ⇒ Object
Returns the value of attribute default_model.
8 9 10 |
# File 'lib/axn/ruby_llm/configuration.rb', line 8 def default_model @default_model end |
#enabled ⇒ Object
Returns the value of attribute enabled.
8 9 10 |
# File 'lib/axn/ruby_llm/configuration.rb', line 8 def enabled @enabled end |
Instance Method Details
#enabled? ⇒ Boolean
15 16 17 |
# File 'lib/axn/ruby_llm/configuration.rb', line 15 def enabled? enabled.respond_to?(:call) ? !!enabled.call : !!enabled end |