From 699d6edaab9353be0b0130a2abea60f37a22a818 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:08:09 +0200 Subject: [PATCH] systemApiKey --- app/api/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/auth.ts b/app/api/auth.ts index f95093bcc..8196413f4 100644 --- a/app/api/auth.ts +++ b/app/api/auth.ts @@ -86,7 +86,7 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) { if (systemApiKey) { console.log("[Auth] use system api key"); - req.headers.set("Authorization", `Bearer ${serverApiKey}`); + req.headers.set("Authorization", `Bearer ${systemApiKey}`); } else { console.log("[Auth] admin did not provide an api key"); }