feat: close #444 use env var to disable gpt-4

This commit is contained in:
Yidadaa
2023-05-09 23:20:03 +08:00
parent 2b7f72deec
commit 7e8def50aa
6 changed files with 45 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { NextRequest, NextResponse } from "next/server";
import { NextResponse } from "next/server";
import { getServerSideConfig } from "../../config/server";
@@ -9,6 +9,7 @@ const serverConfig = getServerSideConfig();
const DANGER_CONFIG = {
needCode: serverConfig.needCode,
hideUserApiKey: serverConfig.hideUserApiKey,
enableGPT4: serverConfig.enableGPT4,
};
declare global {