fix(aichat): adapt to 百炼

This commit is contained in:
源文雨
2025-09-10 10:32:30 +08:00
parent fb090839d6
commit 08e02ab730
4 changed files with 10 additions and 6 deletions

View File

@@ -126,7 +126,9 @@ func init() {
mod = model.NewOpenAI(
cfg.ModelName, cfg.Separator,
temperature, topp, maxn,
)
).SetExtra(&map[string]bool{
"enable_thinking": false,
})
case 1:
mod = model.NewOLLaMA(
cfg.ModelName, cfg.Separator,
@@ -516,7 +518,9 @@ func llmchat(prompt string, temp int64) (string, error) {
mod = model.NewOpenAI(
cfg.ModelName, cfg.Separator,
temperature, topp, maxn,
)
).SetExtra(&map[string]bool{
"enable_thinking": false,
})
case 1:
mod = model.NewOLLaMA(
cfg.ModelName, cfg.Separator,