Ryuiso 1 год назад
Родитель
Сommit
f5065b5f02
7 измененных файлов с 18 добавлено и 38 удалено
  1. 10 30
      README.md
  2. 1 1
      app/client/platforms/bigmodel.ts
  3. 2 2
      app/components/Record.tsx
  4. 2 2
      app/layout.tsx
  5. 1 1
      app/store/chat.ts
  6. BIN
      img.png
  7. 2 2
      next.config.mjs

+ 10 - 30
README.md

@@ -1,36 +1,16 @@
-<div align="center">
-
-<a href='#企业版'>
-  <img src="./docs/images/ent.svg" alt="icon"/>
-</a>
-
-<h1 align="center">NextChat</h1>
-
-一键免费部署你的私人 ChatGPT 网页应用,支持 GPT3, GPT4 & Gemini Pro 模型。
+## npm build
+- next.config.mjs
+- ![img.png](img.png)
+- 命令行执行npm run build 进行打包
 
-[企业版](#%E4%BC%81%E4%B8%9A%E7%89%88) /[演示 Demo](https://chat-gpt-next-web.vercel.app/) / [反馈 Issues](https://github.com/Yidadaa/ChatGPT-Next-Web/issues) / [加入 Discord](https://discord.gg/zrhvHCr79N)
-
-[<img src="https://vercel.com/button" alt="Deploy on Zeabur" height="30">](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FChatGPTNextWeb%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=nextchat&repository-name=NextChat) [<img src="https://zeabur.com/button.svg" alt="Deploy on Zeabur" height="30">](https://zeabur.com/templates/ZBUEFA)  [<img src="https://gitpod.io/button/open-in-gitpod.svg" alt="Open in Gitpod" height="30">](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web)
-
-</div>
-
-## 企业版
-
-满足您公司私有化部署和定制需求
-- **品牌定制**:企业量身定制 VI/UI,与企业品牌形象无缝契合
-- **资源集成**:由企业管理人员统一配置和管理数十种 AI 资源,团队成员开箱即用
-- **权限管理**:成员权限、资源权限、知识库权限层级分明,企业级 Admin Panel 统一控制
-- **知识接入**:企业内部知识库与 AI 能力相结合,比通用 AI 更贴近企业自身业务需求
-- **安全审计**:自动拦截敏感提问,支持追溯全部历史对话记录,让 AI 也能遵循企业信息安全规范
-- **私有部署**:企业级私有部署,支持各类主流私有云部署,确保数据安全和隐私保护
-- **持续更新**:提供多模态、智能体等前沿能力持续更新升级服务,常用常新、持续先进
-
-企业版咨询: **business@nextchat.dev**
-
-<img width="300" src="https://github.com/user-attachments/assets/3daeb7b6-ab63-4542-9141-2e4a12c80601">
+## 部署
+- 打包成功后会在.next文件夹下生成standalone static两个文件夹
+- standalone相当于一个express应用,包含server.js和少量的服务端依赖node_modules
+static是前端包
+- 部署时,需要拷贝static到standalone/.next文件夹下,拷贝外层public文件夹到standalone下
+- 进入standalone目录,执行node server.js即可启动服务
 
 ## 开始使用
-
 1. 准备好你的 [OpenAI API Key](https://platform.openai.com/account/api-keys);
 2. 点击右侧按钮开始部署:
    [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&env=GOOGLE_API_KEY&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web),直接使用 Github 账号登录即可,记得在环境变量页填入 API Key 和[页面访问密码](#配置页面访问密码) CODE;

+ 1 - 1
app/client/platforms/bigmodel.ts

@@ -46,7 +46,7 @@ export class BigModelApi implements LLMApi {
     const requestPayload: any = {
       messages: messages,
       stream: shouldStream,// 流式回复
-      model: 'glm-4-flash',// 模型
+      model: 'glm-4-0520',// 模型
       temperature: 0.95,// 采样温度
       top_p: 0.7,// 核取样
       tools: [

+ 2 - 2
app/components/Record.tsx

@@ -59,10 +59,10 @@ const RecordApp: React.FC = () => {
             <div style={{ padding: '14px 20px', borderBottom: '1px solid rgba(0, 0, 0, 0.1)', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
                 <div>
                     <div style={{ fontSize: 20, fontWeight: 'bolder' }}>
-                        建科招聘聊天记录
+                        建科小K聊天记录
                     </div>
                     <div style={{ fontSize: 14 }}>
-                        输入账号密码导出聊天记录
+                        输入账号密码导出全部聊天记录
                     </div>
                 </div>
                 <div>

+ 2 - 2
app/layout.tsx

@@ -10,10 +10,10 @@ import { GoogleTagManager } from "@next/third-parties/google";
 const serverConfig = getServerSideConfig();
 
 export const metadata: Metadata = {
-  title: "建科招聘智能助理",
+  title: "建科小K",
   description: "",
   appleWebApp: {
-    title: "建科招聘智能助理",
+    title: "建科小K",
     statusBarStyle: "default",
   },
 };

+ 1 - 1
app/store/chat.ts

@@ -70,7 +70,7 @@ export interface ChatSession {
 export const DEFAULT_TOPIC = Locale.Store.DefaultTopic;
 export const BOT_HELLO: ChatMessage = createMessage({
   role: "assistant",
-  content: '我是「建科招聘智能助理」,请问您有什么招聘、薪酬或工作相关的问题需要咨询?我会尽力为您提供帮助。',
+  content: '感谢关注上海建科工程咨询有限公司的校园招聘,欢迎提问,建科小K竭诚为您服务。',
 });
 
 function createEmptySession(): ChatSession {


+ 2 - 2
next.config.mjs

@@ -2,7 +2,7 @@ import webpack from "webpack";
 
 const mode = process.env.BUILD_MODE ?? "standalone";
 
-const disableChunk = !!process.env.DISABLE_CHUNK || mode === "export";
+const disableChunk = !!process.env.DISABLE_CHUNK || mode === "standalone";
 
 /** @type {import('next').NextConfig} */
 const nextConfig = {
@@ -26,7 +26,7 @@ const nextConfig = {
   },
   output: mode,
   images: {
-    unoptimized: mode === "export",
+    unoptimized: mode === "standalone",
   },
   experimental: {
     forceSwcTransforms: true,