2023-05-21 23:49:04 +08:00
|
|
|
|
<a name="readme-top"></a>
|
|
|
|
|
|
|
|
|
|
|
|
<div align="center">
|
2023-07-11 19:46:11 +08:00
|
|
|
|
|
2023-08-15 18:03:36 +08:00
|
|
|
|
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
2023-07-11 19:46:11 +08:00
|
|
|
|
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
|
2023-08-15 18:03:36 +08:00
|
|
|
|
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/robot.webp">
|
2023-05-21 23:49:04 +08:00
|
|
|
|
|
|
|
|
|
|
<h1>Lobe Chat</h1>
|
|
|
|
|
|
|
2023-07-23 14:31:13 +08:00
|
|
|
|
Lobe Chat is an open-source chatbot client using OpenAI and Next.js
|
2023-07-11 19:46:11 +08:00
|
|
|
|
|
2023-05-21 23:49:04 +08:00
|
|
|
|
[Changelog](./CHANGELOG.md) · [Report Bug][issues-url] · [Request Feature][issues-url]
|
2023-07-11 19:46:11 +08:00
|
|
|
|
|
2023-05-21 23:49:04 +08:00
|
|
|
|
<!-- SHIELD GROUP -->
|
|
|
|
|
|
|
|
|
|
|
|
[![release][release-shield]][release-url]
|
|
|
|
|
|
[![releaseDate][release-date-shield]][release-date-url]
|
|
|
|
|
|
[![ciTest][ci-test-shield]][ci-test-url]
|
2023-07-11 19:46:11 +08:00
|
|
|
|
[![ciRelease][ci-release-shield]][ci-release-url] <br/>
|
2023-05-21 23:49:04 +08:00
|
|
|
|
[![contributors][contributors-shield]][contributors-url]
|
|
|
|
|
|
[![forks][forks-shield]][forks-url]
|
|
|
|
|
|
[![stargazers][stargazers-shield]][stargazers-url]
|
|
|
|
|
|
[![issues][issues-shield]][issues-url]
|
2023-07-11 19:46:11 +08:00
|
|
|
|
|
2023-08-26 17:12:14 +08:00
|
|
|
|
[![Deploy with Vercel][deploy-button-image]][deploy-url]
|
2023-07-11 19:46:11 +08:00
|
|
|
|

|
2023-05-21 23:49:04 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2023-07-11 19:46:11 +08:00
|
|
|
|
<details>
|
|
|
|
|
|
<summary><kbd>Table of contents</kbd></summary>
|
|
|
|
|
|
|
|
|
|
|
|
#### TOC
|
|
|
|
|
|
|
2023-08-26 17:02:22 +08:00
|
|
|
|
- [🛳 Self Hosting](#-self-hosting)
|
|
|
|
|
|
|
|
|
|
|
|
- [Deploy to Vercel](#deploy-to-vercel)
|
|
|
|
|
|
|
2023-07-11 19:46:11 +08:00
|
|
|
|
- [⌨️ Local Development](#️-local-development)
|
2023-08-26 17:02:22 +08:00
|
|
|
|
|
2023-07-11 19:46:11 +08:00
|
|
|
|
- [🤝 Contributing](#-contributing)
|
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
2023-08-26 17:02:22 +08:00
|
|
|
|
## 🛳 Self Hosting
|
|
|
|
|
|
|
|
|
|
|
|
If you want to deploy this service by yourself, you can follow the steps below.
|
|
|
|
|
|
|
|
|
|
|
|
### Deploy to Vercel
|
|
|
|
|
|
|
|
|
|
|
|
Click button below to deploy your private plugins' gateway.
|
|
|
|
|
|
|
2023-08-26 17:12:14 +08:00
|
|
|
|
[![Deploy with Vercel][deploy-button-image]][deploy-url]
|
2023-08-26 17:02:22 +08:00
|
|
|
|
|
|
|
|
|
|
If you want to make some customization, you can add environment variable:
|
|
|
|
|
|
|
|
|
|
|
|
| Environment variable | Description | Example |
|
|
|
|
|
|
| -------------------- | --------------------------------------------------------------------------------- | ----------------------------- |
|
|
|
|
|
|
| `OPENAI_PROXY_URL` | OpenAI API 代理 URL,例如:`https://api.chatanywhere.cn` | `https://api.chatanywhere.cn` |
|
|
|
|
|
|
| `ACCESS_CODE` | Add Password to access this service, the password should be 6 digits or alphabets | `awCT74` \| `e3@09!` |
|
|
|
|
|
|
|
2023-05-21 23:49:04 +08:00
|
|
|
|
## ⌨️ Local Development
|
|
|
|
|
|
|
|
|
|
|
|
You can use Gitpod for online development:
|
|
|
|
|
|
|
|
|
|
|
|
[][gitpod-url]
|
|
|
|
|
|
|
|
|
|
|
|
Or clone it for local development:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
$ git clone https://github.com/lobehub/lobe-chat.git
|
2023-07-15 15:48:20 +08:00
|
|
|
|
$ cd lobe-chat
|
2023-07-11 19:46:11 +08:00
|
|
|
|
$ pnpm install
|
2023-08-26 17:02:22 +08:00
|
|
|
|
$ pnpm dev
|
2023-05-21 23:49:04 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
<div align="right">
|
|
|
|
|
|
|
|
|
|
|
|
[![][back-to-top]](#readme-top)
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
## 🤝 Contributing
|
|
|
|
|
|
|
|
|
|
|
|
<!-- CONTRIBUTION GROUP -->
|
|
|
|
|
|
|
2023-05-21 18:18:14 +00:00
|
|
|
|
> 📊 Total: <kbd>**4**</kbd>
|
2023-05-21 23:49:04 +08:00
|
|
|
|
|
2023-05-21 16:23:00 +00:00
|
|
|
|
<a href="https://github.com/arvinxx" title="arvinxx">
|
|
|
|
|
|
<img src="https://avatars.githubusercontent.com/u/28616219?v=4" width="50" />
|
|
|
|
|
|
</a>
|
2023-07-23 18:17:40 +00:00
|
|
|
|
<a href="https://github.com/canisminor1990" title="canisminor1990">
|
|
|
|
|
|
<img src="https://avatars.githubusercontent.com/u/17870709?v=4" width="50" />
|
|
|
|
|
|
</a>
|
2023-05-21 18:18:14 +00:00
|
|
|
|
<a href="https://github.com/apps/dependabot" title="dependabot[bot]">
|
|
|
|
|
|
<img src="https://avatars.githubusercontent.com/in/29110?v=4" width="50" />
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<a href="https://github.com/actions-user" title="actions-user">
|
|
|
|
|
|
<img src="https://avatars.githubusercontent.com/u/65916846?v=4" width="50" />
|
2023-05-21 23:49:04 +08:00
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- CONTRIBUTION END -->
|
|
|
|
|
|
|
|
|
|
|
|
<div align="right">
|
|
|
|
|
|
|
|
|
|
|
|
[![][back-to-top]](#readme-top)
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
---
|
2023-07-11 19:46:11 +08:00
|
|
|
|
|
2023-05-21 23:49:04 +08:00
|
|
|
|
#### 📝 License
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © 2023 [LobeHub][profile-url]. <br />
|
2023-07-11 19:46:11 +08:00
|
|
|
|
This project is [MIT](./LICENSE) licensed.
|
2023-05-21 23:49:04 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- LINK GROUP -->
|
|
|
|
|
|
|
|
|
|
|
|
[profile-url]: https://github.com/lobehub
|
|
|
|
|
|
[issues-url]: https://github.com/lobehub/lobe-chat/issues/new/choose
|
|
|
|
|
|
[gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-chat
|
|
|
|
|
|
|
|
|
|
|
|
<!-- SHIELD LINK GROUP -->
|
|
|
|
|
|
|
|
|
|
|
|
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
|
|
|
|
|
|
|
|
|
|
|
|
<!-- release -->
|
|
|
|
|
|
|
2023-08-26 20:53:43 +08:00
|
|
|
|
[release-shield]: https://img.shields.io/npm/v/@lobehub/chat?label=%F0%9F%A4%AF%20Chat
|
2023-05-22 00:00:45 +08:00
|
|
|
|
[release-url]: https://www.npmjs.com/package/@lobehub/chat
|
2023-05-21 23:49:04 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- releaseDate -->
|
|
|
|
|
|
|
|
|
|
|
|
[release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?style=flat
|
|
|
|
|
|
[release-date-url]: https://github.com/lobehub/lobe-chat/releases
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ciTest -->
|
|
|
|
|
|
|
|
|
|
|
|
[ci-test-shield]: https://github.com/lobehub/lobe-chat/workflows/Test%20CI/badge.svg
|
|
|
|
|
|
[ci-test-url]: https://github.com/lobehub/lobe-chat/actions/workflows/test.yml
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ciRelease -->
|
|
|
|
|
|
|
2023-05-22 00:16:22 +08:00
|
|
|
|
[ci-release-shield]: https://github.com/lobehub/lobe-chat/workflows/Release%20CI/badge.svg
|
|
|
|
|
|
[ci-release-url]: https://github.com/lobehub/lobe-chat/actions?query=workflow%3ARelease%20CI
|
2023-05-21 23:49:04 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- contributors -->
|
|
|
|
|
|
|
|
|
|
|
|
[contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-chat.svg?style=flat
|
|
|
|
|
|
[contributors-url]: https://github.com/lobehub/lobe-chat/graphs/contributors
|
|
|
|
|
|
|
|
|
|
|
|
<!-- forks -->
|
|
|
|
|
|
|
|
|
|
|
|
[forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat.svg?style=flat
|
|
|
|
|
|
[forks-url]: https://github.com/lobehub/lobe-chat/network/members
|
|
|
|
|
|
|
|
|
|
|
|
<!-- stargazers -->
|
|
|
|
|
|
|
|
|
|
|
|
[stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat.svg?style=flat
|
|
|
|
|
|
[stargazers-url]: https://github.com/lobehub/lobe-chat/stargazers
|
|
|
|
|
|
|
|
|
|
|
|
<!-- issues -->
|
|
|
|
|
|
|
|
|
|
|
|
[issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
|
|
|
|
|
|
[issues-url]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
|
2023-08-26 17:12:14 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- deploy -->
|
|
|
|
|
|
|
|
|
|
|
|
[deploy-button-image]: https://vercel.com/button
|
2023-08-26 17:13:39 +08:00
|
|
|
|
[deploy-url]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%20&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
|