This commit is contained in:
xuzhenjun
2023-04-11 01:19:32 +08:00
parent 8ec37bc7f1
commit 8c4669af3b
3 changed files with 4 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ export async function requestOpenai(req: NextRequest) {
const openaiPath = req.headers.get("path");
console.log("[Proxy] ", openaiPath);
console.log("[apiKey] ", apiKey);
return fetch(`${PROTOCOL}://${BASE_URL}/${openaiPath}`, {
headers: {