mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-06-05 02:00:23 +08:00
feat: leak SVM req
This commit is contained in:
3
agent.go
3
agent.go
@@ -266,6 +266,7 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
|
||||
})
|
||||
continue
|
||||
}
|
||||
logrus.Debugln("[goba] GetAction add memory:", txt, "to grp:", grp)
|
||||
err = ag.AddMemory(grp, txt)
|
||||
s := "ok"
|
||||
msg := ""
|
||||
@@ -274,11 +275,11 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
|
||||
s = "error"
|
||||
msg = err.Error()
|
||||
}
|
||||
logrus.Debugln("[goba] GetAction add memory response:", s, "msg:", msg)
|
||||
ag.AddResponse(grp, &APIResponse{
|
||||
Status: s,
|
||||
Message: msg,
|
||||
})
|
||||
continue
|
||||
}
|
||||
}
|
||||
reqs = append(reqs, r)
|
||||
|
||||
Reference in New Issue
Block a user