mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-23 17:26:47 +08:00
(!apiKey || !!serverConfig.hideUserApiKey) {
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user