class RubyLLM::ModelRegistry::JsonSource
Reads model registry data from the configured JSON file.
Public Class Methods
Source
# File lib/ruby_llm/model_registry.rb, line 8 def initialize(file = nil) @file = file end
Public Instance Methods
Source
# File lib/ruby_llm/model_registry.rb, line 12 def read Models.read_from_json(@file || RubyLLM.config.model_registry_file) end