compose
This commit is contained in:
@@ -7,7 +7,7 @@ log:
|
||||
logPath: "runtime/logs/app.log"
|
||||
chat:
|
||||
# 使用的训练模型
|
||||
model: "kimi-k2.5"
|
||||
model: "kimi-k2-turbo-preview"
|
||||
# 单次请求的上下文总长度,包括:请求消息+响应消息
|
||||
max_tokens: 4096
|
||||
# 表示语言模型输出的随机性和创造性
|
||||
|
||||
@@ -6,7 +6,7 @@ log:
|
||||
level: "info"
|
||||
logPath: "runtime/logs/app.log"
|
||||
chat:
|
||||
model: "kimi-k2.5"
|
||||
model: "kimi-k2-turbo-preview"
|
||||
max_tokens: 4096
|
||||
temperature: 1
|
||||
top_p: 1
|
||||
|
||||
@@ -14,7 +14,7 @@ type Config struct {
|
||||
BasicAuthUser string `mapstructure:"basic_auth_user"`
|
||||
BasicAuthPassword string `mapstructure:"basic_auth_password"`
|
||||
FrontendPath string `mapstructure:"frontend_path"`
|
||||
Log struct {
|
||||
Log struct {
|
||||
Level string
|
||||
LogPath string `mapstructure:"logPath"`
|
||||
} `mapstructure:"log"`
|
||||
@@ -74,7 +74,7 @@ func normalizeConfig(conf *Config) {
|
||||
conf.FrontendPath = "www"
|
||||
}
|
||||
if conf.Chat.Model == "" {
|
||||
conf.Chat.Model = "kimi-k2.5"
|
||||
conf.Chat.Model = "kimi-k2-turbo-preview"
|
||||
}
|
||||
if conf.Chat.MaxTokens == 0 {
|
||||
conf.Chat.MaxTokens = 4096
|
||||
|
||||
Reference in New Issue
Block a user