mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-10 03:56:37 +08:00
4
This commit is contained in:
parent
2fdc83a240
commit
b580de32a3
@ -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);
|
||||
|
@ -4,6 +4,7 @@ const nextConfig = {
|
||||
experimental: {
|
||||
appDir: true,
|
||||
},
|
||||
disableExperimentalFeaturesWarning: true,
|
||||
webpack(config) {
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user