From 3af21aea04b69e918f0de01c3fff25d0942b80ba Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Fri, 23 Jan 2026 16:03:16 -0800 Subject: [PATCH] Merge commit from fork --- .../components/VectorDBSelection/QDrantDBOptions/index.jsx | 2 +- .../components/VectorDBSelection/WeaviateDBOptions/index.jsx | 2 +- server/models/systemSettings.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx index 0f17d346..c09a4fef 100644 --- a/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx @@ -27,7 +27,7 @@ export default function QDrantDBOptions({ settings }) { name="QdrantApiKey" className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5" placeholder="wOeqxsYP4....1244sba" - defaultValue={settings?.QdrantApiKey} + defaultValue={settings?.QdrantApiKey ? "*".repeat(20) : ""} autoComplete="off" spellCheck={false} /> diff --git a/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx index 84c7d4ac..6b308fc7 100644 --- a/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx @@ -27,7 +27,7 @@ export default function WeaviateDBOptions({ settings }) { name="WeaviateApiKey" className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5" placeholder="sk-123Abcweaviate" - defaultValue={settings?.WeaviateApiKey} + defaultValue={settings?.WeaviateApiKey ? "*".repeat(20) : ""} autoComplete="off" spellCheck={false} /> diff --git a/server/models/systemSettings.js b/server/models/systemSettings.js index 53f7dd76..bffb2a2b 100644 --- a/server/models/systemSettings.js +++ b/server/models/systemSettings.js @@ -450,11 +450,11 @@ const SystemSettings = { // Weaviate DB Keys WeaviateEndpoint: process.env.WEAVIATE_ENDPOINT, - WeaviateApiKey: process.env.WEAVIATE_API_KEY, + WeaviateApiKey: !!process.env.WEAVIATE_API_KEY, // QDrant DB Keys QdrantEndpoint: process.env.QDRANT_ENDPOINT, - QdrantApiKey: process.env.QDRANT_API_KEY, + QdrantApiKey: !!process.env.QDRANT_API_KEY, // Milvus DB Keys MilvusAddress: process.env.MILVUS_ADDRESS,