https://github.com/apachecn-archive/chatgpt-next-web-1

https://github.com/apachecn-archive/chatgpt-next-web-1

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: apachecn-archive
  • License: other
  • Language: TypeScript
  • Default Branch: main
  • Size: 2.88 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 3 years ago · Last pushed about 3 years ago
Metadata Files
Readme License Code of conduct

README.md

icon

ChatGPT Next Web

One-Click to deploy well-designed ChatGPT web UI on Vercel. ChatGPT [ Demo](https://chat-gpt-next-web.vercel.app/) / [ Issues](https://github.com/Yidadaa/ChatGPT-Next-Web/issues) / [Join Discord](https://discord.gg/zrhvHCr79N) / [QQ ](https://user-images.githubusercontent.com/16968934/228190818-7dd00845-e9b9-4363-97e5-44c507ac76da.jpeg) / [](https://user-images.githubusercontent.com/16968934/227772541-5bcd52d8-61b7-488c-a203-0330d8006e2b.jpg) / [Buy Me a Coffee](https://www.buymeacoffee.com/yidadaa) [![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&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web) [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web) ![cover](./docs/images/cover.png)

Features

  • Deploy for free with one-click on Vercel in under 1 minute
  • Responsive design, dark mode and PWA
  • Fast first screen loading speed (~100kb)
  • Awesome prompts powered by awesome-chatgpt-prompts-zh and awesome-chatgpt-prompts
  • Automatically compresses chat history to support long conversations while also saving your tokens
  • One-click export all chat history with full Markdown support
  • I18n supported

Roadmap

  • [x] System Prompt: pin a user defined prompt as system prompt #138
  • [ ] User Prompt: user can edit and save custom prompts to prompt list
  • [ ] Desktop App with tauri
  • [ ] Self-host Model: support llama, alpaca, ChatGLM, BELLE etc.
  • [ ] Plugins: support network search, caculator, any other apis etc. #165

Not in Plan

  • User login, accounts, cloud sync
  • UI text customize
  • 1 Vercel ****
  • UI PWA
  • ~100kb
  • prompt
  • Token
  • Markdown
  • ****
  • [x] Prompt #138
  • [ ] Prompt
  • [ ] tauri
  • [ ]
  • [ ] api #165

-

Get Started

>

  1. Get OpenAI API Key;
  2. Click Deploy with Vercel, remember that CODE is your page password;
  3. Enjoy :)

FAQ

> | English > FAQ

Keep Updated

>

If you have deployed your own project with just one click following the steps above, you may encounter the issue of "Updates Available" constantly showing up. This is because Vercel will create a new project for you by default instead of forking this project, resulting in the inability to detect updates correctly.

We recommend that you follow the steps below to re-deploy:

  • Delete the original repo;
  • Fork this project;
  • Go to the Vercel dashboard, delete the original project, then create a new project and select the project you just forked to redeploy;
  • Please manually add an environment variable named OPENAI_API_KEY and enter your API key as the value during the redeploy process.

This project will be continuously updated, and after forking the project, the upstream code will be automatically synchronized every day without additional operations.

If you want to update instantly, you can check out the Github documentation to learn how to synchronize a forked project with upstream code.

You can star or watch this project or follow author to get release notifictions in time.

Access Password

>

This project provides limited access control. Please add an environment variable named CODE on the vercel environment variables page. The value should be passwords separated by comma like this:

code1,code2,code3

After adding or modifying this environment variable, please redeploy the project for the changes to take effect.

Environment Variables

> api key

OPENAI_API_KEY (required)

Your openai api key.

CODE (optional)

Access passsword, separated by comma.

BASE_URL (optional)

Default: api.openai.com

Override openai api request base url.

PROTOCOL (optional)

Default: https

Values: http | https

Override openai api request protocol.

Development

>

Open in Gitpod

Before starting development, you must create a new .env.local file at project root, and place your api key into it:

OPENAI_API_KEY=<your api key here>

Local Development

```shell

1. install nodejs and yarn first

2. config local env vars in .env.local

3. run

yarn install yarn dev ```

Deployment

>

Docker (Recommended)

```shell docker pull yidadaa/chatgpt-next-web

docker run -d -p 3000:3000 \ -e OPENAIAPIKEY="sk-xxxx" \ -e CODE="your-password" \ yidadaa/chatgpt-next-web ```

You can start service behind a proxy:

shell docker run -d -p 3000:3000 \ -e OPENAI_API_KEY="sk-xxxx" \ -e CODE="your-password" \ -e PROXY_URL="http://localhost:7890" \ yidadaa/chatgpt-next-web

Shell

shell bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/scripts/setup.sh)

Screenshots

Settings

More

Donation

Buy Me a Coffee

Special Thanks

Sponsor

@mushan0x0 @ClarenceDan @zhangjia @hoochanlon @relativequantum @desenmeng @webees @chazzhou @hauy

Contributor

Contributors

LICENSE

Anti 996 License

Owner

  • Name: ApacheCN 归档
  • Login: apachecn-archive
  • Kind: organization
  • Email: wizard.z@qq.com

防止重要项目丢失而设立的归档

GitHub Events

Total
Last Year

Dependencies

.github/workflows/docker.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/metadata-action v4 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/sync.yml actions
  • actions/checkout v3 composite
  • aormsby/Fork-Sync-With-Upstream-action v3.4 composite
Dockerfile docker
  • base latest build
  • node 18-alpine build
package.json npm
  • @types/node ^18.14.6 development
  • @types/react ^18.0.28 development
  • @types/react-dom ^18.0.11 development
  • @types/react-katex ^3.0.0 development
  • @types/spark-md5 ^3.0.2 development
  • cross-env ^7.0.3 development
  • eslint ^8.36.0 development
  • eslint-config-next 13.2.3 development
  • eslint-config-prettier ^8.8.0 development
  • eslint-plugin-prettier ^4.2.1 development
  • husky ^8.0.0 development
  • lint-staged ^13.2.0 development
  • prettier ^2.8.7 development
  • typescript 4.9.5 development
  • @hello-pangea/dnd ^16.2.0
  • @svgr/webpack ^6.5.1
  • @vercel/analytics ^0.1.11
  • emoji-picker-react ^4.4.7
  • eventsource-parser ^0.1.0
  • fuse.js ^6.6.2
  • next ^13.2.3
  • node-fetch ^3.3.1
  • openai ^3.2.1
  • react ^18.2.0
  • react-dom ^18.2.0
  • react-markdown ^8.0.5
  • rehype-highlight ^6.0.0
  • rehype-katex ^6.0.2
  • remark-breaks ^3.0.2
  • remark-gfm ^3.0.1
  • remark-math ^5.1.1
  • sass ^1.59.2
  • spark-md5 ^3.0.2
  • use-debounce ^9.0.3
  • zustand ^4.3.6
yarn.lock npm
  • 690 dependencies