class LittleGhost::Models::Configuration
Loads trusted provider connections or logical model profiles from YAML.
Public Class Methods
Source
# File lib/little_ghost/models/configuration.rb, line 20 def models(path) document = read(path) [mapping(document["models"], path, "models"), document["default_model"]&.to_s] end
Loads model profiles and an optional default role from path.
Source
# File lib/little_ghost/models/configuration.rb, line 14 def providers(path) document = read(path) Providers::Configuration.new(mapping(document["providers"], path, "providers")) end
Loads provider connections from path.