From 55f171d0f3202e12d452bbbde6ba4057bdd3478e Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 19 Mar 2026 15:07:41 +0530 Subject: [PATCH] chore: fix service configuration UI --- ui/src/components/ServiceConfiguration.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/components/ServiceConfiguration.tsx b/ui/src/components/ServiceConfiguration.tsx index 625016e..f7229f1 100644 --- a/ui/src/components/ServiceConfiguration.tsx +++ b/ui/src/components/ServiceConfiguration.tsx @@ -362,20 +362,20 @@ export default function ServiceConfiguration() { const userConfig: Record> = { llm: { provider: serviceProviders.llm, - api_key: getServiceApiKeys("llm"), + ...(getServiceApiKeys("llm").length > 0 && { api_key: getServiceApiKeys("llm") }), model: data.llm_model as string }, tts: { provider: serviceProviders.tts, - api_key: getServiceApiKeys("tts"), + ...(getServiceApiKeys("tts").length > 0 && { api_key: getServiceApiKeys("tts") }), }, stt: { provider: serviceProviders.stt, - api_key: getServiceApiKeys("stt"), + ...(getServiceApiKeys("stt").length > 0 && { api_key: getServiceApiKeys("stt") }), }, embeddings: { provider: serviceProviders.embeddings, - api_key: getServiceApiKeys("embeddings"), + ...(getServiceApiKeys("embeddings").length > 0 && { api_key: getServiceApiKeys("embeddings") }), model: data.embeddings_model as string } };