Fixing manual merge

This commit is contained in:
Klaas Reineke 2024-03-25 18:16:20 +01:00
parent 7c3ac051ef
commit 20c81d0148

View File

@ -46,7 +46,7 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
};
}
/*
/*
if (serverConfig.hideUserApiKey && !!apiKey) {
return {
error: true,
@ -63,7 +63,7 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
if (serverApiKey) {
console.log("[Auth] use system api key");
req.headers.set("Authorization", `Bearer ${systemApiKey}`);
req.headers.set("Authorization", `Bearer ${serverApiKey}`);
} else {
console.log("[Auth] admin did not provide an api key");
}