Class: AiLite::Configuration
- Inherits:
-
Object
- Object
- AiLite::Configuration
- Defined in:
- lib/ai_lite.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#max_output_tokens ⇒ Object
Returns the value of attribute max_output_tokens.
-
#model ⇒ Object
Returns the value of attribute model.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 |
# File 'lib/ai_lite.rb', line 15 def initialize @api_key = nil @model = DEFAULT_MODEL @timeout = DEFAULT_TIMEOUT @max_output_tokens = DEFAULT_MAX_OUTPUT_TOKENS end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
13 14 15 |
# File 'lib/ai_lite.rb', line 13 def api_key @api_key end |
#max_output_tokens ⇒ Object
Returns the value of attribute max_output_tokens.
13 14 15 |
# File 'lib/ai_lite.rb', line 13 def max_output_tokens @max_output_tokens end |
#model ⇒ Object
Returns the value of attribute model.
13 14 15 |
# File 'lib/ai_lite.rb', line 13 def model @model end |
#timeout ⇒ Object
Returns the value of attribute timeout.
13 14 15 |
# File 'lib/ai_lite.rb', line 13 def timeout @timeout end |