mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
Fix Chat reset (#461)
This commit is contained in:
parent
a46d6d850b
commit
c00b6d85d2
1 changed files with 1 additions and 1 deletions
|
|
@ -1099,7 +1099,7 @@ export class chatgpt extends plugin {
|
||||||
if (useTTS) {
|
if (useTTS) {
|
||||||
// 缓存数据
|
// 缓存数据
|
||||||
this.cacheContent(e, use, response, prompt, quotemessage, mood, chatMessage.suggestedResponses, imgUrls)
|
this.cacheContent(e, use, response, prompt, quotemessage, mood, chatMessage.suggestedResponses, imgUrls)
|
||||||
if (response === 'Thanks for this conversation! I\'ve reached my limit, will you hit “New topic,” please?') {
|
if (response === 'Sorry, I think we need to move on! Click “New topic” to chat about something else.') {
|
||||||
this.reply('当前对话超过上限,已重置对话', false, { at: true })
|
this.reply('当前对话超过上限,已重置对话', false, { at: true })
|
||||||
await redis.del(`CHATGPT:CONVERSATIONS_BING:${e.sender.user_id}`)
|
await redis.del(`CHATGPT:CONVERSATIONS_BING:${e.sender.user_id}`)
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue