kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix(ChatGPTUnofficialProxyAPI): pass fetch
rodzic
70e4797615
commit
f0ce92559e
|
@ -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 (
|
||||
|
|
Ładowanie…
Reference in New Issue