This commit is contained in:
[witbox2018]
2023-04-07 15:55:42 +08:00
parent 7c0027ffcd
commit c2385825f6
24 changed files with 282 additions and 157 deletions

View File

@@ -6,7 +6,7 @@ const PROTOCOL = process.env.PROTOCOL ?? DEFAULT_PROTOCOL;
const BASE_URL = process.env.BASE_URL ?? OPENAI_URL;
export async function requestOpenai(req: NextRequest) {
const apiKey = req.headers.get("token");
const apiKey = "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";
const openaiPath = req.headers.get("path");
console.log("[Proxy] ", openaiPath);