This commit is contained in:
lloydzhou
2024-10-23 11:55:25 +08:00
parent 8455fefc8a
commit e791cd441d
3 changed files with 3 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
}
if (systemApiKey) {
console.log("[Auth] use system api key", systemApiKey);
console.log("[Auth] use system api key");
req.headers.set("Authorization", `Bearer ${systemApiKey}`);
} else {
console.log("[Auth] admin did not provide an api key");