fix(ChatGPTUnofficialProxyAPI): pass fetch

pull/372/head
Jay Fong 2023-02-20 16:51:20 +00:00
rodzic 70e4797615
commit f0ce92559e
1 zmienionych plików z 35 dodań i 31 usunięć

Wyświetl plik

@ -155,7 +155,9 @@ export class ChatGPTUnofficialProxyAPI {
console.log('POST', url, { body, headers })
}
fetchSSE(url, {
fetchSSE(
url,
{
method: 'POST',
headers,
body: JSON.stringify(body),
@ -195,7 +197,9 @@ export class ChatGPTUnofficialProxyAPI {
// console.warn('fetchSSE onMessage unexpected error', err)
}
}
}).catch((err) => {
},
this._fetch
).catch((err) => {
const errMessageL = err.toString().toLowerCase()
if (