(improvement)(chat) Add slider type and modify default value for path. (#1456)

This commit is contained in:
lexluo09
2024-07-25 16:45:46 +08:00
committed by GitHub
parent 335902bd1f
commit c8df102402
2 changed files with 3 additions and 3 deletions

View File

@@ -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")));

View File

@@ -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