From 5f689518affe061f5d241da87d8af494e2297dd1 Mon Sep 17 00:00:00 2001 From: Aakash Bakhle <48802744+aakashb95@users.noreply.github.com> Date: Wed, 17 Dec 2025 17:25:55 +0530 Subject: [PATCH] Update lib/llm/config_service.rb Co-authored-by: Shivam Mishra --- lib/llm/config_service.rb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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)