fix(aichat): adapt to 百炼

This commit is contained in:
源文雨
2025-09-10 22:51:44 +08:00
parent 6b505d050a
commit e6a4dfcdf2
3 changed files with 5 additions and 9 deletions

View File

@@ -126,9 +126,7 @@ 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,
@@ -518,9 +516,7 @@ 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,