Update lib/llm/config_service.rb
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
This commit is contained in:
co-authored by
Shivam Mishra
parent
c630a609aa
commit
5f689518af
@@ -12,16 +12,10 @@ module Llm::ConfigService
|
||||
@config = load_config
|
||||
end
|
||||
|
||||
def providers
|
||||
config['providers'] || {}
|
||||
end
|
||||
|
||||
def models
|
||||
config['models'] || {}
|
||||
end
|
||||
|
||||
def features
|
||||
config['features'] || {}
|
||||
%w[providers models features].each do |key|
|
||||
define_method(key) do
|
||||
config[key] || {}
|
||||
end
|
||||
end
|
||||
|
||||
def models_for_feature(feature_key)
|
||||
|
||||
Reference in New Issue
Block a user