1
0
mirror of https://github.com/fumiama/go-onebot-agent.git synced 2026-06-21 19:47:42 +08:00

feat: add iter count

This commit is contained in:
源文雨
2026-01-06 22:17:37 +08:00
parent e707c78f4d
commit 1ac01594b6
4 changed files with 39 additions and 35 deletions

View File

@@ -213,10 +213,10 @@ func (ag *Agent) ClearViewImageAPI() {
// with complete reqs before invalid call, caller may decide whether to use
// these reqs by themselves. Whatever, invalid req will not be added into
// the context. You may call AddRequest to add it but it is not recommended.
func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role PermRole, isusersystem bool) (
func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role PermRole, iter int, isusersystem bool) (
reqs []zero.APIRequest, err error,
) {
sysp, err := ag.system(role, grp)
sysp, err := ag.system(role, iter, grp)
if err != nil {
logrus.Debugln("[goba] GetAction get sysp err:", err)
return