From f353ed235f557e89a6b2ccc1becd337046185e69 Mon Sep 17 00:00:00 2001 From: weilirs Date: Thu, 7 Nov 2024 10:24:02 +0800 Subject: [PATCH 1/2] fix: embedding models not showing --- .../Settings/EmbeddingSettings/EmbeddingModelSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx b/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx index 80ebd2c2..4a8489ee 100644 --- a/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx +++ b/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx @@ -22,8 +22,8 @@ const EmbeddingModelSelect: React.FC = ({ {Object.entries(embeddingModels).map(([model, config]) => (
-
{config.readableName}
-
{config.description}
+
{model}
+
{config.type}
))} From a7fc5152e9d4687333ecbb40458b5ec458b3a27c Mon Sep 17 00:00:00 2001 From: weilirs Date: Thu, 7 Nov 2024 10:38:47 +0800 Subject: [PATCH 2/2] fallback --- .../Settings/EmbeddingSettings/EmbeddingModelSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx b/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx index 4a8489ee..7e22e12f 100644 --- a/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx +++ b/src/components/Settings/EmbeddingSettings/EmbeddingModelSelect.tsx @@ -22,8 +22,8 @@ const EmbeddingModelSelect: React.FC = ({ {Object.entries(embeddingModels).map(([model, config]) => (
-
{model}
-
{config.type}
+
{config.readableName || model}
+
{config.description}
))}