mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 调整claude无响应重试时间
This commit is contained in:
parent
a3ef75cdcc
commit
7f773dcfc4
1 changed files with 4 additions and 4 deletions
|
|
@ -107,8 +107,8 @@ export class SlackClaudeClient {
|
|||
}
|
||||
await delay(2000)
|
||||
tryTimes++
|
||||
if (tryTimes > 10 && response === '_Typing…_') {
|
||||
// 过了5秒还没任何回复,就重新发一下试试
|
||||
if (tryTimes > 3 && response === '_Typing…_') {
|
||||
// 过了6秒还没任何回复,就重新发一下试试
|
||||
logger.warn('claude没有响应,重试中')
|
||||
return await this.sendMessage(prompt, e, t + 1)
|
||||
}
|
||||
|
|
@ -154,8 +154,8 @@ export class SlackClaudeClient {
|
|||
}
|
||||
await delay(2000)
|
||||
tryTimes++
|
||||
if (tryTimes > 10 && response === '_Typing…_') {
|
||||
// 过了5秒还没任何回复,就重新发一下试试
|
||||
if (tryTimes > 3 && response === '_Typing…_') {
|
||||
// 过了6秒还没任何回复,就重新发一下试试
|
||||
logger.warn('claude没有响应,重试中')
|
||||
return await this.sendMessage(prompt, e, t + 1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue