From 82efd35b5546f14c7f615b9b1f6a53c2c5cef8fa Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:24:44 +0530 Subject: [PATCH] feat(setup-config): only allow finalization when chat model exists --- src/components/Setup/SetupConfig.tsx | 3 ++- src/lib/huggingfaceTransformer.ts | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Setup/SetupConfig.tsx b/src/components/Setup/SetupConfig.tsx index 334974f..18b07e9 100644 --- a/src/components/Setup/SetupConfig.tsx +++ b/src/components/Setup/SetupConfig.tsx @@ -63,7 +63,8 @@ const SetupConfig = ({ } }; - const hasProviders = providers.length > 0; + const hasProviders = + providers.filter((p) => p.chatModels.length > 0).length > 0; return (