mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-06-19 10:10:26 +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
|
continue
|
||||||
}
|
}
|
||||||
|
logrus.Debugln("[goba] GetAction add memory:", txt, "to grp:", grp)
|
||||||
err = ag.AddMemory(grp, txt)
|
err = ag.AddMemory(grp, txt)
|
||||||
s := "ok"
|
s := "ok"
|
||||||
msg := ""
|
msg := ""
|
||||||
@@ -274,11 +275,11 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
|
|||||||
s = "error"
|
s = "error"
|
||||||
msg = err.Error()
|
msg = err.Error()
|
||||||
}
|
}
|
||||||
|
logrus.Debugln("[goba] GetAction add memory response:", s, "msg:", msg)
|
||||||
ag.AddResponse(grp, &APIResponse{
|
ag.AddResponse(grp, &APIResponse{
|
||||||
Status: s,
|
Status: s,
|
||||||
Message: msg,
|
Message: msg,
|
||||||
})
|
})
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reqs = append(reqs, r)
|
reqs = append(reqs, r)
|
||||||
|
|||||||
Reference in New Issue
Block a user