mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
(improvement)(chat) Add slider type and modify default value for path. (#1456)
This commit is contained in:
@@ -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")));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user