diff --git a/app/api/auth.ts b/app/api/auth.ts index e0453b2..0522868 100644 --- a/app/api/auth.ts +++ b/app/api/auth.ts @@ -2,6 +2,7 @@ import { NextRequest } from "next/server"; import { getServerSideConfig } from "../config/server"; import md5 from "spark-md5"; import { ACCESS_CODE_PREFIX } from "../constant"; +import { log } from "console"; function getIP(req: NextRequest) { let ip = req.ip ?? req.headers.get("x-real-ip"); @@ -49,6 +50,7 @@ export function auth(req: NextRequest) { // if user does not provide an api key, inject system api key if (!token) { const apiKey = serverConfig.apiKey; + console.log("apiKey :>> ", apiKey); if (apiKey) { console.log("[Auth] use system api key"); req.headers.set("Authorization", `Bearer ${apiKey}`); diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index b0b778f..9fee6bf 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -118,14 +118,14 @@ export function SideBar(props: { className?: string }) { >
- ChatGPT Next + 智能对话工具
Build your own AI assistant.
-
+ {/*
-
+
*/}
diff --git a/app/layout.tsx b/app/layout.tsx index 5e07626..3077202 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -6,7 +6,7 @@ import { getClientConfig } from "./config/client"; import { type Metadata } from "next"; export const metadata: Metadata = { - title: "ChatGPT Next Web", + title: "智能对话工具", description: "Your personal ChatGPT Chat Bot.", viewport: { width: "device-width", diff --git a/public/site.webmanifest b/public/site.webmanifest index 117f33b..79fd64c 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1,6 +1,6 @@ { - "name": "ChatGPT Next Web", - "short_name": "ChatGPT", + "name": "智能对话", + "short_name": "智能对话", "icons": [ { "src": "/android-chrome-192x192.png",