File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed
Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -119,32 +119,21 @@ func init() {
119119 break
120120 }
121121 hasresp = true
122- haseoa := false
123122 for _ , req := range reqs {
124123 if req .Action == goba .SVM { // is a fake action
125124 if hassavemem {
126- if ! haseoa {
127- ag .AddTerminus (gid )
128- haseoa = true
129- logrus .Warnln ("[aichat] agent call save mem multi times, force inserting EOA" )
130- } else {
131- logrus .Warnln ("[aichat] agent call save mem multi times, but EOA has been inserted" )
132- }
133- break
125+ ag .AddTerminus (gid )
126+ logrus .Warnln ("[aichat] agent call save mem multi times, force inserting EOA" )
127+ return
134128 }
135129 hassavemem = true
136130 continue
137131 }
138132 if req .Action == "send_private_msg" || req .Action == "send_group_msg" {
139133 if ispuremsg {
140- if ! haseoa {
141- ag .AddTerminus (gid )
142- haseoa = true
143- logrus .Warnln ("[aichat] agent call send msg multi times, force inserting EOA" )
144- } else {
145- logrus .Warnln ("[aichat] agent call send msg multi times, but EOA has been inserted" )
146- }
147- break
134+ ag .AddTerminus (gid )
135+ logrus .Warnln ("[aichat] agent call send msg multi times, force inserting EOA" )
136+ return
148137 }
149138 ispuremsg = true
150139 }
You can’t perform that action at this time.
0 commit comments