if (!apiKey || !!serverConfig.hideUserApiKey) {

This commit is contained in:
DirkSchlossmacher 2024-04-18 11:13:22 +02:00
parent 433fc1c5be
commit 116202f761

View File

@ -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 =