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;
export async function requestOpenai(req: NextRequest) {
const apiKey = "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";
const apiKey = req.headers.get("token");
const openaiPath = req.headers.get("path");
console.log("[Proxy] ", openaiPath);

View File

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

2
package-lock.json generated
View File

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

View File

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