This commit is contained in:
[witbox2018] 2023-04-07 16:36:11 +08:00
parent 2fdc83a240
commit b580de32a3
4 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ const PROTOCOL = process.env.PROTOCOL ?? DEFAULT_PROTOCOL;
const BASE_URL = process.env.BASE_URL ?? OPENAI_URL; const BASE_URL = process.env.BASE_URL ?? OPENAI_URL;
export async function requestOpenai(req: NextRequest) { export async function requestOpenai(req: NextRequest) {
const apiKey = "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"; const apiKey = req.headers.get("token");
const openaiPath = req.headers.get("path"); const openaiPath = req.headers.get("path");
console.log("[Proxy] ", openaiPath); console.log("[Proxy] ", openaiPath);

View File

@ -4,6 +4,7 @@ const nextConfig = {
experimental: { experimental: {
appDir: true, appDir: true,
}, },
disableExperimentalFeaturesWarning: true,
webpack(config) { webpack(config) {
config.module.rules.push({ config.module.rules.push({
test: /\.svg$/, test: /\.svg$/,

2
package-lock.json generated
View File

@ -7,7 +7,7 @@
"": { "": {
"name": "chatgpt-next-web", "name": "chatgpt-next-web",
"version": "1.9.3", "version": "1.9.3",
"license": "Anti 996", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@hello-pangea/dnd": "^16.2.0", "@hello-pangea/dnd": "^16.2.0",
"@svgr/webpack": "^6.5.1", "@svgr/webpack": "^6.5.1",

View File

@ -2,7 +2,7 @@
"name": "chatgpt-next-web", "name": "chatgpt-next-web",
"version": "1.9.3", "version": "1.9.3",
"private": false, "private": false,
"license": "Anti 996", "license": "Apache-2.0",
"scripts": { "scripts": {
"dev": "yarn fetch && next dev", "dev": "yarn fetch && next dev",
"build": "yarn fetch && next build", "build": "yarn fetch && next build",