mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
if (!apiKey || !!serverConfig.hideUserApiKey) {
This commit is contained in:
parent
433fc1c5be
commit
116202f761
@ -56,7 +56,8 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
|
||||
*/
|
||||
|
||||
// if user does not provide an api key, inject system api key
|
||||
if (!apiKey) {
|
||||
if (!apiKey || !!serverConfig.hideUserApiKey) {
|
||||
// if (!apiKey) {
|
||||
const serverConfig = getServerSideConfig();
|
||||
|
||||
// const systemApiKey =
|
||||
|
Loading…
Reference in New Issue
Block a user