mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
(!apiKey || !!serverConfig.hideUserApiKey) {
This commit is contained in:
parent
d94205e967
commit
855cc6879d
@ -56,7 +56,7 @@ export function auth(req: NextRequest) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// 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 || !!serverConfig.hideUserApiKey) {
|
||||||
const serverApiKey = serverConfig.isAzure
|
const serverApiKey = serverConfig.isAzure
|
||||||
? serverConfig.azureApiKey
|
? serverConfig.azureApiKey
|
||||||
: serverConfig.apiKey;
|
: serverConfig.apiKey;
|
||||||
|
Loading…
Reference in New Issue
Block a user