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.
-
#embedding_model ⇒ Object
Returns the value of attribute embedding_model.
-
#image_model ⇒ Object
Returns the value of attribute image_model.
-
#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.
-
#speech_model ⇒ Object
Returns the value of attribute speech_model.
-
#speech_voice ⇒ Object
Returns the value of attribute speech_voice.
-
#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.
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/ai_lite.rb', line 29 def initialize @api_key = nil @model = DEFAULT_MODEL @moderation_model = DEFAULT_MODERATION_MODEL @embedding_model = DEFAULT_EMBEDDING_MODEL @image_model = DEFAULT_IMAGE_MODEL @speech_model = DEFAULT_SPEECH_MODEL @speech_voice = DEFAULT_SPEECH_VOICE @timeout = DEFAULT_TIMEOUT @max_output_tokens = DEFAULT_MAX_OUTPUT_TOKENS end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def api_key @api_key end |
#embedding_model ⇒ Object
Returns the value of attribute embedding_model.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def @embedding_model end |
#image_model ⇒ Object
Returns the value of attribute image_model.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def image_model @image_model end |
#max_output_tokens ⇒ Object
Returns the value of attribute max_output_tokens.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def max_output_tokens @max_output_tokens end |
#model ⇒ Object
Returns the value of attribute model.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def model @model end |
#moderation_model ⇒ Object
Returns the value of attribute moderation_model.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def moderation_model @moderation_model end |
#speech_model ⇒ Object
Returns the value of attribute speech_model.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def speech_model @speech_model end |
#speech_voice ⇒ Object
Returns the value of attribute speech_voice.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def speech_voice @speech_voice end |
#timeout ⇒ Object
Returns the value of attribute timeout.
27 28 29 |
# File 'lib/ai_lite.rb', line 27 def timeout @timeout end |