GithubHelp home page GithubHelp logo

open-chatgpt / chatgpt-web-new Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.09 MB

基于 ChatGPT-Web

License: MIT License

JavaScript 0.15% Shell 0.12% Dockerfile 0.24% HTML 4.64% TypeScript 40.24% Vue 47.15% Less 7.39% CSS 0.01% Batchfile 0.04%

chatgpt-web-new's Introduction

ChatGPT Web New

仓库特色功能

  • 使用 OAuth 实现登录功能
  • 更新 UI 框架
  • 添加 OpenAI ChatGPT 插件功能
  • 注册、登录及重置密码
  • 同步历史会话
  • 前端页面设置 API key
  • 自定义敏感词
  • 每个会话设置独有 Prompt
  • 用户管理
  • 多 Key 随机

安装与运行

前置要求

Node

确保您的 Node 版本满足 ^16 || ^18 || ^19 的要求。

node -v

PNPM

如果你没有安装过 pnpm:

npm install pnpm -g

安装依赖

后端

进入文件夹 /service 运行以下命令:

pnpm install

前端

根目录下运行以下命令:

pnpm bootstrap

测试环境运行

后端服务

进入文件夹 /service 运行以下命令:

pnpm start

前端网页

根目录下运行以下命令:

pnpm dev

环境变量

详细的环境变量配置请查看这里:

/service/.env.example

使用 Railway 部署

Deploy on Railway

打包与部署

使用 Docker

Docker 参数示例

Docker参数

Docker build & Run

docker build -t chatgpt-web .
# 前台运行
docker run --name chatgpt-web --rm -it -p 127.0.0.1:3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web
# 后台运行
docker run --name chatgpt-web -d -p 127.0.0.1:3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web

手动打包

后端服务

复制 service 文件夹到你有 node 服务环境的服务器上。

# 安装
pnpm install
# 打包
pnpm build
# 运行
pnpm prod

前端网页

  1. 修改根目录下 .env 文件中的 VITE_GLOB_API_URL 为你的实际后端接口地址
  2. 根目录下运行以下命令,然后将 dist 文件夹内的文件复制到你网站服务的根目录下
pnpm build

贡献

如果你想为此项目做出贡献,欢迎查看贡献指南

赞助

如果你觉得这个项目对你有帮助,请给我点个Star。并且情况允许的话,可以给我一点点支持,总之非常感谢支持~

License

MIT © Nb112211

chatgpt-web-new's People

Contributors

assassinliujie avatar chanzhaoyu avatar cornerskyless avatar dependabot[bot] avatar dwsy avatar fanlu91 avatar kerwin1202 avatar lsvih avatar luckywang6 avatar marlkiller avatar nalf3in avatar nothing1024 avatar open-chatgpt avatar ottocsb avatar peterdavehello avatar popcell avatar puppywang avatar pzcn avatar quzard avatar ryanxinone avatar shunyue1320 avatar simonwu53 avatar simulacraliasing avatar turbobit avatar vchenpeng avatar vulgatecnn avatar whatwewant avatar yi-ge avatar yilozt avatar zhujunsan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.