Skip to content

Commit d6eb3ba

Browse files
committed
feat(aichat): agent add more trigger conds
1 parent d0f4d29 commit d6eb3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/aichat/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func init() {
103103
temperature := stor.temp()
104104
topp, maxn := cfg.mparams()
105105

106-
if !stor.noagent() {
106+
if !stor.noagent() && cfg.AgentAPI != "" && cfg.AgentModelName != "" {
107107
x := deepinfra.NewAPI(cfg.AgentAPI, string(cfg.AgentKey))
108108
mod, err := cfg.Type.protocol(cfg.AgentModelName, temperature, topp, maxn)
109109
if err != nil {

0 commit comments

Comments
 (0)