From b31b220885e9785e24d618bae2f808afe239c7c1 Mon Sep 17 00:00:00 2001 From: Aakash Bakhle <48802744+aakashb95@users.noreply.github.com> Date: Wed, 17 Dec 2025 17:26:08 +0530 Subject: [PATCH] Update lib/llm/config_service.rb Co-authored-by: Shivam Mishra --- lib/llm/config_service.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/llm/config_service.rb b/lib/llm/config_service.rb index 4a1d4d786..250637d61 100644 --- a/lib/llm/config_service.rb +++ b/lib/llm/config_service.rb @@ -19,10 +19,7 @@ module Llm::ConfigService end def models_for_feature(feature_key) - feature = features[feature_key.to_s] - return [] unless feature - - feature['models'] || [] + features.dig(feature_key.to_s, 'models') || [] end def default_model_for_feature(feature_key)