mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-25 18:26:48 +08:00
鉴权
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user