This commit is contained in:
DirkSchlossmacher 2023-11-16 11:11:53 +01:00
parent 539d5368bc
commit d94205e967

View File

@ -46,12 +46,14 @@ export function auth(req: NextRequest) {
}; };
} }
/*
if (serverConfig.hideUserApiKey && !!apiKey) { if (serverConfig.hideUserApiKey && !!apiKey) {
return { return {
error: true, error: true,
msg: "you are not allowed to access openai with your own api key", 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 user does not provide an api key, inject system api key
if (!apiKey) { if (!apiKey) {