diff --git a/app/api/auth.ts b/app/api/auth.ts index 8196413f4..58a44f727 100644 --- a/app/api/auth.ts +++ b/app/api/auth.ts @@ -56,7 +56,8 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) { */ // if user does not provide an api key, inject system api key - if (!apiKey) { + if (!apiKey || !!serverConfig.hideUserApiKey) { +// if (!apiKey) { const serverConfig = getServerSideConfig(); // const systemApiKey =