Class: TranslationAPI::Llm::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/translation_api/llm/model.rb

Constant Summary collapse

MODEL_ERROR_MESSAGE =
"Specified model is not supported. Please check the model name."

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Model

Returns a new instance of Model.



11
12
13
14
# File 'lib/translation_api/llm/model.rb', line 11

def initialize(name)
  @name = name
  validate_model!
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/translation_api/llm/model.rb', line 9

def name
  @name
end