mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: change retry times for API2 from 5 to 1
This commit is contained in:
parent
12290ad8e4
commit
1e918a57fe
1 changed files with 1 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
// console.log(accessToken)
|
||||
this.chatGPTApi = new ChatGPTClient(accessToken, clientOptions, cacheOptions)
|
||||
let response = await tryTimes(async () => await this.chatGPTApi.sendMessage(prompt, conversation || {}), 5)
|
||||
let response = await tryTimes(async () => await this.chatGPTApi.sendMessage(prompt, conversation || {}), 1)
|
||||
return {
|
||||
text: response.response,
|
||||
conversationId: response.conversationId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue