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) {