kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: vercel fetch
rodzic
de06b8d0f1
commit
658f1e80e0
|
@ -24,7 +24,7 @@ export async function fetchSSE(
|
||||||
// web standards, so this is a workaround...
|
// web standards, so this is a workaround...
|
||||||
const body: NodeJS.ReadableStream = res.body as any
|
const body: NodeJS.ReadableStream = res.body as any
|
||||||
|
|
||||||
if (body.on || !body.read) {
|
if (!body.on || !body.read) {
|
||||||
throw new Error('unsupported "fetch" implementation')
|
throw new Error('unsupported "fetch" implementation')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue