forked from XiaoMo/ChatGPT-Next-Web
fixup
This commit is contained in:
parent
76ef5ef9a9
commit
b79845fcaa
@ -25,6 +25,5 @@ export async function requestOpenai(req: NextRequest) {
|
||||
},
|
||||
method: req.method,
|
||||
body: req.body,
|
||||
duplex: !!req.body ? "half" : "",
|
||||
});
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ async function makeRequest(req: NextRequest) {
|
||||
},
|
||||
{
|
||||
status: 500,
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -29,3 +29,7 @@ export async function POST(req: NextRequest) {
|
||||
export async function GET(req: NextRequest) {
|
||||
return makeRequest(req);
|
||||
}
|
||||
|
||||
export const config = {
|
||||
runtime: "edge",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user