Class: LLMSpecs::Catalog

Inherits:
Object
  • Object
show all
Defined in:
lib/llm_specs/catalog.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_uri:, cache_path:) ⇒ Catalog

Returns a new instance of Catalog.



4
5
6
7
# File 'lib/llm_specs/catalog.rb', line 4

def initialize(api_uri:, cache_path:)
  @uri   = URI(api_uri)
  @cache = Cache.new(cache_path)
end

Instance Method Details

#modelsObject



9
10
11
# File 'lib/llm_specs/catalog.rb', line 9

def models
  Collection.new fetch.map(&Model)
end