From d6eb3ba28cefbae88f013d1f9594c08576e4cda7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 26 Sep 2025 23:57:59 +0800 Subject: [PATCH] feat(aichat): agent add more trigger conds --- plugin/aichat/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/aichat/main.go b/plugin/aichat/main.go index 18901e8f..09851701 100644 --- a/plugin/aichat/main.go +++ b/plugin/aichat/main.go @@ -103,7 +103,7 @@ func init() { temperature := stor.temp() topp, maxn := cfg.mparams() - if !stor.noagent() { + if !stor.noagent() && cfg.AgentAPI != "" && cfg.AgentModelName != "" { x := deepinfra.NewAPI(cfg.AgentAPI, string(cfg.AgentKey)) mod, err := cfg.Type.protocol(cfg.AgentModelName, temperature, topp, maxn) if err != nil {