kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: add catch for fetchSSE promise rejection
rodzic
5b8bb66a18
commit
78bd4fff43
|
@ -229,7 +229,7 @@ export class ChatGPTAPI {
|
|||
return reject(err)
|
||||
}
|
||||
}
|
||||
})
|
||||
}).catch(reject)
|
||||
} else {
|
||||
try {
|
||||
const res = await fetch(url, {
|
||||
|
|
Ładowanie…
Reference in New Issue