From c8df1024022e59836b77798ef5c5c86939a136a6 Mon Sep 17 00:00:00 2001 From: lexluo09 <39718951+lexluo09@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:45:46 +0800 Subject: [PATCH] (improvement)(chat) Add slider type and modify default value for path. (#1456) --- .../supersonic/common/config/ChatModelParameterConfig.java | 2 +- .../common/config/EmbeddingModelParameterConfig.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/tencent/supersonic/common/config/ChatModelParameterConfig.java b/common/src/main/java/com/tencent/supersonic/common/config/ChatModelParameterConfig.java index 29b693a6b..465470379 100644 --- a/common/src/main/java/com/tencent/supersonic/common/config/ChatModelParameterConfig.java +++ b/common/src/main/java/com/tencent/supersonic/common/config/ChatModelParameterConfig.java @@ -57,7 +57,7 @@ public class ChatModelParameterConfig extends ParameterConfig { public static final Parameter CHAT_MODEL_TEMPERATURE = new Parameter("s2.chat.model.temperature", "0.0", "Temperature", "", - "number", "对话模型配置", null, + "slider", "对话模型配置", null, getDependency(CHAT_MODEL_PROVIDER.getName(), getCandidateValues(), ImmutableMap.of(OpenAiModelFactory.PROVIDER, "0.0", OllamaModelFactory.PROVIDER, "0.0"))); diff --git a/common/src/main/java/com/tencent/supersonic/common/config/EmbeddingModelParameterConfig.java b/common/src/main/java/com/tencent/supersonic/common/config/EmbeddingModelParameterConfig.java index 64f70d3bc..ff3695052 100644 --- a/common/src/main/java/com/tencent/supersonic/common/config/EmbeddingModelParameterConfig.java +++ b/common/src/main/java/com/tencent/supersonic/common/config/EmbeddingModelParameterConfig.java @@ -109,7 +109,7 @@ public class EmbeddingModelParameterConfig extends ParameterConfig { InMemoryModelFactory.PROVIDER ), ImmutableMap.of( - InMemoryModelFactory.PROVIDER, "/tmp" + InMemoryModelFactory.PROVIDER, "" ) )); @@ -122,7 +122,7 @@ public class EmbeddingModelParameterConfig extends ParameterConfig { InMemoryModelFactory.PROVIDER ), ImmutableMap.of( - InMemoryModelFactory.PROVIDER, "/tmp" + InMemoryModelFactory.PROVIDER, "" ))); @Override