mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 修复部分警告信息被输出的问题
This commit is contained in:
parent
2dc7cd5c29
commit
a804412c4d
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ export class SlackClaudeClient {
|
|||
})
|
||||
await await redis.set(`CHATGPT:SLACK_CONVERSATION:${qq}`, `${ts}`)
|
||||
if (replies.messages.length > 0) {
|
||||
let formalMessages = replies.messages.filter(m => m.text.indexOf('Acceptable Use Policy') === -1)
|
||||
let formalMessages = replies.messages.filter(m => m.text.indexOf('anthropic.com') === -1)
|
||||
if (!formalMessages[formalMessages.length - 1].bot_profile) {
|
||||
// 问题的下一句不是bot回复的,这属于意料之外的问题,可能是多人同时问问题导致 再问一次吧
|
||||
return await this.sendMessage(prompt, e, t + 1)
|
||||
|
|
@ -118,7 +118,7 @@ export class SlackClaudeClient {
|
|||
ts: conversationId
|
||||
})
|
||||
if (replies.messages.length > 0) {
|
||||
let formalMessages = replies.messages.filter(m => m.text.indexOf('Acceptable Use Policy') === -1)
|
||||
let formalMessages = replies.messages.filter(m => m.text.indexOf('anthropic.com') === -1)
|
||||
if (!formalMessages[formalMessages.length - 1].bot_profile) {
|
||||
// 问题的下一句不是bot回复的,这属于意料之外的问题,可能是多人同时问问题导致 再问一次吧
|
||||
return await this.sendMessage(prompt, e, t + 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue