This commit is contained in:
1iaan
2026-04-10 12:00:03 +08:00
parent 94bdba930e
commit 5ce2a5f1a3
150 changed files with 215 additions and 20694 deletions

View File

@@ -7,7 +7,7 @@ log:
logPath: "runtime/logs/app.log"
chat:
# 使用的训练模型
model: "kimi-k2.5"
model: "kimi-k2-turbo-preview"
# 单次请求的上下文总长度,包括:请求消息+响应消息
max_tokens: 4096
# 表示语言模型输出的随机性和创造性

View File

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

View File

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