Class: TranslationAPI::Llm::Model
- Inherits:
-
Object
- Object
- TranslationAPI::Llm::Model
- Defined in:
- lib/translation_api/llm/model.rb
Direct Known Subclasses
Constant Summary collapse
- MODEL_ERROR_MESSAGE =
"Specified model is not supported. Please check the model name."
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Model
constructor
A new instance of Model.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/translation_api/llm/model.rb', line 9 def name @name end |