feat(aichat): agent add more trigger conds

This commit is contained in:
源文雨 2025-09-26 23:57:59 +08:00
parent d0f4d296d9
commit d6eb3ba28c

View File

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