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.
-
#moderation_model ⇒ Object
Returns the value of attribute moderation_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.
24 25 26 27 28 29 30 |
# File 'lib/ai_lite.rb', line 24 def initialize @api_key = nil @model = DEFAULT_MODEL @moderation_model = DEFAULT_MODERATION_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.
22 23 24 |
# File 'lib/ai_lite.rb', line 22 def api_key @api_key end |
#max_output_tokens ⇒ Object
Returns the value of attribute max_output_tokens.
22 23 24 |
# File 'lib/ai_lite.rb', line 22 def max_output_tokens @max_output_tokens end |
#model ⇒ Object
Returns the value of attribute model.
22 23 24 |
# File 'lib/ai_lite.rb', line 22 def model @model end |
#moderation_model ⇒ Object
Returns the value of attribute moderation_model.
22 23 24 |
# File 'lib/ai_lite.rb', line 22 def moderation_model @moderation_model end |
#timeout ⇒ Object
Returns the value of attribute timeout.
22 23 24 |
# File 'lib/ai_lite.rb', line 22 def timeout @timeout end |