Class: Llmshim::Model
- Inherits:
-
Struct
- Object
- Struct
- Llmshim::Model
- Defined in:
- lib/llmshim/types.rb
Overview
A single model entry from GET /v1/models.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#provider ⇒ Object
Returns the value of attribute provider.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
78 79 80 |
# File 'lib/llmshim/types.rb', line 78 def id @id end |
#name ⇒ Object
Returns the value of attribute name
78 79 80 |
# File 'lib/llmshim/types.rb', line 78 def name @name end |
#provider ⇒ Object
Returns the value of attribute provider
78 79 80 |
# File 'lib/llmshim/types.rb', line 78 def provider @provider end |
Class Method Details
.from_hash(hash) ⇒ Object
79 80 81 |
# File 'lib/llmshim/types.rb', line 79 def self.from_hash(hash) new(id: hash["id"], provider: hash["provider"], name: hash["name"]) end |