We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 981298e commit d6e6342Copy full SHA for d6e6342
plugin/aichat/main.go
@@ -142,18 +142,12 @@ func init() {
142
continue
143
}
144
logrus.Infoln("[aichat] 回复内容:", t)
145
- recCfg := airecord.RecCfg
+ record := ""
146
if !cfg.NoRecord {
147
- record := ctx.GetAIRecord(recCfg.ModelID, recCfg.Customgid, t)
148
- if record != "" {
149
- ctx.SendChain(message.Record(record))
150
- } else {
151
- if id != nil {
152
- id = ctx.SendChain(message.Reply(id), message.Text(t))
153
154
- id = ctx.SendChain(message.Text(t))
155
- }
156
+ record = ctx.GetAIRecord(recCfg.ModelID, recCfg.Customgid, t)
+ }
+ if record != "" {
+ ctx.SendChain(message.Record(record))
157
} else {
158
if id != nil {
159
id = ctx.SendChain(message.Reply(id), message.Text(t))
0 commit comments