Class: AiClient::LLM
- Inherits:
-
ActiveHash::Base
- Object
- ActiveHash::Base
- AiClient::LLM
- Defined in:
- lib/ai_client/llm.rb
Constant Summary collapse
- DATA_PATH =
Pathname.new( __dir__ + '/models.yml')
Instance Method Summary collapse
-
#model ⇒ String
Extracts the model name from the LLM ID.
-
#provider ⇒ Symbol
Extracts the provider name from the LLM ID.
- #to_h ⇒ Object
Instance Method Details
#model ⇒ String
Extracts the model name from the LLM ID.
23 |
# File 'lib/ai_client/llm.rb', line 23 def model = id.split('/')[1] |
#provider ⇒ Symbol
Extracts the provider name from the LLM ID.
29 |
# File 'lib/ai_client/llm.rb', line 29 def provider = id.split('/')[0].to_sym |
#to_h ⇒ Object
31 |
# File 'lib/ai_client/llm.rb', line 31 def to_h = attributes |