mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
api key
This commit is contained in:
parent
539d5368bc
commit
d94205e967
@ -46,12 +46,14 @@ export function auth(req: NextRequest) {
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
if (serverConfig.hideUserApiKey && !!apiKey) {
|
||||
return {
|
||||
return {
|
||||
error: true,
|
||||
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 (!apiKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user