mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 02:31:08 +08:00
fixup
This commit is contained in:
@@ -25,6 +25,5 @@ export async function requestOpenai(req: NextRequest) {
|
|||||||
},
|
},
|
||||||
method: req.method,
|
method: req.method,
|
||||||
body: req.body,
|
body: req.body,
|
||||||
duplex: !!req.body ? "half" : "",
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -17,7 +17,7 @@ async function makeRequest(req: NextRequest) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
status: 500,
|
status: 500,
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,3 +29,7 @@ export async function POST(req: NextRequest) {
|
|||||||
export async function GET(req: NextRequest) {
|
export async function GET(req: NextRequest) {
|
||||||
return makeRequest(req);
|
return makeRequest(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
runtime: "edge",
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user