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

fix: data raw json syntax

This commit is contained in:
源文雨
2026-01-03 22:44:59 +08:00
parent 6aecc92c75
commit 76bb579638

View File

@@ -261,6 +261,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(`""`),
Message: err.Error(),
})
continue
@@ -277,6 +278,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(`""`),
Message: msg,
})
}