Class: AiLite::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ai_lite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



27
28
29
# File 'lib/ai_lite.rb', line 27

def api_key
  @api_key
end

#embedding_modelObject

Returns the value of attribute embedding_model.



27
28
29
# File 'lib/ai_lite.rb', line 27

def embedding_model
  @embedding_model
end

#image_modelObject

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_tokensObject

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

#modelObject

Returns the value of attribute model.



27
28
29
# File 'lib/ai_lite.rb', line 27

def model
  @model
end

#moderation_modelObject

Returns the value of attribute moderation_model.



27
28
29
# File 'lib/ai_lite.rb', line 27

def moderation_model
  @moderation_model
end

#speech_modelObject

Returns the value of attribute speech_model.



27
28
29
# File 'lib/ai_lite.rb', line 27

def speech_model
  @speech_model
end

#speech_voiceObject

Returns the value of attribute speech_voice.



27
28
29
# File 'lib/ai_lite.rb', line 27

def speech_voice
  @speech_voice
end

#timeoutObject

Returns the value of attribute timeout.



27
28
29
# File 'lib/ai_lite.rb', line 27

def timeout
  @timeout
end