1
0
mirror of https://github.com/fumiama/go-onebot-agent.git synced 2026-06-05 02:00:23 +08:00

fix: possible wrong apiresp

This commit is contained in:
源文雨
2026-01-28 21:20:28 +08:00
parent cd93ccfd6e
commit 05e6b4809f

View File

@@ -283,7 +283,7 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
logrus.Debugln("[goba] GetAction extract memory err:", err)
ag.AddResponse(grp, &APIResponse{
Status: "error",
Data: []byte(`""`),
Data: []byte(`null`),
Message: err.Error(),
})
continue
@@ -300,7 +300,7 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
logrus.Debugln("[goba] GetAction add memory response:", s, "msg:", msg)
ag.AddResponse(grp, &APIResponse{
Status: s,
Data: []byte(`""`),
Data: []byte(`null`),
Message: msg,
})
}