mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 尝试处理一下自动化插件导致的对话带上本月已发送x条消息
This commit is contained in:
parent
5b94b49536
commit
85e7e79883
1 changed files with 2 additions and 0 deletions
|
|
@ -623,6 +623,8 @@ export class chatgpt extends plugin {
|
|||
return false
|
||||
}
|
||||
const use = await redis.get('CHATGPT:USE') || 'api'
|
||||
// 自动化插件本月已发送xx条消息更新太快,由于延迟和缓存问题导致不同客户端不一样,at文本和获取的card不一致。因此单独处理一下
|
||||
prompt = prompt.replace(/^|本月已发送\d+条消息/, '')
|
||||
await this.abstractChat(e, prompt, use)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue