mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 10:05:35 +08:00
Merge pull request #5545 from ConnectAI-E/hotfix/google-auth-header
fix: build error
This commit is contained in:
@@ -102,7 +102,7 @@ async function request(req: NextRequest, apiKey: string) {
|
||||
"Cache-Control": "no-store",
|
||||
"x-google-api-key":
|
||||
req.headers.get("x-google-api-key") ||
|
||||
(req.headers.get("Authorization") ?? "").replace("Bearer "),
|
||||
(req.headers.get("Authorization") ?? "").replace("Bearer ", ""),
|
||||
},
|
||||
method: req.method,
|
||||
body: req.body,
|
||||
|
Reference in New Issue
Block a user