mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: claude加入首条消息检测应对claude不说话的情况
This commit is contained in:
parent
1e5010e9f1
commit
ba0c382886
1 changed files with 2 additions and 0 deletions
|
|
@ -56,8 +56,10 @@ export class SlackClaudeClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await delay(500)
|
await delay(500)
|
||||||
|
tryTimes++
|
||||||
if (tryTimes > 10 && response === '_Typing…_') {
|
if (tryTimes > 10 && response === '_Typing…_') {
|
||||||
// 过了5秒还没任何回复,就重新发一下试试
|
// 过了5秒还没任何回复,就重新发一下试试
|
||||||
|
logger.warn('claude没有响应,重试中')
|
||||||
return await this.sendMessage(prompt)
|
return await this.sendMessage(prompt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue