From d94205e967c0a8daecb9af6df376053889998d54 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:11:53 +0100 Subject: [PATCH] api key --- app/api/auth.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/auth.ts b/app/api/auth.ts index b41e34e05..3df8d9e2f 100644 --- a/app/api/auth.ts +++ b/app/api/auth.ts @@ -46,12 +46,14 @@ export function auth(req: NextRequest) { }; } +/* if (serverConfig.hideUserApiKey && !!apiKey) { - return { + return { error: true, msg: "you are not allowed to access openai with your own api key", }; } +*/ // if user does not provide an api key, inject system api key if (!apiKey) {