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



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/ai_lite.rb', line 42

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
  @transcription_model = DEFAULT_TRANSCRIPTION_MODEL
  @timeout = DEFAULT_TIMEOUT
  @max_output_tokens = DEFAULT_MAX_OUTPUT_TOKENS
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



40
41
42
# File 'lib/ai_lite.rb', line 40

def api_key
  @api_key
end

#embedding_modelObject

Returns the value of attribute embedding_model.



40
41
42
# File 'lib/ai_lite.rb', line 40

def embedding_model
  @embedding_model
end

#image_modelObject

Returns the value of attribute image_model.



40
41
42
# File 'lib/ai_lite.rb', line 40

def image_model
  @image_model
end

#max_output_tokensObject

Returns the value of attribute max_output_tokens.



40
41
42
# File 'lib/ai_lite.rb', line 40

def max_output_tokens
  @max_output_tokens
end

#modelObject

Returns the value of attribute model.



40
41
42
# File 'lib/ai_lite.rb', line 40

def model
  @model
end

#moderation_modelObject

Returns the value of attribute moderation_model.



40
41
42
# File 'lib/ai_lite.rb', line 40

def moderation_model
  @moderation_model
end

#speech_modelObject

Returns the value of attribute speech_model.



40
41
42
# File 'lib/ai_lite.rb', line 40

def speech_model
  @speech_model
end

#speech_voiceObject

Returns the value of attribute speech_voice.



40
41
42
# File 'lib/ai_lite.rb', line 40

def speech_voice
  @speech_voice
end

#timeoutObject

Returns the value of attribute timeout.



40
41
42
# File 'lib/ai_lite.rb', line 40

def timeout
  @timeout
end

#transcription_modelObject

Returns the value of attribute transcription_model.



40
41
42
# File 'lib/ai_lite.rb', line 40

def transcription_model
  @transcription_model
end