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