diff --git a/lib/llm/config_service.rb b/lib/llm/config_service.rb index 493932a9b..4a1d4d786 100644 --- a/lib/llm/config_service.rb +++ b/lib/llm/config_service.rb @@ -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)