Compare commits

...

1176 Commits

Author SHA1 Message Date
semantic-release-bot f97b6ca393 🔖 chore(release): v1.24.2 [skip ci]
### [Version 1.24.2](https://github.com/lobehub/lobe-chat/compare/v1.24.1...v1.24.2)
<sup>Released on **2024-10-26**</sup>

#### 💄 Styles

- **misc**: Update Google Model list, add `gemini-1.5-flash-8b`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Google Model list, add `gemini-1.5-flash-8b`, closes [#4495](https://github.com/lobehub/lobe-chat/issues/4495) ([499c479](https://github.com/lobehub/lobe-chat/commit/499c479))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-26 10:18:38 +00:00
Zhijie He 499c4791c2 💄 style: update Google Model list, add gemini-1.5-flash-8b (#4495)
* 💄 style: update Google Model list, add `gemini-1.5-flash-8b`

* 💄 style: sort model list
2024-10-26 18:11:20 +08:00
semantic-release-bot 910bbeffb5 🔖 chore(release): v1.24.1 [skip ci]
### [Version&nbsp;1.24.1](https://github.com/lobehub/lobe-chat/compare/v1.24.0...v1.24.1)
<sup>Released on **2024-10-25**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the Google Gen AI.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the Google Gen AI, closes [#4484](https://github.com/lobehub/lobe-chat/issues/4484) ([b890e8d](https://github.com/lobehub/lobe-chat/commit/b890e8d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-25 14:59:00 +00:00
Arvin Xu b890e8d9bb ♻️ refactor: refactor the Google Gen AI (#4484) 2024-10-25 22:50:25 +08:00
semantic-release-bot 8f83863547 🔖 chore(release): v1.24.0 [skip ci]
## [Version&nbsp;1.24.0](https://github.com/lobehub/lobe-chat/compare/v1.23.1...v1.24.0)
<sup>Released on **2024-10-25**</sup>

####  Features

- **misc**: Add SenseNova (商汤) model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add SenseNova (商汤) model provider, closes [#4162](https://github.com/lobehub/lobe-chat/issues/4162) ([7a4e0b3](https://github.com/lobehub/lobe-chat/commit/7a4e0b3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-25 13:11:53 +00:00
Zhijie He 7a4e0b3e92 feat: add SenseNova (商汤) model provider (#4162)
*  feat: add SenseCore (商汤) model provider

* 💄 style: update model list, fix `frequency_penalty`, `temperature`, `top_p` value range

* 🔨 chore: add jwt api token calculate

* 🔨 chore: remove `SENSECORE_API_KEY` ENV

* Update authToken.ts

* 🔨 chore: add debug logs

* ♻️ refactor: rollback changes, remove JWT

* 👷 build: add docker ENV, `SENSECORE_API_KEY` & `SENSECORE_MODEL_LIST`

* 🔨 chore: cleanup

* 🔨 chore: cleanup

* 🔨 chore: rename `sensecore` to `sensenova`

* 💄 style: update model list

* 💄 style: sort model list

*  feat: add jwt token generator for SenseNova

* ♻️ refactor: support two different type of `API TOKEN`

* Update authToken.ts

* 💄 style: add custom form for SenseNova

* 💄 style: fix custom form calling & adjust icon size

* 🐛 fix: fix CI error

* 💄 style: adjust icon size

* 🐛 fix: fix `sensenovaAccessKeySecret` not store in key

* 🐛 fix: try to fix loading key from ENV

* 🐛 fix: try to fix loading key from ENV

* 🐛 fix: seems be the root cause, typo

* 💄 style: remove title

* 🐛 fix: fix build error

* 🔨 chore: add i18n

* 🐛 fix: fix PR conflicts

* 🐛 fix: fix route ci error

* 🐛 fix: fix PR conflicts

* ♻️ refactor: move `generateJwtTokenSenseNova` to `LobeSenseNovaAI.generateJWTToken`

* Update index.ts

* rollback changes, submit wrong branch

* 🐛 fix: fix CI error, refactor the chat webapi

* ♻️ refactor: replace deprecated module `crypto-js` to `crypto-es`

* Revert "♻️ refactor: replace deprecated module `crypto-js` to `crypto-es`"

This reverts commit 9655c92121.

* ♻️ refactor: replace `crypto-js` to `jose`, only support ENV now (Part 1)

* Revert "♻️ refactor: replace `crypto-js` to `jose`, only support ENV now (Part 1)"

* ♻️ refactor: using `jose` to generate the APIToken

* 🔨 chore: remove debug code

* 🔨 chore: cleanup package, remove `crypto-js`

* 🔨 chore: add unit test

* 🔨 chore: optimize jwt generate process
2024-10-25 21:04:26 +08:00
bugyaluwang b2fbde4249 🔧 chore: use dpdm-fast to make lint faster (#4389) 2024-10-25 21:00:14 +08:00
semantic-release-bot 582ab80437 🔖 chore(release): v1.23.1 [skip ci]
### [Version&nbsp;1.23.1](https://github.com/lobehub/lobe-chat/compare/v1.23.0...v1.23.1)
<sup>Released on **2024-10-25**</sup>

#### 💄 Styles

- **misc**: Add `*_MODEL_LIST` env to all models, update Spark model id & display name.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add `*_MODEL_LIST` env to all models, closes [#4481](https://github.com/lobehub/lobe-chat/issues/4481) ([a969b9c](https://github.com/lobehub/lobe-chat/commit/a969b9c))
* **misc**: Update Spark model id & display name, closes [#4482](https://github.com/lobehub/lobe-chat/issues/4482) ([852dd47](https://github.com/lobehub/lobe-chat/commit/852dd47))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-25 12:40:11 +00:00
Zhijie He 852dd47dde 💄 style: update Spark model id & display name (#4482) 2024-10-25 20:32:54 +08:00
Zhijie He a969b9c202 💄 style: add *_MODEL_LIST env to all models (#4481) 2024-10-25 20:32:34 +08:00
semantic-release-bot 1696b37f86 🔖 chore(release): v1.23.0 [skip ci]
## [Version&nbsp;1.23.0](https://github.com/lobehub/lobe-chat/compare/v1.22.27...v1.23.0)
<sup>Released on **2024-10-25**</sup>

####  Features

- **misc**: Support system agent config.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support system agent config, closes [#4474](https://github.com/lobehub/lobe-chat/issues/4474) ([63ba4d3](https://github.com/lobehub/lobe-chat/commit/63ba4d3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-25 04:30:07 +00:00
Arvin Xu 63ba4d3b7f feat: support system agent config (#4474)
* 💄 style: support custom system agent

* 💄 style: support disable query rewrite agent

* 🐛 fix: fix ModelSelect id issue

* fix issue

* fix
2024-10-25 12:22:40 +08:00
semantic-release-bot e8ef3c49c6 🔖 chore(release): v1.22.27 [skip ci]
### [Version&nbsp;1.22.27](https://github.com/lobehub/lobe-chat/compare/v1.22.26...v1.22.27)
<sup>Released on **2024-10-25**</sup>

#### 💄 Styles

- **misc**: Add bedrock claude-3.5-sonnect-v2.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add bedrock claude-3.5-sonnect-v2, closes [#4468](https://github.com/lobehub/lobe-chat/issues/4468) ([a7fc251](https://github.com/lobehub/lobe-chat/commit/a7fc251))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-25 03:28:26 +00:00
Yuan a7fc251723 💄 style: add bedrock claude-3.5-sonnect-v2 (#4468) 2024-10-25 11:21:01 +08:00
Christian Rodriguez 9fb26410f7 Update docs/self-hosting/server-database.mdx (#4467) 2024-10-24 10:38:34 +08:00
semantic-release-bot 7ef2c8226d 🔖 chore(release): v1.22.26 [skip ci]
### [Version&nbsp;1.22.26](https://github.com/lobehub/lobe-chat/compare/v1.22.25...v1.22.26)
<sup>Released on **2024-10-23**</sup>

#### 💄 Styles

- **misc**: Fix some custom branding detail.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix some custom branding detail, closes [#4465](https://github.com/lobehub/lobe-chat/issues/4465) ([3fb1f6a](https://github.com/lobehub/lobe-chat/commit/3fb1f6a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-23 18:26:38 +00:00
Arvin Xu 3fb1f6a93a 💄 style: fix some custom branding detail (#4465) 2024-10-24 02:19:14 +08:00
semantic-release-bot 9bcaa853c1 🔖 chore(release): v1.22.25 [skip ci]
### [Version&nbsp;1.22.25](https://github.com/lobehub/lobe-chat/compare/v1.22.24...v1.22.25)
<sup>Released on **2024-10-23**</sup>

#### ♻ Code Refactoring

- **misc**: Remove unused user tables.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Remove unused user tables, closes [#4464](https://github.com/lobehub/lobe-chat/issues/4464) ([c85a270](https://github.com/lobehub/lobe-chat/commit/c85a270))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-23 16:42:33 +00:00
Arvin Xu c85a270a35 ♻️ refactor: remove unused user tables (#4464) 2024-10-24 00:34:58 +08:00
semantic-release-bot 429476580a 🔖 chore(release): v1.22.24 [skip ci]
### [Version&nbsp;1.22.24](https://github.com/lobehub/lobe-chat/compare/v1.22.23...v1.22.24)
<sup>Released on **2024-10-23**</sup>

#### ♻ Code Refactoring

- **misc**: Support `plugin` flag.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Support `plugin` flag, closes [#4463](https://github.com/lobehub/lobe-chat/issues/4463) ([9b4be23](https://github.com/lobehub/lobe-chat/commit/9b4be23))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-23 16:07:42 +00:00
Arvin Xu 9b4be23fd9 ♻️ refactor: support plugin flag (#4463)
* ♻️ refactor: support plugin flag

*  test: add tests
2024-10-24 00:00:15 +08:00
semantic-release-bot 2dbc23ebd1 🔖 chore(release): v1.22.23 [skip ci]
### [Version&nbsp;1.22.23](https://github.com/lobehub/lobe-chat/compare/v1.22.22...v1.22.23)
<sup>Released on **2024-10-23**</sup>

#### 💄 Styles

- **misc**: Improve error i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve error i18n, closes [#4462](https://github.com/lobehub/lobe-chat/issues/4462) ([74fb5e7](https://github.com/lobehub/lobe-chat/commit/74fb5e7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-23 14:48:12 +00:00
Arvin Xu 74fb5e74ed 🌐 style: improve error i18n (#4462) 2024-10-23 22:40:23 +08:00
semantic-release-bot 920086d51c 🔖 chore(release): v1.22.22 [skip ci]
### [Version&nbsp;1.22.22](https://github.com/lobehub/lobe-chat/compare/v1.22.21...v1.22.22)
<sup>Released on **2024-10-23**</sup>

#### 💄 Styles

- **misc**: Improve i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve i18n, closes [#4461](https://github.com/lobehub/lobe-chat/issues/4461) ([4c37928](https://github.com/lobehub/lobe-chat/commit/4c37928))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-23 13:49:10 +00:00
Arvin Xu 4c379288e2 💄 style: improve i18n (#4461)
* 🌐 style: improve i18n

* 🌐 style: improve i18n

* 🌐 style: improve i18n

* 🌐 style: improve i18n
2024-10-23 21:41:25 +08:00
semantic-release-bot b544e52f9e 🔖 chore(release): v1.22.21 [skip ci]
### [Version&nbsp;1.22.21](https://github.com/lobehub/lobe-chat/compare/v1.22.20...v1.22.21)
<sup>Released on **2024-10-23**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor cookie/headers to async mode.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor cookie/headers to async mode, closes [#4459](https://github.com/lobehub/lobe-chat/issues/4459) ([98c5d21](https://github.com/lobehub/lobe-chat/commit/98c5d21))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-23 12:46:03 +00:00
sxjeru 297b113359 💄 style: Add step-1.5v-turbo model (#4456) 2024-10-23 20:38:45 +08:00
Arvin Xu 98c5d21e67 ♻️ refactor: refactor cookie/headers to async mode (#4459)
* ♻️ refactor: refactor async api request

* ♻️ refactor: refactor async api request

* ♻️ refactor: refactor async api request
2024-10-23 20:37:40 +08:00
semantic-release-bot 79a58428ba 🔖 chore(release): v1.22.20 [skip ci]
### [Version&nbsp;1.22.20](https://github.com/lobehub/lobe-chat/compare/v1.22.19...v1.22.20)
<sup>Released on **2024-10-23**</sup>

#### 💄 Styles

- **misc**: Add new claude-3.5-sonnet model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add new claude-3.5-sonnet model, closes [#4452](https://github.com/lobehub/lobe-chat/issues/4452) ([7102393](https://github.com/lobehub/lobe-chat/commit/7102393))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-23 07:54:38 +00:00
LovelyGuYiMeng 7102393384 💄 style: add new claude-3.5-sonnet model (#4452)
* Update anthropic.ts

* Update anthropic.ts

* Update anthropic.ts
2024-10-23 15:47:15 +08:00
semantic-release-bot 507be8d748 🔖 chore(release): v1.22.19 [skip ci]
### [Version&nbsp;1.22.19](https://github.com/lobehub/lobe-chat/compare/v1.22.18...v1.22.19)
<sup>Released on **2024-10-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move responsive to server utils folder.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move responsive to server utils folder, closes [#4447](https://github.com/lobehub/lobe-chat/issues/4447) ([fe7fe64](https://github.com/lobehub/lobe-chat/commit/fe7fe64))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-22 17:24:40 +00:00
Arvin Xu fe7fe644c2 ♻️ refactor: move responsive to server utils folder (#4447) 2024-10-23 01:17:14 +08:00
semantic-release-bot aceec09baa 🔖 chore(release): v1.22.18 [skip ci]
### [Version&nbsp;1.22.18](https://github.com/lobehub/lobe-chat/compare/v1.22.17...v1.22.18)
<sup>Released on **2024-10-22**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-22 14:32:20 +00:00
Arvin Xu 4429c2b5fc ️ perf: use antd cssvar mode to improve performance (#4446)
* try cssvar

* Update package.json
2024-10-22 22:24:48 +08:00
renovate[bot] f338b10ba6 Update dependency zustand to v5 (#4421)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 20:09:44 +08:00
semantic-release-bot 80ebb25841 🔖 chore(release): v1.22.17 [skip ci]
### [Version&nbsp;1.22.17](https://github.com/lobehub/lobe-chat/compare/v1.22.16...v1.22.17)
<sup>Released on **2024-10-22**</sup>

#### ♻ Code Refactoring

- **misc**: Fix dynamic import in rsc layout.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Fix dynamic import in rsc layout, closes [#4445](https://github.com/lobehub/lobe-chat/issues/4445) ([011d62a](https://github.com/lobehub/lobe-chat/commit/011d62a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-22 07:30:43 +00:00
Arvin Xu 011d62a1ec ♻️ refactor: fix dynamic import in rsc layout (#4445) 2024-10-22 15:23:16 +08:00
renovate[bot] f104f65798 Update pnpm to v9.12.2 (#4417)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 13:45:21 +08:00
renovate[bot] 45f8faeae1 Update dependency drizzle-kit to ^0.26.0 (#4418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 10:44:29 +08:00
renovate[bot] ab8a820393 Update dependency drizzle-orm to ^0.35.0 (#4419)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 10:44:18 +08:00
Arvin Xu 655f99be9a 🎨 chore: clean deps (#4442) 2024-10-22 09:00:47 +08:00
semantic-release-bot d47a444e55 🔖 chore(release): v1.22.16 [skip ci]
### [Version&nbsp;1.22.16](https://github.com/lobehub/lobe-chat/compare/v1.22.15...v1.22.16)
<sup>Released on **2024-10-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix azure-ad.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix azure-ad, closes [#4438](https://github.com/lobehub/lobe-chat/issues/4438) ([8077317](https://github.com/lobehub/lobe-chat/commit/8077317))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-21 15:14:20 +00:00
Arvin Xu 8077317299 🐛 fix: fix azure-ad (#4438) 2024-10-21 23:06:58 +08:00
Arvin Xu ea725b9121 🌐 chore: update i18n (#4437) 2024-10-21 22:37:17 +08:00
lobehubbot 0c53a83ad7 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-21 14:17:19 +00:00
semantic-release-bot 54a0027eb0 🔖 chore(release): v1.22.15 [skip ci]
### [Version&nbsp;1.22.15](https://github.com/lobehub/lobe-chat/compare/v1.22.14...v1.22.15)
<sup>Released on **2024-10-21**</sup>

#### ♻ Code Refactoring

- **misc**: Update format utils and shared layout.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Update format utils and shared layout, closes [#4431](https://github.com/lobehub/lobe-chat/issues/4431) ([56ed073](https://github.com/lobehub/lobe-chat/commit/56ed073))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-21 14:16:22 +00:00
CanisMinor 56ed073941 ♻️ refactor: Update format utils and shared layout (#4431)
* 🔧 chore: Update format utils

* 💄 style: Update layout
2024-10-21 22:08:45 +08:00
semantic-release-bot fc1d0a6869 🔖 chore(release): v1.22.14 [skip ci]
### [Version&nbsp;1.22.14](https://github.com/lobehub/lobe-chat/compare/v1.22.13...v1.22.14)
<sup>Released on **2024-10-20**</sup>

#### 💄 Styles

- **misc**: Update wenxin 4.0 turbo model to latest.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update wenxin 4.0 turbo model to latest, closes [#4428](https://github.com/lobehub/lobe-chat/issues/4428) ([3389fbb](https://github.com/lobehub/lobe-chat/commit/3389fbb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-20 18:29:00 +00:00
renovate[bot] d8de6ced39 Update dependency @langchain/community to ^0.3.0 (#3968)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-21 02:21:39 +08:00
gomico 5963a3d408 📝 docs: Update docker.zh-CN.mdx (#4391)
* Update `docs/self-hosting/server-database/docker.zh-CN.mdx`

* Update docker.zh-CN.mdx
2024-10-21 02:20:24 +08:00
LovelyGuYiMeng 3389fbb1c3 💄 style: update wenxin 4.0 turbo model to latest (#4428)
* 💄 style: update wenxin 4.0 turbo model to latest

* Update mistral.ts
2024-10-21 02:18:18 +08:00
semantic-release-bot 14f16b122f 🔖 chore(release): v1.22.13 [skip ci]
### [Version&nbsp;1.22.13](https://github.com/lobehub/lobe-chat/compare/v1.22.12...v1.22.13)
<sup>Released on **2024-10-20**</sup>

#### 💄 Styles

- **misc**: Add Ministral model, update Together AI model list, add function call & vision.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Ministral model, closes [#4427](https://github.com/lobehub/lobe-chat/issues/4427) ([2042df8](https://github.com/lobehub/lobe-chat/commit/2042df8))
* **misc**: Update Together AI model list, add function call & vision, closes [#4393](https://github.com/lobehub/lobe-chat/issues/4393) ([d7fbf1b](https://github.com/lobehub/lobe-chat/commit/d7fbf1b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-20 16:10:48 +00:00
LovelyGuYiMeng 2042df8adb 💄 style: add Ministral model (#4427)
* Update zhipu.ts

* Update hunyuan.ts

* Update mistral.ts

* Update mistral.ts

* Update mistral.ts
2024-10-21 00:03:21 +08:00
Zhijie He d7fbf1b1fa 💄 style: update Together AI model list, add function call & vision (#4393)
* 💄 style: update Together AI model list, add function call & vision

* 🐛 fix: fix typo

* 🐛 fix: fix typo in GitHub providers (`Phi-3.5-mini-instruct`)
2024-10-21 00:03:10 +08:00
semantic-release-bot 2a2b8d8521 🔖 chore(release): v1.22.12 [skip ci]
### [Version&nbsp;1.22.12](https://github.com/lobehub/lobe-chat/compare/v1.22.11...v1.22.12)
<sup>Released on **2024-10-20**</sup>

#### 💄 Styles

- **misc**: Add Llama 3.1 Nemotron 70B model & reorder some provider model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Llama 3.1 Nemotron 70B model & reorder some provider model list, closes [#4424](https://github.com/lobehub/lobe-chat/issues/4424) ([9355a3d](https://github.com/lobehub/lobe-chat/commit/9355a3d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-20 14:07:05 +00:00
LovelyGuYiMeng 9355a3dc35 💄 style: add Llama 3.1 Nemotron 70B model & reorder some provider model list (#4424)
* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update moonshot.ts

* Update stepfun.ts

* Update zeroone.ts

* Update zhipu.ts

* Update zhipu.ts

* Update zhipu.ts
2024-10-20 21:59:31 +08:00
semantic-release-bot 5d284d5f2c 🔖 chore(release): v1.22.11 [skip ci]
### [Version&nbsp;1.22.11](https://github.com/lobehub/lobe-chat/compare/v1.22.10...v1.22.11)
<sup>Released on **2024-10-20**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor azure ad to ms entra id.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor azure ad to ms entra id, closes [#4168](https://github.com/lobehub/lobe-chat/issues/4168) ([4fa9588](https://github.com/lobehub/lobe-chat/commit/4fa9588))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-20 13:00:59 +00:00
EINDEX 4fa95881cc ♻️ refactor: refactor azure ad to ms entra id (#4168)
* 📝 docs: update entra id sso document

*  feat: support microsoft-entra-id sso login

* 📝 docs: update azure-ad releated document

* 🐛 fix: remove useless code.

* fix doc

* remove useless code

* remove useless env

* remove useless env
2024-10-20 20:53:54 +08:00
lobehubbot d07d8a81a0 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-20 03:47:24 +00:00
semantic-release-bot 035c38a464 🔖 chore(release): v1.22.10 [skip ci]
### [Version&nbsp;1.22.10](https://github.com/lobehub/lobe-chat/compare/v1.22.9...v1.22.10)
<sup>Released on **2024-10-20**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-20 03:46:19 +00:00
Arvin Xu f68154ec88 👷 build: fix vercel build (#4423) 2024-10-20 11:38:57 +08:00
lyh_rain e4666531fc 📝 docs(self hosting): Add deployment link for Alibaba Cloud international-site (#4368) 2024-10-20 11:28:59 +08:00
semantic-release-bot 92bf98a4b4 🔖 chore(release): v1.22.9 [skip ci]
### [Version&nbsp;1.22.9](https://github.com/lobehub/lobe-chat/compare/v1.22.8...v1.22.9)
<sup>Released on **2024-10-18**</sup>

#### 💄 Styles

- **misc**: Update Fireworks AI model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Fireworks AI model list, closes [#4394](https://github.com/lobehub/lobe-chat/issues/4394) ([fe8ffdd](https://github.com/lobehub/lobe-chat/commit/fe8ffdd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-18 15:17:32 +00:00
Jason 3aec08330c 📝 docs: add Novita AI in zh-CN readme (#4387) 2024-10-18 23:09:55 +08:00
Zhijie He fe8ffddc6e 💄 style: update Fireworks AI model list (#4394) 2024-10-18 23:09:09 +08:00
semantic-release-bot 433f70d6f1 🔖 chore(release): v1.22.8 [skip ci]
### [Version&nbsp;1.22.8](https://github.com/lobehub/lobe-chat/compare/v1.22.7...v1.22.8)
<sup>Released on **2024-10-17**</sup>

#### 💄 Styles

- **misc**: Add Yi-Lightning model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Yi-Lightning model, closes [#4390](https://github.com/lobehub/lobe-chat/issues/4390) ([9e9fb9a](https://github.com/lobehub/lobe-chat/commit/9e9fb9a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-17 13:59:58 +00:00
sxjeru 9e9fb9a482 💄 style: Add Yi-Lightning model (#4390)
* Update zeroone.ts

* Update zeroone.ts

* Update zeroone.ts

* Update zeroone.ts

* Update zeroone.ts
2024-10-17 21:52:19 +08:00
semantic-release-bot 2b7bc5011a 🔖 chore(release): v1.22.7 [skip ci]
### [Version&nbsp;1.22.7](https://github.com/lobehub/lobe-chat/compare/v1.22.6...v1.22.7)
<sup>Released on **2024-10-17**</sup>

#### 💄 Styles

- **misc**: Add qwen vision model & update qwen2.5 72b to 128k for siliconcloud.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add qwen vision model & update qwen2.5 72b to 128k for siliconcloud, closes [#4380](https://github.com/lobehub/lobe-chat/issues/4380) ([e8c009b](https://github.com/lobehub/lobe-chat/commit/e8c009b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-17 04:38:19 +00:00
LovelyGuYiMeng e8c009b1ba 💄 style: add qwen vision model & update qwen2.5 72b to 128k for siliconcloud (#4380)
* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update huggingface.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts
2024-10-17 12:30:59 +08:00
lobehubbot 41c55f88fd 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-15 04:08:46 +00:00
Arthals e189e5c589 📝docs: fix style tag bug (#4376) 2024-10-15 12:01:28 +08:00
lobehubbot 6facd4fbe2 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-14 13:57:44 +00:00
Arthals 2820697103 📝docs: align variable names (#4369) 2024-10-14 21:50:22 +08:00
Dnaynu 04b58f8ad4 📝 docs: Fix typo in README (#4366)
Corrected "Lean more" to "Learn more" in [README.md].

This pull request addresses a minor typo found in repository. The typo has been corrected to improve clarity and maintain the quality of the documentation.

This change is purely cosmetic and does not affect functionality.
2024-10-14 11:22:28 +08:00
Lumia 6d07f53c86 📝 docs: Update cloudflare-zero-trust zh-CN (#4363) 2024-10-14 10:26:39 +08:00
semantic-release-bot 3bd7791a9f 🔖 chore(release): v1.22.6 [skip ci]
### [Version&nbsp;1.22.6](https://github.com/lobehub/lobe-chat/compare/v1.22.5...v1.22.6)
<sup>Released on **2024-10-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix images not go in to chat context.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix images not go in to chat context, closes [#4361](https://github.com/lobehub/lobe-chat/issues/4361) ([f17ab49](https://github.com/lobehub/lobe-chat/commit/f17ab49))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-13 18:05:31 +00:00
Arvin Xu f17ab49772 🐛 fix: fix images not go in to chat context (#4361)
* 💡 chore: add jsdoc

* 🐛 fix: fix the image not in ai chat message

* 💡 chore: add jsdoc

* 🐛 fix: fix
2024-10-14 01:58:10 +08:00
semantic-release-bot ed7e4e37d8 🔖 chore(release): v1.22.5 [skip ci]
### [Version&nbsp;1.22.5](https://github.com/lobehub/lobe-chat/compare/v1.22.4...v1.22.5)
<sup>Released on **2024-10-13**</sup>

#### 💄 Styles

- **misc**: Reorder github model list & updata info & add new model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Reorder github model list & updata info & add new model, closes [#4360](https://github.com/lobehub/lobe-chat/issues/4360) ([e7767a5](https://github.com/lobehub/lobe-chat/commit/e7767a5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-13 17:25:08 +00:00
LovelyGuYiMeng e7767a569e 💄 style: Reorder github model list & updata info & add new model (#4360)
* Update huggingface.ts

* Update github.ts

* Update github.ts

* Update github.ts

* Update huggingface.ts
2024-10-14 01:17:44 +08:00
semantic-release-bot 6965943719 🔖 chore(release): v1.22.4 [skip ci]
### [Version&nbsp;1.22.4](https://github.com/lobehub/lobe-chat/compare/v1.22.3...v1.22.4)
<sup>Released on **2024-10-13**</sup>

#### ♻ Code Refactoring

- **misc**: Separate message slice and aiChat slice.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Separate message slice and aiChat slice, closes [#4359](https://github.com/lobehub/lobe-chat/issues/4359) ([7d037f6](https://github.com/lobehub/lobe-chat/commit/7d037f6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-13 16:02:45 +00:00
Arvin Xu 7d037f67ba ♻️ refactor: separate message slice and aiChat slice (#4359)
* ♻️ refactor: separate message slice and ai-chat slice

* 🎨 chore: clean code

* ♻️ refactor: refactor the initialState

* ♻️ refactor: refactor the initialState

*  test: add more tests
2024-10-13 23:55:29 +08:00
semantic-release-bot 99308de4fc 🔖 chore(release): v1.22.3 [skip ci]
### [Version&nbsp;1.22.3](https://github.com/lobehub/lobe-chat/compare/v1.22.2...v1.22.3)
<sup>Released on **2024-10-13**</sup>

#### 💄 Styles

- **misc**: Support multi-windows for PWA.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Support multi-windows for PWA, closes [#4334](https://github.com/lobehub/lobe-chat/issues/4334) ([0284606](https://github.com/lobehub/lobe-chat/commit/0284606))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-13 14:33:51 +00:00
BrandonStudio 0284606213 💄 style: support multi-windows for PWA (#4334)
Support multi-window on desktop devices
2024-10-13 22:26:33 +08:00
semantic-release-bot 55646232f7 🔖 chore(release): v1.22.2 [skip ci]
### [Version&nbsp;1.22.2](https://github.com/lobehub/lobe-chat/compare/v1.22.1...v1.22.2)
<sup>Released on **2024-10-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Allow use email as name in logto.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Allow use email as name in logto, closes [#4350](https://github.com/lobehub/lobe-chat/issues/4350) ([d5a046a](https://github.com/lobehub/lobe-chat/commit/d5a046a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-13 07:55:12 +00:00
Yao Cai d5a046a9e5 🐛 fix: allow use email as name in logto (#4350) 2024-10-13 15:47:51 +08:00
Arthals c04afbadaa 📝docs: docker compose project name (#4349) 2024-10-13 12:09:16 +08:00
Arthals 62cbf1c032 📝docs: add casdoor docker compose document (#4338)
* 📝docs: Casdoor

* 📝docs: Docker-compose

* 📝docs: Docker-compose

* 📝docs: English ver.

* 📝docs: Incorporate review suggestions

* 📝docs: Incorporate review suggestions
2024-10-13 10:49:20 +08:00
renovate[bot] 1873cc2cd2 Update pnpm to v9.12.1 (#4342)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-13 09:32:09 +08:00
renovate[bot] 4e8f3b98cb Update dependency @neondatabase/serverless to ^0.10.0 (#4343)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-13 09:31:49 +08:00
renovate[bot] 7f2a516040 Update dependency drizzle-kit to ^0.25.0 (#4344)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-13 09:31:30 +08:00
renovate[bot] 65c654812f Update dependency drizzle-orm to ^0.34.0 (#4345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-13 09:31:01 +08:00
semantic-release-bot a733c9651f 🔖 chore(release): v1.22.1 [skip ci]
### [Version&nbsp;1.22.1](https://github.com/lobehub/lobe-chat/compare/v1.22.0...v1.22.1)
<sup>Released on **2024-10-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix function calling issue, disable stream when using tools.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix function calling issue, disable stream when using tools, closes [#4335](https://github.com/lobehub/lobe-chat/issues/4335) ([9f8e0a9](https://github.com/lobehub/lobe-chat/commit/9f8e0a9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-12 16:40:14 +00:00
Zhijie He 9f8e0a9258 🐛 fix: fix function calling issue, disable stream when using tools (#4335) 2024-10-13 00:32:58 +08:00
semantic-release-bot acfbbf2562 🔖 chore(release): v1.22.0 [skip ci]
## [Version&nbsp;1.22.0](https://github.com/lobehub/lobe-chat/compare/v1.21.16...v1.22.0)
<sup>Released on **2024-10-12**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the chat webapi.

####  Features

- **misc**: Add HuggingFace Model Provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the chat webapi, closes [#4339](https://github.com/lobehub/lobe-chat/issues/4339) ([4722444](https://github.com/lobehub/lobe-chat/commit/4722444))

#### What's improved

* **misc**: Add HuggingFace Model Provider, closes [#4225](https://github.com/lobehub/lobe-chat/issues/4225) ([d310931](https://github.com/lobehub/lobe-chat/commit/d310931))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-12 14:42:37 +00:00
Arvin Xu d3109318c8 feat: add HuggingFace Model Provider (#4225)
* 🚧 wip: add hf runtime

* 💄 style: add HUGGINGFACE_MODEL_LIST

* 🚨 chore: fix lint

* 🎨 chore: fix code

* support handle stream error

* fix

* add i18n

* refactor with openai runtime

* refactor: refactor the HF implement

* 🐛 fix: fix

* 🐛 fix: fix

* 🐛 fix: fix
2024-10-12 22:35:13 +08:00
Arvin Xu 4722444a80 ♻️ refactor: refactor the chat webapi (#4339) 2024-10-12 22:34:55 +08:00
TC 8bb3c8f641 📝 docs: update wenxin provider docs (#4333)
* 📝 docs: update docs for providers

* 📝 docs: update provider doc
2024-10-12 14:47:53 +08:00
lobehubbot 609cf5b3f8 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-12 06:35:33 +00:00
lyh_rain 42690293c3 📝 docs(self-hosting): Add deployment link for Alibaba Cloud' domestic-site (#4331)
Co-authored-by: bupt_rain <lyh376240@alibaba-inc.com>
2024-10-12 14:28:06 +08:00
renovate[bot] 5f4dcab95b Update dependency langchain to ^0.3.0 (#3970)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-12 11:27:24 +08:00
semantic-release-bot 43a89b9d89 🔖 chore(release): v1.21.16 [skip ci]
### [Version&nbsp;1.21.16](https://github.com/lobehub/lobe-chat/compare/v1.21.15...v1.21.16)
<sup>Released on **2024-10-12**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-12 02:56:00 +00:00
stone-w4tch3r e1cbe81b91 👷 build: Simplify custom builds for NEXT_PUBLIC vars (#4252)
* feat: add build-args support for NEXT_PUBLIC_xxx environment variables

* build: Add GitHub Action to build and publish Docker image with custom NEXT_PUBLIC variable

* fix: Add NEXT_PUBLIC_BASE_PATH to Dockerfile.database

* feat: use base lobe-caht repository for build and set manual trigger

* docs: add guide for building custom image with overridden NEXT_PUBLIC variables

* doc: added comments to custom-build.yml

* doc: improved custom build instructions

* fix: moved workflow to documentation

* fix: removed NEXT_PUBLIC_S3_DOMAIN
2024-10-12 10:48:48 +08:00
semantic-release-bot 69583b14b4 🔖 chore(release): v1.21.15 [skip ci]
### [Version&nbsp;1.21.15](https://github.com/lobehub/lobe-chat/compare/v1.21.14...v1.21.15)
<sup>Released on **2024-10-12**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-12 02:38:26 +00:00
Zhijie He f2ee6307ac 💄styles: update siliconflow models info (function_call) (#4329) 2024-10-12 10:30:45 +08:00
dupl 1edd6f61f4 👷 build: fix netlify deployment failed (#4328) 2024-10-12 10:29:42 +08:00
semantic-release-bot 71877240a4 🔖 chore(release): v1.21.14 [skip ci]
### [Version&nbsp;1.21.14](https://github.com/lobehub/lobe-chat/compare/v1.21.13...v1.21.14)
<sup>Released on **2024-10-12**</sup>

#### 💄 Styles

- **misc**: Fix artifacts render markdown.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix artifacts render markdown, closes [#4327](https://github.com/lobehub/lobe-chat/issues/4327) ([6bb6ea6](https://github.com/lobehub/lobe-chat/commit/6bb6ea6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-12 00:45:15 +00:00
Arvin Xu 6bb6ea6c9d 💄 style: fix artifacts render markdown (#4327) 2024-10-12 09:37:28 +09:00
TC eda92e20d9 📝 docs: update docs for providers (#4326) 2024-10-12 00:43:32 +08:00
semantic-release-bot 23c5bf7bc6 🔖 chore(release): v1.21.13 [skip ci]
### [Version&nbsp;1.21.13](https://github.com/lobehub/lobe-chat/compare/v1.21.12...v1.21.13)
<sup>Released on **2024-10-11**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor agent runtime implement of stream and ZHIPU provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor agent runtime implement of stream and ZHIPU provider, closes [#4323](https://github.com/lobehub/lobe-chat/issues/4323) ([59661a1](https://github.com/lobehub/lobe-chat/commit/59661a1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-11 15:58:18 +00:00
Arvin Xu 59661a1735 ♻️ refactor: refactor agent runtime implement of stream and ZHIPU provider (#4323)
* ♻️ refactor: refactor stream implement

* ♻️ refactor: refactor the Zhipu AI to the OpenAICompatible

* 🎨 chore: clean wenxin code

* 🐛 fix: fix ZHIPU payload
2024-10-11 23:50:55 +08:00
semantic-release-bot e68f81f947 🔖 chore(release): v1.21.12 [skip ci]
### [Version&nbsp;1.21.12](https://github.com/lobehub/lobe-chat/compare/v1.21.11...v1.21.12)
<sup>Released on **2024-10-11**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the jwt code.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the jwt code, closes [#4322](https://github.com/lobehub/lobe-chat/issues/4322) ([b7258b9](https://github.com/lobehub/lobe-chat/commit/b7258b9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-11 13:11:58 +00:00
Arvin Xu b7258b95e5 ♻️ refactor: refactor the jwt code (#4322)
* ♻️ refactor: refactor the jwt code

* clean

* fix lint
2024-10-11 21:04:26 +08:00
renovate[bot] 16bce6dc3f Update dependency @anthropic-ai/sdk to ^0.29.0 (#4266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-11 17:00:54 +08:00
semantic-release-bot 78a937a96e 🔖 chore(release): v1.21.11 [skip ci]
### [Version&nbsp;1.21.11](https://github.com/lobehub/lobe-chat/compare/v1.21.10...v1.21.11)
<sup>Released on **2024-10-11**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the backend code for better organization.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the backend code for better organization, closes [#4287](https://github.com/lobehub/lobe-chat/issues/4287) ([9a369ac](https://github.com/lobehub/lobe-chat/commit/9a369ac))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-11 08:53:23 +00:00
Arvin Xu 9a369ac088 ♻️ refactor: refactor the backend code for better organization (#4287)
* ♻️ refactor: move AgentRuntime

* ♻️ refactor: move errorResponse

* ♻️ refactor: move auth middleware

* ♻️ refactor: move createBizOpenAI

* 🐛 fix: fix rewriteQuery

* fix
2024-10-11 16:45:39 +08:00
semantic-release-bot 04af49a7b6 🔖 chore(release): v1.21.10 [skip ci]
### [Version&nbsp;1.21.10](https://github.com/lobehub/lobe-chat/compare/v1.21.9...v1.21.10)
<sup>Released on **2024-10-11**</sup>

#### 💄 Styles

- **misc**: Updata gpt-4o model info.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Updata gpt-4o model info, closes [#4318](https://github.com/lobehub/lobe-chat/issues/4318) ([fa27ddf](https://github.com/lobehub/lobe-chat/commit/fa27ddf))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-11 07:32:46 +00:00
LovelyGuYiMeng c68ef380c3 🔨 chore: fix gpt-4o model ci (#4319)
* Update openai.ts

* Update openrouter.ts

* Update modelProvider.test.ts

* Update index.test.ts.snap
2024-10-11 15:25:20 +08:00
LovelyGuYiMeng fa27ddf20d 💄 style: updata gpt-4o model info (#4318)
* Update openai.ts

* Update openrouter.ts
2024-10-11 14:31:41 +08:00
semantic-release-bot e52a3e6082 🔖 chore(release): v1.21.9 [skip ci]
### [Version&nbsp;1.21.9](https://github.com/lobehub/lobe-chat/compare/v1.21.8...v1.21.9)
<sup>Released on **2024-10-10**</sup>

#### 💄 Styles

- **misc**: Update qwen vl model to latest.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update qwen vl model to latest, closes [#4307](https://github.com/lobehub/lobe-chat/issues/4307) ([25a7ea2](https://github.com/lobehub/lobe-chat/commit/25a7ea2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-10 15:27:59 +00:00
LovelyGuYiMeng 25a7ea2f96 💄 style: update qwen vl model to latest (#4307)
* Update qwen.ts

* Update qwen.ts
2024-10-10 23:20:28 +08:00
lobehubbot 9bfd64e35a 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-10 11:48:11 +00:00
Yao Cai b36d466cb5 ♻️ docs: Maintainable configurations for casdoor initialization (#4259)
* ♻️ refactor: make init_data.json visible

* ♻️ refactor: remove unused webapi records

* ♻️ refactor: remove unused signin methods

* :refactor: recycle: remove unused tokens

* ♻️ refactor: remove unused providers

* 🐛 fix: wrong redirectUrls

* 💄 style: use lobe branding

* 👷 ci: specific docker compose file version

* ♻️ refactor: remove session

* ♻️ refactor: enableLinkWithEmail

*  revert: - version for docker compose

* 🐛 fix: command not work on newest docker
2024-10-10 19:40:25 +08:00
lobehubbot e653418c67 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-08 14:57:20 +00:00
semantic-release-bot a86b725563 🔖 chore(release): v1.21.8 [skip ci]
### [Version&nbsp;1.21.8](https://github.com/lobehub/lobe-chat/compare/v1.21.7...v1.21.8)
<sup>Released on **2024-10-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix auto rewrite query when user message is too long.

#### 💄 Styles

- **misc**: Support yml in file chunk.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix auto rewrite query when user message is too long, closes [#4288](https://github.com/lobehub/lobe-chat/issues/4288) ([a2d3d32](https://github.com/lobehub/lobe-chat/commit/a2d3d32))

#### Styles

* **misc**: Support yml in file chunk, closes [#4283](https://github.com/lobehub/lobe-chat/issues/4283) ([cec7ec0](https://github.com/lobehub/lobe-chat/commit/cec7ec0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-08 14:56:17 +00:00
彼方 cec7ec0ea3 💄 style: support yml in file chunk (#4283)
新增.yml格式,并且删除重复的.md格式
2024-10-08 22:48:55 +08:00
Arvin Xu a2d3d32c3b 🐛 fix: fix auto rewrite query when user message is too long (#4288)
* 🐛 fix: fix rewriteQuery

* 🐛 fix: fix rewriteQuery
2024-10-08 22:47:50 +08:00
semantic-release-bot 7d1e5c46ae 🔖 chore(release): v1.21.7 [skip ci]
### [Version&nbsp;1.21.7](https://github.com/lobehub/lobe-chat/compare/v1.21.6...v1.21.7)
<sup>Released on **2024-10-08**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor `text-to-image` endpoint.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor `text-to-image` endpoint, closes [#4272](https://github.com/lobehub/lobe-chat/issues/4272) ([0c02073](https://github.com/lobehub/lobe-chat/commit/0c02073))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-08 00:26:23 +00:00
Arvin Xu 0c02073629 ♻️ refactor: refactor text-to-image endpoint (#4272) 2024-10-08 08:19:10 +08:00
renovate[bot] 8a0e45cc06 Update pnpm to v9.12.0 (#4267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 22:14:00 +08:00
lobehubbot 0c322835a9 📝 docs(bot): Auto sync agents & plugin to readme 2024-10-05 16:31:50 +00:00
semantic-release-bot 7e334aa4b7 🔖 chore(release): v1.21.6 [skip ci]
### [Version&nbsp;1.21.6](https://github.com/lobehub/lobe-chat/compare/v1.21.5...v1.21.6)
<sup>Released on **2024-10-05**</sup>

#### ♻ Code Refactoring

- **misc**: Move backend api to (backend) folder group.

#### 🐛 Bug Fixes

- **misc**: Fix txt-to-image api.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move backend api to (backend) folder group, closes [#4262](https://github.com/lobehub/lobe-chat/issues/4262) ([d8afb46](https://github.com/lobehub/lobe-chat/commit/d8afb46))

#### What's fixed

* **misc**: Fix txt-to-image api, closes [#4264](https://github.com/lobehub/lobe-chat/issues/4264) ([d1ff4ba](https://github.com/lobehub/lobe-chat/commit/d1ff4ba))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-05 16:30:47 +00:00
Arvin Xu d1ff4ba154 🐛 fix: fix txt-to-image api (#4264) 2024-10-06 00:23:23 +08:00
Arvin Xu d8afb467d8 ♻️ refactor: move backend api to (backend) folder group (#4262)
* ♻️ refactor: move backend api to (backend) folder group

*  test: fix tests
2024-10-06 00:16:54 +08:00
semantic-release-bot bdc4f4e719 🔖 chore(release): v1.21.5 [skip ci]
### [Version&nbsp;1.21.5](https://github.com/lobehub/lobe-chat/compare/v1.21.4...v1.21.5)
<sup>Released on **2024-10-05**</sup>

#### 💄 Styles

- **misc**: Support shadcn in Artifacts.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Support shadcn in Artifacts, closes [#4256](https://github.com/lobehub/lobe-chat/issues/4256) ([863bae5](https://github.com/lobehub/lobe-chat/commit/863bae5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-05 13:59:49 +00:00
Arvin Xu 863bae54f0 💄 style: support shadcn in Artifacts (#4256)
* 🐛 fix: support shadcn

* 🐛 fix: support shadcn

* ♻️ refactor: improve shadcn code
2024-10-05 21:52:24 +08:00
semantic-release-bot 3bf7975000 🔖 chore(release): v1.21.4 [skip ci]
### [Version&nbsp;1.21.4](https://github.com/lobehub/lobe-chat/compare/v1.21.3...v1.21.4)
<sup>Released on **2024-10-02**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix recharts deps in the Artifacts React Renderer.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix recharts deps in the Artifacts React Renderer, closes [#4245](https://github.com/lobehub/lobe-chat/issues/4245) ([a120d21](https://github.com/lobehub/lobe-chat/commit/a120d21))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-02 08:15:15 +00:00
Arvin Xu a120d21de6 🐛 fix: fix recharts deps in the Artifacts React Renderer (#4245) 2024-10-02 16:07:43 +08:00
semantic-release-bot 54f6912773 🔖 chore(release): v1.21.3 [skip ci]
### [Version&nbsp;1.21.3](https://github.com/lobehub/lobe-chat/compare/v1.21.2...v1.21.3)
<sup>Released on **2024-10-01**</sup>

#### ♻ Code Refactoring

- **misc**: Move most `/api` to `/webapi`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move most `/api` to `/webapi`, closes [#4233](https://github.com/lobehub/lobe-chat/issues/4233) ([542c359](https://github.com/lobehub/lobe-chat/commit/542c359))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-01 09:49:08 +00:00
Arvin Xu 542c359f66 ♻️ refactor: move most /api to /webapi (#4233)
* ♻️ refactor: /api to /webapi

*  test: fix tests
2024-10-01 17:41:38 +08:00
semantic-release-bot 160b49090e 🔖 chore(release): v1.21.2 [skip ci]
### [Version&nbsp;1.21.2](https://github.com/lobehub/lobe-chat/compare/v1.21.1...v1.21.2)
<sup>Released on **2024-10-01**</sup>

#### 💄 Styles

- **misc**: Adjust Wenxin icon size.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Adjust Wenxin icon size, closes [#4229](https://github.com/lobehub/lobe-chat/issues/4229) ([6ae79ce](https://github.com/lobehub/lobe-chat/commit/6ae79ce))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-10-01 05:04:50 +00:00
Zhijie He 08ce3f3a10 👷 build: set --dns-result-order=ipv4first as default (#4231) 2024-10-01 12:57:39 +08:00
Zhijie He 6ae79ce434 💄 style: adjust Wenxin icon size (#4229)
* 💄 style: adjust Wenxin icon size

* 💄 style: add extra "一言" for Wenxin

* 🐛 fix: fix `Error: Props should be sorted alphabetically  react/jsx-sort-props`

* 💄 style: remove title

* 🐛 fix: fix build error
2024-10-01 12:52:41 +08:00
lobehubbot 7f50ddac7c 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-30 12:47:28 +00:00
semantic-release-bot 592b63130c 🔖 chore(release): v1.21.1 [skip ci]
### [Version&nbsp;1.21.1](https://github.com/lobehub/lobe-chat/compare/v1.21.0...v1.21.1)
<sup>Released on **2024-09-30**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-30 12:46:25 +00:00
Zhijie He 7df27e8a87 👷 build: enhance Self-host CA usage & remove TLS detection (#4223)
* 👷 build: enhance TLS cert checking & Self-host CA usage

* 👷 build: add Wenxin ENV

* 🔨 chore: handle timeout

* Update startServer.js

* 👷 build: remove TLS detection
2024-09-30 20:38:22 +08:00
semantic-release-bot ca9deaae52 🔖 chore(release): v1.21.0 [skip ci]
## [Version&nbsp;1.21.0](https://github.com/lobehub/lobe-chat/compare/v1.20.8...v1.21.0)
<sup>Released on **2024-09-30**</sup>

####  Features

- **misc**: Add wenxin model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add wenxin model provider, closes [#4018](https://github.com/lobehub/lobe-chat/issues/4018) ([4483599](https://github.com/lobehub/lobe-chat/commit/4483599))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-30 06:56:06 +00:00
Arvin Xu 4483599683 feat: add wenxin model provider (#4018)
* add wenxinyiyan

* fix locale

* 🐛 fix: support weinxin error handle

* 🚨 chore: fix lint

* 🚨 chore: fix lint

* 优化 api key 提示弹窗

* Update wenxin.ts

* Update wenxin.ts

* Update providers.tsx

* Update index.ts

* Update wenxin.ts

* add i18n

* update i18n

* fix QuotaLimitReached

* add quota limit message

* fix i18n

* fix i18n

* fix i18n

* fix ERNIE-3.5 id

* fix rate limit code and smoothing

---------

Co-authored-by: LovelyGuYiMeng <76251800+LovelyGuYiMeng@users.noreply.github.com>
2024-09-30 14:48:33 +08:00
semantic-release-bot 82b9bbc746 🔖 chore(release): v1.20.8 [skip ci]
### [Version&nbsp;1.20.8](https://github.com/lobehub/lobe-chat/compare/v1.20.7...v1.20.8)
<sup>Released on **2024-09-30**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-30 03:35:55 +00:00
Zhijie He 8e87a4ae59 👷 build: remove unnecessary SSL judgments (#4219)
* ♻️ refactor: remove unnecessary SSL judgments

* 🔨 chore: handle `ERR_TLS_CERT_ALTNAME_INVALID` error
2024-09-30 11:29:05 +08:00
Arvin Xu 3f4fe82207 🔨 chore: upgrade shiki to 1.21.0 (#4218) 2024-09-30 11:22:15 +08:00
semantic-release-bot 96eb9da9cf 🔖 chore(release): v1.20.7 [skip ci]
### [Version&nbsp;1.20.7](https://github.com/lobehub/lobe-chat/compare/v1.20.6...v1.20.7)
<sup>Released on **2024-09-29**</sup>

#### 💄 Styles

- **misc**: Update groq model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update groq model list, closes [#4195](https://github.com/lobehub/lobe-chat/issues/4195) ([ef5164d](https://github.com/lobehub/lobe-chat/commit/ef5164d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-29 19:05:00 +00:00
LovelyGuYiMeng ef5164de6d 💄 style: update groq model list (#4195)
* Update groq.ts

* Update groq.ts
2024-09-30 02:57:50 +08:00
semantic-release-bot 8fa1140a4f 🔖 chore(release): v1.20.6 [skip ci]
### [Version&nbsp;1.20.6](https://github.com/lobehub/lobe-chat/compare/v1.20.5...v1.20.6)
<sup>Released on **2024-09-29**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-29 18:40:16 +00:00
Zhijie He fadbc41c01 👷 build: fix zeabur build (#4213)
* 👷 build: add `SKIP_DB_MIGRATION` ENV

* 🔨 chore: change logic

* 💄 style: update error output style

* Update startServer.js

* 👷 build: detect DB_MIGRATION_SCRIPT_PATH, if not exist then skip

* 🔨 chore: improve console log

* 🔨 chore: add skip reason

* 🐛 fix: fix fs calling error

* 🐛 fix: fix `proxychains` conf generate error

* 🔨 chore: fix catch error

* 🐛 fix: fix typo
2024-09-30 02:33:01 +08:00
lobehubbot 376261d3ba 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-29 18:19:29 +00:00
Zixu Zhen b3a2f80578 📝 docs: Prevent '#' and its subsequent comments from affecting the URL of S3 configuration (#4211)
* Prevent URL related comments in env files from affecting usage

* Prevent URL related comments in env files from affecting usage

* Prevent URL related comments in env files from affecting usage

* Prevent URL related comments in env files from affecting usage
2024-09-30 02:12:18 +08:00
semantic-release-bot 86736dbb09 🔖 chore(release): v1.20.5 [skip ci]
### [Version&nbsp;1.20.5](https://github.com/lobehub/lobe-chat/compare/v1.20.4...v1.20.5)
<sup>Released on **2024-09-29**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-29 03:40:41 +00:00
Lumia d05afb4a9f 📝 docs: Update docker-compose to use new LOGTO env (#4199)
* Update docker-compose.mdx

* Update docker-compose.zh-CN.mdx
2024-09-29 11:33:14 +08:00
Zhijie He 12dfead151 👷 build: optimize image size under glibc env (#4176) 2024-09-29 11:31:55 +08:00
semantic-release-bot 969f9a6b25 🔖 chore(release): v1.20.4 [skip ci]
### [Version&nbsp;1.20.4](https://github.com/lobehub/lobe-chat/compare/v1.20.3...v1.20.4)
<sup>Released on **2024-09-28**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-28 17:36:23 +00:00
CanisMinor d3f1fa6387 perf: remove some blur style to improve performance (#4085)
*  perf: Remove some blur style

* 💄 style: improve Conversation

* 💄 style: improve Conversation

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-09-29 01:29:20 +08:00
renovate[bot] 6b3e4306b9 Update dependency unstructured-client to ^0.18.0 (#4065)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-28 23:36:06 +08:00
Lumia 88dc3c9617 📝 docs: Add deployment using ZITADEL authentication services (#4081)
* Create docker-compose.yml for local deploy with zitadel

Create docker-compose.yml for local deploy with zitadel

* Create .env.zh-CN.example for local deploy with zitadel

Create .env.zh-CN.example for local deploy with zitadel

* Create .env.example for local deploy with zitadel

Create .env.example for local deploy with zitadel

* Update .env.zh-CN.example

* Create docker-compose.yml for self-hosting with zitadel

Create docker-compose.yml for self-hosting with zitadel

* Create .env.zh-CN.example for self-hosting deploy with zitadel

Create .env.zh-CN.example for self-hosting deploy with zitadel

* Create .env.example for self-host deploy with zitadel

Create .env.example for self-host deploy with zitadel

* Create zitadel-init-steps.yaml

* Create zitadel-config.yaml

* Update docker-compose.yml

* Update docker-compose.yml

* Create zitadel-config.yaml

* Create zitadel-init-steps.yaml

* Update .env.zh-CN.example

* Update .env.example

* Update .env.example

* Update .env.zh-CN.example

* Update zitadel-init-steps.yaml
2024-09-28 23:35:48 +08:00
semantic-release-bot 2c70b90b60 🔖 chore(release): v1.20.3 [skip ci]
### [Version&nbsp;1.20.3](https://github.com/lobehub/lobe-chat/compare/v1.20.2...v1.20.3)
<sup>Released on **2024-09-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve delete orphan chunks when delete files.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Improve delete orphan chunks when delete files, closes [#4179](https://github.com/lobehub/lobe-chat/issues/4179) ([f3e0ffe](https://github.com/lobehub/lobe-chat/commit/f3e0ffe))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-28 15:07:42 +00:00
Arvin Xu f3e0ffe433 🐛 fix: improve delete orphan chunks when delete files (#4179)
* 🐛 fix: make deleteOrphanChunks parallels

* 🐛 fix: make deleteOrphanChunks parallels
2024-09-28 23:00:30 +08:00
Caspian Zhao 9aa171213e 📝 docs: add new configuration item of clerk singup (#4188) 2024-09-28 18:31:28 +08:00
Lumia 164a5a0177 📝 docs: update model-provider document (#4181)
* Update model-provider.zh-CN.mdx

增加混元模型

* Update model-provider.mdx

add HUNYUAN Model
2024-09-28 18:30:00 +08:00
semantic-release-bot 302ceeae91 🔖 chore(release): v1.20.2 [skip ci]
### [Version&nbsp;1.20.2](https://github.com/lobehub/lobe-chat/compare/v1.20.1...v1.20.2)
<sup>Released on **2024-09-27**</sup>

#### 💄 Styles

- **misc**: Add zhipu glm-4-flashx model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add zhipu glm-4-flashx model, closes [#4173](https://github.com/lobehub/lobe-chat/issues/4173) ([b0c3abc](https://github.com/lobehub/lobe-chat/commit/b0c3abc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-27 13:20:12 +00:00
LovelyGuYiMeng b0c3abcc19 💄 style: add zhipu glm-4-flashx model (#4173)
* Update zhipu.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update zhipu.ts

* Update siliconcloud.ts
2024-09-27 21:12:51 +08:00
Arvin Xu 63ca869145 👷 build: revert #4025 (#4175)
This reverts commit 7eecb23d22.
2024-09-27 21:07:42 +08:00
semantic-release-bot 794ca8b0f3 🔖 chore(release): v1.20.1 [skip ci]
### [Version&nbsp;1.20.1](https://github.com/lobehub/lobe-chat/compare/v1.20.0...v1.20.1)
<sup>Released on **2024-09-27**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-27 12:48:23 +00:00
Zhijie He 7eecb23d22 👷 build: optimize image size under glibc env (#4025)
* 👷 build: optimize image size under `glibc` env

* 👷 build: add `startServer.js` as server launcher

* 🐛 fix: `PROXY_URL` missing

* 🔨 chore: exit if DB migration failed

* 🔨 chore: allow resolve ipv6 address

* 🔨 chore: rollback changes, cleanup code

* 🔨 chore: improve console log

* 🔨 chore: improve error print

* 👷 build: add `isValidSSL` function to check SSL cert

* 🔨 chore: handle `CERT_HAS_EXPIRED` error

* 🔨 chore: cleanup code

* 🔨 chore: improve console log

* 👷 build: check oss & auth issuer ssl connection before running

* 🔨 chore: improve console log

* 🔨 chore: change `SSL` to `TLS`

* 🐛 fix: fix `443` port not display in logs

* 🔨 chore: improve console output

* 🐛 fix: fix error catch

* 🔨 chore: handle corner case

* 👷 build: support self-signed SSL cert, switch to system-wide CA cert

* 🔨 chore: handle `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` error

* 🔨 chore: handle when `*_ISSUER` not existed

* 🔨 chore: handle non-https protocol, skip TLS checking

* 🔨 chore: improve console log

* 🐛 fix: fix proxychains logs not available when host is ip addr

* 👷 build: add DNS server self-check support, split DNS resolve function

* 🔨 chore: improve console.log

* 🔨 chore: print DNS server before db migration

* 🔨 chore: update `isValidIP` & `resolveHostIP` function, ready for IPv6

* 🐛 fix: fix error handle

* 👷 build: set `ENTRYPOINT` to `/bin/node`

* 👷 build: set full path for `proxychains` & `node`, ready for distroless

* 👷 build: pin node LTS version to 20
2024-09-27 20:41:06 +08:00
semantic-release-bot adb78c2877 🔖 chore(release): v1.20.0 [skip ci]
## [Version&nbsp;1.20.0](https://github.com/lobehub/lobe-chat/compare/v1.19.36...v1.20.0)
<sup>Released on **2024-09-27**</sup>

####  Features

- **misc**: Add Hunyuan(Tencent) model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Hunyuan(Tencent) model provider, closes [#4147](https://github.com/lobehub/lobe-chat/issues/4147) ([8ddb41b](https://github.com/lobehub/lobe-chat/commit/8ddb41b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-27 07:48:04 +00:00
Zhijie He 8ddb41b646 feat: add Hunyuan(Tencent) model provider (#4147)
*  feat: add Hunyuan(Tencent) model provider

* 💄 style: add `HUNYUAN_MODEL_LIST` support

* 💄 style: update model price & provider description

* 💄 style: enable `hunyuan-standard-256K` as default, sort model provider list

* 💄 style: update model tokens info

* 💄 style: update pricing

* 💄 style: update `hunyuan-turbo` model info
2024-09-27 15:40:02 +08:00
semantic-release-bot ac8de6bca9 🔖 chore(release): v1.19.36 [skip ci]
### [Version&nbsp;1.19.36](https://github.com/lobehub/lobe-chat/compare/v1.19.35...v1.19.36)
<sup>Released on **2024-09-27**</sup>

#### 💄 Styles

- **misc**: Add llama3.2 model for openrouter provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add llama3.2 model for openrouter provider, closes [#4151](https://github.com/lobehub/lobe-chat/issues/4151) ([6f1a966](https://github.com/lobehub/lobe-chat/commit/6f1a966))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-27 03:43:54 +00:00
LovelyGuYiMeng 6f1a966ef8 💄 style: add llama3.2 model for openrouter provider (#4151)
* Update openrouter.ts

* Update index.test.ts.snap

* Update openrouter.ts

* Update openrouter.ts

* Update openrouter.ts

* Update openrouter.ts
2024-09-27 11:36:42 +08:00
lobehubbot 4619cbf12f 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-27 02:24:16 +00:00
semantic-release-bot a02954dfad 🔖 chore(release): v1.19.35 [skip ci]
### [Version&nbsp;1.19.35](https://github.com/lobehub/lobe-chat/compare/v1.19.34...v1.19.35)
<sup>Released on **2024-09-27**</sup>

#### 💄 Styles

- **misc**: Add o1-preview and o1-mini model to github model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add o1-preview and o1-mini model to github model provider, closes [#4127](https://github.com/lobehub/lobe-chat/issues/4127) ([1e4d016](https://github.com/lobehub/lobe-chat/commit/1e4d016))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-27 02:23:07 +00:00
ymefg 1e4d016306 💄 style: add o1-preview and o1-mini model to github model provider (#4127)
* 💄 style: add o1-preview and o1-mini model to github model provider

* Update index.ts
2024-09-27 10:16:02 +08:00
Bui Trong Khanh Duy c550867f12 🔨 chore: re-run i18n, eslint, and prettier (#4161)
* add sessionToken for bedrock model

* Support google model list

* update relate sessionToken info

* update description and revert gg model list

* update description

* change session token is a custom field

* support google model list

* reformat eslint
2024-09-27 10:15:50 +08:00
小云丨Arale 40d347f48b 🔧 chore: update antd to version ^5.21 (#4157) 2024-09-26 22:38:04 +08:00
semantic-release-bot 4711da7793 🔖 chore(release): v1.19.34 [skip ci]
### [Version&nbsp;1.19.34](https://github.com/lobehub/lobe-chat/compare/v1.19.33...v1.19.34)
<sup>Released on **2024-09-26**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-26 04:26:38 +00:00
LobeHub Bot 03017ddac0 perf: Update robots rule (#4141)
Co-authored-by: canisminor1990 <i@canisminor.cc>
2024-09-26 12:19:28 +08:00
semantic-release-bot 6a12d457d0 🔖 chore(release): v1.19.33 [skip ci]
### [Version&nbsp;1.19.33](https://github.com/lobehub/lobe-chat/compare/v1.19.32...v1.19.33)
<sup>Released on **2024-09-25**</sup>

#### 🐛 Bug Fixes

- **misc**: MiniMax output long content interrupted by non-existent error.

#### 💄 Styles

- **misc**: Update google provider model info.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: MiniMax output long content interrupted by non-existent error, closes [#4088](https://github.com/lobehub/lobe-chat/issues/4088) ([4f6e20d](https://github.com/lobehub/lobe-chat/commit/4f6e20d))

#### Styles

* **misc**: Update google provider model info, closes [#4129](https://github.com/lobehub/lobe-chat/issues/4129) ([b1442b9](https://github.com/lobehub/lobe-chat/commit/b1442b9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-25 15:31:01 +00:00
sxjeru 4f6e20dabf 🐛 fix: MiniMax output long content interrupted by non-existent error (#4088)
* Update index.ts

* Update index.test.ts

* Update index.ts

* Update minimax.ts

* Update minimax.ts

* fix

* Update minimax.ts

* Create minimax.test.ts

* Update minimax.ts

* Update minimax.ts

* Update minimax.ts
2024-09-25 23:23:38 +08:00
LovelyGuYiMeng b1442b973e 💄 style: update google provider model info (#4129)
* Update google.ts

* Update google.ts

* Update google.ts

* Update google.ts

* Update google.ts

---------

Co-authored-by: sxjeru <sxjeru@gmail.com>
2024-09-25 23:03:38 +08:00
semantic-release-bot 86871a9058 🔖 chore(release): v1.19.32 [skip ci]
### [Version&nbsp;1.19.32](https://github.com/lobehub/lobe-chat/compare/v1.19.31...v1.19.32)
<sup>Released on **2024-09-25**</sup>

#### 💄 Styles

- **misc**: Add function call for `taichu_llm`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add function call for `taichu_llm`, closes [#4119](https://github.com/lobehub/lobe-chat/issues/4119) ([8f629d8](https://github.com/lobehub/lobe-chat/commit/8f629d8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-25 14:08:38 +00:00
Zhijie He 8f629d8df9 💄 style: add function call for taichu_llm (#4119) 2024-09-25 22:01:04 +08:00
Arvin Xu 7e3aa09510 ️ perf: refactor pwa implement to have better performance (#4124)
* test remove serwist

* 尝试优化 pwa install 实现

* Update next.config.mjs

* fix lint

* delay the service worker register

* only enabled on prod

* when isShowPWAGuide update, trigger guide too
2024-09-25 22:00:28 +08:00
semantic-release-bot bfb7675125 🔖 chore(release): v1.19.31 [skip ci]
### [Version&nbsp;1.19.31](https://github.com/lobehub/lobe-chat/compare/v1.19.30...v1.19.31)
<sup>Released on **2024-09-24**</sup>

#### 💄 Styles

- **misc**: Add google gemini 1.5 002 series.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add google gemini 1.5 002 series, closes [#4118](https://github.com/lobehub/lobe-chat/issues/4118) ([10145fa](https://github.com/lobehub/lobe-chat/commit/10145fa))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-24 19:21:56 +00:00
Arvin Xu 10145facda 💄 style: add google gemini 1.5 002 series (#4118)
* 💄 style: add gemini 1.5 002 series

* 💄 style: update i18n

* ️ perf: improve tools calling and system role for Gemini

*  test: add tests for google
2024-09-25 03:14:36 +08:00
semantic-release-bot 007dbe2bc5 🔖 chore(release): v1.19.30 [skip ci]
### [Version&nbsp;1.19.30](https://github.com/lobehub/lobe-chat/compare/v1.19.29...v1.19.30)
<sup>Released on **2024-09-24**</sup>

#### 💄 Styles

- **misc**: Disable taichu2.0 functioncall & default disable taichu2.0v model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Disable taichu2.0 functioncall & default disable taichu2.0v model, closes [#4117](https://github.com/lobehub/lobe-chat/issues/4117) ([00da53b](https://github.com/lobehub/lobe-chat/commit/00da53b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-24 17:51:54 +00:00
LovelyGuYiMeng 00da53b368 💄 style: disable taichu2.0 functioncall & default disable taichu2.0v model (#4117) 2024-09-25 01:44:39 +08:00
semantic-release-bot c2db3e85b3 🔖 chore(release): v1.19.29 [skip ci]
### [Version&nbsp;1.19.29](https://github.com/lobehub/lobe-chat/compare/v1.19.28...v1.19.29)
<sup>Released on **2024-09-24**</sup>

#### 💄 Styles

- **misc**: Update taichu provider info & add taichu vision model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update taichu provider info & add taichu vision model, closes [#4114](https://github.com/lobehub/lobe-chat/issues/4114) ([e5331db](https://github.com/lobehub/lobe-chat/commit/e5331db))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-24 17:16:26 +00:00
LovelyGuYiMeng e5331db146 💄 style: update taichu provider info & add taichu vision model (#4114)
* Update providers.tsx

* Update index.ts

* Update taichu.ts
2024-09-25 01:08:51 +08:00
semantic-release-bot 1f37af2c54 🔖 chore(release): v1.19.28 [skip ci]
### [Version&nbsp;1.19.28](https://github.com/lobehub/lobe-chat/compare/v1.19.27...v1.19.28)
<sup>Released on **2024-09-24**</sup>

#### 💄 Styles

- **misc**: Add function call support for Stepfun.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add function call support for Stepfun, closes [#4101](https://github.com/lobehub/lobe-chat/issues/4101) ([8d7d96e](https://github.com/lobehub/lobe-chat/commit/8d7d96e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-24 17:07:25 +00:00
Zhijie He 8d7d96e85e 💄 style: add function call support for Stepfun (#4101)
* 💄 style: add function call support for Stepfun

* 💄 style: update `step-2-16k` model info, add functionCall

* 💄 style: update `step-1-flash` model info, add functionCall
2024-09-25 01:00:15 +08:00
Lumia 759463ad3b 📝 docs: update model-provider document (#4113)
* Update model-provider.zh-CN.mdx

* Update model-provider.zh-CN.mdx

* Update model-provider.zh-CN.mdx

* Update model-provider.mdx

* Update model-provider.zh-CN.mdx

* Update model-provider.mdx

* Update model-provider.zh-CN.mdx
2024-09-25 00:58:38 +08:00
semantic-release-bot 4c876c2537 🔖 chore(release): v1.19.27 [skip ci]
### [Version&nbsp;1.19.27](https://github.com/lobehub/lobe-chat/compare/v1.19.26...v1.19.27)
<sup>Released on **2024-09-24**</sup>

#### 💄 Styles

- **misc**: Improve images display in chat messages.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve images display in chat messages, closes [#3475](https://github.com/lobehub/lobe-chat/issues/3475) ([c54c7ed](https://github.com/lobehub/lobe-chat/commit/c54c7ed))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-24 13:25:18 +00:00
vual c54c7ed30b 💄 style: improve images display in chat messages (#3475)
* 修改聊天界面图片展示大小,1张图片时默认200宽度,2张400,3张600,最多到600,避免图片占太大位置,看聊天信息很不方便。如果要看图片,直接查看大图就可以了。

* 修改聊天界面多图展示效果。
1.一行最多3个图片。
2.列的个数以第一行的个数为准。
3.多图时,最大宽度比率计算公式为:scale = firstRow.length * (firstRow.length / items.length),避免多图时占用窗口太大。

* 控制图片宽度比例不小于1
2024-09-24 21:18:06 +08:00
lobehubbot fc25f2683e 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-24 12:18:07 +00:00
semantic-release-bot d5d931c686 🔖 chore(release): v1.19.26 [skip ci]
### [Version&nbsp;1.19.26](https://github.com/lobehub/lobe-chat/compare/v1.19.25...v1.19.26)
<sup>Released on **2024-09-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix url config import after user state init.

#### 💄 Styles

- **misc**: Add support function call for 360AI, left sidebar has only assistants.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix url config import after user state init, closes [#4072](https://github.com/lobehub/lobe-chat/issues/4072) ([18a240c](https://github.com/lobehub/lobe-chat/commit/18a240c))

#### Styles

* **misc**: Add support function call for 360AI, closes [#4099](https://github.com/lobehub/lobe-chat/issues/4099) ([536696b](https://github.com/lobehub/lobe-chat/commit/536696b))
* **misc**: Left sidebar has only assistants, closes [#4108](https://github.com/lobehub/lobe-chat/issues/4108) ([db1f81c](https://github.com/lobehub/lobe-chat/commit/db1f81c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-24 12:16:58 +00:00
Yao Cai 18a240cfd8 🐛 fix: fix url config import after user state init (#4072)
* 🐛 fix: settings import

* ♻️ refactor: remove selctor

* ♻️ refactor: add pr ref
2024-09-24 20:09:15 +08:00
Lumia 7f032d24bb 📝 docs: update next-auth documents (#4090)
* Update auth0.mdx

删除ACCESS_CODE
NEXT_AUTH_SSO_PROVIDERS、NEXTAUTH_URL改为Required
使用新版环境变量

* Update auth0.zh-CN.mdx

* Update authelia.mdx

* Update authelia.zh-CN.mdx

* Update authentik.mdx

* Update authentik.zh-CN.mdx

* Update github.mdx

* Update github.zh-CN.mdx

* Update cloudflare-zero-trust.mdx

* Update logto.mdx

* Update logto.zh-CN.mdx

* Update microsoft-entra-id.mdx

* Update microsoft-entra-id.zh-CN.mdx

* Update zitadel.mdx

* Update zitadel.zh-CN.mdx

* Update github.zh-CN.mdx

* Update auth0.mdx

* Update auth0.zh-CN.mdx

* Update authelia.mdx

* Update authelia.zh-CN.mdx

* Update authentik.mdx

* Update authentik.zh-CN.mdx

* Update cloudflare-zero-trust.mdx

* Update github.mdx

* Update github.zh-CN.mdx

* Update logto.mdx

* Update logto.zh-CN.mdx

* Update microsoft-entra-id.mdx

* Update microsoft-entra-id.zh-CN.mdx

* Update zitadel.mdx

* Update zitadel.zh-CN.mdx

* Update zitadel.zh-CN.mdx

* Update zitadel.mdx

* Update cloudflare-zero-trust.zh-CN.mdx
2024-09-24 20:06:36 +08:00
Zhijie He 536696b96c 💄 style: add support function call for 360AI (#4099) 2024-09-24 20:04:33 +08:00
Minh-Phuc Tran db1f81c181 💄 style: left sidebar has only assistants (#4108) 2024-09-24 20:02:48 +08:00
Yao Cai bc264fe4e7 📝 docs: update docker-compose local auth to casdoor (#3855)
* 👷 ci: casdoor in compose

* 🐛 fix: casdoor well-known error

* ♻️ refactor: move envs

* 👷 ci: add s3 demo data

* 👷 ci: Add start script

* 👷 ci: update setup script

* 👷 ci: compress asserts

* ♻️ refactor: rename `demo` to `local`, `local` to `local-logto`

* 🐛 fix: file not found

* ♻️ refactro: download asynchronously

* 🌐 i18n: support zh_CN in setup.sh

* 🐛 fix: tips shown format error

* ♻️ fix: spacing

* 🐛 fix: LC error

* 🐛 fix: update url to main repo

* ♻️ refactor: remove annotations

* 📝 docs: update local-logto docs

* 👷 build: add `LLM_VISION_IMAGE_USE_BASE64=1`

* 💄 style: remove alert text color

* ♻️ refactor: use casdoor provider

* ♻️ refactor: no multithreading

* 🐛 fix: use casdoor provider

* 🐛 fix: i18n in lower version of bash

* 💄 style: remove color

* ♻️ refactor: - duplicate casdoor ports
2024-09-24 20:01:24 +08:00
semantic-release-bot 380359ac92 🔖 chore(release): v1.19.25 [skip ci]
### [Version&nbsp;1.19.25](https://github.com/lobehub/lobe-chat/compare/v1.19.24...v1.19.25)
<sup>Released on **2024-09-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Add missing translations.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Add missing translations, closes [#4106](https://github.com/lobehub/lobe-chat/issues/4106) ([c24bf45](https://github.com/lobehub/lobe-chat/commit/c24bf45))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-24 06:20:18 +00:00
Minh-Phuc Tran c24bf45cf4 🐛 fix: add missing translations (#4106) 2024-09-24 14:13:12 +08:00
lobehubbot 65945a5eb0 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-23 16:29:08 +00:00
semantic-release-bot e7dc28e518 🔖 chore(release): v1.19.24 [skip ci]
### [Version&nbsp;1.19.24](https://github.com/lobehub/lobe-chat/compare/v1.19.23...v1.19.24)
<sup>Released on **2024-09-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix artifacts code language highlight.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix artifacts code language highlight, closes [#4096](https://github.com/lobehub/lobe-chat/issues/4096) ([2d956a3](https://github.com/lobehub/lobe-chat/commit/2d956a3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-23 16:28:05 +00:00
Arvin Xu 2d956a37dd 🐛 fix: fix artifacts code language highlight (#4096)
* 🐛 fix: fix artifacts language

* 🎨 chore: improve code

*  test: improve test
2024-09-24 00:20:49 +08:00
lobehubbot 8351f829dc 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-23 07:24:49 +00:00
semantic-release-bot c82c221ab3 🔖 chore(release): v1.19.23 [skip ci]
### [Version&nbsp;1.19.23](https://github.com/lobehub/lobe-chat/compare/v1.19.22...v1.19.23)
<sup>Released on **2024-09-23**</sup>

#### 💄 Styles

- **misc**: Add spark max-32k model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add spark max-32k model, closes [#4071](https://github.com/lobehub/lobe-chat/issues/4071) ([c11b57b](https://github.com/lobehub/lobe-chat/commit/c11b57b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-23 07:23:46 +00:00
LovelyGuYiMeng c11b57bf9e 💄 style: add spark max-32k model (#4071)
* Update spark.ts

* Update spark.ts

* Update openai.ts

* Update openai.ts

* Update openai.ts

* Update spark.ts

* Update spark.ts

* Update spark.ts
2024-09-23 15:16:32 +08:00
renovate[bot] 39a2aff5e7 Update pnpm to v9.11.0 (#4066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 10:11:32 +08:00
semantic-release-bot a4311ea561 🔖 chore(release): v1.19.22 [skip ci]
### [Version&nbsp;1.19.22](https://github.com/lobehub/lobe-chat/compare/v1.19.21...v1.19.22)
<sup>Released on **2024-09-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix ollama model download panel.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix ollama model download panel, closes [#4070](https://github.com/lobehub/lobe-chat/issues/4070) ([fc33336](https://github.com/lobehub/lobe-chat/commit/fc33336))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-22 12:27:49 +00:00
Arvin Xu fc33336db7 🐛 fix: fix ollama model download panel (#4070) 2024-09-22 20:20:43 +08:00
semantic-release-bot 2d2231f1b9 🔖 chore(release): v1.19.21 [skip ci]
### [Version&nbsp;1.19.21](https://github.com/lobehub/lobe-chat/compare/v1.19.20...v1.19.21)
<sup>Released on **2024-09-21**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to improve branding customization.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor to improve branding customization, closes [#4061](https://github.com/lobehub/lobe-chat/issues/4061) ([6199e68](https://github.com/lobehub/lobe-chat/commit/6199e68))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-21 17:07:59 +00:00
Arvin Xu 6199e68d78 ♻️ refactor: refactor to improve branding customization (#4061)
* ♻️ refactor: improve customize

* ♻️ refactor: improve customize

* ♻️ refactor: improve customize

* ♻️ refactor: improve customize

* 💄 style: fix size
2024-09-22 00:49:52 +08:00
semantic-release-bot fc2e7604f3 🔖 chore(release): v1.19.20 [skip ci]
### [Version&nbsp;1.19.20](https://github.com/lobehub/lobe-chat/compare/v1.19.19...v1.19.20)
<sup>Released on **2024-09-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix Content-Security-Policy.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix Content-Security-Policy, closes [#4056](https://github.com/lobehub/lobe-chat/issues/4056) ([d186062](https://github.com/lobehub/lobe-chat/commit/d186062))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-21 09:56:31 +00:00
Arvin Xu d1860623ee 🐛 fix: fix Content-Security-Policy (#4056) 2024-09-21 17:49:17 +08:00
semantic-release-bot f8a63ff258 🔖 chore(release): v1.19.19 [skip ci]
### [Version&nbsp;1.19.19](https://github.com/lobehub/lobe-chat/compare/v1.19.18...v1.19.19)
<sup>Released on **2024-09-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Casdoor webhooks providerAccountId not found.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Casdoor webhooks providerAccountId not found, closes [#4055](https://github.com/lobehub/lobe-chat/issues/4055) ([b832289](https://github.com/lobehub/lobe-chat/commit/b832289))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-21 09:18:49 +00:00
Yao Cai b832289f03 🐛 fix: casdoor webhooks providerAccountId not found (#4055) 2024-09-21 17:11:25 +08:00
semantic-release-bot d4956ffc3e 🔖 chore(release): v1.19.18 [skip ci]
### [Version&nbsp;1.19.18](https://github.com/lobehub/lobe-chat/compare/v1.19.17...v1.19.18)
<sup>Released on **2024-09-21**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-21 07:05:38 +00:00
CanisMinor 8afb4e2981 perf: Use nextjs pwa feat to gen manifest file (#4042)
*  perf: Use nextjs pwa feat to gen manifest file

* 🐛 fix: Fix review problem

*  test: Add test

* 💄 style: Update next config

* 🐛 fix: Fix test config

* 💄 style: Update layout
2024-09-21 14:58:13 +08:00
semantic-release-bot d3aa60a111 🔖 chore(release): v1.19.17 [skip ci]
### [Version&nbsp;1.19.17](https://github.com/lobehub/lobe-chat/compare/v1.19.16...v1.19.17)
<sup>Released on **2024-09-21**</sup>

#### 🐛 Bug Fixes

- **misc**: `providerAccountId` not exist in provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: `providerAccountId` not exist in provider, closes [#4053](https://github.com/lobehub/lobe-chat/issues/4053) ([91d8999](https://github.com/lobehub/lobe-chat/commit/91d8999))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-21 06:09:45 +00:00
Yao Cai 91d8999604 🐛 fix: providerAccountId not exist in provider (#4053)
* 🐛 fix: fix providerAccountId not exist in casdoor

* 🐛 fix: providerAccountId not provided
2024-09-21 14:02:42 +08:00
semantic-release-bot 70c71219d2 🔖 chore(release): v1.19.16 [skip ci]
### [Version&nbsp;1.19.16](https://github.com/lobehub/lobe-chat/compare/v1.19.15...v1.19.16)
<sup>Released on **2024-09-21**</sup>

#### 💄 Styles

- **misc**: Improve i18n for discover and improve version check.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve i18n for discover and improve version check, closes [#4052](https://github.com/lobehub/lobe-chat/issues/4052) ([ef93712](https://github.com/lobehub/lobe-chat/commit/ef93712))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-21 04:17:59 +00:00
Arvin Xu ef93712039 💄 style: improve i18n for discover and improve version check (#4052)
* i18n

* 🐛 fix: fix the problem of frequent patch updates

*  test: improve tests
2024-09-21 12:10:54 +08:00
semantic-release-bot 354db01282 🔖 chore(release): v1.19.15 [skip ci]
### [Version&nbsp;1.19.15](https://github.com/lobehub/lobe-chat/compare/v1.19.14...v1.19.15)
<sup>Released on **2024-09-20**</sup>

#### 💄 Styles

- **misc**: Improve i18n in discover.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve i18n in discover, closes [#4049](https://github.com/lobehub/lobe-chat/issues/4049) ([8170889](https://github.com/lobehub/lobe-chat/commit/8170889))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-20 17:33:38 +00:00
Arvin Xu 8170889fc0 💄 style: improve i18n in discover (#4049)
* i18n

* i18n
2024-09-21 01:26:30 +08:00
semantic-release-bot d0d5fe8ae0 🔖 chore(release): v1.19.14 [skip ci]
### [Version&nbsp;1.19.14](https://github.com/lobehub/lobe-chat/compare/v1.19.13...v1.19.14)
<sup>Released on **2024-09-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Pin `shiki@1.17.7` to fix code highlight.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Pin `shiki@1.17.7` to fix code highlight, closes [#4047](https://github.com/lobehub/lobe-chat/issues/4047) ([d12bf4c](https://github.com/lobehub/lobe-chat/commit/d12bf4c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-20 16:37:23 +00:00
Arvin Xu d12bf4c962 🐛 fix: pin shiki@1.17.7 to fix code highlight (#4047) 2024-09-21 00:30:16 +08:00
semantic-release-bot 48a344f7c3 🔖 chore(release): v1.19.13 [skip ci]
### [Version&nbsp;1.19.13](https://github.com/lobehub/lobe-chat/compare/v1.19.12...v1.19.13)
<sup>Released on **2024-09-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Try to implement better ssrf-protect.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Try to implement better ssrf-protect, closes [#4044](https://github.com/lobehub/lobe-chat/issues/4044) ([e960a23](https://github.com/lobehub/lobe-chat/commit/e960a23))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-20 15:53:25 +00:00
Arvin Xu e960a23b0c 🐛 fix: try to implement better ssrf-protect (#4044)
* 🐛 fix: try to implement better ssrf-protect

* 🐛 fix: fix error

* 💄 style: improve pwa
2024-09-20 23:46:21 +08:00
semantic-release-bot 4e3b71b85b 🔖 chore(release): v1.19.12 [skip ci]
### [Version&nbsp;1.19.12](https://github.com/lobehub/lobe-chat/compare/v1.19.11...v1.19.12)
<sup>Released on **2024-09-20**</sup>

#### 💄 Styles

- **misc**: Support webhooks for casdoor.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Support webhooks for casdoor, closes [#3942](https://github.com/lobehub/lobe-chat/issues/3942) ([1f2f6a5](https://github.com/lobehub/lobe-chat/commit/1f2f6a5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-20 14:53:46 +00:00
Yao Cai 1f2f6a5e26 💄 style: support webhooks for casdoor (#3942)
*  feat: Support Casdoor provider

*  feat: + webhook for casdoor

* 🐛 fix: skip test
2024-09-20 22:46:35 +08:00
semantic-release-bot ea28c413c2 🔖 chore(release): v1.19.11 [skip ci]
### [Version&nbsp;1.19.11](https://github.com/lobehub/lobe-chat/compare/v1.19.10...v1.19.11)
<sup>Released on **2024-09-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Custom model initialization not taking effect error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Custom model initialization not taking effect error, closes [#4038](https://github.com/lobehub/lobe-chat/issues/4038) ([0e0d208](https://github.com/lobehub/lobe-chat/commit/0e0d208))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-20 13:31:23 +00:00
𝑾𝒖𝒙𝒉 0e0d20821f 🐛 fix: custom model initialization not taking effect error (#4038) 2024-09-20 21:24:12 +08:00
semantic-release-bot 2b8d36d226 🔖 chore(release): v1.19.10 [skip ci]
### [Version&nbsp;1.19.10](https://github.com/lobehub/lobe-chat/compare/v1.19.9...v1.19.10)
<sup>Released on **2024-09-20**</sup>

#### 💄 Styles

- **misc**: Add qwen2.5 math and coder model for siliconcloud provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add qwen2.5 math and coder model for siliconcloud provider, closes [#4043](https://github.com/lobehub/lobe-chat/issues/4043) ([d16578f](https://github.com/lobehub/lobe-chat/commit/d16578f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-20 13:18:36 +00:00
LovelyGuYiMeng d16578f5b4 💄 style: add qwen2.5 math and coder model for siliconcloud provider (#4043) 2024-09-20 21:11:14 +08:00
semantic-release-bot c5ac8b1290 🔖 chore(release): v1.19.9 [skip ci]
### [Version&nbsp;1.19.9](https://github.com/lobehub/lobe-chat/compare/v1.19.8...v1.19.9)
<sup>Released on **2024-09-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix a bug with server agent config when user not exist.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix a bug with server agent config when user not exist, closes [#4034](https://github.com/lobehub/lobe-chat/issues/4034) ([f6a232b](https://github.com/lobehub/lobe-chat/commit/f6a232b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-20 05:31:40 +00:00
Arvin Xu f6a232bc54 🐛 fix: fix a bug with server agent config when user not exist (#4034) 2024-09-20 12:13:24 +08:00
semantic-release-bot 2206e0a727 🔖 chore(release): v1.19.8 [skip ci]
### [Version&nbsp;1.19.8](https://github.com/lobehub/lobe-chat/compare/v1.19.7...v1.19.8)
<sup>Released on **2024-09-19**</sup>

#### 💄 Styles

- **misc**: Delete siliconflow outdated model & disable stepfun functioncall.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Delete siliconflow outdated model & disable stepfun functioncall, closes [#4033](https://github.com/lobehub/lobe-chat/issues/4033) ([08c53eb](https://github.com/lobehub/lobe-chat/commit/08c53eb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 18:52:55 +00:00
LovelyGuYiMeng 08c53eb2b6 💄 style: delete siliconflow outdated model & disable stepfun functioncall (#4033)
* Update qwen.ts

* Update siliconcloud.ts

* Update stepfun.ts
2024-09-20 02:45:17 +08:00
semantic-release-bot 213445141b 🔖 chore(release): v1.19.7 [skip ci]
### [Version&nbsp;1.19.7](https://github.com/lobehub/lobe-chat/compare/v1.19.6...v1.19.7)
<sup>Released on **2024-09-19**</sup>

#### 💄 Styles

- **misc**: Add siliconflow qwen2.5 model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add siliconflow qwen2.5 model, closes [#4024](https://github.com/lobehub/lobe-chat/issues/4024) ([06ffd99](https://github.com/lobehub/lobe-chat/commit/06ffd99))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 17:57:39 +00:00
LovelyGuYiMeng 06ffd99a69 💄 style: add siliconflow qwen2.5 model (#4024)
* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update qwen.ts

* Update qwen.ts

* Update qwen.ts
2024-09-20 01:50:22 +08:00
semantic-release-bot a73ef61878 🔖 chore(release): v1.19.6 [skip ci]
### [Version&nbsp;1.19.6](https://github.com/lobehub/lobe-chat/compare/v1.19.5...v1.19.6)
<sup>Released on **2024-09-19**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the tts route url.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the tts route url, closes [#4030](https://github.com/lobehub/lobe-chat/issues/4030) ([60dcf19](https://github.com/lobehub/lobe-chat/commit/60dcf19))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 16:39:55 +00:00
Arvin Xu 60dcf19037 ♻️ refactor: refactor the tts route url (#4030)
* ♻️ refactor: refactor the tts to new route

* ♻️ refactor: refactor the tts to new route
2024-09-20 00:33:08 +08:00
lobehubbot 8b918848c0 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-19 15:58:53 +00:00
semantic-release-bot b4e17c24d8 🔖 chore(release): v1.19.5 [skip ci]
### [Version&nbsp;1.19.5](https://github.com/lobehub/lobe-chat/compare/v1.19.4...v1.19.5)
<sup>Released on **2024-09-19**</sup>

#### 💄 Styles

- **misc**: Enable functioncall for stepfun models, Update qwen models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Enable functioncall for stepfun models, closes [#4022](https://github.com/lobehub/lobe-chat/issues/4022) ([afb3509](https://github.com/lobehub/lobe-chat/commit/afb3509))
* **misc**: Update qwen models, closes [#4026](https://github.com/lobehub/lobe-chat/issues/4026) ([6169e8f](https://github.com/lobehub/lobe-chat/commit/6169e8f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 15:57:53 +00:00
sxjeru 6169e8f4ad 💄 style: Update qwen models (#4026)
* Update qwen.ts

* Update qwen.ts
2024-09-19 23:50:32 +08:00
LovelyGuYiMeng afb3509379 💄 style: enable functioncall for stepfun models (#4022)
* Update stepfun.ts

* Update ai360.ts

* Update ai360.ts
2024-09-19 23:48:44 +08:00
semantic-release-bot c46a1ec5d2 🔖 chore(release): v1.19.4 [skip ci]
### [Version&nbsp;1.19.4](https://github.com/lobehub/lobe-chat/compare/v1.19.3...v1.19.4)
<sup>Released on **2024-09-19**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the sitemap implement.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the sitemap implement, closes [#4012](https://github.com/lobehub/lobe-chat/issues/4012) ([d93a161](https://github.com/lobehub/lobe-chat/commit/d93a161))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 14:15:34 +00:00
CanisMinor d93a1617e7 ♻️ refactor: refactor the sitemap implement (#4012)
*  feat: Add new sitemap

* 🐛 fix: Fix url

*  test: Add test

* 🐛 fix: Fix host

*  test: Fix test

*  test: Fix test

* 🐛 fix: Fix alternative

* 🐛 fix: Try to fix

* 🐛 fix: Fix build

* 🐛 fix: Fix build

* 🔧 chore: Update git ignore

* 🐛 fix: Fix review problem
2024-09-19 22:08:14 +08:00
semantic-release-bot 5bd773ef53 🔖 chore(release): v1.19.3 [skip ci]
### [Version&nbsp;1.19.3](https://github.com/lobehub/lobe-chat/compare/v1.19.2...v1.19.3)
<sup>Released on **2024-09-19**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 12:26:53 +00:00
Zhijie He 61d2f533a6 👷 build: change base image from musl to glibc (#3926) 2024-09-19 20:19:37 +08:00
lobehubbot a5c31911cf 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-19 09:07:54 +00:00
semantic-release-bot 50a2c02959 🔖 chore(release): v1.19.2 [skip ci]
### [Version&nbsp;1.19.2](https://github.com/lobehub/lobe-chat/compare/v1.19.1...v1.19.2)
<sup>Released on **2024-09-19**</sup>

#### 💄 Styles

- **misc**: Updata qwen model info & add qwen2.5 & reorder provider list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Updata qwen model info & add qwen2.5 & reorder provider list, closes [#4020](https://github.com/lobehub/lobe-chat/issues/4020) ([d5e7578](https://github.com/lobehub/lobe-chat/commit/d5e7578))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 09:06:57 +00:00
LovelyGuYiMeng d5e7578821 💄 style: updata qwen model info & add qwen2.5 & reorder provider list (#4020)
* Update qwen.ts

* Update qwen.ts

* Update index.ts

* Update providers.tsx

* Update qwen.ts

* Update qwen.ts
2024-09-19 14:36:59 +08:00
semantic-release-bot 5d03c2be8f 🔖 chore(release): v1.19.1 [skip ci]
### [Version&nbsp;1.19.1](https://github.com/lobehub/lobe-chat/compare/v1.19.0...v1.19.1)
<sup>Released on **2024-09-19**</sup>

#### 💄 Styles

- **misc**: Add mistral provider new models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add mistral provider new models, closes [#4014](https://github.com/lobehub/lobe-chat/issues/4014) ([0b70d57](https://github.com/lobehub/lobe-chat/commit/0b70d57))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-19 02:20:59 +00:00
LovelyGuYiMeng 0b70d57a2d 💄 style: add mistral provider new models (#4014)
* Update mistral.ts

* Update upstage.ts
2024-09-19 10:13:50 +08:00
renovate[bot] d6d3d408d0 Update dependency @clerk/localizations to v3 (#3972)
* Update dependency @clerk/localizations to v3

* Update package.json

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 10:12:27 +08:00
semantic-release-bot c7092e5321 🔖 chore(release): v1.19.0 [skip ci]
## [Version&nbsp;1.19.0](https://github.com/lobehub/lobe-chat/compare/v1.18.2...v1.19.0)
<sup>Released on **2024-09-18**</sup>

####  Features

- **misc**: Add Ai21Labs model provider, add Github Models provider, support native Artifacts just like Claude.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Ai21Labs model provider, closes [#3727](https://github.com/lobehub/lobe-chat/issues/3727) ([d2fe0f0](https://github.com/lobehub/lobe-chat/commit/d2fe0f0))
* **misc**: Add Github Models provider, closes [#3869](https://github.com/lobehub/lobe-chat/issues/3869) ([8eac1bd](https://github.com/lobehub/lobe-chat/commit/8eac1bd))
* **misc**: Support native Artifacts just like Claude, closes [#3985](https://github.com/lobehub/lobe-chat/issues/3985) ([0c42c46](https://github.com/lobehub/lobe-chat/commit/0c42c46))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-18 17:53:07 +00:00
Arvin Xu 0c42c462b0 feat: support native Artifacts just like Claude (#3985)
*  feat: 支持 AntThinking 渲染

* 🚧 wip: 支持 antArtifact 渲染

* 展示

* 展示

* 基本完成流式解析

* 基本完成流式解析

*  feat: support svg render

*  test: fix test

* 优化 lobeThinking 的解析

* i18n

* fix regex

* 💄 style: improve ui

* 🚸 style: improve ux

* i18n

* 💄 style: improve svg renderer

* 💄 style: improve svg renderer

*  feat: 优化 html 类 renderer 效果

*  feat: 支持 react renderer

* 💄 style: add tailwindcss

* fix style

*  feat: 支持下载和复制图片

*  test: fix tests

* i18n

* add tests
2024-09-19 01:45:55 +08:00
Zhijie He d2fe0f0590 feat: add Ai21Labs model provider (#3727)
*  feat: add Ai21Labs model provider

* 🔨 chore: fix rebase conflicts

* 🐛 fix: fix CI error

* 💄 style: add model price

* 🐛 fix: fix CI error
2024-09-19 01:42:40 +08:00
小云丨Arale 8eac1bd774 feat: add Github Models provider (#3869)
*  feat: add Github Models as provider

* :bug fix: sort order of ProviderList

* 💄 style: add more info for Github Models provider

*  feat: Add GitHub provider configuration

Adds support for configuring the GitHub provider in the LLM settings. It includes:

- A new `useGithubProvider` hook to define the GitHub provider configuration
- Integration of the GitHub provider in the provider list
- Localization strings for the GitHub personal access token input

The changes allow users to enter their GitHub personal access token to use GitHub-related LLM features.

* 🐛 fix: use Github Personal access tokens (classic) instead

* 💄 style: Add Invalid Github Token error type and message

Adds support for handling invalid Github Personal Access Tokens:

- Adds a new `InvalidGithubToken` error type in the `AgentRuntimeErrorType` enum
- Adds an error message for `InvalidGithubToken` in the localization files
- Configures the Github AI provider to use the new error type

This allows properly handling and displaying errors when an invalid Github token is provided.

*  test: fix test for new error type

* 🐛 fix: sort order of ProviderCards

* 💄 style: use abbreviation for Github PAT

* 💄 style: add the hyperlink for creating Github PAT

* 🌐 chore: improve desc

*  test: update test

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-09-19 01:42:15 +08:00
Arvin Xu 5ccc41d7c1 💄 style: improve open router tools calling metadata (#3835)
* 🐛 fix: open router function calling for claude

* 📸 test: fix snapshot
2024-09-19 00:02:01 +08:00
semantic-release-bot 664687ddb0 🔖 chore(release): v1.18.2 [skip ci]
### [Version&nbsp;1.18.2](https://github.com/lobehub/lobe-chat/compare/v1.18.1...v1.18.2)
<sup>Released on **2024-09-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix InterceptingRoutes in discover.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix InterceptingRoutes in discover, closes [#4011](https://github.com/lobehub/lobe-chat/issues/4011) ([2b75040](https://github.com/lobehub/lobe-chat/commit/2b75040))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-18 13:42:14 +00:00
CanisMinor 2b75040519 🐛 fix: Fix InterceptingRoutes in discover (#4011) 2024-09-18 21:35:14 +08:00
semantic-release-bot 8fb2bd0df2 🔖 chore(release): v1.18.1 [skip ci]
### [Version&nbsp;1.18.1](https://github.com/lobehub/lobe-chat/compare/v1.18.0...v1.18.1)
<sup>Released on **2024-09-18**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-18 09:42:11 +00:00
Arvin Xu 199d35b8b8 👷 build: fix docker build (#4008) 2024-09-18 17:35:19 +08:00
semantic-release-bot 8070a63a45 🔖 chore(release): v1.18.0 [skip ci]
## [Version&nbsp;1.18.0](https://github.com/lobehub/lobe-chat/compare/v1.17.7...v1.18.0)
<sup>Released on **2024-09-18**</sup>

####  Features

- **misc**: Add Discover Page.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Discover Page, closes [#3848](https://github.com/lobehub/lobe-chat/issues/3848) ([f83cab6](https://github.com/lobehub/lobe-chat/commit/f83cab6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-18 09:20:36 +00:00
CanisMinor f83cab6043 feat: Add Discover Page (#3848)
*  feat: Add Discover

* 💄 style: Update provider id

*  feat: Add provider mdx docs

* ♻️ refactor: Refactor service

*  test: Fix test

*  test: Fix Test

* 🔧 chore: Move docService to server

* 💄 style: Replace ProductLogo

* 🐛 fix: Fix const

*  feat: Update Discover provider and model

* 💄 style: Update ShareIcon

* 💄 style: Update share style

*  test: Update test

* fix

* fix

* 💄 style: Update style

* 💄 style: Update style

* 🐛 fix: Fix test

*  feat: Support alternate

*  feat: Add Disociver Intercepting Modal

* 🐛 fix: Fix link

* 🐛 fix: Fix Link

* ♻️ refactor: Use type query in search

* 🐛 fix: Fix review problem

* 📝 docs: Update i18n
2024-09-18 17:08:41 +08:00
renovate[bot] c7d91921dc Update pnpm to v9.10.0 (#3971)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-18 10:19:00 +08:00
semantic-release-bot e715709092 🔖 chore(release): v1.17.7 [skip ci]
### [Version&nbsp;1.17.7](https://github.com/lobehub/lobe-chat/compare/v1.17.6...v1.17.7)
<sup>Released on **2024-09-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix a corner case of `tools_call` with empty object.

#### 💄 Styles

- **misc**: Delete duplicate models in ollama.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix a corner case of `tools_call` with empty object, closes [#3955](https://github.com/lobehub/lobe-chat/issues/3955) ([d3fabdc](https://github.com/lobehub/lobe-chat/commit/d3fabdc))

#### Styles

* **misc**: Delete duplicate models in ollama, closes [#3989](https://github.com/lobehub/lobe-chat/issues/3989) ([ece60ee](https://github.com/lobehub/lobe-chat/commit/ece60ee))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-16 15:50:40 +00:00
Zhijie He d3fabdc8d8 🐛 fix: fix a corner case of tools_call with empty object (#3955)
* 🐛 fix: fix got content in finish_reason

* 🐛 fix: fix a corner case of `tools_call` with empty object
2024-09-16 23:43:25 +08:00
LovelyGuYiMeng ece60ee152 💄 style: Delete duplicate models in ollama (#3989) 2024-09-16 23:40:54 +08:00
semantic-release-bot 36a03aaa21 🔖 chore(release): v1.17.6 [skip ci]
### [Version&nbsp;1.17.6](https://github.com/lobehub/lobe-chat/compare/v1.17.5...v1.17.6)
<sup>Released on **2024-09-15**</sup>

#### ♻ Code Refactoring

- **misc**: Rename artifacts to plugins in portal.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Rename artifacts to plugins in portal, closes [#3986](https://github.com/lobehub/lobe-chat/issues/3986) ([073b936](https://github.com/lobehub/lobe-chat/commit/073b936))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-15 17:09:49 +00:00
Arvin Xu 073b936401 ♻️ refactor: rename artifacts to plugins in portal (#3986)
* ♻️ refactor: rename to plugins

* 💄 style: use another icon
2024-09-16 01:03:00 +08:00
semantic-release-bot dd9122f8e0 🔖 chore(release): v1.17.5 [skip ci]
### [Version&nbsp;1.17.5](https://github.com/lobehub/lobe-chat/compare/v1.17.4...v1.17.5)
<sup>Released on **2024-09-15**</sup>

#### 💄 Styles

- **misc**: Add MiniCPM-V 8B model entries to Ollama model providers.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add MiniCPM-V 8B model entries to Ollama model providers, closes [#3984](https://github.com/lobehub/lobe-chat/issues/3984) ([f9c26de](https://github.com/lobehub/lobe-chat/commit/f9c26de))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-15 17:00:14 +00:00
cr-zhichen f9c26de46b 💄 style: Add MiniCPM-V 8B model entries to Ollama model providers (#3984)
* feat(modelProviders): Add MiniCPM 8B to Ollama model providers

This commit adds two new entries for MiniCPM 8B to the Ollama model providers. These models have excellent OCR recognition and multimodal understanding capabilities, supporting a wide range of applications.

- Added MiniCPM 8B model entry with ID 'minicpm-v:8b' and 128,000 tokens
- Added another MiniCPM 8B model entry with ID 'minicpm-v' and 128,000 tokens

* feat(modelProviders): Update MiniCPM-V display name and description
2024-09-16 00:53:11 +08:00
semantic-release-bot c79c17cdca 🔖 chore(release): v1.17.4 [skip ci]
### [Version&nbsp;1.17.4](https://github.com/lobehub/lobe-chat/compare/v1.17.3...v1.17.4)
<sup>Released on **2024-09-15**</sup>

#### 💄 Styles

- **misc**: Update fullscreen loading style.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update fullscreen loading style, closes [#3948](https://github.com/lobehub/lobe-chat/issues/3948) ([aec21d2](https://github.com/lobehub/lobe-chat/commit/aec21d2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-15 01:55:13 +00:00
CanisMinor aec21d27b5 💄 style: Update fullscreen loading style (#3948)
* 💄 style: Update fullscreen loading style

* fix

* 💄 style: Update loading style
2024-09-15 09:48:17 +08:00
semantic-release-bot 31eb54d80c 🔖 chore(release): v1.17.3 [skip ci]
### [Version&nbsp;1.17.3](https://github.com/lobehub/lobe-chat/compare/v1.17.2...v1.17.3)
<sup>Released on **2024-09-14**</sup>

#### 💄 Styles

- **misc**: Delete "-" in deepseek displayname.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Delete "-" in deepseek displayname, closes [#3958](https://github.com/lobehub/lobe-chat/issues/3958) ([c0e89f5](https://github.com/lobehub/lobe-chat/commit/c0e89f5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-14 04:22:25 +00:00
LovelyGuYiMeng c0e89f5e22 💄 style: delete "-" in deepseek displayname (#3958) 2024-09-14 12:15:39 +08:00
semantic-release-bot 8c86d06399 🔖 chore(release): v1.17.2 [skip ci]
### [Version&nbsp;1.17.2](https://github.com/lobehub/lobe-chat/compare/v1.17.1...v1.17.2)
<sup>Released on **2024-09-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix o1 model list.

#### 💄 Styles

- **misc**: Update openrouter model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix o1 model list, closes [#3957](https://github.com/lobehub/lobe-chat/issues/3957) ([e04cdd9](https://github.com/lobehub/lobe-chat/commit/e04cdd9))

#### Styles

* **misc**: Update openrouter model list, closes [#3954](https://github.com/lobehub/lobe-chat/issues/3954) ([1a1572b](https://github.com/lobehub/lobe-chat/commit/1a1572b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-13 15:35:35 +00:00
Arvin Xu e04cdd9f07 🐛 fix: fix o1 model list (#3957) 2024-09-13 23:28:45 +08:00
LovelyGuYiMeng 1a1572ba78 💄 style: update openrouter model list (#3954)
* Update openrouter.ts

* Update openrouter.ts

* Update openrouter.ts

* Update openrouter.ts

* Update index.test.ts.snap

* Update index.test.ts

* Update index.test.ts.snap

* Update index.test.ts.snap

* Update index.test.ts.snap
2024-09-13 23:28:31 +08:00
semantic-release-bot 3a3a4d3034 🔖 chore(release): v1.17.1 [skip ci]
### [Version&nbsp;1.17.1](https://github.com/lobehub/lobe-chat/compare/v1.17.0...v1.17.1)
<sup>Released on **2024-09-13**</sup>

#### 💄 Styles

- **misc**: Update zhipu model info.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update zhipu model info, closes [#3949](https://github.com/lobehub/lobe-chat/issues/3949) ([bbdbfde](https://github.com/lobehub/lobe-chat/commit/bbdbfde))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-13 10:19:28 +00:00
LovelyGuYiMeng bbdbfdef13 💄 style: update zhipu model info (#3949) 2024-09-13 18:12:37 +08:00
Yuhang 197ef18bb3 📝 docs: update deploy lobechat-database on zeabur (#3947)
* docs: update deploy lobechat-database on zeabur

* docs: zh-CN for deploy LobeChat on Zeabur

* 📝 docs(bot): Auto sync agents & plugin to readme

---------

Co-authored-by: lobehubbot <i@lobehub.com>
2024-09-13 15:45:07 +08:00
semantic-release-bot d5cd07013f 🔖 chore(release): v1.17.0 [skip ci]
## [Version&nbsp;1.17.0](https://github.com/lobehub/lobe-chat/compare/v1.16.14...v1.17.0)
<sup>Released on **2024-09-13**</sup>

####  Features

- **misc**: Support openai new OpenAI o1-preview/o1-mini models.

#### 💄 Styles

- **misc**: Support Google Model List.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support openai new OpenAI o1-preview/o1-mini models, closes [#3943](https://github.com/lobehub/lobe-chat/issues/3943) ([61bfeb2](https://github.com/lobehub/lobe-chat/commit/61bfeb2))

#### Styles

* **misc**: Support Google Model List, closes [#3938](https://github.com/lobehub/lobe-chat/issues/3938) ([be4efc7](https://github.com/lobehub/lobe-chat/commit/be4efc7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-13 05:08:16 +00:00
Bui Trong Khanh Duy be4efc76c1 💄 style: Support Google Model List (#3938)
* add sessionToken for bedrock model

* Support google model list

* update relate sessionToken info

* update description and revert gg model list

* update description

* change session token is a custom field

* support google model list
2024-09-13 13:00:59 +08:00
Arvin Xu 61bfeb2c99 feat: support openai new OpenAI o1-preview/o1-mini models (#3943)
* support o1

* Update openai.ts

* fix test

* fix test
2024-09-13 12:54:21 +08:00
semantic-release-bot 99ac98cffe 🔖 chore(release): v1.16.14 [skip ci]
### [Version&nbsp;1.16.14](https://github.com/lobehub/lobe-chat/compare/v1.16.13...v1.16.14)
<sup>Released on **2024-09-13**</sup>

#### 💄 Styles

- **model**: Remove `OpenAI` deprecated model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **model**: Remove `OpenAI` deprecated model, closes [#3465](https://github.com/lobehub/lobe-chat/issues/3465) ([68a4fb2](https://github.com/lobehub/lobe-chat/commit/68a4fb2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-13 04:21:01 +00:00
Rubu Jam 68a4fb2ba9 💄 style(model): remove OpenAI deprecated model (#3465) 2024-09-13 12:14:06 +08:00
semantic-release-bot 7f00261935 🔖 chore(release): v1.16.13 [skip ci]
### [Version&nbsp;1.16.13](https://github.com/lobehub/lobe-chat/compare/v1.16.12...v1.16.13)
<sup>Released on **2024-09-13**</sup>

#### 💄 Styles

- **misc**: Update siliconcloud model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update siliconcloud model, closes [#3935](https://github.com/lobehub/lobe-chat/issues/3935) ([882e981](https://github.com/lobehub/lobe-chat/commit/882e981))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-13 02:22:20 +00:00
sxjeru 882e981931 💄 style: Update siliconcloud model (#3935) 2024-09-13 10:15:34 +08:00
semantic-release-bot a8ba75b647 🔖 chore(release): v1.16.12 [skip ci]
### [Version&nbsp;1.16.12](https://github.com/lobehub/lobe-chat/compare/v1.16.11...v1.16.12)
<sup>Released on **2024-09-12**</sup>

#### 💄 Styles

- **misc**: Remove brackets from model names with dates in OpenAI.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Remove brackets from model names with dates in OpenAI, closes [#3927](https://github.com/lobehub/lobe-chat/issues/3927) ([2a937bc](https://github.com/lobehub/lobe-chat/commit/2a937bc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-12 16:24:15 +00:00
LovelyGuYiMeng 2a937bc8fd 💄 style: Remove brackets from model names with dates in OpenAI (#3927)
* Update openai.ts

* Update index.test.ts.snap

* Update index.test.ts.snap
2024-09-13 00:17:24 +08:00
Bui Trong Khanh Duy cc97ff6e4b 💄 style: Add sessionToken input for bedrock model (#3854)
* add sessionToken for bedrock model

* Support google model list

* update relate sessionToken info

* update description and revert gg model list

* update description

* change session token is a custom field
2024-09-13 00:16:59 +08:00
semantic-release-bot ecf084b4b0 🔖 chore(release): v1.16.11 [skip ci]
### [Version&nbsp;1.16.11](https://github.com/lobehub/lobe-chat/compare/v1.16.10...v1.16.11)
<sup>Released on **2024-09-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Support webhooks for logto.

#### 💄 Styles

- **misc**: Default disable mistral provider useless models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Support webhooks for logto, closes [#3774](https://github.com/lobehub/lobe-chat/issues/3774) ([0cfee6b](https://github.com/lobehub/lobe-chat/commit/0cfee6b))

#### Styles

* **misc**: Default disable mistral provider useless models, closes [#3922](https://github.com/lobehub/lobe-chat/issues/3922) ([bdbc647](https://github.com/lobehub/lobe-chat/commit/bdbc647))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-12 14:27:02 +00:00
Cai Yao 0cfee6b744 🐛 fix: support webhooks for logto (#3774)
*  feat: support webhooks for logto

* :sparles: feat: update more info

* ♻️ refactor: allow edit more info by webhook

* ♻️ refactor: rename `nextauthUser` to `nextAuthUser`

* 🧪 test: + webhooks trigger

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-09-12 22:19:57 +08:00
LovelyGuYiMeng bdbc64780b 💄 style: default disable mistral provider useless models (#3922)
* Update mistral.ts

* Update bedrock.ts

* Update mistral.ts

* Update mistral.ts
2024-09-12 22:17:57 +08:00
Chung1912 278a5bfc83 📝 docs: Minio uses a non-443 port for reverse proxy, and the Host needs to be set to $http_host (#3925)
* Update docker-compose.zh-CN.mdx

* Update docker-compose.mdx
2024-09-12 22:10:55 +08:00
semantic-release-bot 32ab090ac6 🔖 chore(release): v1.16.10 [skip ci]
### [Version&nbsp;1.16.10](https://github.com/lobehub/lobe-chat/compare/v1.16.9...v1.16.10)
<sup>Released on **2024-09-12**</sup>

#### ♻ Code Refactoring

- **misc**: Support Environment Variable Inference For NextAuth.

#### 🐛 Bug Fixes

- **misc**: Qwen model param error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Support Environment Variable Inference For NextAuth, closes [#3701](https://github.com/lobehub/lobe-chat/issues/3701) ([b956755](https://github.com/lobehub/lobe-chat/commit/b956755))

#### What's fixed

* **misc**: Qwen model param error, closes [#3902](https://github.com/lobehub/lobe-chat/issues/3902) ([c9f00e5](https://github.com/lobehub/lobe-chat/commit/c9f00e5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-12 13:43:22 +00:00
sxjeru c9f00e540e 🐛 fix: Qwen model param error (#3902)
* Update index.ts

* Update index.test.ts

* Update index.test.ts

* Update index.test.ts
2024-09-12 21:36:25 +08:00
Cai Yao b956755f12 ♻️ refactor: Support Environment Variable Inference For NextAuth (#3701)
* ♻️ refactor: `AUTH_SECRET`&`AUTH_TRUST_HOST`

* ⬆️ chore: update nextauth & @auth/core version

* ♻️ refactor: env infer for `auth0`

* ⬆️ chore: always use latest `next-auth` & `@auth/core`

* ♻️ refactor: align `authelia`

* ♻️ refactor: align `authentik`

* ♻️ align `github`

* ♻️ refactor: align `azure_ad`

* ♻️ refactor: align `cloudflare zero trust`

* ♻️ refactor: align `generic-oidc`

* ♻️ refactor: align `logto`

* ♻️ refactor: align `zitadel`

* ♻️ refactor: add deprecate tips

* ♻️ refactor: add warning for `azure_ad`

* 💄 style: reformat codes

* 🐛 fix: azure warning

* 🐛 fix: warning for cloudfalre zero turst

* 🐛 fix: warning for generic oidc

*  revert: revert changes to `NEXT_AUTH_SECRET`

* ♻️ refactor: add redirectProxy url

*  revert: unmodify ENABLE_NEXT_AUTH

* 🧪 test: should show env warning
2024-09-12 21:35:33 +08:00
semantic-release-bot 028650b985 🔖 chore(release): v1.16.9 [skip ci]
### [Version&nbsp;1.16.9](https://github.com/lobehub/lobe-chat/compare/v1.16.8...v1.16.9)
<sup>Released on **2024-09-12**</sup>

#### 💄 Styles

- **misc**: Add model and provider desc and url.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add model and provider desc and url, closes [#3920](https://github.com/lobehub/lobe-chat/issues/3920) ([ea9ff00](https://github.com/lobehub/lobe-chat/commit/ea9ff00))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-12 11:44:26 +00:00
CanisMinor b5967d91ea test: Update test for new provider info (#3924)
*  test: Update test for new provider info

*  test: Update test
2024-09-12 19:37:33 +08:00
CanisMinor ea9ff000a3 💄 style: Add model and provider desc and url (#3920) 2024-09-12 14:06:41 +08:00
LovelyGuYiMeng cfbf44f0ef 💄style: update claude model list sort and update groq model info (#3918)
* Update anthropic.ts

* Update groq.ts

* Update groq.ts

* Update anthropic.ts
2024-09-12 13:34:59 +08:00
semantic-release-bot 483f91671a 🔖 chore(release): v1.16.8 [skip ci]
### [Version&nbsp;1.16.8](https://github.com/lobehub/lobe-chat/compare/v1.16.7...v1.16.8)
<sup>Released on **2024-09-12**</sup>

#### 💄 Styles

- **misc**: Improve models and add more info for providers and models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve models and add more info for providers and models, closes [#3911](https://github.com/lobehub/lobe-chat/issues/3911) ([8a8fc6a](https://github.com/lobehub/lobe-chat/commit/8a8fc6a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-12 04:01:21 +00:00
Arvin Xu 8a8fc6a440 💄 style: improve models and add more info for providers and models (#3911)
* 🔧 chore: add more info for providers and models

* 🔧 chore: add more info for providers and models

*  test: fix test

*  test: fix test

*  test: fix test
2024-09-12 11:54:36 +08:00
lobehubbot 38f6c345d9 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-11 14:01:24 +00:00
semantic-release-bot f542b5f49d 🔖 chore(release): v1.16.7 [skip ci]
### [Version&nbsp;1.16.7](https://github.com/lobehub/lobe-chat/compare/v1.16.6...v1.16.7)
<sup>Released on **2024-09-11**</sup>

#### 💄 Styles

- **misc**: Optimize model token display method.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Optimize model token display method, closes [#3697](https://github.com/lobehub/lobe-chat/issues/3697) ([249795c](https://github.com/lobehub/lobe-chat/commit/249795c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-11 14:00:32 +00:00
sxjeru 249795c70b 💄 style: Optimize model token display method (#3697)
* Update index.tsx

* Update index.tsx

* Update index.tsx

* Update index.tsx

* Update index.tsx

* Update format.ts

* Update format.test.ts

* Update format.test.ts

* Update format.ts

* Update format.test.ts

* Update format.test.ts
2024-09-11 21:53:41 +08:00
semantic-release-bot 0610253776 🔖 chore(release): v1.16.6 [skip ci]
### [Version&nbsp;1.16.6](https://github.com/lobehub/lobe-chat/compare/v1.16.5...v1.16.6)
<sup>Released on **2024-09-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Pin `next@14.2.8` to fix Internal error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Pin `next@14.2.8` to fix Internal error, closes [#3905](https://github.com/lobehub/lobe-chat/issues/3905) ([1013652](https://github.com/lobehub/lobe-chat/commit/1013652))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-11 11:54:28 +00:00
Arvin Xu 10136528d7 🐛 fix: pin next@14.2.8 to fix Internal error (#3905) 2024-09-11 19:47:42 +08:00
semantic-release-bot 64b910c62a 🔖 chore(release): v1.16.5 [skip ci]
### [Version&nbsp;1.16.5](https://github.com/lobehub/lobe-chat/compare/v1.16.4...v1.16.5)
<sup>Released on **2024-09-11**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-11 09:27:30 +00:00
LovelyGuYiMeng 4804439151 ️ perf: add smoothing for some providers (#3900)
* Update moonshot.ts

* Update baichuan.ts

* Update minimax.ts

* Update stepfun.ts

* Update ai360.ts

* Update qwen.ts

* Update spark.ts
2024-09-11 17:20:45 +08:00
semantic-release-bot f2bbad8c04 🔖 chore(release): v1.16.4 [skip ci]
### [Version&nbsp;1.16.4](https://github.com/lobehub/lobe-chat/compare/v1.16.3...v1.16.4)
<sup>Released on **2024-09-11**</sup>

#### 💄 Styles

- **ui**: Improve UI layout and text.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **ui**: Improve UI layout and text, closes [#3762](https://github.com/lobehub/lobe-chat/issues/3762) ([7c08f29](https://github.com/lobehub/lobe-chat/commit/7c08f29))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-11 07:41:10 +00:00
Rubu Jam 7c08f29cf9 💄 style(ui): improve UI layout and text (#3762)
* 💄 style(ui): Adjust text layout of `loading page`

* 💄 style(ui): Adjust text layout for `404 page`

* 💄 style(ui): Adjust size of icons

* 💄 style(ui): Adjust word spacing in `waiting`

* 💄 style(ui): Adjust icon size of `Delete File` and `Delete Picture`

* 💄 style(ui): Adjust texts in `knowledge base`

* 🔧 chore: Update `i18n`

* 🔧 chore(deps): update Dependencies
2024-09-11 15:34:16 +08:00
semantic-release-bot e9b87fcb11 🔖 chore(release): v1.16.3 [skip ci]
### [Version&nbsp;1.16.3](https://github.com/lobehub/lobe-chat/compare/v1.16.2...v1.16.3)
<sup>Released on **2024-09-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Add `LLM_VISION_IMAGE_USE_BASE64` to support local s3 in vision model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Add `LLM_VISION_IMAGE_USE_BASE64` to support local s3 in vision model, closes [#3887](https://github.com/lobehub/lobe-chat/issues/3887) ([16e57ed](https://github.com/lobehub/lobe-chat/commit/16e57ed))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-11 07:16:45 +00:00
Justin3go b8d044f1c2 📝 docs: fix logto document (#3894) 2024-09-11 15:09:55 +08:00
Arvin Xu 16e57ed1f0 🐛 fix: add LLM_VISION_IMAGE_USE_BASE64 to support local s3 in vision model (#3887)
* 🐛 fix: add `LLM_VISION_IMAGE_TYPE` to support local s3 in vision model

* ♻️ refactor: refactor to better usage

*  test: fix test

* 🐛 fix: fix zhipu vision

* ️ perf: add smoothing for stepfun

*  test: fix test

* fix test

* refactor
2024-09-11 15:05:29 +08:00
lobehubbot 3d44c4297b 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-11 03:12:29 +00:00
semantic-release-bot 060d157d4e 🔖 chore(release): v1.16.2 [skip ci]
### [Version&nbsp;1.16.2](https://github.com/lobehub/lobe-chat/compare/v1.16.1...v1.16.2)
<sup>Released on **2024-09-11**</sup>

#### 💄 Styles

- **misc**: Update Upstage model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Upstage model list, closes [#3890](https://github.com/lobehub/lobe-chat/issues/3890) ([82e2570](https://github.com/lobehub/lobe-chat/commit/82e2570))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-11 03:11:38 +00:00
Zhijie He 82e257040f 💄 style: update Upstage model list (#3890)
* 💄 style: add `solar-pro` model

* 💄 style: update official model name
2024-09-11 11:04:41 +08:00
semantic-release-bot 64154c1ea9 🔖 chore(release): v1.16.1 [skip ci]
### [Version&nbsp;1.16.1](https://github.com/lobehub/lobe-chat/compare/v1.16.0...v1.16.1)
<sup>Released on **2024-09-10**</sup>

#### 💄 Styles

- **misc**: Reorder the provider list, update spark check model to spark-lite & default disable useless model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Reorder the provider list, closes [#3886](https://github.com/lobehub/lobe-chat/issues/3886) ([4d641f5](https://github.com/lobehub/lobe-chat/commit/4d641f5))
* **misc**: Update spark check model to spark-lite & default disable useless model, closes [#3885](https://github.com/lobehub/lobe-chat/issues/3885) ([9d7e47c](https://github.com/lobehub/lobe-chat/commit/9d7e47c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-10 18:17:09 +00:00
LovelyGuYiMeng 9d7e47c4db 💄 style: update spark check model to spark-lite & default disable useless model (#3885)
* Update spark.ts

* Update baichuan.ts

* Update minimax.ts
2024-09-11 02:06:54 +08:00
LovelyGuYiMeng 4d641f514a 💄 style: Reorder the provider list (#3886)
* Update providers.tsx

* Update index.ts

* Update providers.tsx

* Update index.ts
2024-09-11 02:03:13 +08:00
renovate[bot] 66ce743ffc Update dependency unstructured-client to ^0.16.0 (#3815)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 01:18:58 +08:00
semantic-release-bot 85e51604c1 🔖 chore(release): v1.16.0 [skip ci]
## [Version&nbsp;1.16.0](https://github.com/lobehub/lobe-chat/compare/v1.15.35...v1.16.0)
<sup>Released on **2024-09-10**</sup>

####  Features

- **misc**: Add Fireworks AI Model Provider, Add Spark model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Fireworks AI Model Provider, closes [#3392](https://github.com/lobehub/lobe-chat/issues/3392) [#48](https://github.com/lobehub/lobe-chat/issues/48) ([fa0d84d](https://github.com/lobehub/lobe-chat/commit/fa0d84d))
* **misc**: Add Spark model provider, closes [#3098](https://github.com/lobehub/lobe-chat/issues/3098) [#25](https://github.com/lobehub/lobe-chat/issues/25) ([fc85c20](https://github.com/lobehub/lobe-chat/commit/fc85c20))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-10 16:21:00 +00:00
Zhijie He fa0d84d92c feat: Add Fireworks AI Model Provider (#3392)
*  feat: Add Fireworks AI Model Provider

* 💄 style: add FireworksAI self-models

* 🐛 fix: support function call

* Revert "🐛 fix: support function call" (#48)

This reverts commit c8422f494c.

* 💄 style: update model info

* 🐛 fix: disable stream if contains tools

* 👷 build: add ENV for Fireworks AI provider

* 👷 build: update ENV

*  feat: support proxy url

* 🐛 fix: fix typo

* Update providers.tsx

* ♻️ refactor: cleanup

* 🔨 chore: remove proxyUrl for FireworksAI

* 🐛 fix: tools calling issue in Fireworks AI

* 🔨 chore: remove work around method for tool calling

* 🔨 chore: rollback changes

* 🐛 fix: fix CI error

* 💄 style: update model list

* 🔨 chore: fix rebase conflicts
2024-09-11 00:14:18 +08:00
Zhijie He fc85c20b1c feat: Add Spark model provider (#3098)
*  feat: Add Spark model provider

* 🔨 chore: split Spark API Key & Spark Secret

* 💄 style: update Spark icon

* 💄 style: update Spark icon size

* 💄 style: update Spark icon in ProviderAvatar

* 🔨 chore: update Spark models

* 🔨 chore: update Spark models

* 💄 style: fixed Spark 4.0 Ultra model icon display

* 🔨 chore: update Spark models info

* 🔨 chore: update Spark models tokens info

* 🔨 chore: update Spark models info

* 🐛 fix: fixed "'$.header.uid' length must be less or equal than 32" with Spark Lite

* 💄 style: fix model tag icon missing

* 🐛 fix: fix typo in ModelIcon

* 🔨 chore: add unit test for noUserId

* 🔨 chore: disable stream mode

* Revert "🔨 chore: disable stream mode" (#25)

This reverts commit 302e01d181.

* 💄 style: add Spark Pro-128K new model

*  feat: Add Spark ENV

* 🐛 fix: fixed Pro-128k model id, wrong id from official document

![image](https://github.com/user-attachments/assets/7fc3fc73-b460-448c-ad78-4a56d3cae34e)

* 💄style: improve APIKeyForm for Spark

* 💄 style: improve custom Spark API missing form

* 🔨 chore: cleanup code

* 🐛 fix: fix CI issue after merge

* 👷 build: add ENV

* ♻️ refactor: support latest Spark HTTP SDK

* ♻️ refactor: cleanup

* 🔨 chore: fix rebase conflicts

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-09-11 00:14:05 +08:00
semantic-release-bot 656a1f8962 🔖 chore(release): v1.15.35 [skip ci]
### [Version&nbsp;1.15.35](https://github.com/lobehub/lobe-chat/compare/v1.15.34...v1.15.35)
<sup>Released on **2024-09-10**</sup>

#### 💄 Styles

- **misc**: Update CustomLogo.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update CustomLogo, closes [#3874](https://github.com/lobehub/lobe-chat/issues/3874) ([dd7c8df](https://github.com/lobehub/lobe-chat/commit/dd7c8df))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-10 15:10:36 +00:00
CanisMinor dd7c8dfe16 💄 style: Update CustomLogo (#3874)
* 💄 style: Update CustomLogo

* 💄 style: Replace ProviderAvatar

* 💄 style: Fix ProviderIcon in ActionForm
2024-09-10 23:03:52 +08:00
semantic-release-bot a6e963fd51 🔖 chore(release): v1.15.34 [skip ci]
### [Version&nbsp;1.15.34](https://github.com/lobehub/lobe-chat/compare/v1.15.33...v1.15.34)
<sup>Released on **2024-09-10**</sup>

#### ♻ Code Refactoring

- **misc**: Change empty content stream behavior.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Change empty content stream behavior, closes [#3883](https://github.com/lobehub/lobe-chat/issues/3883) ([e910f68](https://github.com/lobehub/lobe-chat/commit/e910f68))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-10 14:07:54 +00:00
Zhijie He e910f684e7 ♻️ refactor: change empty content stream behavior (#3883)
* ♻️ refactor: change empty content stream behavior

* 🐛 fix: fix one-api

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-09-10 22:01:05 +08:00
semantic-release-bot 8a1b3ec258 🔖 chore(release): v1.15.33 [skip ci]
### [Version&nbsp;1.15.33](https://github.com/lobehub/lobe-chat/compare/v1.15.32...v1.15.33)
<sup>Released on **2024-09-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `/etc/resolv.conf`edit permission in docker image.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix `/etc/resolv.conf`edit permission in docker image, closes [#3880](https://github.com/lobehub/lobe-chat/issues/3880) ([fdaa190](https://github.com/lobehub/lobe-chat/commit/fdaa190))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-10 08:44:06 +00:00
Zhijie He fdaa190951 🐛 fix: fix /etc/resolv.confedit permission in docker image (#3880) 2024-09-10 16:36:53 +08:00
semantic-release-bot 99acb93980 🔖 chore(release): v1.15.32 [skip ci]
### [Version&nbsp;1.15.32](https://github.com/lobehub/lobe-chat/compare/v1.15.31...v1.15.32)
<sup>Released on **2024-09-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix tools calling in some edge cases.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix tools calling in some edge cases, closes [#3872](https://github.com/lobehub/lobe-chat/issues/3872) ([2ed759d](https://github.com/lobehub/lobe-chat/commit/2ed759d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-10 05:59:17 +00:00
Arvin Xu 2ed759d604 🐛 fix: fix tools calling in some edge cases (#3872)
* fix tools calling edge case

* fix tools calling edge case
2024-09-10 13:52:42 +08:00
lobehubbot 319fd75dd5 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-10 03:35:37 +00:00
semantic-release-bot d74b8d98c8 🔖 chore(release): v1.15.31 [skip ci]
### [Version&nbsp;1.15.31](https://github.com/lobehub/lobe-chat/compare/v1.15.30...v1.15.31)
<sup>Released on **2024-09-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Baichuan should not introduce `freequency_penality` parameters.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Baichuan should not introduce `freequency_penality` parameters, closes [#3871](https://github.com/lobehub/lobe-chat/issues/3871) ([66a061e](https://github.com/lobehub/lobe-chat/commit/66a061e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-10 03:34:43 +00:00
sxjeru 66a061e55c 🐛 fix: Baichuan should not introduce freequency_penality parameters (#3871)
* Update index.ts

* Update index.ts
2024-09-10 11:27:39 +08:00
semantic-release-bot c7fde146bc 🔖 chore(release): v1.15.30 [skip ci]
### [Version&nbsp;1.15.30](https://github.com/lobehub/lobe-chat/compare/v1.15.29...v1.15.30)
<sup>Released on **2024-09-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix claude 3.5 image with s3 url.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix claude 3.5 image with s3 url, closes [#3870](https://github.com/lobehub/lobe-chat/issues/3870) ([89c8dd4](https://github.com/lobehub/lobe-chat/commit/89c8dd4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-09 19:36:21 +00:00
Arvin Xu 89c8dd485a 🐛 fix: fix claude 3.5 image with s3 url (#3870)
*  test: add tests for imageToBase64

* 🐛 fix: fix anthropic image chat

*  test: add more tests
2024-09-10 03:29:33 +08:00
semantic-release-bot 831bc5fec0 🔖 chore(release): v1.15.29 [skip ci]
### [Version&nbsp;1.15.29](https://github.com/lobehub/lobe-chat/compare/v1.15.28...v1.15.29)
<sup>Released on **2024-09-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Gemini cannot input images when server database is enabled.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Gemini cannot input images when server database is enabled, closes [#3370](https://github.com/lobehub/lobe-chat/issues/3370) ([eb552d2](https://github.com/lobehub/lobe-chat/commit/eb552d2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-09 18:49:28 +00:00
sxjeru eb552d2a69 🐛 fix: Gemini cannot input images when server database is enabled (#3370)
* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* ♻️ refactor: refactor the google implement

*  test: fix tests

*  test: fix tests

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-09-10 02:42:44 +08:00
semantic-release-bot 4dc31729f4 🔖 chore(release): v1.15.28 [skip ci]
### [Version&nbsp;1.15.28](https://github.com/lobehub/lobe-chat/compare/v1.15.27...v1.15.28)
<sup>Released on **2024-09-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Update baichuan param.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Update baichuan param, closes [#3356](https://github.com/lobehub/lobe-chat/issues/3356) ([29bced1](https://github.com/lobehub/lobe-chat/commit/29bced1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-09 17:21:11 +00:00
sxjeru 29bced1c68 🐛 fix: Update baichuan param (#3356)
* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts
2024-09-10 01:14:26 +08:00
semantic-release-bot dd60e41f51 🔖 chore(release): v1.15.27 [skip ci]
### [Version&nbsp;1.15.27](https://github.com/lobehub/lobe-chat/compare/v1.15.26...v1.15.27)
<sup>Released on **2024-09-09**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor brand implement for better custom.

#### 💄 Styles

- **misc**: Add siliconcloud new model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor brand implement for better custom, closes [#3868](https://github.com/lobehub/lobe-chat/issues/3868) ([815b366](https://github.com/lobehub/lobe-chat/commit/815b366))

#### Styles

* **misc**: Add siliconcloud new model, closes [#3865](https://github.com/lobehub/lobe-chat/issues/3865) ([c6b5a45](https://github.com/lobehub/lobe-chat/commit/c6b5a45))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-09 16:40:58 +00:00
Arvin Xu 815b366b20 ♻️ refactor: refactor brand implement for better custom (#3868)
* ♻️ refactor: refactor the branding

* ♻️ refactor: refactor the branding

* ♻️ refactor: refactor the branding to support different logo

* 🧑‍💻 style: support commercial flag to hide docs and github url

* 🧑‍💻 style: support commercial flag to hide docs and github url

*  test: fix tests

* ♻️ refactor: hide about with hideDocs env
2024-09-10 00:34:18 +08:00
LovelyGuYiMeng c6b5a45921 💄 style: add siliconcloud new model (#3865) 2024-09-10 00:33:44 +08:00
semantic-release-bot 4e7c26283b 🔖 chore(release): v1.15.26 [skip ci]
### [Version&nbsp;1.15.26](https://github.com/lobehub/lobe-chat/compare/v1.15.25...v1.15.26)
<sup>Released on **2024-09-09**</sup>

#### 💄 Styles

- **misc**: Update perplexity model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update perplexity model list, closes [#3836](https://github.com/lobehub/lobe-chat/issues/3836) ([b70671b](https://github.com/lobehub/lobe-chat/commit/b70671b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-09 07:20:24 +00:00
LovelyGuYiMeng b70671bc19 💄 style: update perplexity model list (#3836) 2024-09-09 15:13:40 +08:00
semantic-release-bot ef0696045e 🔖 chore(release): v1.15.25 [skip ci]
### [Version&nbsp;1.15.25](https://github.com/lobehub/lobe-chat/compare/v1.15.24...v1.15.25)
<sup>Released on **2024-09-09**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-09 06:29:57 +00:00
Zhijie He 7232c58ee2 👷 build: fix DNS resolving issue in Docker (#3837)
* 🐛 fix: DNS resolving issue in Docker Compose

* 👷 build: re-generate `resolv.conf` before running

* 🔨 chore: add ref link to comments
2024-09-09 14:23:02 +08:00
lobehubbot 001e1e1686 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-09 04:49:16 +00:00
semantic-release-bot 5046d14769 🔖 chore(release): v1.15.24 [skip ci]
### [Version&nbsp;1.15.24](https://github.com/lobehub/lobe-chat/compare/v1.15.23...v1.15.24)
<sup>Released on **2024-09-09**</sup>

#### 💄 Styles

- **misc**: Fix title in about settings.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix title in about settings, closes [#3841](https://github.com/lobehub/lobe-chat/issues/3841) ([6b7a366](https://github.com/lobehub/lobe-chat/commit/6b7a366))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-09 04:48:21 +00:00
Arvin Xu 6b7a3660e9 💄 style: fix title in about settings (#3841) 2024-09-09 12:41:30 +08:00
semantic-release-bot d98194488d 🔖 chore(release): v1.15.23 [skip ci]
### [Version&nbsp;1.15.23](https://github.com/lobehub/lobe-chat/compare/v1.15.22...v1.15.23)
<sup>Released on **2024-09-08**</sup>

#### ♻ Code Refactoring

- **misc**: Improve branding implement.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Improve branding implement, closes [#3832](https://github.com/lobehub/lobe-chat/issues/3832) ([b5e6b8b](https://github.com/lobehub/lobe-chat/commit/b5e6b8b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-08 18:26:39 +00:00
Arvin Xu b5e6b8b2b6 ♻️ refactor: improve branding implement (#3832)
* ♻️ refactor: reactor the branding implement

* ♻️ refactor: reactor the branding implement

* ♻️ refactor: reactor the branding implement

* ♻️ refactor: reactor the branding locale

* ♻️ refactor: reactor the branding locale

* Update metadata.json

* ♻️ refactor: reactor the branding locale

* Update setting.json

* ♻️ refactor: reactor the branding meta
2024-09-09 02:20:00 +08:00
LovelyGuYiMeng e2836246af 💄 style:improve groq model tokens (#3833) 2024-09-09 01:03:19 +08:00
lobehubbot a91e00414a 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-08 16:51:35 +00:00
semantic-release-bot aad3347b66 🔖 chore(release): v1.15.22 [skip ci]
### [Version&nbsp;1.15.22](https://github.com/lobehub/lobe-chat/compare/v1.15.21...v1.15.22)
<sup>Released on **2024-09-08**</sup>

#### 💄 Styles

- **misc**: Update model display name & Remove Qwen preview model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update model display name & Remove Qwen preview model, closes [#3757](https://github.com/lobehub/lobe-chat/issues/3757) ([dd439ba](https://github.com/lobehub/lobe-chat/commit/dd439ba))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-08 16:50:42 +00:00
Arvin Xu 302d3d6732 ️ perf: improving scrolling laggy (#3831) 2024-09-09 00:44:07 +08:00
LovelyGuYiMeng dd439ba24b 💄 style: Update model display name & Remove Qwen preview model (#3757)
* Update qwen.ts

* Update qwen.ts

* Update qwen.ts

* Update siliconcloud.ts

* Update stepfun.ts

* Update deepseek.ts

* Update zhipu.ts

* Update ollama.ts

* Update siliconcloud.ts

* Update groq.ts

* Update ollama.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update novita.ts

* Update perplexity.ts

* Update siliconcloud.ts

* Update groq.ts

* Update novita.ts

* Update ollama.ts

* Update qwen.ts

* Update zhipu.ts

* Update deepseek.ts

* Update ollama.ts

* Update qwen.ts

* Update siliconcloud.ts

* Update zhipu.ts

* Update siliconcloud.ts
2024-09-09 00:43:26 +08:00
semantic-release-bot a7cc9a232a 🔖 chore(release): v1.15.21 [skip ci]
### [Version&nbsp;1.15.21](https://github.com/lobehub/lobe-chat/compare/v1.15.20...v1.15.21)
<sup>Released on **2024-09-08**</sup>

#### ♻ Code Refactoring

- **misc**: Temperature range from 0 to 2.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Temperature range from 0 to 2, closes [#3355](https://github.com/lobehub/lobe-chat/issues/3355) ([4a9114e](https://github.com/lobehub/lobe-chat/commit/4a9114e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-08 15:45:27 +00:00
sxjeru 4a9114e90c ♻️ refactor: temperature range from 0 to 2 (#3355)
* feat: Update temperature settings for agent configuration

* fix

* All completed

* temperature / 2

* fix

* fix test

* add test

*  test: fix test

* 🚨 ci: fix lint

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-09-08 23:38:35 +08:00
Arthals 988d7441e4 📝 docs: fix db name in docker (#3829) 2024-09-08 23:37:00 +08:00
semantic-release-bot a026e82408 🔖 chore(release): v1.15.20 [skip ci]
### [Version&nbsp;1.15.20](https://github.com/lobehub/lobe-chat/compare/v1.15.19...v1.15.20)
<sup>Released on **2024-09-08**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-08 12:08:15 +00:00
Arvin Xu 1ad7ca4c8e ️ perf: fix scrolling laggy in some chat list (#3824) 2024-09-08 20:01:39 +08:00
semantic-release-bot 95b5166612 🔖 chore(release): v1.15.19 [skip ci]
### [Version&nbsp;1.15.19](https://github.com/lobehub/lobe-chat/compare/v1.15.18...v1.15.19)
<sup>Released on **2024-09-08**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-08 07:11:55 +00:00
Arvin Xu 7e6c8a59e2 ️ perf: fix large content render (#3820)
* ️ perf: improve large content render

* ️ perf: use message portal to show long text detail

* 🌐 chore: implement i18n

* ️ perf: fix smoothing

* 💄 style: fix background color of docs mode

* 💄 style: fix background color of docs mode
2024-09-08 15:05:18 +08:00
semantic-release-bot 59e5f504d2 🔖 chore(release): v1.15.18 [skip ci]
### [Version&nbsp;1.15.18](https://github.com/lobehub/lobe-chat/compare/v1.15.17...v1.15.18)
<sup>Released on **2024-09-06**</sup>

#### 💄 Styles

- **misc**: Support anthropic browser request.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Support anthropic browser request, closes [#3798](https://github.com/lobehub/lobe-chat/issues/3798) ([743df51](https://github.com/lobehub/lobe-chat/commit/743df51))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-06 17:09:19 +00:00
Arvin Xu 743df5159e 💄 style: support anthropic browser request (#3798) 2024-09-07 01:02:27 +08:00
semantic-release-bot b4f3512c30 🔖 chore(release): v1.15.17 [skip ci]
### [Version&nbsp;1.15.17](https://github.com/lobehub/lobe-chat/compare/v1.15.16...v1.15.17)
<sup>Released on **2024-09-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix auth log.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix auth log, closes [#3795](https://github.com/lobehub/lobe-chat/issues/3795) ([71aa405](https://github.com/lobehub/lobe-chat/commit/71aa405))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-06 15:29:34 +00:00
Arvin Xu 71aa40563f 🐛 fix: fix auth log (#3795) 2024-09-06 23:22:34 +08:00
qq940500529 c9e7e316b8 📝 docs: correct typo in 'openai api key' in .env example and documentation (#3797) 2024-09-06 23:21:48 +08:00
lobehubbot 1e3e35c26a 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-06 14:25:14 +00:00
semantic-release-bot 69a9a7965a 🔖 chore(release): v1.15.16 [skip ci]
### [Version&nbsp;1.15.16](https://github.com/lobehub/lobe-chat/compare/v1.15.15...v1.15.16)
<sup>Released on **2024-09-06**</sup>

#### 💄 Styles

- **misc**: Update Bedrock model list & add `AWS_BEDROCK_MODEL_LIST` support.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Bedrock model list & add `AWS_BEDROCK_MODEL_LIST` support, closes [#3723](https://github.com/lobehub/lobe-chat/issues/3723) ([0aad972](https://github.com/lobehub/lobe-chat/commit/0aad972))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-06 14:24:24 +00:00
Zhijie He 0aad972505 💄 style: Update Bedrock model list & add AWS_BEDROCK_MODEL_LIST support (#3723)
* 💄 style: Update Bedrock model list

* 🐛 fix: fix typo

* 💄 style: add `AWS_BEDROCK_MODEL_LIST` support

* 💄 style: Update Bedrock model list (Comments unsupported models)

* 💄 style: rollback & update model description

* 💄 style: sync desc & token num from Bedrock

* 💄 style: update model list

* 💄 style: update Titan displayName
2024-09-06 22:17:31 +08:00
semantic-release-bot f738d10930 🔖 chore(release): v1.15.15 [skip ci]
### [Version&nbsp;1.15.15](https://github.com/lobehub/lobe-chat/compare/v1.15.14...v1.15.15)
<sup>Released on **2024-09-06**</sup>

#### 💄 Styles

- **misc**: Add `LLaVA 1.5 7B` model in Groq.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add `LLaVA 1.5 7B` model in Groq, closes [#3769](https://github.com/lobehub/lobe-chat/issues/3769) ([f78a0b1](https://github.com/lobehub/lobe-chat/commit/f78a0b1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-06 13:31:03 +00:00
cosark 9a41eef0b9 📝 docs: Adding one-click deploy button for RepoCloud.io to README.md (#3484) 2024-09-06 21:24:11 +08:00
cosark 0c4b4a0c71 📝 docs: Update server-database/repocloud (#3772)
* Update `docs/self-hosting/server-database/repocloud.mdx`

* Update repocloud.mdx
2024-09-06 21:16:58 +08:00
Zhijie He f78a0b130a 💄 style: add LLaVA 1.5 7B model in Groq (#3769) 2024-09-06 21:16:43 +08:00
semantic-release-bot 176c01af76 🔖 chore(release): v1.15.14 [skip ci]
### [Version&nbsp;1.15.14](https://github.com/lobehub/lobe-chat/compare/v1.15.13...v1.15.14)
<sup>Released on **2024-09-06**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-06 12:29:52 +00:00
Arvin Xu 24cacf23e1 ️ perf: disable smoohting by default in fetchSSE (#3787)
* ️ perf: disable smoohting by default in fetchSSE

* ️ perf: disable smoohting by default in fetchSSE

* ️ perf: add smoothing config for Google
2024-09-06 20:22:57 +08:00
semantic-release-bot c22b8863c5 🔖 chore(release): v1.15.13 [skip ci]
### [Version&nbsp;1.15.13](https://github.com/lobehub/lobe-chat/compare/v1.15.12...v1.15.13)
<sup>Released on **2024-09-06**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-06 02:28:49 +00:00
Arvin Xu 77243e12a4 🔧 build: remove optimizePackageImports for shiki (#3784) 2024-09-06 10:22:14 +08:00
semantic-release-bot 83be9d2581 🔖 chore(release): v1.15.12 [skip ci]
### [Version&nbsp;1.15.12](https://github.com/lobehub/lobe-chat/compare/v1.15.11...v1.15.12)
<sup>Released on **2024-09-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix typo in RAG prompt.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix typo in RAG prompt, closes [#3764](https://github.com/lobehub/lobe-chat/issues/3764) ([ff61fa6](https://github.com/lobehub/lobe-chat/commit/ff61fa6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-04 18:24:16 +00:00
syhien ff61fa6931 🐛 fix: fix typo in RAG prompt (#3764) 2024-09-05 02:17:31 +08:00
sxjeru fc39ba8051 💄 style: Update Stepfun models (#3767) 2024-09-05 01:33:42 +08:00
semantic-release-bot 4f643a3484 🔖 chore(release): v1.15.11 [skip ci]
### [Version&nbsp;1.15.11](https://github.com/lobehub/lobe-chat/compare/v1.15.10...v1.15.11)
<sup>Released on **2024-09-04**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-04 02:19:46 +00:00
Arvin Xu 0e1989341c ️ perf: fix stream smoothing (#3758) 2024-09-04 10:13:05 +08:00
semantic-release-bot 7b707735f8 🔖 chore(release): v1.15.10 [skip ci]
### [Version&nbsp;1.15.10](https://github.com/lobehub/lobe-chat/compare/v1.15.9...v1.15.10)
<sup>Released on **2024-09-03**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-03 18:29:47 +00:00
Arvin Xu 51c6b622fd ️ perf: 优化长文本时的渲染性能 (#3754)
* ️ perf: 优化渲染长文本时的渲染性能

* 👷 build: fix vercel build

* ️ perf: 提高 smooth 每帧速度

*  test: add test for tokenizer edge runtime

* 💚 build: fix build

* ♻️ refactor: refactor with webapi

* 🚨 ci: improve lint

*  test: fix test

* ️ perf: try o200k_base
2024-09-04 02:22:53 +08:00
semantic-release-bot 63113f9427 🔖 chore(release): v1.15.9 [skip ci]
### [Version&nbsp;1.15.9](https://github.com/lobehub/lobe-chat/compare/v1.15.8...v1.15.9)
<sup>Released on **2024-09-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix speed and rag prompt.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix speed and rag prompt, closes [#3751](https://github.com/lobehub/lobe-chat/issues/3751) ([dce200c](https://github.com/lobehub/lobe-chat/commit/dce200c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-03 14:23:12 +00:00
Arvin Xu dce200c81a 🐛 fix: fix speed and rag prompt (#3751)
* fix user role

* fix upload speed
2024-09-03 22:16:16 +08:00
semantic-release-bot 03f8a69f76 🔖 chore(release): v1.15.8 [skip ci]
### [Version&nbsp;1.15.8](https://github.com/lobehub/lobe-chat/compare/v1.15.7...v1.15.8)
<sup>Released on **2024-09-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `.PDF` can not be chunked.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix `.PDF` can not be chunked, closes [#3720](https://github.com/lobehub/lobe-chat/issues/3720) ([4244c04](https://github.com/lobehub/lobe-chat/commit/4244c04))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-03 13:35:01 +00:00
Arvin Xu 4244c04223 🐛 fix: fix .PDF can not be chunked (#3720)
*  feat: support eval page

*  feat: 完善数据集页面

*  feat: 完善数据集页面

*  feat: 新增评测任务页面

*  feat: 新增评测任务页面

* 🚧 wip: 新增评测任务功能

*  feat: 完成评测执行流程

* 🐛 fix: 支持 evaluation 的删除和创建

* 支持任务状态展示和数据下载

* fix langchain 分块后缀识别

* fix i18n

* fix auth

* ♻️ refactor: 重构db

* 先添加默认模型
2024-09-03 21:28:23 +08:00
lobehubbot 2a40c4b430 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-03 08:42:41 +00:00
semantic-release-bot 627732aeeb 🔖 chore(release): v1.15.7 [skip ci]
### [Version&nbsp;1.15.7](https://github.com/lobehub/lobe-chat/compare/v1.15.6...v1.15.7)
<sup>Released on **2024-09-03**</sup>

#### 💄 Styles

- **misc**: Fix provider disabled title style.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix provider disabled title style, closes [#3743](https://github.com/lobehub/lobe-chat/issues/3743) ([2c72452](https://github.com/lobehub/lobe-chat/commit/2c72452))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-03 08:41:46 +00:00
vual 2c724525b9 💄 style: fix provider disabled title style (#3743) 2024-09-03 16:34:25 +08:00
Arthals 6790334b38 📝 docs: fix typo on docker-compose doc (#3719) 2024-09-03 10:11:55 +08:00
semantic-release-bot 8adbff2318 🔖 chore(release): v1.15.6 [skip ci]
### [Version&nbsp;1.15.6](https://github.com/lobehub/lobe-chat/compare/v1.15.5...v1.15.6)
<sup>Released on **2024-09-01**</sup>

#### 💄 Styles

- **misc**: Stepfun default enabled model, update Groq model list & add `GROQ_MODEL_LIST` support.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Stepfun default enabled model, closes [#3712](https://github.com/lobehub/lobe-chat/issues/3712) ([7e41d54](https://github.com/lobehub/lobe-chat/commit/7e41d54))
* **misc**: Update Groq model list & add `GROQ_MODEL_LIST` support, closes [#3716](https://github.com/lobehub/lobe-chat/issues/3716) ([75c9247](https://github.com/lobehub/lobe-chat/commit/75c9247))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-01 14:48:46 +00:00
LovelyGuYiMeng 7e41d545b4 💄 style: Stepfun default enabled model (#3712)
* Update stepfun.ts

* Update openai.ts

* Update openai.ts
2024-09-01 22:42:12 +08:00
Zhijie He 75c9247819 💄 style: update Groq model list & add GROQ_MODEL_LIST support (#3716)
* 💄 style: update Groq model list & add `GROQ_MODEL_LIST` support

* 💄 style: update Groq model list
2024-09-01 22:41:35 +08:00
semantic-release-bot f9c043cc6a 🔖 chore(release): v1.15.5 [skip ci]
### [Version&nbsp;1.15.5](https://github.com/lobehub/lobe-chat/compare/v1.15.4...v1.15.5)
<sup>Released on **2024-09-01**</sup>

#### 💄 Styles

- **misc**: Update Together AI model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Together AI model list, closes [#3713](https://github.com/lobehub/lobe-chat/issues/3713) ([0dde3b1](https://github.com/lobehub/lobe-chat/commit/0dde3b1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-01 10:52:32 +00:00
Zhijie He 0dde3b14e2 💄 style: update Together AI model list (#3713)
* 💄 style: update Together AI model list

* 💄 style: update model info

* 💄 style: update Llama3.1 405B tokens num

* 🔨 chore: fix CI
2024-09-01 18:45:57 +08:00
lobehubbot 2ae1ba2ef3 📝 docs(bot): Auto sync agents & plugin to readme 2024-09-01 10:18:16 +00:00
semantic-release-bot 27e7315cae 🔖 chore(release): v1.15.4 [skip ci]
### [Version&nbsp;1.15.4](https://github.com/lobehub/lobe-chat/compare/v1.15.3...v1.15.4)
<sup>Released on **2024-09-01**</sup>

#### 💄 Styles

- **misc**: Update Novita AI model info & add `NOVITA_MODEL_LIST` support.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Novita AI model info & add `NOVITA_MODEL_LIST` support, closes [#3715](https://github.com/lobehub/lobe-chat/issues/3715) ([4ab33f6](https://github.com/lobehub/lobe-chat/commit/4ab33f6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-01 10:17:26 +00:00
Zhijie He 4ab33f6d9e 💄 style: update Novita AI model info & add NOVITA_MODEL_LIST support (#3715) 2024-09-01 18:10:47 +08:00
semantic-release-bot cdfcbfbec6 🔖 chore(release): v1.15.3 [skip ci]
### [Version&nbsp;1.15.3](https://github.com/lobehub/lobe-chat/compare/v1.15.2...v1.15.3)
<sup>Released on **2024-09-01**</sup>

#### 💄 Styles

- **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, fix model info, update Claude 3.5 Sonnet maxOutput vaule.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, closes [#3704](https://github.com/lobehub/lobe-chat/issues/3704) ([05419dc](https://github.com/lobehub/lobe-chat/commit/05419dc))
* **misc**: Fix model info, closes [#3696](https://github.com/lobehub/lobe-chat/issues/3696) ([4d98037](https://github.com/lobehub/lobe-chat/commit/4d98037))
* **misc**: Update Claude 3.5 Sonnet maxOutput vaule, closes [#3705](https://github.com/lobehub/lobe-chat/issues/3705) ([685bd74](https://github.com/lobehub/lobe-chat/commit/685bd74))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-09-01 04:34:16 +00:00
sxjeru 4d98037ce7 💄 style: fix model info (#3696)
* Update stepfun.ts

* Update qwen.ts

* Update qwen.ts

* Update stepfun.ts
2024-09-01 12:27:54 +08:00
Zhijie He 685bd74ce1 💄 style: update Claude 3.5 Sonnet maxOutput vaule (#3705) 2024-09-01 12:27:34 +08:00
Zhijie He 05419dce75 💄 style: add *_MODEL_LIST for Qwen and ZeroOne (#3704) 2024-09-01 12:26:29 +08:00
renovate[bot] 4c761c9c0b Update pnpm to v9.9.0 (#3708)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 12:25:01 +08:00
lobehubbot e5aa8e5487 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-31 16:36:30 +00:00
Arvin Xu b95f70bb9e 📝 docs: add knowledge base in Readme (#3702)
* 📝 docs: add knowledge base

* Update README.zh-CN.md

* Update README.zh-CN.md

* Update README.md
2024-09-01 00:29:54 +08:00
Arthals d0652c8264 📝 docs: fix typo (#3700) 2024-08-31 18:15:22 +08:00
semantic-release-bot 990b2c43fd 🔖 chore(release): v1.15.2 [skip ci]
### [Version&nbsp;1.15.2](https://github.com/lobehub/lobe-chat/compare/v1.15.1...v1.15.2)
<sup>Released on **2024-08-30**</sup>

#### 💄 Styles

- **misc**: Update Qwen and Gemini models info.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Qwen and Gemini models info, closes [#3693](https://github.com/lobehub/lobe-chat/issues/3693) ([ba01641](https://github.com/lobehub/lobe-chat/commit/ba01641))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-30 15:29:56 +00:00
LovelyGuYiMeng ba01641f4c 💄 style: Update Qwen and Gemini models info (#3693)
* Update qwen.ts

* Update google.ts

* Update google.ts
2024-08-30 23:23:22 +08:00
Arthals e3f898cec1 📝 docs: Docker Compose (#3687)
* 📝 docs: Docker Compose

* 📝 docs: Tencent Cloud

* 📝 docs: S3 & Some note

* 📝 docs: Link's lang
2024-08-30 23:22:49 +08:00
semantic-release-bot 2cddfdfdc5 🔖 chore(release): v1.15.1 [skip ci]
### [Version&nbsp;1.15.1](https://github.com/lobehub/lobe-chat/compare/v1.15.0...v1.15.1)
<sup>Released on **2024-08-30**</sup>

#### 💄 Styles

- **misc**: Update the sorting of each provider model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update the sorting of each provider model, closes [#3689](https://github.com/lobehub/lobe-chat/issues/3689) ([e82c9dd](https://github.com/lobehub/lobe-chat/commit/e82c9dd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-30 14:35:20 +00:00
LovelyGuYiMeng e82c9dd2b8 💄 style: Update the sorting of each provider model (#3689)
* Update zeroone.ts

* Update zeroone.ts

* Update zhipu.ts

* Update moonshot.ts

* Update baichuan.ts

* Update minimax.ts

* Update qwen.ts

* Update qwen.ts

* Update qwen.ts
2024-08-30 22:28:44 +08:00
semantic-release-bot 168c467769 🔖 chore(release): v1.15.0 [skip ci]
## [Version&nbsp;1.15.0](https://github.com/lobehub/lobe-chat/compare/v1.14.12...v1.15.0)
<sup>Released on **2024-08-30**</sup>

####  Features

- **misc**: Add Upstage model provider support.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Upstage model provider support, closes [#3670](https://github.com/lobehub/lobe-chat/issues/3670) ([4b8591b](https://github.com/lobehub/lobe-chat/commit/4b8591b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-30 14:04:35 +00:00
Arvin Xu 7ab418248d 💄 style: improve style of file preview (#3691) 2024-08-30 21:57:50 +08:00
Zhijie He 4b8591be50 feat: add Upstage model provider support (#3670)
*  feat: add Upstage model provider support

* 💄 style: uncomment for icon display

* 🔨 chore: remove groundedness-check model

* 🔨 chore: remove proxyUrl for Upstage
2024-08-30 21:54:21 +08:00
Arvin Xu e13aa39dce style: add preview for image file (#3690) 2024-08-30 21:51:35 +08:00
semantic-release-bot bd27580704 🔖 chore(release): v1.14.12 [skip ci]
### [Version&nbsp;1.14.12](https://github.com/lobehub/lobe-chat/compare/v1.14.11...v1.14.12)
<sup>Released on **2024-08-30**</sup>

#### 💄 Styles

- **misc**: Fix ms doc file preview, Update the sorting of each provider model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix ms doc file preview, closes [#3686](https://github.com/lobehub/lobe-chat/issues/3686) ([2cd78cf](https://github.com/lobehub/lobe-chat/commit/2cd78cf))
* **misc**: Update the sorting of each provider model, closes [#3688](https://github.com/lobehub/lobe-chat/issues/3688) ([2630bbc](https://github.com/lobehub/lobe-chat/commit/2630bbc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-30 13:06:44 +00:00
LovelyGuYiMeng 2630bbc2b9 💄 style: Update the sorting of each provider model (#3688)
* Update zeroone.ts

* Update zeroone.ts

* Update zhipu.ts

* Update moonshot.ts
2024-08-30 21:00:16 +08:00
Arvin Xu 2cd78cf24b 💄 style: fix ms doc file preview (#3686)
* 💄 style: improve msdoc relative file view

* update i18n
2024-08-30 20:59:13 +08:00
semantic-release-bot 9a5dd74b79 🔖 chore(release): v1.14.11 [skip ci]
### [Version&nbsp;1.14.11](https://github.com/lobehub/lobe-chat/compare/v1.14.10...v1.14.11)
<sup>Released on **2024-08-30**</sup>

#### 💄 Styles

- **misc**: Update Stepfun models info.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Stepfun models info, closes [#3685](https://github.com/lobehub/lobe-chat/issues/3685) ([478b40a](https://github.com/lobehub/lobe-chat/commit/478b40a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-30 12:05:10 +00:00
LovelyGuYiMeng 478b40a756 💄 style: Update Stepfun models info (#3685)
* Update stepfun.ts

* Update stepfun.ts
2024-08-30 19:58:30 +08:00
LovelyGuYiMeng 66b3c51ef9 💄 style:improve qwen model tokens (#3683) 2024-08-30 18:39:01 +08:00
LovelyGuYiMeng 34b817aed3 💄 style:improve zhipu model tokens (#3680) 2024-08-30 17:54:20 +08:00
sxjeru 24dd3c8876 💄 style:Update zhipu models (#3677) 2024-08-30 16:16:36 +08:00
lobehubbot b8e97f5d33 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-30 05:22:18 +00:00
semantic-release-bot 6acc848ac5 🔖 chore(release): v1.14.10 [skip ci]
### [Version&nbsp;1.14.10](https://github.com/lobehub/lobe-chat/compare/v1.14.9...v1.14.10)
<sup>Released on **2024-08-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix file relative chunks.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix file relative chunks, closes [#3676](https://github.com/lobehub/lobe-chat/issues/3676) ([afe1906](https://github.com/lobehub/lobe-chat/commit/afe1906))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-30 05:21:29 +00:00
Arvin Xu afe19064d3 🐛 fix: fix file relative chunks (#3676)
* 🌐 chore: update i18n

* 🐛 fix: fix relative files
2024-08-30 13:14:50 +08:00
semantic-release-bot fe62aee06b 🔖 chore(release): v1.14.9 [skip ci]
### [Version&nbsp;1.14.9](https://github.com/lobehub/lobe-chat/compare/v1.14.8...v1.14.9)
<sup>Released on **2024-08-29**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-29 16:09:39 +00:00
Zhijie He f297059317 👷 build: support Generic OIDC auth (#3647)
*  feat: support Generic OIDC auth

* 📝 docs: add Generic OIDC env doc
2024-08-30 00:03:04 +08:00
Arvin Xu 1f9eb04525 📝 docs: improve docker-compose (#3661)
* improve docker-compose

* improve docs

* improve docs

* improve docs
2024-08-29 15:31:19 +08:00
semantic-release-bot e936bfd18a 🔖 chore(release): v1.14.8 [skip ci]
### [Version&nbsp;1.14.8](https://github.com/lobehub/lobe-chat/compare/v1.14.7...v1.14.8)
<sup>Released on **2024-08-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix whisper-1 typo.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix whisper-1 typo, closes [#3665](https://github.com/lobehub/lobe-chat/issues/3665) ([084c971](https://github.com/lobehub/lobe-chat/commit/084c971))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-29 05:04:04 +00:00
CanisMinor 084c9718dd 🐛 fix: Fix whisper-1 typo (#3665) 2024-08-29 12:57:10 +08:00
semantic-release-bot 7373a7ff4a 🔖 chore(release): v1.14.7 [skip ci]
### [Version&nbsp;1.14.7](https://github.com/lobehub/lobe-chat/compare/v1.14.6...v1.14.7)
<sup>Released on **2024-08-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Disable ChatGPT-4o Tools Calling.

#### 💄 Styles

- **misc**: Improve chunk and file preview.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Disable ChatGPT-4o Tools Calling, closes [#3659](https://github.com/lobehub/lobe-chat/issues/3659) ([c94077d](https://github.com/lobehub/lobe-chat/commit/c94077d))

#### Styles

* **misc**: Improve chunk and file preview, closes [#3658](https://github.com/lobehub/lobe-chat/issues/3658) ([4c9155c](https://github.com/lobehub/lobe-chat/commit/4c9155c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-28 15:59:21 +00:00
Arvin Xu c94077dced 🐛 fix: disable ChatGPT-4o Tools Calling (#3659) 2024-08-28 23:52:31 +08:00
Arvin Xu 4c9155c615 💄 style: improve chunk and file preview (#3658)
* ♻️ refactor: refactor the status

* 💄 style: improve chunk preview

* 💄 style: improve chunk preview

* 🌐 chore: update i18n
2024-08-28 23:51:54 +08:00
semantic-release-bot fc2d3a1b5e 🔖 chore(release): v1.14.6 [skip ci]
### [Version&nbsp;1.14.6](https://github.com/lobehub/lobe-chat/compare/v1.14.5...v1.14.6)
<sup>Released on **2024-08-28**</sup>

#### 💄 Styles

- **misc**: Update Gemini models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Gemini models, closes [#3653](https://github.com/lobehub/lobe-chat/issues/3653) ([b61ca4c](https://github.com/lobehub/lobe-chat/commit/b61ca4c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-28 15:28:03 +00:00
sxjeru b61ca4c73a 💄 style: Update Gemini models (#3653) 2024-08-28 23:18:52 +08:00
Arthals cef1733976 📝 docs: Docker compose for local. (#3651) 2024-08-28 18:59:16 +08:00
semantic-release-bot 6e202a6831 🔖 chore(release): v1.14.5 [skip ci]
### [Version&nbsp;1.14.5](https://github.com/lobehub/lobe-chat/compare/v1.14.4...v1.14.5)
<sup>Released on **2024-08-28**</sup>

#### 🐛 Bug Fixes

- **misc**: No user name if Cloudflare Zero Trust with onetimepin.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: No user name if Cloudflare Zero Trust with onetimepin, closes [#3649](https://github.com/lobehub/lobe-chat/issues/3649) ([5bfee5a](https://github.com/lobehub/lobe-chat/commit/5bfee5a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-28 08:45:35 +00:00
Zhijie He 5bfee5a2da 🐛 fix: no user name if Cloudflare Zero Trust with onetimepin (#3649) 2024-08-28 16:38:53 +08:00
semantic-release-bot 3114397a63 🔖 chore(release): v1.14.4 [skip ci]
### [Version&nbsp;1.14.4](https://github.com/lobehub/lobe-chat/compare/v1.14.3...v1.14.4)
<sup>Released on **2024-08-28**</sup>

#### 💄 Styles

- **misc**: Move model and provider icon components to `@lobehub/icons`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Move model and provider icon components to `@lobehub/icons`, closes [#3634](https://github.com/lobehub/lobe-chat/issues/3634) ([5c7e17a](https://github.com/lobehub/lobe-chat/commit/5c7e17a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-28 03:34:49 +00:00
CanisMinor 5c7e17a68f 💄 style: Move model and provider icon components to @lobehub/icons (#3634)
* 💄 style: Move model and provider icon components to @lobehub/icons

* 🐛 fix: Fix review problem

* 🔧 chore: Update deps

* 💄 style: Rm Google Avatar in Browser options
2024-08-28 11:27:59 +08:00
Arthals 64eb7c24d2 📝 docs: Logto & fix typo. (#3641)
* 📝 docs: Logto & fix typo.

* 📝 docs: Logto variables & fix typo.
2024-08-28 10:30:12 +08:00
lobehubbot c53fee6ac1 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-27 17:45:31 +00:00
semantic-release-bot d8cad21a37 🔖 chore(release): v1.14.3 [skip ci]
### [Version&nbsp;1.14.3](https://github.com/lobehub/lobe-chat/compare/v1.14.2...v1.14.3)
<sup>Released on **2024-08-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve aysnc error type.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Improve aysnc error type, closes [#3638](https://github.com/lobehub/lobe-chat/issues/3638) ([dbae456](https://github.com/lobehub/lobe-chat/commit/dbae456))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-27 17:44:22 +00:00
Arvin Xu dbae45685f 🐛 fix: improve aysnc error type (#3638)
* 🐛 fix: improve chunking task error

* 🐛 fix: improve chunking task error

* 🐛 fix: improve embedding task error
2024-08-28 01:37:47 +08:00
Arthals c31fc2e9c1 📝 docs: fix curl typo (#3637)
* 📝 docs: fix curl typo

* 📝 docs: Docker english ver.
2024-08-28 00:31:54 +08:00
Arthals ae3bc82527 📝 docs: Docker Compose for database ver. (#3607)
* 📝 docs: Docker for database ver.

* 📝 docs: Docker / Docker compose for database ver.

* 📝 docs: MinIO

* 📝 docs: Other S3

* 📝 docs: Quick Start

* 📝 docs: SSL

* 📝 docs: SSL

* 📝 docs: Docker-Compose english ver.

* 📝 docs: Docker-Compose for database ver.
2024-08-27 23:52:20 +08:00
semantic-release-bot 3cd7da14cf 🔖 chore(release): v1.14.2 [skip ci]
### [Version&nbsp;1.14.2](https://github.com/lobehub/lobe-chat/compare/v1.14.1...v1.14.2)
<sup>Released on **2024-08-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix agent setting.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix agent setting, closes [#3633](https://github.com/lobehub/lobe-chat/issues/3633) ([298fddb](https://github.com/lobehub/lobe-chat/commit/298fddb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-27 15:34:54 +00:00
Arvin Xu 298fddb2cb 🐛 fix: fix agent setting (#3633)
* 📝 docs: update auth

* 📝 docs: update auth

* 🐛 fix: fix agent setting bug

* 🐛 fix: fix agent setting bug
2024-08-27 23:28:11 +08:00
lobehubbot a2d67aae33 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-27 14:45:12 +00:00
semantic-release-bot 3b6d61958b 🔖 chore(release): v1.14.1 [skip ci]
### [Version&nbsp;1.14.1](https://github.com/lobehub/lobe-chat/compare/v1.14.0...v1.14.1)
<sup>Released on **2024-08-27**</sup>

#### 💄 Styles

- **misc**: Improve zhipu model config.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve zhipu model config, closes [#3635](https://github.com/lobehub/lobe-chat/issues/3635) ([1274e6a](https://github.com/lobehub/lobe-chat/commit/1274e6a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-27 14:44:22 +00:00
Frank Cheung 1274e6acfd 💄 style: improve zhipu model config (#3635)
1. change glm-4-flash config, enabled by default and support function call
2. add model list support
2024-08-27 22:37:51 +08:00
semantic-release-bot d3ff41e024 🔖 chore(release): v1.14.0 [skip ci]
## [Version&nbsp;1.14.0](https://github.com/lobehub/lobe-chat/compare/v1.13.2...v1.14.0)
<sup>Released on **2024-08-27**</sup>

####  Features

- **misc**: Supports Cloudflare Zero Trust login.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Supports Cloudflare Zero Trust login, closes [#3624](https://github.com/lobehub/lobe-chat/issues/3624) ([ac2bf68](https://github.com/lobehub/lobe-chat/commit/ac2bf68))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-27 13:19:38 +00:00
Ikko Eltociear Ashimine 949d558c3f 📝 docs: add Japanese README (#3368)
Signed-off-by: Ikko Ashimine <ashimine_ikko_bp@tenso.com>
2024-08-27 21:12:56 +08:00
Zhijie He ac2bf68804 feat: Supports Cloudflare Zero Trust login (#3624)
*  feat: Supports Cloudflare Zero Trust login

* 📝 docs: add doc for Cloudflare Zero Trust

* ♻️ refactor: cleanup

* ♻️ refactor: rollback checks
2024-08-27 21:09:09 +08:00
cy948 3f92adc8e3 Support logto provider (#3630)
*  support logto provider

* 🎨 style: format code
2024-08-27 21:07:28 +08:00
semantic-release-bot 7e84d1e57e 🔖 chore(release): v1.13.2 [skip ci]
### [Version&nbsp;1.13.2](https://github.com/lobehub/lobe-chat/compare/v1.13.1...v1.13.2)
<sup>Released on **2024-08-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Bypass vercel deployment protection, fix can send message on uploading files.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Bypass vercel deployment protection, closes [#3627](https://github.com/lobehub/lobe-chat/issues/3627) ([47da20d](https://github.com/lobehub/lobe-chat/commit/47da20d))
* **misc**: Fix can send message on uploading files, closes [#3618](https://github.com/lobehub/lobe-chat/issues/3618) ([fe4329a](https://github.com/lobehub/lobe-chat/commit/fe4329a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-27 08:35:12 +00:00
Arvin Xu fe4329a59a 🐛 fix: fix can send message on uploading files (#3618)
* 🔧 chore: add deps

* ♻️ refactor: refactor code

* Update package.json

* fix send issue on uploading file

* add tests
2024-08-27 16:28:24 +08:00
Minh-Phuc Tran 47da20d5ec 🐛 fix: bypass vercel deployment protection (#3627) 2024-08-27 16:26:00 +08:00
semantic-release-bot f41566bc44 🔖 chore(release): v1.13.1 [skip ci]
### [Version&nbsp;1.13.1](https://github.com/lobehub/lobe-chat/compare/v1.13.0...v1.13.1)
<sup>Released on **2024-08-27**</sup>

#### 💄 Styles

- **misc**: Update Qwen models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Qwen models, closes [#3626](https://github.com/lobehub/lobe-chat/issues/3626) ([4393386](https://github.com/lobehub/lobe-chat/commit/4393386))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-27 07:25:59 +00:00
sxjeru 4393386057 💄 style: Update Qwen models (#3626)
* Update qwen.ts

* Update qwen.ts
2024-08-27 15:19:31 +08:00
semantic-release-bot 974da6bf8f 🔖 chore(release): v1.13.0 [skip ci]
## [Version&nbsp;1.13.0](https://github.com/lobehub/lobe-chat/compare/v1.12.20...v1.13.0)
<sup>Released on **2024-08-27**</sup>

####  Features

- **misc**: Supports Authelia login.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Supports Authelia login, closes [#3589](https://github.com/lobehub/lobe-chat/issues/3589) ([2141ae7](https://github.com/lobehub/lobe-chat/commit/2141ae7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-27 02:28:45 +00:00
Ivan Li 2141ae71a4 feat: Supports Authelia login (#3589)
* feat(next-auth): support Authelia.

* doc(authelia): Added configuration documentation for Authelia authentication.

* fix: typo and update doc.

* feat(next-auth): mapping profile for Authelia provider.

* doc: Add Authelia-related content to Auth environment variables documentation.
2024-08-27 10:22:05 +08:00
semantic-release-bot b400fc06c2 🔖 chore(release): v1.12.20 [skip ci]
### [Version&nbsp;1.12.20](https://github.com/lobehub/lobe-chat/compare/v1.12.19...v1.12.20)
<sup>Released on **2024-08-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Feature flag `knowledge_base` doesn't affect ActionBar.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Feature flag `knowledge_base` doesn't affect ActionBar, closes [#3609](https://github.com/lobehub/lobe-chat/issues/3609) ([1a5286b](https://github.com/lobehub/lobe-chat/commit/1a5286b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-26 17:04:25 +00:00
Arthals 1a5286b2f1 🐛 fix: feature flag knowledge_base doesn't affect ActionBar (#3609)
* 🐛 fix: Feature flag `knoeledge_base` doesn't affect ActionBar

* 🐛 fix: Feature flag `knoeledge_base` doesn't affect ActionBar
2024-08-27 00:57:50 +08:00
semantic-release-bot d1d0350302 🔖 chore(release): v1.12.19 [skip ci]
### [Version&nbsp;1.12.19](https://github.com/lobehub/lobe-chat/compare/v1.12.18...v1.12.19)
<sup>Released on **2024-08-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix cannot clone agent when imported from client.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix cannot clone agent when imported from client, closes [#3606](https://github.com/lobehub/lobe-chat/issues/3606) ([1fd2fa0](https://github.com/lobehub/lobe-chat/commit/1fd2fa0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-25 16:20:56 +00:00
Arvin Xu 1fd2fa0246 🐛 fix: fix cannot clone agent when imported from client (#3606)
* 🐛 fix: fix cannot clone agent when imported from client

*  test: fix lint
2024-08-26 00:14:26 +08:00
semantic-release-bot b9de2e3b51 🔖 chore(release): v1.12.18 [skip ci]
### [Version&nbsp;1.12.18](https://github.com/lobehub/lobe-chat/compare/v1.12.17...v1.12.18)
<sup>Released on **2024-08-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix dayjs error in en-US language.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix dayjs error in en-US language, closes [#3604](https://github.com/lobehub/lobe-chat/issues/3604) ([174f4df](https://github.com/lobehub/lobe-chat/commit/174f4df))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-25 15:52:28 +00:00
Arvin Xu 174f4df735 🐛 fix: fix dayjs error in en-US language (#3604)
* 🐛 fix: fix dayjs issue

* 🐛 fix: fix user auth and password issue
2024-08-25 23:46:05 +08:00
lobehubbot 7076b95e4b 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-25 14:55:59 +00:00
semantic-release-bot 6203c89a86 🔖 chore(release): v1.12.17 [skip ci]
### [Version&nbsp;1.12.17](https://github.com/lobehub/lobe-chat/compare/v1.12.16...v1.12.17)
<sup>Released on **2024-08-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix multi file upload dupicate.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix multi file upload dupicate, closes [#3603](https://github.com/lobehub/lobe-chat/issues/3603) ([60dbed7](https://github.com/lobehub/lobe-chat/commit/60dbed7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-25 14:54:49 +00:00
renovate[bot] 692d1bd218 Update dependency @t3-oss/env-nextjs to ^0.11.0 (#3344)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 22:48:23 +08:00
Arvin Xu 60dbed7029 🐛 fix: fix multi file upload dupicate (#3603)
* 🐛 fix: fix upload issue

* 🐛 fix: fix upload issue
2024-08-25 22:46:07 +08:00
renovate[bot] 2dd1ae951f Update dependency drizzle-orm to ^0.33.0 (#3439)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 13:28:43 +08:00
renovate[bot] 698510fd1a Update dependency drizzle-kit to ^0.24.0 (#3438)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 13:28:21 +08:00
renovate[bot] 21f639ce8a Update pnpm to v9.8.0 (#3597)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 11:52:12 +08:00
renovate[bot] 24f112cfcb Update dependency @cfworker/json-schema to v2 (#3598)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 11:51:51 +08:00
renovate[bot] 428a0f9073 Update dependency happy-dom to v15 (#3599)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 11:49:50 +08:00
semantic-release-bot d3b0cb9451 🔖 chore(release): v1.12.16 [skip ci]
### [Version&nbsp;1.12.16](https://github.com/lobehub/lobe-chat/compare/v1.12.15...v1.12.16)
<sup>Released on **2024-08-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Session not found error on mobile.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Session not found error on mobile, closes [#3428](https://github.com/lobehub/lobe-chat/issues/3428) ([7e9c15e](https://github.com/lobehub/lobe-chat/commit/7e9c15e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-24 15:55:55 +00:00
Ryan 7e9c15e282 🐛 fix: session not found error on mobile (#3428) 2024-08-24 23:49:26 +08:00
semantic-release-bot 1069f3780f 🔖 chore(release): v1.12.15 [skip ci]
### [Version&nbsp;1.12.15](https://github.com/lobehub/lobe-chat/compare/v1.12.14...v1.12.15)
<sup>Released on **2024-08-24**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-24 15:42:13 +00:00
Arthals ddab42be53 📝 docs: Feature flags & Auto-update script (#3588)
* 📝 docs: Feature flags & Auto-update script

* 📝 docs: Hide internal var
2024-08-24 23:35:41 +08:00
Arvin Xu 47f5ac712b ️ perf: support latex chunking (#3592)
* 💄 style: support latex chunking

*  test: fix test
2024-08-24 23:30:13 +08:00
semantic-release-bot 09af3b3a98 🔖 chore(release): v1.12.14 [skip ci]
### [Version&nbsp;1.12.14](https://github.com/lobehub/lobe-chat/compare/v1.12.13...v1.12.14)
<sup>Released on **2024-08-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix tts file saving in server mode.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix tts file saving in server mode, closes [#3585](https://github.com/lobehub/lobe-chat/issues/3585) ([ab1cb47](https://github.com/lobehub/lobe-chat/commit/ab1cb47))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-24 05:42:42 +00:00
Arvin Xu ab1cb47a8e 🐛 fix: fix tts file saving in server mode (#3585)
* 🐛 fix: fix tts in server mode

* 🐛 fix: fix tts not save to file

*  test: fix test
2024-08-24 13:35:56 +08:00
lobehubbot 6b01996e5b 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-24 05:31:31 +00:00
semantic-release-bot 43a03bdc42 🔖 chore(release): v1.12.13 [skip ci]
### [Version&nbsp;1.12.13](https://github.com/lobehub/lobe-chat/compare/v1.12.12...v1.12.13)
<sup>Released on **2024-08-24**</sup>

#### 💄 Styles

- **misc**: Update 01.AI models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update 01.AI models, closes [#3586](https://github.com/lobehub/lobe-chat/issues/3586) ([c4a7f70](https://github.com/lobehub/lobe-chat/commit/c4a7f70))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-24 05:30:41 +00:00
sxjeru c4a7f703b8 💄 style: Update 01.AI models (#3586) 2024-08-24 13:24:12 +08:00
semantic-release-bot e4b56a2d48 🔖 chore(release): v1.12.12 [skip ci]
### [Version&nbsp;1.12.12](https://github.com/lobehub/lobe-chat/compare/v1.12.11...v1.12.12)
<sup>Released on **2024-08-24**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-24 02:43:42 +00:00
Arvin Xu 2c725575f7 👷 build: fix database docker build (#3584) 2024-08-24 10:37:14 +08:00
renovate[bot] 6ef4bdf6da Update dependency glob to v11 (#3216)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 01:53:15 +08:00
Arvin Xu 0e3bf0ce22 📝 docs: improve vercel and sync (#3581)
* 📝 docs: improve docs of vercel deployment

* 📝 docs: improve docs

* Update `upstream-sync.mdx` to include detailed instructions for handling sync failures and manual updates

* Add instructions for manually clicking "Update Branch" in case of sync failures
* Include images to illustrate the process of handling sync failures and manually updating branches
2024-08-24 01:40:33 +08:00
lobehubbot f10f3b335a 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-23 17:22:51 +00:00
semantic-release-bot 4e7d2e79d0 🔖 chore(release): v1.12.11 [skip ci]
### [Version&nbsp;1.12.11](https://github.com/lobehub/lobe-chat/compare/v1.12.10...v1.12.11)
<sup>Released on **2024-08-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Remove orphan chunks if there is no related file.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Remove orphan chunks if there is no related file, closes [#3578](https://github.com/lobehub/lobe-chat/issues/3578) ([36bcaf3](https://github.com/lobehub/lobe-chat/commit/36bcaf3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-23 17:21:56 +00:00
Arvin Xu 36bcaf39db 🐛 fix: remove orphan chunks if there is no related file (#3578)
*  test: add more tests

* 🐛 fix: add `DISABLE_REMOVE_GLOBAL_FILE` in dbENV

* 🐛 fix: remove orphan chunks if there is related file

*  test: fix test

* 👷 fix: throw error when not set `APP_URL` at server side

*  test: fix test
2024-08-24 01:15:27 +08:00
semantic-release-bot 6d96a4114f 🔖 chore(release): v1.12.10 [skip ci]
### [Version&nbsp;1.12.10](https://github.com/lobehub/lobe-chat/compare/v1.12.9...v1.12.10)
<sup>Released on **2024-08-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Refactor and fix dalle.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Refactor and fix dalle, closes [#3572](https://github.com/lobehub/lobe-chat/issues/3572) ([8b39b61](https://github.com/lobehub/lobe-chat/commit/8b39b61))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-23 14:19:47 +00:00
Arvin Xu 8b39b611be 🐛 fix: refactor and fix dalle (#3572)
* fix dalle

* revert change

* fix lint and test

* fix test

* 🚨 ci: fix lint

* 🐛 fix: fix image url in server mode

* 🐛 fix: fix file can't download if cors
2024-08-23 22:13:21 +08:00
semantic-release-bot 320df5bf7f 🔖 chore(release): v1.12.9 [skip ci]
### [Version&nbsp;1.12.9](https://github.com/lobehub/lobe-chat/compare/v1.12.8...v1.12.9)
<sup>Released on **2024-08-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve s3 path-style url.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Improve s3 path-style url, closes [#3567](https://github.com/lobehub/lobe-chat/issues/3567) ([96bb38a](https://github.com/lobehub/lobe-chat/commit/96bb38a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-23 03:00:07 +00:00
Arvin Xu 96bb38ac2e 🐛 fix: improve s3 path-style url (#3567) 2024-08-23 10:53:37 +08:00
semantic-release-bot 653bb34b52 🔖 chore(release): v1.12.8 [skip ci]
### [Version&nbsp;1.12.8](https://github.com/lobehub/lobe-chat/compare/v1.12.7...v1.12.8)
<sup>Released on **2024-08-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `NEXT_PUBLIC_S3_DOMAIN`  error on Docker.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix `NEXT_PUBLIC_S3_DOMAIN`  error on Docker, closes [#3564](https://github.com/lobehub/lobe-chat/issues/3564) ([bc6b64c](https://github.com/lobehub/lobe-chat/commit/bc6b64c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-22 16:33:30 +00:00
Arvin Xu bc6b64cc1f 🐛 fix: fix NEXT_PUBLIC_S3_DOMAIN error on Docker (#3564) 2024-08-23 00:26:55 +08:00
semantic-release-bot 5ef5963cf0 🔖 chore(release): v1.12.7 [skip ci]
### [Version&nbsp;1.12.7](https://github.com/lobehub/lobe-chat/compare/v1.12.6...v1.12.7)
<sup>Released on **2024-08-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Logout button not shown on mobile view when using nextauth.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Logout button not shown on mobile view when using nextauth, closes [#3561](https://github.com/lobehub/lobe-chat/issues/3561) ([0c4efe4](https://github.com/lobehub/lobe-chat/commit/0c4efe4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-22 16:15:43 +00:00
cy948 0c4efe4b33 🐛 fix: Logout button not shown on mobile view when using nextauth (#3561)
* 🐛 fix: logout button not shown on mobile view when using nextauth

* 🧪 test: show status for signout button
2024-08-23 00:09:17 +08:00
Arvin Xu 7a83cf9b2e 📝 docs: add S3 environment variables to documentation (#3562)
* Add S3 environment variables to documentation
2024-08-22 23:12:09 +08:00
semantic-release-bot 5c2ba8a0a6 🔖 chore(release): v1.12.6 [skip ci]
### [Version&nbsp;1.12.6](https://github.com/lobehub/lobe-chat/compare/v1.12.5...v1.12.6)
<sup>Released on **2024-08-22**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor s3 env and support path-style for minio.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor s3 env and support path-style for minio, closes [#3559](https://github.com/lobehub/lobe-chat/issues/3559) ([1658403](https://github.com/lobehub/lobe-chat/commit/1658403))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-22 14:59:06 +00:00
Arvin Xu 16584031a7 ♻️ refactor: refactor s3 env and support path-style for minio (#3559)
* ♻️ refactor: refactor the `NEXT_PUBLIC_S3_DOMAIN` to `S3_PUBLIC_DOMAIN`

* 👷 build: support path-style for s3
2024-08-22 22:52:25 +08:00
semantic-release-bot 2ecd5e310c 🔖 chore(release): v1.12.5 [skip ci]
### [Version&nbsp;1.12.5](https://github.com/lobehub/lobe-chat/compare/v1.12.4...v1.12.5)
<sup>Released on **2024-08-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix clipboard copy issue and improve upload cors feedback.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix clipboard copy issue and improve upload cors feedback, closes [#3557](https://github.com/lobehub/lobe-chat/issues/3557) ([86c5a99](https://github.com/lobehub/lobe-chat/commit/86c5a99))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-22 14:02:21 +00:00
Arvin Xu 86c5a99587 🐛 fix: fix clipboard copy issue and improve upload cors feedback (#3557)
* 🐛 fix: fix clipboard copy issue

* 🐛 fix: fix clipboard copy issue

* 🚸 style: improve cors upload issue

* 🚸 style: improve cors upload issue

* 🚸 style: improve cors upload issue
2024-08-22 21:55:51 +08:00
Arvin Xu 2ed0b8ea26 📝 docs: Sync S3 docs between Chinese and English versions (#3556)
---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/lobehub/lobe-chat?shareId=XXXX-XXXX-XXXX-XXXX).
2024-08-22 20:01:04 +08:00
Arvin Xu 58d8f57c88 📝 docs: sync updates to English docs (#3555) 2024-08-22 19:39:03 +08:00
semantic-release-bot 5984fae0d8 🔖 chore(release): v1.12.4 [skip ci]
### [Version&nbsp;1.12.4](https://github.com/lobehub/lobe-chat/compare/v1.12.3...v1.12.4)
<sup>Released on **2024-08-22**</sup>

#### 💄 Styles

- **misc**: Fix link style.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix link style, closes [#3552](https://github.com/lobehub/lobe-chat/issues/3552) ([aa936c8](https://github.com/lobehub/lobe-chat/commit/aa936c8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-22 09:53:41 +00:00
Arvin Xu aa936c8865 💄 style: fix link style (#3552) 2024-08-22 17:47:20 +08:00
semantic-release-bot da4daf51a0 🔖 chore(release): v1.12.3 [skip ci]
### [Version&nbsp;1.12.3](https://github.com/lobehub/lobe-chat/compare/v1.12.2...v1.12.3)
<sup>Released on **2024-08-22**</sup>

#### 💄 Styles

- **misc**: Hide settings in repo.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Hide settings in repo, closes [#3540](https://github.com/lobehub/lobe-chat/issues/3540) ([86c1165](https://github.com/lobehub/lobe-chat/commit/86c1165))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-22 07:25:46 +00:00
Arvin Xu 86c1165eac 💄 style: hide settings in repo (#3540)
* hide settings in repo

* fix drag

* Update useDragUpload.tsx

* Update package.json
2024-08-22 15:19:07 +08:00
semantic-release-bot 26e0e3474b 🔖 chore(release): v1.12.2 [skip ci]
### [Version&nbsp;1.12.2](https://github.com/lobehub/lobe-chat/compare/v1.12.1...v1.12.2)
<sup>Released on **2024-08-22**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-22 03:42:32 +00:00
Zhijie He b0474ef238 👷 build: make database docker image exit if migration fail (#3541)
* 👷 build: detect migration exit code

* 👷 build: fix ci issue
2024-08-22 11:36:00 +08:00
Arvin Xu 53a3089406 📝 docs: improve server deployment docs (#3534)
* 📝 docs: 更新 docker 部署文档

* 📝 docs: 更新 docker 部署文档

* 📝 docs: 更新 docker 部署文档

* 📝 docs: 更新 docker 部署文档

* 📝 docs: 更新 docker 部署文档

* 📝 docs: 更新 docker 部署文档

* 📝 docs: 更新 docker 部署文档
2024-08-22 02:30:09 +08:00
lobehubbot 6b35a645db 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-21 16:19:07 +00:00
semantic-release-bot 8359654986 🔖 chore(release): v1.12.1 [skip ci]
### [Version&nbsp;1.12.1](https://github.com/lobehub/lobe-chat/compare/v1.12.0...v1.12.1)
<sup>Released on **2024-08-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix embeddings multi-insert when there is issues with async task.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix embeddings multi-insert when there is issues with async task, closes [#3530](https://github.com/lobehub/lobe-chat/issues/3530) ([e2cfff7](https://github.com/lobehub/lobe-chat/commit/e2cfff7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-21 16:18:16 +00:00
Arvin Xu e2cfff73bd 🐛 fix: fix embeddings multi-insert when there is issues with async task (#3530) 2024-08-22 00:11:38 +08:00
semantic-release-bot 5568e3ff0b 🔖 chore(release): v1.12.0 [skip ci]
## [Version&nbsp;1.12.0](https://github.com/lobehub/lobe-chat/compare/v1.11.9...v1.12.0)
<sup>Released on **2024-08-21**</sup>

####  Features

- **misc**: Files and knowledge base.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Files and knowledge base, closes [#3487](https://github.com/lobehub/lobe-chat/issues/3487) ([6574c01](https://github.com/lobehub/lobe-chat/commit/6574c01))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-21 13:49:21 +00:00
Arvin Xu baf9d4c965 👷 ci: fix release workflow 2024-08-21 21:42:51 +08:00
Arvin Xu e500032404 👷 ci: fix release workflow (#3528) 2024-08-21 21:37:15 +08:00
Arvin Xu 6574c01843 feat: files and knowledge base (#3487)
*  feat: add files and knowledge base

Update edge.ts

Update test.yml

🎨 chore: fix locale

Update index.tsx

测试 pgvector workflow

* 💄 style: improve upload detail

*  feat: support delete s3 file when delete files

* 💄 style: improve chunks in message

* ♻️ refactor: refactor the auth method

*  feat: support use user client api key

* 💄 style: fix image list in mobile

*  feat: support file upload on mobile

*  test: fix test

* fix vercel build

* docs: update docs

* 👷 build: improve docker

* update i18n
2024-08-21 21:28:29 +08:00
semantic-release-bot d8950b27ea 🔖 chore(release): v1.11.9 [skip ci]
### [Version&nbsp;1.11.9](https://github.com/lobehub/lobe-chat/compare/v1.11.8...v1.11.9)
<sup>Released on **2024-08-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Fixed bedrock llama model id.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fixed bedrock llama model id, closes [#3518](https://github.com/lobehub/lobe-chat/issues/3518) ([34b4c69](https://github.com/lobehub/lobe-chat/commit/34b4c69))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-19 18:27:04 +00:00
Akhmad Fakhoni Listiyan Dede 34b4c69117 🐛 fix: fixed bedrock llama model id (#3518) 2024-08-20 02:20:46 +08:00
Arvin Xu 434004a3e5 🔨 chore: add i18n in advanced (#3519) 2024-08-20 02:06:17 +08:00
semantic-release-bot 6a22dec036 🔖 chore(release): v1.11.8 [skip ci]
### [Version&nbsp;1.11.8](https://github.com/lobehub/lobe-chat/compare/v1.11.7...v1.11.8)
<sup>Released on **2024-08-19**</sup>

#### 💄 Styles

- **misc**: Update zhipu models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update zhipu models, closes [#3509](https://github.com/lobehub/lobe-chat/issues/3509) ([e323b50](https://github.com/lobehub/lobe-chat/commit/e323b50))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-19 12:33:56 +00:00
sxjeru e323b505de 💄 style: Update zhipu models (#3509) 2024-08-19 20:26:45 +08:00
renovate[bot] 9f55c0a86b Update dependency unstructured-client to ^0.15.0 (#3500)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 02:21:28 +08:00
renovate[bot] 65080c5c3b Update pnpm to v9.7.1 (#3496)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 02:21:02 +08:00
semantic-release-bot cf520e5d9f 🔖 chore(release): v1.11.7 [skip ci]
### [Version&nbsp;1.11.7](https://github.com/lobehub/lobe-chat/compare/v1.11.6...v1.11.7)
<sup>Released on **2024-08-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix topic scroll issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix topic scroll issue, closes [#3505](https://github.com/lobehub/lobe-chat/issues/3505) ([c719c7a](https://github.com/lobehub/lobe-chat/commit/c719c7a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-18 18:18:21 +00:00
Arvin Xu c719c7a702 🐛 fix: fix topic scroll issue (#3505)
* 🔧 chore: only include db file with server test

* 🐛 fix: fix topic scroll
2024-08-19 02:11:37 +08:00
semantic-release-bot c68cffdfd6 🔖 chore(release): v1.11.6 [skip ci]
### [Version&nbsp;1.11.6](https://github.com/lobehub/lobe-chat/compare/v1.11.5...v1.11.6)
<sup>Released on **2024-08-18**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the `SITE_URL` to `APP_URL`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the `SITE_URL` to `APP_URL`, closes [#3504](https://github.com/lobehub/lobe-chat/issues/3504) ([46bdcea](https://github.com/lobehub/lobe-chat/commit/46bdcea))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-18 18:03:03 +00:00
Arvin Xu 46bdceaa46 ♻️ refactor: refactor the SITE_URL to APP_URL (#3504) 2024-08-19 01:56:39 +08:00
semantic-release-bot a40ac66a10 🔖 chore(release): v1.11.5 [skip ci]
### [Version&nbsp;1.11.5](https://github.com/lobehub/lobe-chat/compare/v1.11.4...v1.11.5)
<sup>Released on **2024-08-18**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the fetch method to fix `response.undefined`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the fetch method to fix `response.undefined`, closes [#3493](https://github.com/lobehub/lobe-chat/issues/3493) ([30d0609](https://github.com/lobehub/lobe-chat/commit/30d0609))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-18 08:48:44 +00:00
Arvin Xu 30d0609310 ♻️ refactor: refactor the fetch method to fix response.undefined (#3493)
* ♻️ refactor: refactor the fetchEventSource

* 🔨 scripts: improve scripts

* ♻️ refactor: refactor the Portal to better code

* 🚨 ci: fix lint

* Update index.tsx

*  test: fix test

*  test: fix test

* 🐛 fix: fix the issue of stream error

* 🌐 chore: upload i18n

* 🐛 fix: support edit the default ... message

* 🐛 fix: fix the message edge case

* 🌐 chore: upload i18n

* ♻️ refactor: refactor the code

*  test: fix tests

*  test: fix tests

* 🔧 chore: only include db file with server test

*  test: add more test

* revert

* revert

* ignore test coverage

* ignore test coverage

* ignore test coverage
2024-08-18 16:42:24 +08:00
semantic-release-bot 6279ef0b76 🔖 chore(release): v1.11.4 [skip ci]
### [Version&nbsp;1.11.4](https://github.com/lobehub/lobe-chat/compare/v1.11.3...v1.11.4)
<sup>Released on **2024-08-18**</sup>

#### 💄 Styles

- **misc**: Add `SILICONCLOUD_MODEL_LIST` & `SILICONCLOUD_PROXY_URL` support for SiliconCloud.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add `SILICONCLOUD_MODEL_LIST` & `SILICONCLOUD_PROXY_URL` support for SiliconCloud, closes [#3492](https://github.com/lobehub/lobe-chat/issues/3492) ([e41be6d](https://github.com/lobehub/lobe-chat/commit/e41be6d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-18 03:22:57 +00:00
Zhijie He e41be6d7f4 💄 style: add SILICONCLOUD_MODEL_LIST & SILICONCLOUD_PROXY_URL support for SiliconCloud (#3492)
*  feat: add SILICONCLOUD_MODEL_LIST support for SiliconCloud

*  feat: add proxy url support for SiliconCloud

*  feat: add baseURL support
2024-08-18 11:16:10 +08:00
semantic-release-bot cccd089e9f 🔖 chore(release): v1.11.3 [skip ci]
### [Version&nbsp;1.11.3](https://github.com/lobehub/lobe-chat/compare/v1.11.2...v1.11.3)
<sup>Released on **2024-08-17**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor PanelTitle and move commit from file uploading.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor PanelTitle and move commit from file uploading, closes [#3491](https://github.com/lobehub/lobe-chat/issues/3491) ([d03d9f6](https://github.com/lobehub/lobe-chat/commit/d03d9f6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-17 16:06:30 +00:00
Arvin Xu d03d9f6490 ♻️ refactor: refactor PanelTitle and move commit from file uploading (#3491)
* 📝 docs: update docs

* ♻️ refactor: refactor code

* 🎨 chore: add code from pre PR

* 📝 docs: update docs

* 🌐 chore: upload i18n

* 💄 style: fix style

* 🐛 fix: use pmap to control timing
2024-08-18 00:00:16 +08:00
semantic-release-bot c010d79c95 🔖 chore(release): v1.11.2 [skip ci]
### [Version&nbsp;1.11.2](https://github.com/lobehub/lobe-chat/compare/v1.11.1...v1.11.2)
<sup>Released on **2024-08-17**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-17 15:08:54 +00:00
Zhijie He 0ea2f5fa28 👷 build: add bind-tools & proxychains-ng to database docker image (#3471)
* 👷 build: add `bind-tools` to docker image

* 👷 build: support http proxy

* 👷 build: add PROXY_URL env

* 🔨 chore: update ENV

* 🔨 chore: update ENV

* 🐛 fix: fix build error

* 🔨 chore: sort ENV
2024-08-17 23:02:47 +08:00
Arvin Xu 811e571fe4 🎨 chore: files feature pre-commit to reduce code update (#3488)
* 🎨 chore: pre commit to reduce code update

* 🎨 chore: pre commit to reduce code update

* 🎨 chore: pre commit to reduce code update

*  test: fix test

* 🚚 refactor: move image files to chat

*  test: add tests

*  test: add tests
2024-08-17 22:29:05 +08:00
Alex Rapp 96c34790c1 📝 docs: Update README with hyperlink for Clerk (#3479)
* Update README with hyperlink for Clerk

* Update README.zh-CN.md

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-08-16 10:13:31 +08:00
semantic-release-bot 96f68ac907 🔖 chore(release): v1.11.1 [skip ci]
### [Version&nbsp;1.11.1](https://github.com/lobehub/lobe-chat/compare/v1.11.0...v1.11.1)
<sup>Released on **2024-08-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Make S3 upload ACL setting optional.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Make S3 upload ACL setting optional, closes [#3464](https://github.com/lobehub/lobe-chat/issues/3464) ([53a0b47](https://github.com/lobehub/lobe-chat/commit/53a0b47))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-15 02:57:14 +00:00
Arvin Xu 1598f74087 👷 build: pin @icons-pack/react-simple-icons@9.6.0 to fix build (#3474) 2024-08-15 10:50:53 +08:00
Zolyn 53a0b47cc3 🐛 fix: make S3 upload ACL setting optional (#3464)
* feat: make setting ACL optional

* docs: add `S3_SET_ACL` description
2024-08-15 10:11:36 +08:00
semantic-release-bot cf90dba3d8 🔖 chore(release): v1.11.0 [skip ci]
## [Version&nbsp;1.11.0](https://github.com/lobehub/lobe-chat/compare/v1.10.1...v1.11.0)
<sup>Released on **2024-08-14**</sup>

####  Features

- **misc**: Add 2 new models to openai provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add 2 new models to openai provider, closes [#3470](https://github.com/lobehub/lobe-chat/issues/3470) ([cc9ffdd](https://github.com/lobehub/lobe-chat/commit/cc9ffdd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-14 14:53:56 +00:00
Linghui Gong cc9ffdd1c6 feat: add 2 new models to openai provider (#3470) 2024-08-14 22:47:30 +08:00
semantic-release-bot 660bcc74e3 🔖 chore(release): v1.10.1 [skip ci]
### [Version&nbsp;1.10.1](https://github.com/lobehub/lobe-chat/compare/v1.10.0...v1.10.1)
<sup>Released on **2024-08-14**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-14 04:16:39 +00:00
Zhijie He d11b76fa63 👷 build: add bind-tools to fix dns issue (#3468)
* 👷 build: add `bind-tools` to fix dns issue

* 👷 build: add `bind-tools` package

* 🐛fix: fix comments typo

* Update Dockerfile.database

* rollback changes
2024-08-14 12:10:14 +08:00
semantic-release-bot 344ac28af5 🔖 chore(release): v1.10.0 [skip ci]
## [Version&nbsp;1.10.0](https://github.com/lobehub/lobe-chat/compare/v1.9.8...v1.10.0)
<sup>Released on **2024-08-14**</sup>

####  Features

- **misc**: Add SiliconCloud model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add SiliconCloud model provider, closes [#3092](https://github.com/lobehub/lobe-chat/issues/3092) ([0781dc5](https://github.com/lobehub/lobe-chat/commit/0781dc5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-14 02:42:36 +00:00
sxjeru 0781dc5233 feat: Add SiliconCloud model provider (#3092)
* feat: Add SiliconCloud as a model provider

* model icon

* Update index.ts

* Update siliconcloud.ts

* Update .env.example

* Add docs

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update siliconcloud.ts
2024-08-14 10:36:04 +08:00
semantic-release-bot a5ac9901f0 🔖 chore(release): v1.9.8 [skip ci]
### [Version&nbsp;1.9.8](https://github.com/lobehub/lobe-chat/compare/v1.9.7...v1.9.8)
<sup>Released on **2024-08-13**</sup>

#### 💄 Styles

- **misc**: Resize the image size in chat message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Resize the image size in chat message, closes [#3462](https://github.com/lobehub/lobe-chat/issues/3462) ([37c7429](https://github.com/lobehub/lobe-chat/commit/37c7429))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-13 13:11:39 +00:00
vual 37c742976c 💄 style: resize the image size in chat message (#3462) 2024-08-13 21:04:42 +08:00
Arvin Xu b634ade198 🔨 chore: upgrade ollama to ^0.5.8 (#3457) 2024-08-13 12:57:37 +08:00
semantic-release-bot 55d14b6ec0 🔖 chore(release): v1.9.7 [skip ci]
### [Version&nbsp;1.9.7](https://github.com/lobehub/lobe-chat/compare/v1.9.6...v1.9.7)
<sup>Released on **2024-08-13**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-13 04:03:18 +00:00
Arvin Xu 52d66c0f29 👷 build: pin ollama@0.5.6 to fix vercel build (#3455) 2024-08-13 11:57:06 +08:00
lobehubbot a682c0bf17 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-11 13:20:36 +00:00
renovate[bot] bdc665ea81 Update pnpm to v9.7.0 (#3442)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-11 21:14:18 +08:00
lobehubbot 7455f6166b 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-09 08:18:10 +00:00
semantic-release-bot 5c783fe69f 🔖 chore(release): v1.9.6 [skip ci]
### [Version&nbsp;1.9.6](https://github.com/lobehub/lobe-chat/compare/v1.9.5...v1.9.6)
<sup>Released on **2024-08-09**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-09 08:17:17 +00:00
Arvin Xu 6d307b543b 👷 build: fix vercel build (#3433)
* fix vercel build

* Update package.json

* Update package.json

* Update package.json
2024-08-09 16:11:02 +08:00
Yuhang e606a74258 📝 docs: deploy lobechat database on zeabur (#3429) 2024-08-08 15:56:01 +08:00
semantic-release-bot a77456afad 🔖 chore(release): v1.9.5 [skip ci]
### [Version&nbsp;1.9.5](https://github.com/lobehub/lobe-chat/compare/v1.9.4...v1.9.5)
<sup>Released on **2024-08-08**</sup>

#### 💄 Styles

- **misc**: Updated AWS bedrock model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Updated AWS bedrock model list, closes [#3315](https://github.com/lobehub/lobe-chat/issues/3315) ([042f2d3](https://github.com/lobehub/lobe-chat/commit/042f2d3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-08 04:34:45 +00:00
Zach Zimmermann 042f2d3666 💄 style: Updated AWS bedrock model list (#3315)
* Updated AWS bedrock model list

* Added tokens field to llama 3.1 models
2024-08-08 12:28:40 +08:00
semantic-release-bot 6ae418461e 🔖 chore(release): v1.9.4 [skip ci]
### [Version&nbsp;1.9.4](https://github.com/lobehub/lobe-chat/compare/v1.9.3...v1.9.4)
<sup>Released on **2024-08-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix import clerk `AuthObject` from public api.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix import clerk `AuthObject` from public api, closes [#3416](https://github.com/lobehub/lobe-chat/issues/3416) ([af8960d](https://github.com/lobehub/lobe-chat/commit/af8960d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-06 18:17:59 +00:00
Zolyn af8960d537 🐛 fix: fix import clerk AuthObject from public api (#3416)
* fix: import `AuthObject` from public api

* Update package.json
2024-08-07 02:11:51 +08:00
lobehubbot 8958c803a1 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-06 05:17:55 +00:00
semantic-release-bot 3db15442a9 🔖 chore(release): v1.9.3 [skip ci]
### [Version&nbsp;1.9.3](https://github.com/lobehub/lobe-chat/compare/v1.9.2...v1.9.3)
<sup>Released on **2024-08-06**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor server db schema for better code organize.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor server db schema for better code organize, closes [#3410](https://github.com/lobehub/lobe-chat/issues/3410) ([4743bfd](https://github.com/lobehub/lobe-chat/commit/4743bfd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-06 05:17:11 +00:00
Arvin Xu 4743bfd3e5 ♻️ refactor: refactor server db schema for better code organize (#3410)
* refactor schema

* fix lint

* fix

* update drizzle-kit

* clean code
2024-08-06 13:10:40 +08:00
semantic-release-bot f7d5f98d70 🔖 chore(release): v1.9.2 [skip ci]
### [Version&nbsp;1.9.2](https://github.com/lobehub/lobe-chat/compare/v1.9.1...v1.9.2)
<sup>Released on **2024-08-05**</sup>

#### 💄 Styles

- **config**: Update Azure model and API versions.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **config**: Update Azure model and API versions, closes [#3405](https://github.com/lobehub/lobe-chat/issues/3405) ([a4938eb](https://github.com/lobehub/lobe-chat/commit/a4938eb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-05 18:10:09 +00:00
Rubu Jam a4938ebae3 💄 style(config): Update Azure model and API versions (#3405)
* 💄 style(config): Update Azure model and API versions

* 💄 style: Modify text
2024-08-06 02:03:59 +08:00
semantic-release-bot bd2812beea 🔖 chore(release): v1.9.1 [skip ci]
### [Version&nbsp;1.9.1](https://github.com/lobehub/lobe-chat/compare/v1.9.0...v1.9.1)
<sup>Released on **2024-08-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Azure modelTag icon display.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Azure modelTag icon display, closes [#3394](https://github.com/lobehub/lobe-chat/issues/3394) ([ee6baa8](https://github.com/lobehub/lobe-chat/commit/ee6baa8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-05 12:42:40 +00:00
Zhijie He ee6baa8e15 🐛 fix: Azure modelTag icon display (#3394) 2024-08-05 20:36:29 +08:00
semantic-release-bot 6d5e7b08e7 🔖 chore(release): v1.9.0 [skip ci]
## [Version&nbsp;1.9.0](https://github.com/lobehub/lobe-chat/compare/v1.8.2...v1.9.0)
<sup>Released on **2024-08-05**</sup>

####  Features

- **misc**: Skip login page if only one provider exists.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Skip login page if only one provider exists, closes [#3400](https://github.com/lobehub/lobe-chat/issues/3400) ([52da1d8](https://github.com/lobehub/lobe-chat/commit/52da1d8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-05 08:54:51 +00:00
cy948 52da1d8c11 feat: Skip login page if only one provider exists (#3400) 2024-08-05 16:48:49 +08:00
Arvin Xu 46e79160d2 📝 docs: update docs for database deployment (#3397) 2024-08-05 14:59:38 +08:00
semantic-release-bot 80043675ba 🔖 chore(release): v1.8.2 [skip ci]
### [Version&nbsp;1.8.2](https://github.com/lobehub/lobe-chat/compare/v1.8.1...v1.8.2)
<sup>Released on **2024-08-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Add `PROXY_URL` in docker with proxychains-ng.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Add `PROXY_URL` in docker with proxychains-ng, closes [#3362](https://github.com/lobehub/lobe-chat/issues/3362) ([920de7c](https://github.com/lobehub/lobe-chat/commit/920de7c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-03 11:40:25 +00:00
Zhijie He 920de7c600 🐛 fix: add PROXY_URL in docker with proxychains-ng (#3362)
* : feat: support PROXY_URL in docker with proxychains-ng

* 🔨 chore: let proxychains config more readable

* 🔨 chore: add package update

* ️ perf: add CN mirror for Alpine

* 🔨 chore: add more comments

* 🔨 chore: change USE_NPM_CN_MIRROR to USE_CN_MIRROR

* 🐛 fix: fix cn mirror for alpine during building

* 🐛 fix: fix permission issue

* 🐛 fix: fix app path error

*  feat: support proxy server with domain

* 🔨 chore: add more comments & cleanup code

* 🔨 chore: add more comments

* ️ perf: resolve only when host is domain

* 🔨 chore: move IP_REGEX to head

* 🔨 chore: replace `! -z` to `-n`

* 🔨 chore: update comments

*  feat: add `DEFAULT_AGENT_CONFIG` and `SYSTEM_AGENT` to env, allow set default model

* Add documentation for `PROXY_URL` environment variable

Add documentation for `PROXY_URL` environment variable in both English and Chinese versions of the environment variables guide.

* **English Documentation**
  - Add `PROXY_URL` section to specify the proxy URL for connecting to external services.
  - Include example values and a callout for Docker Desktop users.

* **Chinese Documentation**
  - Add `PROXY_URL` section to specify the proxy URL for connecting to external services.
  - Include example values and a callout for Docker Desktop users.

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-08-03 19:35:09 +08:00
semantic-release-bot 324be07d64 🔖 chore(release): v1.8.1 [skip ci]
### [Version&nbsp;1.8.1](https://github.com/lobehub/lobe-chat/compare/v1.8.0...v1.8.1)
<sup>Released on **2024-08-03**</sup>

#### 💄 Styles

- **misc**: Fix `aya`, `mathstral` model tag icon & update ollama model info.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix `aya`, `mathstral` model tag icon & update ollama model info, closes [#3382](https://github.com/lobehub/lobe-chat/issues/3382) ([ced95a8](https://github.com/lobehub/lobe-chat/commit/ced95a8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-03 08:50:45 +00:00
Zhijie He ced95a8734 💄 style: fix aya, mathstral model tag icon & update ollama model info (#3382)
* 💄 style: update ollama model info

* 🔨 chore: cleanup legacy models

* 💄 style: enable default tag model

* 💄 style: update Command R+ model info

* 💄 style: update DeepSeek display name

* 💄 style: update mode info

* 💄 style: update model tokens

* 💄 style: update model info

* 💄 style: update model info

* 💄 style: update tokens

* 💄 style: update Aya icon

* 💄 style: sort gemma2 model
2024-08-03 16:45:20 +08:00
lobehubbot 6c95475f74 📝 docs(bot): Auto sync agents & plugin to readme 2024-08-03 08:24:16 +00:00
Arvin Xu 72306f55ab 👷 build: add docker image for server database (#3387)
* 👷 build: add docker database image

* 💚 ci: add database image workflow

* fix docker build

* Update PULL_REQUEST_TEMPLATE.md

* 🎨 chore: improve migration script

* 🐛 fix: throws error in nextauth db adapter (#3390)

* 👷 chore: update action

---------

Co-authored-by: cy948 <67412196+cy948@users.noreply.github.com>
2024-08-03 16:18:52 +08:00
Henry Yee 56ffa22598 🔨 chore: support bedrock Claude 3.x function calling (#3366)
Co-authored-by: GH Action - Upstream Sync <action@github.com>
2024-08-02 23:27:56 +08:00
semantic-release-bot 65ae6dc994 🔖 chore(release): v1.8.0 [skip ci]
## [Version&nbsp;1.8.0](https://github.com/lobehub/lobe-chat/compare/v1.7.10...v1.8.0)
<sup>Released on **2024-08-02**</sup>

####  Features

- **misc**: Add NextAuth as authentication service in server database.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add NextAuth as authentication service in server database, closes [#2935](https://github.com/lobehub/lobe-chat/issues/2935) ([5a0b972](https://github.com/lobehub/lobe-chat/commit/5a0b972))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-02 11:53:50 +00:00
cy948 5a0b972275 feat: Add NextAuth as authentication service in server database (#2935)
* ♻️ refactor: make db edge compatible

*  feat: LobeNextAuth Adapter

* 🗃️ chore: change db schema

* 🐛 fix: userid not pass to session

* 🐛 fix: nextauth enable status updater

*  test: nextauth

* ♻️ refactor: nextauth db schema

* 📝 docs: add envs to .env.example

* ♻️ refactor: split nextauth module

* 🐛 fix: login button not shown on mobile

* ♻️ refactor: use hooks instead envs

* 🐛 fix: wrong login redirect

*  feat: add error page for nextauth

* 🐛 fix: nextauth should not goto /me/profile

* 🗃️ chore: add db migrate sqls

*  test(test): Add findByEmail tests for UserModel

* ♻️ refactor: Nextauth jsdoc

*  test: enableAuth

*  test(trpc-middleware): Mock nextauth import

*  test(use-category): Nextauth should not render profile

*  test: Mock nextauth import

* ♻️ refactor: Add store selector for enableAuth

* ♻️ replace s.enableAuth with authSelector

* 💄 style: Split Context to Clerk auth and NextAuth auth

* 💄 style: Rename migration file to 0004_add_next_auth

* 🐛 fix: userid not exists

*  test: pass test for auth action

* ♻️ refactor: use static method on UserModel

*  revert: revert `src/config/auth.ts`

*  revert: `preference` in `schemas/lobechat.ts`

* ♻️ refactor: split auth to clerkAuth & nextAuth in trpc context

* ♻️ refactor: remove consts in nextauth schema

*  revert: revert db migration files

* 🗃️ refactor: rename `emailVerified` to `emailVerifiedAt`

* 🗃️ chore: generate migration files

* ♻️ refactor: move `AuthErrorPage` to `api/auth/error/`

* ♻️ refactor: move nextauth schema to
`src/database/server/schemas`

* ♻️ refactor: add type annotation to `LobeNextAuthDbAdapter`

*  test: `LobeNextAuthDbAdapter`

*  test: `updateAuthenticatorCounter`

*  test: `listAuthenticatorsByUserId`

* ♻️ refactor: remove login buttion in settings

* 🐛 fix: link to exist account by email

* 🗃️ chore: add `full_name` to user table

* 🗃️ chore: add `full_name` to user in migration file

* 🐛 fix: duplicate providerAccountId user created

* ♻️ refactor: use `providerAccountId` as user id

* 🐛 fix: wrong request when not logined and nextauth enabled
2024-08-02 19:48:17 +08:00
semantic-release-bot d8d0d67d33 🔖 chore(release): v1.7.10 [skip ci]
### [Version&nbsp;1.7.10](https://github.com/lobehub/lobe-chat/compare/v1.7.9...v1.7.10)
<sup>Released on **2024-08-02**</sup>

#### 💄 Styles

- **misc**: Add Gemini 1.5 Pro Exp model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Gemini 1.5 Pro Exp model, closes [#3384](https://github.com/lobehub/lobe-chat/issues/3384) ([0de8b7b](https://github.com/lobehub/lobe-chat/commit/0de8b7b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-02 08:45:19 +00:00
sxjeru 0de8b7b9cc 💄 style: Add Gemini 1.5 Pro Exp model (#3384) 2024-08-02 16:40:05 +08:00
semantic-release-bot 9535ff8eaf 🔖 chore(release): v1.7.9 [skip ci]
### [Version&nbsp;1.7.9](https://github.com/lobehub/lobe-chat/compare/v1.7.8...v1.7.9)
<sup>Released on **2024-08-01**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix Mistral models calling & update model info.

#### 💄 Styles

- **misc**: Fix stepfun & baichuan model tag icon missing, update Perplexity models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix Mistral models calling & update model info, closes [#3377](https://github.com/lobehub/lobe-chat/issues/3377) [#3098](https://github.com/lobehub/lobe-chat/issues/3098) ([66274d0](https://github.com/lobehub/lobe-chat/commit/66274d0))

#### Styles

* **misc**: Fix stepfun & baichuan model tag icon missing, closes [#3379](https://github.com/lobehub/lobe-chat/issues/3379) ([e283ef4](https://github.com/lobehub/lobe-chat/commit/e283ef4))
* **misc**: Update Perplexity models, closes [#3380](https://github.com/lobehub/lobe-chat/issues/3380) ([06cb946](https://github.com/lobehub/lobe-chat/commit/06cb946))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-08-01 17:40:12 +00:00
Zhijie He 66274d0da6 🐛 fix: fix Mistral models calling & update model info (#3377)
* 💄 style: update Mistral models

* 💄 style: update tokens number

* 🐛 fix: fix Mistral model calling

* 🔨 chore: merge `noUserId` from #3098

* 💄 style: cleanup deprecated models
2024-08-02 01:35:07 +08:00
Zhijie He e283ef4f2e 💄 style: fix stepfun & baichuan model tag icon missing (#3379) 2024-08-02 01:32:42 +08:00
Zhijie He 06cb946204 💄 style: update Perplexity models (#3380)
* 💄 style: update Perplexity models

* 💄 style: update model name
2024-08-02 01:31:57 +08:00
semantic-release-bot aa5944fab8 🔖 chore(release): v1.7.8 [skip ci]
### [Version&nbsp;1.7.8](https://github.com/lobehub/lobe-chat/compare/v1.7.7...v1.7.8)
<sup>Released on **2024-07-30**</sup>

#### 💄 Styles

- **ui**: Modify and repair UI layout.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **ui**: Modify and repair UI layout, closes [#3321](https://github.com/lobehub/lobe-chat/issues/3321) ([cda776f](https://github.com/lobehub/lobe-chat/commit/cda776f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-30 07:44:46 +00:00
Rubu Jam cda776fc17 💄 style(ui): Modify and repair UI layout (#3321)
* 🐛 fix(ui): Layout issue when assistant name long

* 💄 style(ui): Adjust the display style of list setting button

* 💄 style(ui): Adjust Custom Model Option layout

* 💄 style(ui): Adjust layout of selection model

* 💄 style(ui): Modify custom model configuration on mobile

* 🐛 fix(ui): Fix text of selection model cannot folded

* 💄 style(ui): Adjust layout of selection model
2024-07-30 15:39:33 +08:00
lobehubbot f45971b8bd 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-30 03:46:45 +00:00
semantic-release-bot 0f1e4a677c 🔖 chore(release): v1.7.7 [skip ci]
### [Version&nbsp;1.7.7](https://github.com/lobehub/lobe-chat/compare/v1.7.6...v1.7.7)
<sup>Released on **2024-07-30**</sup>

#### 💄 Styles

- **misc**: Improve tools calling UI.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve tools calling UI, closes [#3326](https://github.com/lobehub/lobe-chat/issues/3326) ([36cabc0](https://github.com/lobehub/lobe-chat/commit/36cabc0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-30 03:45:58 +00:00
Arvin Xu 36cabc06ed 💄 style: improve tools calling UI (#3326)
* wip improve tools calling

* refactor style

* change icon

* improve topic loading

* fix test

* improve import

* fix lint

* add tests
2024-07-30 11:40:38 +08:00
renovate[bot] ea798e57d4 Update dependency @google/generative-ai to ^0.16.0 (#3275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 13:01:19 +08:00
lobehubbot 502a5c6aaa 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-29 04:48:26 +00:00
semantic-release-bot 3658247c96 🔖 chore(release): v1.7.6 [skip ci]
### [Version&nbsp;1.7.6](https://github.com/lobehub/lobe-chat/compare/v1.7.5...v1.7.6)
<sup>Released on **2024-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Disable anthropic browser request.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Disable anthropic browser request, closes [#3359](https://github.com/lobehub/lobe-chat/issues/3359) ([a519837](https://github.com/lobehub/lobe-chat/commit/a519837))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-29 04:47:44 +00:00
Arvin Xu a519837628 🐛 fix: disable anthropic browser request (#3359) 2024-07-29 12:42:38 +08:00
semantic-release-bot e1c2840996 🔖 chore(release): v1.7.5 [skip ci]
### [Version&nbsp;1.7.5](https://github.com/lobehub/lobe-chat/compare/v1.7.4...v1.7.5)
<sup>Released on **2024-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `create_session ` `edit_agent` feature flags  and add more flags.

#### 💄 Styles

- **misc**: Update 360GPT model (360GPT2 Pro).

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix `create_session ` `edit_agent` feature flags  and add more flags, closes [#3289](https://github.com/lobehub/lobe-chat/issues/3289) ([ebfd3cf](https://github.com/lobehub/lobe-chat/commit/ebfd3cf))

#### Styles

* **misc**: Update 360GPT model (360GPT2 Pro), closes [#3339](https://github.com/lobehub/lobe-chat/issues/3339) ([c8ed85e](https://github.com/lobehub/lobe-chat/commit/c8ed85e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-29 04:14:08 +00:00
Zhijie He c8ed85e5a8 💄 style: update 360GPT model (360GPT2 Pro) (#3339)
* 💄 style: update 360GPT model (360GPT2 Pro)

* 💄 style: add more 360GPT models

* 💄 style: disable 360gpt-pro as default
2024-07-29 12:08:58 +08:00
Mingholy ebfd3cf575 🐛 fix: fix create_session edit_agent feature flags and add more flags (#3289)
* feat: add ff create_session and welcome messages

* fix: add feature flags

* test: add test code

* test: add TopActions test

* fix: add button control in Welcome actions

* fix: add missing filter to MobileTabBar items
2024-07-29 12:04:42 +08:00
lobehubbot 3eeaa520f9 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-29 03:50:43 +00:00
semantic-release-bot 75efe627e9 🔖 chore(release): v1.7.4 [skip ci]
### [Version&nbsp;1.7.4](https://github.com/lobehub/lobe-chat/compare/v1.7.3...v1.7.4)
<sup>Released on **2024-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve remote model list fetching for Novita AI.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Improve remote model list fetching for Novita AI, closes [#3311](https://github.com/lobehub/lobe-chat/issues/3311) ([67b9ff0](https://github.com/lobehub/lobe-chat/commit/67b9ff0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-29 03:50:01 +00:00
Jason 67b9ff0d75 🐛 fix: improve remote model list fetching for Novita AI (#3311) 2024-07-29 11:44:54 +08:00
semantic-release-bot 379bc8dc21 🔖 chore(release): v1.7.3 [skip ci]
### [Version&nbsp;1.7.3](https://github.com/lobehub/lobe-chat/compare/v1.7.2...v1.7.3)
<sup>Released on **2024-07-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Update minimax models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Update minimax models, closes [#3354](https://github.com/lobehub/lobe-chat/issues/3354) ([8113729](https://github.com/lobehub/lobe-chat/commit/8113729))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-28 09:52:22 +00:00
renovate[bot] 891930be87 Update pnpm to v9.6.0 (#3345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 17:47:17 +08:00
sxjeru 8113729461 🐛 fix: Update minimax models (#3354) 2024-07-28 17:46:11 +08:00
Arvin Xu afce281294 🎨 chore: handle payload support options (#3331) 2024-07-27 00:26:38 +08:00
semantic-release-bot 9b4c39c44d 🔖 chore(release): v1.7.2 [skip ci]
### [Version&nbsp;1.7.2](https://github.com/lobehub/lobe-chat/compare/v1.7.1...v1.7.2)
<sup>Released on **2024-07-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Avoid baseURL being an empty string, resulting in incorrect client fetch.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Avoid baseURL being an empty string, resulting in incorrect client fetch, closes [#3308](https://github.com/lobehub/lobe-chat/issues/3308) ([15a9bc1](https://github.com/lobehub/lobe-chat/commit/15a9bc1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-26 11:28:42 +00:00
mosade 15a9bc15c9 🐛 fix: Avoid baseURL being an empty string, resulting in incorrect client fetch (#3308) 2024-07-26 19:23:40 +08:00
semantic-release-bot 4327799b91 🔖 chore(release): v1.7.1 [skip ci]
### [Version&nbsp;1.7.1](https://github.com/lobehub/lobe-chat/compare/v1.7.0...v1.7.1)
<sup>Released on **2024-07-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix dalle tools calling prompts to avoid content risk.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix dalle tools calling prompts to avoid content risk, closes [#3325](https://github.com/lobehub/lobe-chat/issues/3325) ([3e21240](https://github.com/lobehub/lobe-chat/commit/3e21240))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-26 10:07:20 +00:00
Arvin Xu 3e21240ff0 🐛 fix: fix dalle tools calling prompts to avoid content risk (#3325)
* fix tool calling of dalle

* fix snapshot
2024-07-26 18:01:59 +08:00
semantic-release-bot d8fd992d3a 🔖 chore(release): v1.7.0 [skip ci]
## [Version&nbsp;1.7.0](https://github.com/lobehub/lobe-chat/compare/v1.6.15...v1.7.0)
<sup>Released on **2024-07-26**</sup>

####  Features

- **misc**: Enabled function calling on Deepseek models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Enabled function calling on Deepseek models, closes [#3312](https://github.com/lobehub/lobe-chat/issues/3312) ([35f31cb](https://github.com/lobehub/lobe-chat/commit/35f31cb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-26 07:35:27 +00:00
Zach Zimmermann 35f31cb3c5 feat: Enabled function calling on Deepseek models (#3312) 2024-07-26 15:30:00 +08:00
semantic-release-bot e7629b9e7f 🔖 chore(release): v1.6.15 [skip ci]
### [Version&nbsp;1.6.15](https://github.com/lobehub/lobe-chat/compare/v1.6.14...v1.6.15)
<sup>Released on **2024-07-26**</sup>

#### 💄 Styles

- **misc**: Fix file upload height.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix file upload height, closes [#3319](https://github.com/lobehub/lobe-chat/issues/3319) ([8343f35](https://github.com/lobehub/lobe-chat/commit/8343f35))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-26 06:12:08 +00:00
Arvin Xu 8343f350d4 💄 style: fix file upload height (#3319) 2024-07-26 14:07:05 +08:00
lobehubbot 0997685644 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-26 02:44:46 +00:00
semantic-release-bot 6ee03da931 🔖 chore(release): v1.6.14 [skip ci]
### [Version&nbsp;1.6.14](https://github.com/lobehub/lobe-chat/compare/v1.6.13...v1.6.14)
<sup>Released on **2024-07-26**</sup>

#### 💄 Styles

- **misc**: Improve input file upload.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve input file upload, closes [#3314](https://github.com/lobehub/lobe-chat/issues/3314) ([de85553](https://github.com/lobehub/lobe-chat/commit/de85553))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-26 02:44:04 +00:00
Arvin Xu de85553e76 💄 style: improve input file upload (#3314)
* 💄 style: improve input height

* 💄 style: improve input height

* fix drag
2024-07-26 10:38:58 +08:00
semantic-release-bot 1b86e012f1 🔖 chore(release): v1.6.13 [skip ci]
### [Version&nbsp;1.6.13](https://github.com/lobehub/lobe-chat/compare/v1.6.12...v1.6.13)
<sup>Released on **2024-07-25**</sup>

#### 💄 Styles

- **misc**: Updated Groq model list to include llama-3.1 and llama3-Groq.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Updated Groq model list to include llama-3.1 and llama3-Groq, closes [#3313](https://github.com/lobehub/lobe-chat/issues/3313) ([a9cfad6](https://github.com/lobehub/lobe-chat/commit/a9cfad6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-25 17:46:11 +00:00
Zach Zimmermann a9cfad6db8 💄 style: Updated Groq model list to include llama-3.1 and llama3-Groq (#3313)
* Updated Groq model list with llama 3.1 models and Groq versions of llama 3

* Update names to match convention
2024-07-26 01:40:51 +08:00
semantic-release-bot 27e27cc8d1 🔖 chore(release): v1.6.12 [skip ci]
### [Version&nbsp;1.6.12](https://github.com/lobehub/lobe-chat/compare/v1.6.11...v1.6.12)
<sup>Released on **2024-07-25**</sup>

#### 💄 Styles

- **misc**: Add new models to groq which are llama 3.1.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add new models to groq which are llama 3.1, closes [#3301](https://github.com/lobehub/lobe-chat/issues/3301) ([ec20fd0](https://github.com/lobehub/lobe-chat/commit/ec20fd0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-25 16:13:01 +00:00
Star_dusted ec20fd0c10 💄 style: add new models to groq which are llama 3.1 (#3301)
* feat: Add new models for groq

* fix: modify the id of model

* chore: Update chatModels in Groq model providers, which is LLaMA3.1
2024-07-26 00:07:43 +08:00
Zach Zimmermann 5f4491abd4 🔨 chore: Updated start script to use port 3210 to match docker (#3297) 2024-07-24 10:37:19 +08:00
semantic-release-bot ee420d33c8 🔖 chore(release): v1.6.11 [skip ci]
### [Version&nbsp;1.6.11](https://github.com/lobehub/lobe-chat/compare/v1.6.10...v1.6.11)
<sup>Released on **2024-07-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `UNAUTHORIZED` issue with clerk auth provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix `UNAUTHORIZED` issue with clerk auth provider, closes [#3299](https://github.com/lobehub/lobe-chat/issues/3299) ([97bea09](https://github.com/lobehub/lobe-chat/commit/97bea09))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-24 02:36:31 +00:00
Arvin Xu 97bea095c1 🐛 fix: fix UNAUTHORIZED issue with clerk auth provider (#3299) 2024-07-24 10:31:21 +08:00
semantic-release-bot 582ce8741d 🔖 chore(release): v1.6.10 [skip ci]
### [Version&nbsp;1.6.10](https://github.com/lobehub/lobe-chat/compare/v1.6.9...v1.6.10)
<sup>Released on **2024-07-23**</sup>

#### ♻ Code Refactoring

- **misc**: Upgrade snapshot version.

#### 💄 Styles

- **misc**: Fix the scrolling of the return result area of function calling.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Upgrade snapshot version, closes [#3296](https://github.com/lobehub/lobe-chat/issues/3296) ([2c14fef](https://github.com/lobehub/lobe-chat/commit/2c14fef))

#### Styles

* **misc**: Fix the scrolling of the return result area of function calling, closes [#3295](https://github.com/lobehub/lobe-chat/issues/3295) ([9c8f469](https://github.com/lobehub/lobe-chat/commit/9c8f469))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-23 15:39:54 +00:00
HansKing98 9c8f469438 💄 style: fix the scrolling of the return result area of function calling (#3295) 2024-07-23 23:34:35 +08:00
Arvin Xu 2c14fefd87 ♻️ refactor: upgrade snapshot version (#3296) 2024-07-23 23:34:05 +08:00
lobehubbot cfca015f9b 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-23 14:26:27 +00:00
semantic-release-bot b62d5e933e 🔖 chore(release): v1.6.9 [skip ci]
### [Version&nbsp;1.6.9](https://github.com/lobehub/lobe-chat/compare/v1.6.8...v1.6.9)
<sup>Released on **2024-07-23**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-23 14:25:43 +00:00
Zhijie He c8113a465d ️ perf: change base image to apline, decrease docker image size (#3063)
* 🔨 build(docker): change base image to apline, decrease image size

* 🔨 chore: decrease layer, reduce image size

* 🔨 chore: rebase build workflow

* 🔨 chore: further reduce the number of layers to 7 layers

* 🔨 chore: further reduce the number of layers to 6 layers

a. 4 layers from node:20-alpine
b. 1 layer from add nextjs user
c. 1 layer from copy lobechat files

* 🐛 fix: install pnpm with npm, fixed corepack not using mirror

* 🐛 fix: fixed corepack not using CN mirror issue

* 🔨 chore: update model env

* 🔨 chore: merge pnpm and sharp to builder stage

* 🐛 fix: fixed typo and build warning

* 🐛 fix: fixed typo

* 🔨 chore: rollback

* 🔨 chore: merge pnpm and sharp to builder stage

* 🐛 fix: fixed build warning

* 🔨 chore: cleanup

* 🔨 chore: set SENTRYCLI_CDNURL mirror

* 🔨 chore: add build docker scripts
2024-07-23 22:20:22 +08:00
semantic-release-bot dac2735f58 🔖 chore(release): v1.6.8 [skip ci]
### [Version&nbsp;1.6.8](https://github.com/lobehub/lobe-chat/compare/v1.6.7...v1.6.8)
<sup>Released on **2024-07-23**</sup>

#### ♻ Code Refactoring

- **misc**: Move server modules.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move server modules, closes [#3291](https://github.com/lobehub/lobe-chat/issues/3291) ([c7c9f39](https://github.com/lobehub/lobe-chat/commit/c7c9f39))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-23 04:54:38 +00:00
Arvin Xu c7c9f39e88 ♻️ refactor: move server modules (#3291) 2024-07-23 12:49:28 +08:00
lobehubbot 39525528bd 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-23 02:16:06 +00:00
semantic-release-bot c0e78049cb 🔖 chore(release): v1.6.7 [skip ci]
### [Version&nbsp;1.6.7](https://github.com/lobehub/lobe-chat/compare/v1.6.6...v1.6.7)
<sup>Released on **2024-07-23**</sup>

#### 💄 Styles

- **misc**: Add new model provider Novita AI.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add new model provider Novita AI, closes [#3177](https://github.com/lobehub/lobe-chat/issues/3177) ([08b063f](https://github.com/lobehub/lobe-chat/commit/08b063f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-23 02:15:23 +00:00
Jason 08b063fd77 💄 style: Add new model provider Novita AI (#3177) 2024-07-23 10:09:53 +08:00
semantic-release-bot a042dd26f3 🔖 chore(release): v1.6.6 [skip ci]
### [Version&nbsp;1.6.6](https://github.com/lobehub/lobe-chat/compare/v1.6.5...v1.6.6)
<sup>Released on **2024-07-22**</sup>

#### ♻ Code Refactoring

- **model**: Clear and add models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **model**: Clear and add models, closes [#3208](https://github.com/lobehub/lobe-chat/issues/3208) ([ef54191](https://github.com/lobehub/lobe-chat/commit/ef54191))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-22 06:23:53 +00:00
Rubu Jam ef54191d96 ♻️ refactor(model): clear and add models (#3208) 2024-07-22 14:18:29 +08:00
Arvin Xu 5aec15a7f4 📝 docs: update auth0.zh-CN.mdx (#3288)
* Update 1_bug_report.yml

* Update 1_bug_report.yml

* Update 1_bug_report.yml

* Update 1_bug_report_cn.yml

* Update 1_bug_report_cn.yml

* Update `docs/self-hosting/advanced/sso-providers/auth0.zh-CN.mdx`

* Update auth0.zh-CN.mdx
2024-07-22 12:57:43 +08:00
CanisMinor a17b97eebd 📝 docs: Add more usage docs (#3286) 2024-07-22 12:14:46 +08:00
semantic-release-bot 2a812365bf 🔖 chore(release): v1.6.5 [skip ci]
### [Version&nbsp;1.6.5](https://github.com/lobehub/lobe-chat/compare/v1.6.4...v1.6.5)
<sup>Released on **2024-07-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Content lost unexpectedly on Qwen provider when `finish_reason` is `stop`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Content lost unexpectedly on Qwen provider when `finish_reason` is `stop`, closes [#3252](https://github.com/lobehub/lobe-chat/issues/3252) ([d35c5b0](https://github.com/lobehub/lobe-chat/commit/d35c5b0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-22 02:47:04 +00:00
Minghao Li d35c5b0eea 🐛 fix: content lost unexpectedly on Qwen provider when finish_reason is stop (#3252)
* fix: unexpected content lost while `finish_reason` is `stop`

* test: better stream reading code
2024-07-22 10:41:47 +08:00
renovate[bot] e5a782bb38 Update dependency drizzle-kit to ^0.23.0 (#3212)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-22 10:34:00 +08:00
renovate[bot] 38a923fbbf Update dependency drizzle-orm to ^0.32.0 (#3213)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-22 10:33:35 +08:00
semantic-release-bot dbffba420e 🔖 chore(release): v1.6.4 [skip ci]
### [Version&nbsp;1.6.4](https://github.com/lobehub/lobe-chat/compare/v1.6.3...v1.6.4)
<sup>Released on **2024-07-21**</sup>

#### ♻ Code Refactoring

- **misc**: Add trpc query client with react-query.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Add trpc query client with react-query, closes [#3282](https://github.com/lobehub/lobe-chat/issues/3282) ([013ee54](https://github.com/lobehub/lobe-chat/commit/013ee54))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-21 12:01:30 +00:00
Arvin Xu 013ee54480 ♻️ refactor: add trpc query client with react-query (#3282)
* ♻️ refactor: refactor the trpc client with react query mode

* ♻️ refactor: refactor the trpc client with react query mode
2024-07-21 19:56:16 +08:00
semantic-release-bot 0f4bbdcef5 🔖 chore(release): v1.6.3 [skip ci]
### [Version&nbsp;1.6.3](https://github.com/lobehub/lobe-chat/compare/v1.6.2...v1.6.3)
<sup>Released on **2024-07-21**</sup>

#### 💄 Styles

- **misc**: Update Zhipu models (GLM-4-AllTools & CodeGeeX-4).

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Zhipu models (GLM-4-AllTools & CodeGeeX-4), closes [#3255](https://github.com/lobehub/lobe-chat/issues/3255) ([a92939f](https://github.com/lobehub/lobe-chat/commit/a92939f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-21 11:46:33 +00:00
Zhijie He a92939f282 💄 style: update Zhipu models (GLM-4-AllTools & CodeGeeX-4) (#3255)
* 💄 style: update Zhipu models (GLM & CodeGeeX)

* 💄 style: update CodeGeeX icon
2024-07-21 19:41:33 +08:00
HansKing98 5684f23884 💄 style: add yi-large-fc model (#3261)
fix: add yi-large-fc 

Reference Link:
https://platform.lingyiwanwu.com/docs#%E6%A8%A1%E5%9E%8B%E4%B8%8E%E8%AE%A1%E8%B4%B9
2024-07-21 19:39:34 +08:00
pagal 34c68202e2 📝 docs : update docker.mdx (#3273) 2024-07-21 19:34:26 +08:00
lobehubbot 58caa3209b 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-21 04:49:43 +00:00
semantic-release-bot 675a5d11d2 🔖 chore(release): v1.6.2 [skip ci]
### [Version&nbsp;1.6.2](https://github.com/lobehub/lobe-chat/compare/v1.6.1...v1.6.2)
<sup>Released on **2024-07-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix dayjs render on server.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix dayjs render on server, closes [#3278](https://github.com/lobehub/lobe-chat/issues/3278) ([8c08dd5](https://github.com/lobehub/lobe-chat/commit/8c08dd5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-21 04:49:00 +00:00
Arvin Xu 8c08dd5756 🐛 fix: fix dayjs render on server (#3278) 2024-07-21 12:43:55 +08:00
semantic-release-bot 7506b70599 🔖 chore(release): v1.6.1 [skip ci]
### [Version&nbsp;1.6.1](https://github.com/lobehub/lobe-chat/compare/v1.6.0...v1.6.1)
<sup>Released on **2024-07-19**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the DragUpload.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the DragUpload, closes [#3263](https://github.com/lobehub/lobe-chat/issues/3263) ([19186eb](https://github.com/lobehub/lobe-chat/commit/19186eb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-19 16:04:09 +00:00
Arvin Xu 19186ebf80 ♻️ refactor: refactor the DragUpload (#3263)
* 🐛 fix: fix dayjs locale

* ♻️ refactor: refactor the DragUpload component

* 🌐 chore: update the locale
2024-07-19 23:58:52 +08:00
semantic-release-bot 7eb192e529 🔖 chore(release): v1.6.0 [skip ci]
## [Version&nbsp;1.6.0](https://github.com/lobehub/lobe-chat/compare/v1.5.5...v1.6.0)
<sup>Released on **2024-07-19**</sup>

####  Features

- **misc**: Add `gpt-4o-mini` in OpenAI Provider and set it as the default model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add `gpt-4o-mini` in OpenAI Provider and set it as the default model, closes [#3256](https://github.com/lobehub/lobe-chat/issues/3256) ([a84d807](https://github.com/lobehub/lobe-chat/commit/a84d807))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-19 13:14:06 +00:00
Linghui Gong a84d8073e3 feat: add gpt-4o-mini in OpenAI Provider and set it as the default model (#3256)
*  feat: gpt-4o-mini to openai provider

* ♻️ refactor: move gpt-4o-mini as default model

*  test: fix test

* 🐛 fix: set gpt-4o-mini as default model

* chore: improve code

* chore: improve code

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-07-19 21:09:02 +08:00
lobehubbot 52d2b9d3f0 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-19 07:38:45 +00:00
semantic-release-bot 928f15543c 🔖 chore(release): v1.5.5 [skip ci]
### [Version&nbsp;1.5.5](https://github.com/lobehub/lobe-chat/compare/v1.5.4...v1.5.5)
<sup>Released on **2024-07-19**</sup>

#### 💄 Styles

- **misc**: Added Gemma2 instead of outdated Gemma.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Added Gemma2 instead of outdated Gemma, closes [#3231](https://github.com/lobehub/lobe-chat/issues/3231) ([03173b7](https://github.com/lobehub/lobe-chat/commit/03173b7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-19 07:38:04 +00:00
Maple Gao 03173b793b 💄 style: Added Gemma2 instead of outdated Gemma (#3231)
* 💄 config (Ollama): Added Gemma2 instead of outdated Gemma

* 💄 config (Ollama): Retaining old Gemma
2024-07-19 15:33:05 +08:00
semantic-release-bot 4531e24293 🔖 chore(release): v1.5.4 [skip ci]
### [Version&nbsp;1.5.4](https://github.com/lobehub/lobe-chat/compare/v1.5.3...v1.5.4)
<sup>Released on **2024-07-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix delete session group.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix delete session group, closes [#3245](https://github.com/lobehub/lobe-chat/issues/3245) ([8f7167d](https://github.com/lobehub/lobe-chat/commit/8f7167d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-17 17:24:36 +00:00
Arvin Xu 8f7167dd1d 🐛 fix: fix delete session group (#3245)
* 🐛 fix: fix delete session group

* 🎨 chore: improve code
2024-07-18 01:19:25 +08:00
lobehubbot f9e1b31972 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-17 12:26:18 +00:00
semantic-release-bot 4ca465677b 🔖 chore(release): v1.5.3 [skip ci]
### [Version&nbsp;1.5.3](https://github.com/lobehub/lobe-chat/compare/v1.5.2...v1.5.3)
<sup>Released on **2024-07-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `OpenAI` deployment restrictions, fix cant duplicate assistant.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix `OpenAI` deployment restrictions, closes [#3206](https://github.com/lobehub/lobe-chat/issues/3206) ([3d7a35d](https://github.com/lobehub/lobe-chat/commit/3d7a35d))
* **misc**: Fix cant duplicate assistant, closes [#3242](https://github.com/lobehub/lobe-chat/issues/3242) ([0edc851](https://github.com/lobehub/lobe-chat/commit/0edc851))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-17 12:25:24 +00:00
Arvin Xu 0edc8513b9 🐛 fix: fix cant duplicate assistant (#3242) 2024-07-17 20:20:05 +08:00
Rubu Jam 3d7a35d378 🐛 fix: fix OpenAI deployment restrictions (#3206)
*  perf(route): Optimize `OpenAI` deployment restrictions

* 🐛 fix(route): incorrect use of `hkg1`

* 🐛 fix(route): Incorrect use of `hkg1`
2024-07-17 20:17:05 +08:00
semantic-release-bot b63209e1ef 🔖 chore(release): v1.5.2 [skip ci]
### [Version&nbsp;1.5.2](https://github.com/lobehub/lobe-chat/compare/v1.5.1...v1.5.2)
<sup>Released on **2024-07-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix session not reorder after send message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix session not reorder after send message, closes [#3239](https://github.com/lobehub/lobe-chat/issues/3239) ([7245a08](https://github.com/lobehub/lobe-chat/commit/7245a08))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-17 10:09:08 +00:00
Arvin Xu 7245a08d21 🐛 fix: fix session not reorder after send message (#3239)
* 🐛 fix: fix session not reorder after send message

* fix test
2024-07-17 18:04:02 +08:00
semantic-release-bot 6d19fb2979 🔖 chore(release): v1.5.1 [skip ci]
### [Version&nbsp;1.5.1](https://github.com/lobehub/lobe-chat/compare/v1.5.0...v1.5.1)
<sup>Released on **2024-07-17**</sup>

#### 💄 Styles

- **misc**: Improve brand url.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve brand url, closes [#3238](https://github.com/lobehub/lobe-chat/issues/3238) ([eef066f](https://github.com/lobehub/lobe-chat/commit/eef066f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-17 08:12:48 +00:00
Arvin Xu eef066f32a 💄 style: improve brand url (#3238)
* 💄 style: improve url

* 💄 style: improve url
2024-07-17 16:07:35 +08:00
lobehubbot a1259205f5 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-17 05:46:14 +00:00
semantic-release-bot 8a53acfe2d 🔖 chore(release): v1.5.0 [skip ci]
## [Version&nbsp;1.5.0](https://github.com/lobehub/lobe-chat/compare/v1.4.3...v1.5.0)
<sup>Released on **2024-07-17**</sup>

####  Features

- **misc**: Spport qwen-vl and tool call for qwen.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Spport qwen-vl and tool call for qwen, closes [#3114](https://github.com/lobehub/lobe-chat/issues/3114) ([5216a85](https://github.com/lobehub/lobe-chat/commit/5216a85))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-17 05:45:26 +00:00
Minghao Li 5216a8555c feat: spport qwen-vl and tool call for qwen (#3114)
* feat: spport qwen-vl and tool call for qwen

* fix: make transformResponseToStream a util for testability

* test: append unit test for non-streaming response

* test: update unit-test against LobeQwenAI models
2024-07-17 13:21:33 +08:00
Hélio 091898bae1 🔨 chore: Add packageManager pnpm@9 to fix netlify deploy (#3232)
* Add packageManager no pnpm@9 as netlify asks

Based on https://docs.netlify.com/configure-builds/manage-dependencies/#pnpm and https://docs.netlify.com/frameworks/next-js/runtime-v4/overview/#pnpm-support and https://docs.netlify.com/configure-builds/available-software-at-build-time/#tools netlify needs to know that we want to use pnpm instead of npm which gives tons of errors and fail build.

* Update package.json

* Update package.json
2024-07-17 11:41:35 +08:00
Rubu Jam 1dd4f53cf4 test: deps.inline uses server.deps.inline instead (#3220) 2024-07-15 13:47:22 +08:00
semantic-release-bot dd839ca5ec 🔖 chore(release): v1.4.3 [skip ci]
### [Version&nbsp;1.4.3](https://github.com/lobehub/lobe-chat/compare/v1.4.2...v1.4.3)
<sup>Released on **2024-07-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Save assistant info on blur.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Save assistant info on blur, closes [#3223](https://github.com/lobehub/lobe-chat/issues/3223) ([0987a42](https://github.com/lobehub/lobe-chat/commit/0987a42))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-15 04:22:08 +00:00
Minh-Phuc Tran 0987a42641 🐛 fix: save assistant info on blur (#3223) 2024-07-15 12:16:57 +08:00
lobehubbot ea547c9dbd 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-14 04:01:36 +00:00
renovate[bot] b808bffd1b Update dependency @edge-runtime/vm to v4 (#3214) 2024-07-14 11:56:26 +08:00
Arvin Xu 0e4ed20523 📝 docs: update docs (#3209) 2024-07-13 18:47:40 +08:00
semantic-release-bot 4756e5e407 🔖 chore(release): v1.4.2 [skip ci]
### [Version&nbsp;1.4.2](https://github.com/lobehub/lobe-chat/compare/v1.4.1...v1.4.2)
<sup>Released on **2024-07-13**</sup>

#### ♻ Code Refactoring

- **misc**: Remove code related to `gemini-pro-vision`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Remove code related to `gemini-pro-vision`, closes [#2860](https://github.com/lobehub/lobe-chat/issues/2860) ([e2ba302](https://github.com/lobehub/lobe-chat/commit/e2ba302))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-13 07:50:27 +00:00
Rubu Jam e2ba302c6c ♻️ refactor: Remove code related to gemini-pro-vision (#2860) 2024-07-13 15:45:24 +08:00
semantic-release-bot 471721a1c4 🔖 chore(release): v1.4.1 [skip ci]
### [Version&nbsp;1.4.1](https://github.com/lobehub/lobe-chat/compare/v1.4.0...v1.4.1)
<sup>Released on **2024-07-13**</sup>

#### 💄 Styles

- **ui**: Confirmation when `adding a new topic`.
- **misc**: Add cloud promotion banner.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **ui**: Confirmation when `adding a new topic`, closes [#3030](https://github.com/lobehub/lobe-chat/issues/3030) ([dc38cd4](https://github.com/lobehub/lobe-chat/commit/dc38cd4))
* **misc**: Add cloud promotion banner, closes [#3194](https://github.com/lobehub/lobe-chat/issues/3194) ([62db0f8](https://github.com/lobehub/lobe-chat/commit/62db0f8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-13 06:44:34 +00:00
CanisMinor 62db0f8047 💄 style: Add cloud promotion banner (#3194)
* 💄 style: Add public test modal

* 💄 style: Update style

* 🔧 chore: Clean

* 💄 style: Update button style

* Update guide.ts

* 🔧 chore: feature flag

* 💄 style: improve height

*  test: fix test

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-07-13 14:39:11 +08:00
Rubu Jam dc38cd40b1 💄 style(ui): Confirmation when adding a new topic (#3030)
* 💄 style(ui): Confirm before opening a new topic

* 💄 style(ui): Always display `MoreVertical` on mobile

* 💄 style(ui): Adjust style of some components

* 💄 style(ui): Adjust the popment of `Popconfirm`

* 💄 style(ui): Adjust the popment of `Popconfirm`
2024-07-13 14:38:55 +08:00
semantic-release-bot 3463b30309 🔖 chore(release): v1.4.0 [skip ci]
## [Version&nbsp;1.4.0](https://github.com/lobehub/lobe-chat/compare/v1.3.6...v1.4.0)
<sup>Released on **2024-07-12**</sup>

####  Features

- **misc**: Add 360AI model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add 360AI model provider, closes [#3130](https://github.com/lobehub/lobe-chat/issues/3130) ([79c5f86](https://github.com/lobehub/lobe-chat/commit/79c5f86))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-12 12:27:49 +00:00
Zhijie He 79c5f86804 feat: Add 360AI model provider (#3130)
*  feat: Add Zhinao model provider

* 🔨 chore: update Zhinao models info

* 🔨 chore: update Zhinao models tokens info

* 💄 style: fix model tag icon missing

* 💄 style: update Ai360 icon

* 💄 style: fix typo in ProviderAvatar

* 🔨 chore: cleanup

* 🔨 chore: rename Zhinao to Ai360 (360 智脑)

* 🔨 chore: remove blank space
2024-07-12 20:22:29 +08:00
Rubu Jam f699021430 🔨 chore: fix netlify deploy error (#3201) 2024-07-12 11:43:01 +08:00
lobehubbot c9eef7291b 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-11 14:37:57 +00:00
semantic-release-bot 3b94540514 🔖 chore(release): v1.3.6 [skip ci]
### [Version&nbsp;1.3.6](https://github.com/lobehub/lobe-chat/compare/v1.3.5...v1.3.6)
<sup>Released on **2024-07-11**</sup>

#### ♻ Code Refactoring

- **misc**: Improve agent runtime code.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Improve agent runtime code, closes [#3199](https://github.com/lobehub/lobe-chat/issues/3199) ([9f211e2](https://github.com/lobehub/lobe-chat/commit/9f211e2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-11 14:37:13 +00:00
Arvin Xu 9f211e26be ♻️ refactor: improve agent runtime code (#3199)
* ♻️ refactor: improve agent runtime code

* ♻️ refactor: clean code
2024-07-11 22:32:02 +08:00
semantic-release-bot 5e8780d311 🔖 chore(release): v1.3.5 [skip ci]
### [Version&nbsp;1.3.5](https://github.com/lobehub/lobe-chat/compare/v1.3.4...v1.3.5)
<sup>Released on **2024-07-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix assistant meta change race issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix assistant meta change race issue, closes [#3184](https://github.com/lobehub/lobe-chat/issues/3184) ([6335be4](https://github.com/lobehub/lobe-chat/commit/6335be4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-10 02:10:40 +00:00
Arvin Xu 6335be41c6 🐛 fix: fix assistant meta change race issue (#3184) 2024-07-10 10:05:16 +08:00
semantic-release-bot 6e6ad3ecc1 🔖 chore(release): v1.3.4 [skip ci]
### [Version&nbsp;1.3.4](https://github.com/lobehub/lobe-chat/compare/v1.3.3...v1.3.4)
<sup>Released on **2024-07-09**</sup>

#### ♻ Code Refactoring

- **misc**: Support disable clientFetch by default.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Support disable clientFetch by default, closes [#3133](https://github.com/lobehub/lobe-chat/issues/3133) [#3108](https://github.com/lobehub/lobe-chat/issues/3108) ([4415652](https://github.com/lobehub/lobe-chat/commit/4415652))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-09 14:12:24 +00:00
cy948 441565269a ♻️ refactor: Support disable clientFetch by default (#3133)
* ♻️ refactor: Support disable clientFetch by modelConfig (#3108)

*  test: - clientfetch for qwen

* ♻️ refactor: Remove `defaultShowBrowserRequest` in qwen modelConfig
2024-07-09 22:07:11 +08:00
semantic-release-bot 968e1f244b 🔖 chore(release): v1.3.3 [skip ci]
### [Version&nbsp;1.3.3](https://github.com/lobehub/lobe-chat/compare/v1.3.2...v1.3.3)
<sup>Released on **2024-07-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Allow user to use their own WebRTC signaling.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Allow user to use their own WebRTC signaling, closes [#3182](https://github.com/lobehub/lobe-chat/issues/3182) ([c7f8f38](https://github.com/lobehub/lobe-chat/commit/c7f8f38))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-09 12:42:17 +00:00
Arvin Xu c7f8f3851c 🐛 fix: allow user to use their own WebRTC signaling (#3182)
* 🐛 fix: allow user to use their own WebRTC signaling

* 📝 docs: add webrtc docs

* 📝 docs: add webrtc docs

* 📝 docs: add webrtc docs

* 📝 docs: update webrtc docs

* 📝 docs: update webrtc docs

* 📝 docs: update webrtc docs

* 📝 docs: update webrtc docs

* Update url.ts
2024-07-09 20:36:49 +08:00
semantic-release-bot 85ed192fae 🔖 chore(release): v1.3.2 [skip ci]
### [Version&nbsp;1.3.2](https://github.com/lobehub/lobe-chat/compare/v1.3.1...v1.3.2)
<sup>Released on **2024-07-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Automatic refresh when change language.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Automatic refresh when change language, closes [#3181](https://github.com/lobehub/lobe-chat/issues/3181) ([b597c5a](https://github.com/lobehub/lobe-chat/commit/b597c5a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-09 12:16:06 +00:00
Rubu Jam b597c5ac6b 🐛 fix: Automatic refresh when change language (#3181)
* 🐛 fix: Automatic refresh when change language

* 🐛 fix: Automatic refresh when change language
2024-07-09 20:10:57 +08:00
semantic-release-bot 7583631802 🔖 chore(release): v1.3.1 [skip ci]
### [Version&nbsp;1.3.1](https://github.com/lobehub/lobe-chat/compare/v1.3.0...v1.3.1)
<sup>Released on **2024-07-09**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-09 09:15:51 +00:00
Rubu Jam 1f059590b8 perf: Update gemini deployment restrictions (#3167) 2024-07-09 17:10:34 +08:00
semantic-release-bot a5be879bbf 🔖 chore(release): v1.3.0 [skip ci]
## [Version&nbsp;1.3.0](https://github.com/lobehub/lobe-chat/compare/v1.2.14...v1.3.0)
<sup>Released on **2024-07-09**</sup>

####  Features

- **misc**: Add Taichu model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Taichu model provider, closes [#3129](https://github.com/lobehub/lobe-chat/issues/3129) ([a4580e9](https://github.com/lobehub/lobe-chat/commit/a4580e9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-09 08:45:48 +00:00
Zhijie He a4580e9f2e feat: Add Taichu model provider (#3129)
*  feat: Add Taichu model provider

* 💄 style: fix model tag icon missing

* 💄 style: update Taichu icon

* 💄 style: resize Taichu icon
2024-07-09 16:40:42 +08:00
Arvin Xu e6dc16a1b4 📝 docs: add groq tools calling (#3171)
* add groq

* add groq

* 📝 docs: add groq tools calling

* add groq
2024-07-09 12:21:27 +08:00
semantic-release-bot 357d6ee6b6 🔖 chore(release): v1.2.14 [skip ci]
### [Version&nbsp;1.2.14](https://github.com/lobehub/lobe-chat/compare/v1.2.13...v1.2.14)
<sup>Released on **2024-07-08**</sup>

#### 💄 Styles

- **misc**: Provider changes with model in model settings.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Provider changes with model in model settings, closes [#3146](https://github.com/lobehub/lobe-chat/issues/3146) ([e53bb5a](https://github.com/lobehub/lobe-chat/commit/e53bb5a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-08 06:22:33 +00:00
Rubu Jam e53bb5a06d 💄 style: provider changes with model in model settings (#3146) 2024-07-08 14:17:22 +08:00
Arvin Xu 7100d1c8b5 📝 docs: fix google tools calling (#3162) 2024-07-07 23:39:27 +08:00
Arvin Xu 3a1ceba359 📝 docs: fix google tools calling (#3161) 2024-07-07 23:34:23 +08:00
Arvin Xu 7a4bbc003c 📝 docs: update tools calling (#3160)
* 📝 docs: add summary

* 📝 docs: update tools calling

* 📝 docs: update tools calling
2024-07-07 23:21:49 +08:00
Arvin Xu b696a4088a 📝 docs: fix docs (#3159) 2024-07-07 17:36:54 +08:00
semantic-release-bot 9acce91559 🔖 chore(release): v1.2.13 [skip ci]
### [Version&nbsp;1.2.13](https://github.com/lobehub/lobe-chat/compare/v1.2.12...v1.2.13)
<sup>Released on **2024-07-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix tool message order.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix tool message order, closes [#3155](https://github.com/lobehub/lobe-chat/issues/3155) ([6171b2a](https://github.com/lobehub/lobe-chat/commit/6171b2a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-07 06:07:07 +00:00
Arvin Xu 7da3cdcfd3 🚨 ci: fix lint (#3158) 2024-07-07 14:01:50 +08:00
Arvin Xu 6171b2a531 🐛 fix: fix tool message order (#3155)
* 🐛 fix: fix tool message order

* 🐛 fix: fix tool message order
2024-07-07 13:40:02 +08:00
renovate[bot] c79d647ac2 Update dependency @google/generative-ai to ^0.14.0 (#3089)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-07 12:20:35 +08:00
semantic-release-bot 36f94bd91e 🔖 chore(release): v1.2.12 [skip ci]
### [Version&nbsp;1.2.12](https://github.com/lobehub/lobe-chat/compare/v1.2.11...v1.2.12)
<sup>Released on **2024-07-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Fixed mobile web page navigation issue with inbox assistant, support to disable clerk signup with feature flag.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fixed mobile web page navigation issue with inbox assistant, closes [#2693](https://github.com/lobehub/lobe-chat/issues/2693) ([4476a5e](https://github.com/lobehub/lobe-chat/commit/4476a5e))
* **misc**: Support to disable clerk signup with feature flag, closes [#3126](https://github.com/lobehub/lobe-chat/issues/3126) ([4ead315](https://github.com/lobehub/lobe-chat/commit/4ead315))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-07 02:58:14 +00:00
Cabeza 4ead315f7a 🐛 fix: support to disable clerk signup with feature flag (#3126)
* feat: Disable signup when env set

* feat: Disable Clerk sign-up based on feature flag

* fix: change to client

* fix: remove the logic for signup in middleware

* chore: revert the space deletion

* fix: update the url for login and signup

* fix: fix footerAction update logic

* test: update test for enableClerkSignUp
2024-07-07 10:53:09 +08:00
Rubu Jam 4476a5ebde 🐛 fix: Fixed mobile web page navigation issue with inbox assistant (#2693) 2024-07-07 10:51:05 +08:00
semantic-release-bot f5fe60aeec 🔖 chore(release): v1.2.11 [skip ci]
### [Version&nbsp;1.2.11](https://github.com/lobehub/lobe-chat/compare/v1.2.10...v1.2.11)
<sup>Released on **2024-07-07**</sup>

#### 💄 Styles

- **misc**: Update deepseek max token.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update deepseek max token, closes [#3143](https://github.com/lobehub/lobe-chat/issues/3143) ([4a241b9](https://github.com/lobehub/lobe-chat/commit/4a241b9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-07 02:25:42 +00:00
sxjeru 4a241b9313 💄 style: Update deepseek max token (#3143) 2024-07-07 10:20:31 +08:00
lobehubbot d3bdb610d8 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-05 17:27:33 +00:00
semantic-release-bot dda6dcb058 🔖 chore(release): v1.2.10 [skip ci]
### [Version&nbsp;1.2.10](https://github.com/lobehub/lobe-chat/compare/v1.2.9...v1.2.10)
<sup>Released on **2024-07-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve tools calling error feedback when arguments are not correctly.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Improve tools calling error feedback when arguments are not correctly, closes [#3150](https://github.com/lobehub/lobe-chat/issues/3150) ([1fa160f](https://github.com/lobehub/lobe-chat/commit/1fa160f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-05 17:26:52 +00:00
Arvin Xu 1fa160fa1a 🐛 fix: improve tools calling error feedback when arguments are not correctly (#3150)
* update docs

* fix: fix plugin arguments issue

* Update error.ts

* 🚨 ci: fix lint

*  test: fix test

* chore: update locale
2024-07-06 01:21:53 +08:00
semantic-release-bot 7fa3b42546 🔖 chore(release): v1.2.9 [skip ci]
### [Version&nbsp;1.2.9](https://github.com/lobehub/lobe-chat/compare/v1.2.8...v1.2.9)
<sup>Released on **2024-07-04**</sup>

#### 💄 Styles

- **misc**: Fix tool message suspense loading.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix tool message suspense loading, closes [#3138](https://github.com/lobehub/lobe-chat/issues/3138) ([3ce59ca](https://github.com/lobehub/lobe-chat/commit/3ce59ca))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-04 03:01:07 +00:00
Arvin Xu 3ce59ca40c 💄 style: fix tool message suspense loading (#3138) 2024-07-04 10:55:51 +08:00
semantic-release-bot 0c09c84088 🔖 chore(release): v1.2.8 [skip ci]
### [Version&nbsp;1.2.8](https://github.com/lobehub/lobe-chat/compare/v1.2.7...v1.2.8)
<sup>Released on **2024-07-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Allow builtin tools to trigger AI message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Allow builtin tools to trigger AI message, closes [#3135](https://github.com/lobehub/lobe-chat/issues/3135) ([6c4c8f7](https://github.com/lobehub/lobe-chat/commit/6c4c8f7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-03 17:54:14 +00:00
Minh-Phuc Tran 6c4c8f7dc1 🐛 fix: allow builtin tools to trigger AI message (#3135) 2024-07-04 01:48:56 +08:00
Arvin Xu 4dbf79547d 📌 chore: pin `@clerk/nextjs to 5.1.6 (#3137) 2024-07-04 01:40:40 +08:00
lobehubbot b8e9f21f7c 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-03 16:50:17 +00:00
semantic-release-bot 3f2d9be937 🔖 chore(release): v1.2.7 [skip ci]
### [Version&nbsp;1.2.7](https://github.com/lobehub/lobe-chat/compare/v1.2.6...v1.2.7)
<sup>Released on **2024-07-03**</sup>

#### 💄 Styles

- **misc**: Improve delete assistant message with tools.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve delete assistant message with tools, closes [#3127](https://github.com/lobehub/lobe-chat/issues/3127) ([1230777](https://github.com/lobehub/lobe-chat/commit/1230777))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-03 16:49:34 +00:00
Arvin Xu 1230777860 💄 style: improve delete assistant message with tools (#3127)
* 💄 style: improve delete assistant message with tools

*  test: add test for bulkDelete

*  test: fix test

* 🐛 fix: fix delete issues

*  test: add test

*  test: add test

*  test: add test

* 💡 chore: update comment

* 💡 chore: update comment

*  test: add tests

*  test: add tests
2024-07-04 00:44:14 +08:00
semantic-release-bot 35f24919e2 🔖 chore(release): v1.2.6 [skip ci]
### [Version&nbsp;1.2.6](https://github.com/lobehub/lobe-chat/compare/v1.2.5...v1.2.6)
<sup>Released on **2024-07-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Clerk provider refreshes continously.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Clerk provider refreshes continously, closes [#3131](https://github.com/lobehub/lobe-chat/issues/3131) ([ffbb399](https://github.com/lobehub/lobe-chat/commit/ffbb399))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-03 08:51:00 +00:00
Minh-Phuc Tran ffbb39924b 🐛 fix: clerk provider refreshes continously (#3131) 2024-07-03 13:54:04 +08:00
semantic-release-bot ad306e37ab 🔖 chore(release): v1.2.5 [skip ci]
### [Version&nbsp;1.2.5](https://github.com/lobehub/lobe-chat/compare/v1.2.4...v1.2.5)
<sup>Released on **2024-07-02**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix clerk appearance is not applied correctly.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix clerk appearance is not applied correctly, closes [#3105](https://github.com/lobehub/lobe-chat/issues/3105) ([cf9c145](https://github.com/lobehub/lobe-chat/commit/cf9c145))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-02 15:11:51 +00:00
Minh-Phuc Tran cf9c145fbf 🐛 fix: fix clerk appearance is not applied correctly (#3105) 2024-07-02 23:06:37 +08:00
semantic-release-bot 7ee6f6a694 🔖 chore(release): v1.2.4 [skip ci]
### [Version&nbsp;1.2.4](https://github.com/lobehub/lobe-chat/compare/v1.2.3...v1.2.4)
<sup>Released on **2024-07-02**</sup>

#### 💄 Styles

- **misc**: Update ProviderAvatar for Baichuan & Stepfun.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update ProviderAvatar for Baichuan & Stepfun, closes [#3112](https://github.com/lobehub/lobe-chat/issues/3112) ([ae5987a](https://github.com/lobehub/lobe-chat/commit/ae5987a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-02 12:47:43 +00:00
Zhijie He ae5987ac9d 💄 style: update ProviderAvatar for Baichuan & Stepfun (#3112) 2024-07-02 20:42:43 +08:00
Rubu Jam 73b88379e9 🔧 chore(config): adjusting stylelint rules (#3117) 2024-07-02 13:56:37 +08:00
semantic-release-bot 006c9c1a55 🔖 chore(release): v1.2.3 [skip ci]
### [Version&nbsp;1.2.3](https://github.com/lobehub/lobe-chat/compare/v1.2.2...v1.2.3)
<sup>Released on **2024-07-01**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the portal implement.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the portal implement, closes [#3110](https://github.com/lobehub/lobe-chat/issues/3110) ([53fb292](https://github.com/lobehub/lobe-chat/commit/53fb292))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-01 19:30:50 +00:00
Arvin Xu 53fb29211d ♻️ refactor: refactor the portal implement (#3110) 2024-07-02 03:25:53 +08:00
lobehubbot 9304008f5e 📝 docs(bot): Auto sync agents & plugin to readme 2024-07-01 17:13:02 +00:00
CanisMinor c85143a0ea 🔧 chore: Update lint config (#3109) 2024-07-02 01:07:56 +08:00
semantic-release-bot d71108ae9a 🔖 chore(release): v1.2.2 [skip ci]
### [Version&nbsp;1.2.2](https://github.com/lobehub/lobe-chat/compare/v1.2.1...v1.2.2)
<sup>Released on **2024-07-01**</sup>

#### 🐛 Bug Fixes

- **misc**: Display issue when select default model in System Agent.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Display issue when select default model in System Agent, closes [#3095](https://github.com/lobehub/lobe-chat/issues/3095) ([49f7f33](https://github.com/lobehub/lobe-chat/commit/49f7f33))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-01 16:21:41 +00:00
Zhijie He 49f7f33313 🐛 fix: display issue when select default model in System Agent (#3095)
* 💄 style: update coding style

* 🐛 fix: display issue when select default model in System Agent

* 🔨 chore: removed 'form' from trigger

* 🔨 chore: cleanup space

* 🔨 chore: update useSyncSystemAgent function

* 🔨 chore: package system-agent form as component
2024-07-02 00:16:32 +08:00
semantic-release-bot 6619c5de7e 🔖 chore(release): v1.2.1 [skip ci]
### [Version&nbsp;1.2.1](https://github.com/lobehub/lobe-chat/compare/v1.2.0...v1.2.1)
<sup>Released on **2024-07-01**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the portal file.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the portal file, closes [#3106](https://github.com/lobehub/lobe-chat/issues/3106) ([2d9635f](https://github.com/lobehub/lobe-chat/commit/2d9635f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-01 14:20:52 +00:00
Arvin Xu 2d9635f853 ♻️ refactor: refactor the portal file (#3106) 2024-07-01 22:15:37 +08:00
semantic-release-bot f0d037e15d 🔖 chore(release): v1.2.0 [skip ci]
## [Version&nbsp;1.2.0](https://github.com/lobehub/lobe-chat/compare/v1.1.18...v1.2.0)
<sup>Released on **2024-07-01**</sup>

####  Features

- **misc**: Add Baichuan model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Baichuan model provider, closes [#3097](https://github.com/lobehub/lobe-chat/issues/3097) ([378cf02](https://github.com/lobehub/lobe-chat/commit/378cf02))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-01 11:04:25 +00:00
Zhijie He 378cf020e5 feat: Add Baichuan model provider (#3097) 2024-07-01 18:59:18 +08:00
semantic-release-bot e431d1a21a 🔖 chore(release): v1.1.18 [skip ci]
### [Version&nbsp;1.1.18](https://github.com/lobehub/lobe-chat/compare/v1.1.17...v1.1.18)
<sup>Released on **2024-07-01**</sup>

#### 💄 Styles

- **misc**: Add Gemini 1.5 stable version model & 2M context window.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Gemini 1.5 stable version model & 2M context window, closes [#2744](https://github.com/lobehub/lobe-chat/issues/2744) ([a35143b](https://github.com/lobehub/lobe-chat/commit/a35143b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-01 09:03:02 +00:00
sxjeru a35143b66e 💄 style: Add Gemini 1.5 stable version model & 2M context window (#2744)
* Update google.ts

* Update google.ts

* Update google.ts

* Update google.ts

* Update google.ts

* 去掉 Latest

* Update google.ts
2024-07-01 16:57:48 +08:00
semantic-release-bot 4bd05fc2a7 🔖 chore(release): v1.1.17 [skip ci]
### [Version&nbsp;1.1.17](https://github.com/lobehub/lobe-chat/compare/v1.1.16...v1.1.17)
<sup>Released on **2024-07-01**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to prepare for Chat Portal.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor to prepare for Chat Portal, closes [#3093](https://github.com/lobehub/lobe-chat/issues/3093) ([e7c1ba8](https://github.com/lobehub/lobe-chat/commit/e7c1ba8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-07-01 08:23:53 +00:00
Arvin Xu e7c1ba8f74 ♻️ refactor: refactor to prepare for Chat Portal (#3093)
*  feat: add dock

* ♻️ refactor: add plugin render

*  test: add tests

*  test: add tests

*  test: add tests

* ♻️ refactor: refactor and add tests

*  test: fix tests

*  test: fix tests

* move files

* refactor

* 🌐 chore: add locale
2024-07-01 16:18:37 +08:00
semantic-release-bot 9ea871105e 🔖 chore(release): v1.1.16 [skip ci]
### [Version&nbsp;1.1.16](https://github.com/lobehub/lobe-chat/compare/v1.1.15...v1.1.16)
<sup>Released on **2024-06-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix clerk `UNAUTHORIZED` error after long-time hang-up.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix clerk `UNAUTHORIZED` error after long-time hang-up, closes [#3084](https://github.com/lobehub/lobe-chat/issues/3084) ([a148c3b](https://github.com/lobehub/lobe-chat/commit/a148c3b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-29 13:01:23 +00:00
Arvin Xu a148c3b031 🐛 fix: fix clerk UNAUTHORIZED error after long-time hang-up (#3084)
* 🐛 fix: fix clerk auth

* 💡 fix: fix clerk auth
2024-06-29 20:56:25 +08:00
Star 0854a1d0d2 📝 docs: remove ollama /v1 (#3068) 2024-06-29 12:35:27 +08:00
semantic-release-bot 8c1512df26 🔖 chore(release): v1.1.15 [skip ci]
### [Version&nbsp;1.1.15](https://github.com/lobehub/lobe-chat/compare/v1.1.14...v1.1.15)
<sup>Released on **2024-06-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Pin `@azure/core-rest-pipeline@1.16.0` to fix azure openai issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Pin `@azure/core-rest-pipeline@1.16.0` to fix azure openai issue, closes [#3066](https://github.com/lobehub/lobe-chat/issues/3066) ([f3b29f6](https://github.com/lobehub/lobe-chat/commit/f3b29f6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-28 09:33:56 +00:00
BrandonStudio f3b29f6930 🐛 fix: pin @azure/core-rest-pipeline@1.16.0 to fix azure openai issue (#3066) 2024-06-28 17:29:05 +08:00
lobehubbot 3f5a4b456d 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-28 09:13:01 +00:00
Star cc0b177317 📝 docs: update price (#3072)
Signed-off-by: Star <i@ssstttar.com>
2024-06-28 17:08:07 +08:00
Rubu Jam b7f4bf6e4a 📝 docs(database): improve the file server-database.mdx (#3050) 2024-06-27 20:59:36 +08:00
Arvin Xu f33325a7e1 🌐 chore: add error locale (#3061) 2024-06-27 20:48:40 +08:00
semantic-release-bot c1e7e194b8 🔖 chore(release): v1.1.14 [skip ci]
### [Version&nbsp;1.1.14](https://github.com/lobehub/lobe-chat/compare/v1.1.13...v1.1.14)
<sup>Released on **2024-06-27**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor plugin state.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor plugin state, closes [#3059](https://github.com/lobehub/lobe-chat/issues/3059) ([6448570](https://github.com/lobehub/lobe-chat/commit/6448570))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-27 12:13:37 +00:00
Arvin Xu 6448570910 ♻️ refactor: refactor plugin state (#3059)
* ♻️ refactor: refactor plugin state

* ♻️ refactor: refactor plugin state

* 🍱 style: update OG url
2024-06-27 20:08:23 +08:00
lobehubbot bda40fa100 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-27 01:39:28 +00:00
semantic-release-bot eba81480b4 🔖 chore(release): v1.1.13 [skip ci]
### [Version&nbsp;1.1.13](https://github.com/lobehub/lobe-chat/compare/v1.1.12...v1.1.13)
<sup>Released on **2024-06-27**</sup>

#### 🐛 Bug Fixes

- **misc**: -check_updates cannot be set by FEATURE_FLAGS.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: -check_updates cannot be set by FEATURE_FLAGS, closes [#3038](https://github.com/lobehub/lobe-chat/issues/3038) ([bdadfee](https://github.com/lobehub/lobe-chat/commit/bdadfee))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-27 01:38:47 +00:00
Zhijie He bdadfeeccf 🐛 fix: -check_updates cannot be set by FEATURE_FLAGS (#3038) 2024-06-27 09:33:19 +08:00
lobehubbot 90dc95cb61 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-26 06:54:43 +00:00
semantic-release-bot 457106b3d8 🔖 chore(release): v1.1.12 [skip ci]
### [Version&nbsp;1.1.12](https://github.com/lobehub/lobe-chat/compare/v1.1.11...v1.1.12)
<sup>Released on **2024-06-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix azure tools calling.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix azure tools calling, closes [#3046](https://github.com/lobehub/lobe-chat/issues/3046) ([b929985](https://github.com/lobehub/lobe-chat/commit/b929985))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-26 06:53:41 +00:00
Arvin Xu b9299858be 🐛 fix: fix azure tools calling (#3046)
* 🐛 fix: desensitized azure endpoint

* 🐛 fix: fix azure tool calling

*  test: fix test

*  test: fix test
2024-06-26 14:48:39 +08:00
Jonathan Mohrbacher a5c348db0e 📝 docs: fix mentions of SSO_PROVIDERS and NEXTAUTH_SECRET (#3018)
* 📝 docs: Fix mentions of `SSO_PROVIDERS` and `NEXTAUTH_SECRET`

* Delete `ENABLE_OAUTH_SSO`
2024-06-26 14:48:24 +08:00
Star 23f3efbd79 📝 docs: add notes (#3039)
Signed-off-by: Star <i@ssstttar.com>
2024-06-26 00:21:59 +08:00
semantic-release-bot 3042e35722 🔖 chore(release): v1.1.11 [skip ci]
### [Version&nbsp;1.1.11](https://github.com/lobehub/lobe-chat/compare/v1.1.10...v1.1.11)
<sup>Released on **2024-06-25**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor format utils.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor format utils, closes [#3034](https://github.com/lobehub/lobe-chat/issues/3034) ([8e54ca0](https://github.com/lobehub/lobe-chat/commit/8e54ca0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-25 11:33:52 +00:00
Arvin Xu 8e54ca0f59 ♻️ refactor: refactor format utils (#3034)
* ♻️ refactor: refactor format utils

* ♻️ refactor: refactor format utils
2024-06-25 19:28:50 +08:00
CanisMinor 8ae29afeb6 📝 docs: Add HelloGithub shield #3029 (#3033) [skip ci]
* 📝 docs: Add HelloGithub shield #3029

* 📝 docs: Fix HelloGithub shield
2024-06-25 16:39:04 +08:00
CanisMinor 7585fc22ac 📝 docs: Add HelloGithub shield #3029 (#3032) [skip ci] 2024-06-25 16:11:07 +08:00
semantic-release-bot 61b6ac9c3f 🔖 chore(release): v1.1.10 [skip ci]
### [Version&nbsp;1.1.10](https://github.com/lobehub/lobe-chat/compare/v1.1.9...v1.1.10)
<sup>Released on **2024-06-24**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-24 17:33:38 +00:00
Arvin Xu 1a067b1306 ️ perf: improve click response for chat page (#3017)
* ️ perf: improve click response for chat page

* 🌐 chore: update locale
2024-06-25 01:28:28 +08:00
semantic-release-bot 62a1ef2a22 🔖 chore(release): v1.1.9 [skip ci]
### [Version&nbsp;1.1.9](https://github.com/lobehub/lobe-chat/compare/v1.1.8...v1.1.9)
<sup>Released on **2024-06-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix agent tags.

#### 💄 Styles

- **ui**: Fixed incorrect text display on connect check.
- **misc**: Always show action on mobile.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix agent tags, closes [#3015](https://github.com/lobehub/lobe-chat/issues/3015) ([01e965b](https://github.com/lobehub/lobe-chat/commit/01e965b))

#### Styles

* **ui**: Fixed incorrect text display on connect check, closes [#2994](https://github.com/lobehub/lobe-chat/issues/2994) ([5160f23](https://github.com/lobehub/lobe-chat/commit/5160f23))
* **misc**: Always show action on mobile, closes [#1863](https://github.com/lobehub/lobe-chat/issues/1863) ([f40292e](https://github.com/lobehub/lobe-chat/commit/f40292e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-24 16:22:30 +00:00
Rubu Jam 5160f232bb 💄 style(ui): fixed incorrect text display on connect check (#2994)
* 🐛 fix(ui): Fixed incorrect text display on connect check

* 🐛 fix(ui): Fixed incorrect text display on connect check
2024-06-25 00:17:16 +08:00
华丽 f40292e55b 💄 style: always show action on mobile (#1863) 2024-06-25 00:15:52 +08:00
Arvin Xu 01e965be0d 🐛 fix: fix agent tags (#3015)
* 🐛 fix: fix agent tags

* 📸 test: update snapshot
2024-06-25 00:14:05 +08:00
renovate[bot] b5517c763e Update dependency ai to v3.2.6 (#2372)
* Update dependency ai to v3.2.6

* Update package.json

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-06-24 21:51:54 +08:00
lobehubbot 9cc059cbad 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-24 13:22:48 +00:00
semantic-release-bot e03a24c7f5 🔖 chore(release): v1.1.8 [skip ci]
### [Version&nbsp;1.1.8](https://github.com/lobehub/lobe-chat/compare/v1.1.7...v1.1.8)
<sup>Released on **2024-06-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix anthropic parallel tools calling.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix anthropic parallel tools calling, closes [#3010](https://github.com/lobehub/lobe-chat/issues/3010) ([1d891ac](https://github.com/lobehub/lobe-chat/commit/1d891ac))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-24 13:22:04 +00:00
Arvin Xu 1d891ac52b 🐛 fix: fix anthropic parallel tools calling (#3010)
* wip

* 💚 ci: fix lint

*  test: fix test

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs
2024-06-24 21:16:49 +08:00
semantic-release-bot 6ca63892c6 🔖 chore(release): v1.1.7 [skip ci]
### [Version&nbsp;1.1.7](https://github.com/lobehub/lobe-chat/compare/v1.1.6...v1.1.7)
<sup>Released on **2024-06-24**</sup>

#### 💄 Styles

- **misc**: Add AES-GCM footer and tooltip.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add AES-GCM footer and tooltip, closes [#2976](https://github.com/lobehub/lobe-chat/issues/2976) ([5d9bef4](https://github.com/lobehub/lobe-chat/commit/5d9bef4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-24 06:41:31 +00:00
CanisMinor 5d9bef4378 💄 style: Add AES-GCM footer and tooltip (#2976)
* 💄 style: Add AES-GCM footer and tooltip

* 💄 style: Update style
2024-06-24 14:36:20 +08:00
Arvin Xu 9ab200c602 💚 chore: fix vercel build (#2998) 2024-06-23 18:52:57 +08:00
semantic-release-bot 2104c737aa 🔖 chore(release): v1.1.6 [skip ci]
### [Version&nbsp;1.1.6](https://github.com/lobehub/lobe-chat/compare/v1.1.5...v1.1.6)
<sup>Released on **2024-06-23**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the server db implement.

#### 🐛 Bug Fixes

- **misc**: Fix incorrect baseURL for Groq in client mode.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the server db implement, closes [#2991](https://github.com/lobehub/lobe-chat/issues/2991) ([fa78599](https://github.com/lobehub/lobe-chat/commit/fa78599))

#### What's fixed

* **misc**: Fix incorrect baseURL for Groq in client mode, closes [#2747](https://github.com/lobehub/lobe-chat/issues/2747) ([af14225](https://github.com/lobehub/lobe-chat/commit/af14225))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-23 08:19:23 +00:00
mosade af14225d31 🐛 fix: fix incorrect baseURL for Groq in client mode (#2747) 2024-06-23 16:14:06 +08:00
Arvin Xu fa78599548 ♻️ refactor: refactor the server db implement (#2991)
* ♻️ refactor: refactor the server db implement

*  test: fix tests
2024-06-23 16:09:11 +08:00
semantic-release-bot 89414c2971 🔖 chore(release): v1.1.5 [skip ci]
### [Version&nbsp;1.1.5](https://github.com/lobehub/lobe-chat/compare/v1.1.4...v1.1.5)
<sup>Released on **2024-06-23**</sup>

#### ♻ Code Refactoring

- **misc**: Remove deprecated env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Remove deprecated env, closes [#2983](https://github.com/lobehub/lobe-chat/issues/2983) ([15a681f](https://github.com/lobehub/lobe-chat/commit/15a681f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-23 07:41:57 +00:00
Arvin Xu 15a681fc8e 🔥 refactor: remove deprecated env (#2983)
* 🔥 refactor: remove deprecated env

*  test: fix test
2024-06-23 15:36:55 +08:00
lobehubbot 499550109b 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-23 03:59:49 +00:00
Ryan Patterson a20d1aeca1 📝 docs: Add reference to model providers. (#2973)
* Add reference to model providers.

* Update model-list.mdx
2024-06-23 11:55:02 +08:00
renovate[bot] df0af9933b Update dependency @types/uuid to v10 (#2989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 11:54:16 +08:00
semantic-release-bot 93f1cffa86 🔖 chore(release): v1.1.4 [skip ci]
### [Version&nbsp;1.1.4](https://github.com/lobehub/lobe-chat/compare/v1.1.3...v1.1.4)
<sup>Released on **2024-06-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Create first-time user on server db.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Create first-time user on server db, closes [#2977](https://github.com/lobehub/lobe-chat/issues/2977) ([6f53f35](https://github.com/lobehub/lobe-chat/commit/6f53f35))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-22 16:17:05 +00:00
Minh-Phuc Tran 6f53f35d6d 🐛 fix: create first-time user on server db (#2977) 2024-06-23 00:12:14 +08:00
Arvin Xu 4a3c21d01b 📝 docs: update (#2980) 2024-06-22 19:49:23 +08:00
Arvin Xu c52bce8db8 📝 docs: update tool calling docs (#2978)
* 📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

docs

docs

docs

update

add docs

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

docs

docs

docs

update

add docs

* 📝 docs: update
2024-06-22 19:40:49 +08:00
Arvin Xu 3f85ffbb28 📝 docs: tool calling for openai (#2975)
* 📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

docs

docs

docs

update

add docs

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

📝 docs: update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

docs

docs

docs

update

add docs

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update

* 📝 docs: update
2024-06-22 18:43:29 +08:00
Arvin Xu 13c4037c15 📝 docs: add tool calling benchmark docs (#2963) 2024-06-22 01:07:36 +08:00
Rubu Jam df67dc0e80 🔧 chore(deps): Upgraded drizzle-orm to 0.31.2 (#2964) 2024-06-21 20:27:24 +08:00
Star 2603505241 📝 docs: add backup notice (#2967) 2024-06-21 19:23:11 +08:00
semantic-release-bot d7b31d91b3 🔖 chore(release): v1.1.3 [skip ci]
### [Version&nbsp;1.1.3](https://github.com/lobehub/lobe-chat/compare/v1.1.2...v1.1.3)
<sup>Released on **2024-06-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Ollama not enabled client fetch by default.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Ollama not enabled client fetch by default, closes [#2961](https://github.com/lobehub/lobe-chat/issues/2961) ([90db48e](https://github.com/lobehub/lobe-chat/commit/90db48e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-21 05:26:30 +00:00
cy948 90db48e1e8 🐛 fix: ollama not enabled client fetch by default (#2961) 2024-06-21 13:21:34 +08:00
lobehubbot 7fda93ae8e 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-21 02:44:26 +00:00
Arvin Xu a91d6b23a2 📝 docs: update provider docs (#2960)
* 🌐 chore: fix locale

* 📝 docs: update provider docs
2024-06-21 10:37:59 +08:00
semantic-release-bot e78a6862e5 🔖 chore(release): v1.1.2 [skip ci]
### [Version&nbsp;1.1.2](https://github.com/lobehub/lobe-chat/compare/v1.1.1...v1.1.2)
<sup>Released on **2024-06-20**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-20 19:27:34 +00:00
Arvin Xu bede6b0094 💚 build: fix build (#2958)
* 💚 build: fix build

*  test: fix test
2024-06-21 03:22:35 +08:00
semantic-release-bot 37eb8fe534 🔖 chore(release): v1.1.1 [skip ci]
### [Version&nbsp;1.1.1](https://github.com/lobehub/lobe-chat/compare/v1.1.0...v1.1.1)
<sup>Released on **2024-06-20**</sup>

#### 💄 Styles

- **misc**: Fixed System Agent missing in mobile layout.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fixed System Agent missing in mobile layout, closes [#2954](https://github.com/lobehub/lobe-chat/issues/2954) ([596b9c8](https://github.com/lobehub/lobe-chat/commit/596b9c8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-20 17:02:03 +00:00
Zhijie He 596b9c8091 💄 style: fixed System Agent missing in mobile layout (#2954) 2024-06-21 00:57:00 +08:00
renovate[bot] 6e9341ae3b Update dependency @anthropic-ai/sdk to ^0.24.0 (#2757)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-21 00:46:11 +08:00
semantic-release-bot 7f6e3b18fe 🔖 chore(release): v1.1.0 [skip ci]
## [Version&nbsp;1.1.0](https://github.com/lobehub/lobe-chat/compare/v1.0.14...v1.1.0)
<sup>Released on **2024-06-20**</sup>

####  Features

- **misc**: Supoort Claude 3.5 Sonnet.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Supoort Claude 3.5 Sonnet, closes [#2955](https://github.com/lobehub/lobe-chat/issues/2955) ([aa1d7b7](https://github.com/lobehub/lobe-chat/commit/aa1d7b7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-20 16:34:16 +00:00
cuterwrite aa1d7b7f1c feat: Supoort Claude 3.5 Sonnet (#2955) 2024-06-21 00:28:55 +08:00
semantic-release-bot 1764383ddd 🔖 chore(release): v1.0.14 [skip ci]
### [Version&nbsp;1.0.14](https://github.com/lobehub/lobe-chat/compare/v1.0.13...v1.0.14)
<sup>Released on **2024-06-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix to send image without text.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix to send image without text, closes [#2952](https://github.com/lobehub/lobe-chat/issues/2952) ([b3e915e](https://github.com/lobehub/lobe-chat/commit/b3e915e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-20 14:06:36 +00:00
Arvin Xu b3e915e064 🐛 fix: fix to send image without text (#2952)
* ♻️ refactor: improve tool calling

*
2024-06-20 22:01:30 +08:00
CanisMinor 67e5eead26 📝 docs: Update provider docs (#2949)
* 📝 docs: Update provider docs

* 📝 docs: Update docs

* 📝 docs: Update shield

* 📝 docs: Update link

* 📝 docs: Add providers page

* 📝 docs: Update docs

*  feat: Add doc in llm setting

* 📝 docs: Update provider docs

* 📝 docs: Update docs

* 🔧 chore: Fix reference
2024-06-20 19:07:50 +08:00
lobehubbot de4de71d03 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-19 18:32:08 +00:00
semantic-release-bot 39864df37d 🔖 chore(release): v1.0.13 [skip ci]
### [Version&nbsp;1.0.13](https://github.com/lobehub/lobe-chat/compare/v1.0.12...v1.0.13)
<sup>Released on **2024-06-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix and improve tool calling.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix and improve tool calling, closes [#2941](https://github.com/lobehub/lobe-chat/issues/2941) ([ea06536](https://github.com/lobehub/lobe-chat/commit/ea06536))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-19 18:31:24 +00:00
Arvin Xu ea06536349 🐛 fix: fix and improve tool calling (#2941)
* 🐛 fix: fix and improve tool calling

*  test: fix tests

* 🐛 fix: fix Anthropic stream tool calling

*  test: fix test

* 💄 style: fix display on markdown
2024-06-20 02:26:18 +08:00
semantic-release-bot dde04b7735 🔖 chore(release): v1.0.12 [skip ci]
### [Version&nbsp;1.0.12](https://github.com/lobehub/lobe-chat/compare/v1.0.11...v1.0.12)
<sup>Released on **2024-06-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix auto avatar.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix auto avatar, closes [#2939](https://github.com/lobehub/lobe-chat/issues/2939) ([f40300c](https://github.com/lobehub/lobe-chat/commit/f40300c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-19 13:36:50 +00:00
Arvin Xu f40300cf1a 🐛 fix: fix auto avatar (#2939)
* 🐛 fix: fix auto avatar

* 💄 style: add auto avatar

* 🌐 chore: update locale

* ♻️ refactor: add instance for AgentSetting
2024-06-19 21:30:01 +08:00
semantic-release-bot 53d91e6a13 🔖 chore(release): v1.0.11 [skip ci]
### [Version&nbsp;1.0.11](https://github.com/lobehub/lobe-chat/compare/v1.0.10...v1.0.11)
<sup>Released on **2024-06-19**</sup>

#### 💄 Styles

- **misc**: Fix phi3 icon display under OpenRouter.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix phi3 icon display under OpenRouter, closes [#2877](https://github.com/lobehub/lobe-chat/issues/2877) ([4173015](https://github.com/lobehub/lobe-chat/commit/4173015))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-19 08:26:15 +00:00
Zhijie He 4173015f1b 💄 style: fix phi3 icon display under OpenRouter (#2877) 2024-06-19 16:21:07 +08:00
semantic-release-bot 9d005c6636 🔖 chore(release): v1.0.10 [skip ci]
### [Version&nbsp;1.0.10](https://github.com/lobehub/lobe-chat/compare/v1.0.9...v1.0.10)
<sup>Released on **2024-06-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Typo in reset settings.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Typo in reset settings, closes [#2926](https://github.com/lobehub/lobe-chat/issues/2926) ([93d460a](https://github.com/lobehub/lobe-chat/commit/93d460a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-19 07:45:53 +00:00
Minh-Phuc Tran 93d460a267 🐛 fix: typo in reset settings (#2926) 2024-06-19 15:41:03 +08:00
semantic-release-bot bdacb45e7c 🔖 chore(release): v1.0.9 [skip ci]
### [Version&nbsp;1.0.9](https://github.com/lobehub/lobe-chat/compare/v1.0.8...v1.0.9)
<sup>Released on **2024-06-19**</sup>

#### 💄 Styles

- **model**: Update `deepseek-coder` model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **model**: Update `deepseek-coder` model, closes [#2927](https://github.com/lobehub/lobe-chat/issues/2927) ([c8d45e4](https://github.com/lobehub/lobe-chat/commit/c8d45e4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-19 05:39:03 +00:00
Rubu Jam c8d45e482b 💄 style(model): Update deepseek-coder model (#2927) 2024-06-19 13:34:10 +08:00
lobehubbot bf97f0e8a8 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-19 03:17:25 +00:00
renovate[bot] c4352e503f Update dependency @google/generative-ai to ^0.13.0 (#2758)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 11:12:12 +08:00
Arvin Xu 5274d8f506 📝 docs: improve docs (#2922)
* 🧑‍💻 chore: improve build DX

* 📝 docs: update docs
2024-06-19 01:52:09 +08:00
lobehubbot c394628882 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-18 13:06:56 +00:00
semantic-release-bot d13d64c621 🔖 chore(release): v1.0.8 [skip ci]
### [Version&nbsp;1.0.8](https://github.com/lobehub/lobe-chat/compare/v1.0.7...v1.0.8)
<sup>Released on **2024-06-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix hydration mismatch on macOS.

#### 💄 Styles

- **misc**: Update brand and improve docs.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix hydration mismatch on macOS, closes [#2913](https://github.com/lobehub/lobe-chat/issues/2913) ([cd9a143](https://github.com/lobehub/lobe-chat/commit/cd9a143))

#### Styles

* **misc**: Update brand and improve docs, closes [#2917](https://github.com/lobehub/lobe-chat/issues/2917) ([2b54cae](https://github.com/lobehub/lobe-chat/commit/2b54cae))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-18 13:05:53 +00:00
Arvin Xu 2b54caeda1 💄 style: update brand and improve docs (#2917)
* 💄 style: update logo style

* ♻️ refactor: hide webrtc sync by default

* 🔧 chore: improve db migration script

* 💄 style: rename to assistant

* 💄 style: update brand

* 💄 style: update brand

* ️ perf: dynamic pwa install

*  test: fix tests

* 📝 docs: update docs

* 📝 docs: update env

* 📝 docs: update docs
2024-06-18 21:00:17 +08:00
Minh-Phuc Tran cd9a143b3d 🐛 fix: fix hydration mismatch on macOS (#2913) 2024-06-18 20:59:43 +08:00
lobehubbot 9d48eb3c61 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-18 06:41:55 +00:00
CanisMinor 4229e4fd14 📝 docs: Add server database and auth features / server database deployment guide (#2901)
* 📝 docs(wip): Add new features

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* update docs

* Update `docs/self-hosting/advanced/upstream-sync.zh-CN.mdx` (#2679)

* add docs

* update docs

* update docs

* update

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
Co-authored-by: ijevin <jevin@jevin.org>
2024-06-18 14:36:50 +08:00
semantic-release-bot bb86f6399a 🔖 chore(release): v1.0.7 [skip ci]
### [Version&nbsp;1.0.7](https://github.com/lobehub/lobe-chat/compare/v1.0.6...v1.0.7)
<sup>Released on **2024-06-18**</sup>

#### ♻ Code Refactoring

- **misc**: Remove some i18n text.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Remove some i18n text, closes [#2862](https://github.com/lobehub/lobe-chat/issues/2862) ([1fd7d76](https://github.com/lobehub/lobe-chat/commit/1fd7d76))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-18 03:02:54 +00:00
Rubu Jam 1fd7d76ae8 ♻️ refactor: remove some i18n text (#2862) 2024-06-18 10:58:04 +08:00
semantic-release-bot 93e896b458 🔖 chore(release): v1.0.6 [skip ci]
### [Version&nbsp;1.0.6](https://github.com/lobehub/lobe-chat/compare/v1.0.5...v1.0.6)
<sup>Released on **2024-06-17**</sup>

#### 💄 Styles

- **misc**: Fix footer being cut on wide screen.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix footer being cut on wide screen, closes [#2905](https://github.com/lobehub/lobe-chat/issues/2905) ([3a1e0cf](https://github.com/lobehub/lobe-chat/commit/3a1e0cf))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 16:14:36 +00:00
Minh-Phuc Tran 3a1e0cf12d 💄 style: fix footer being cut on wide screen (#2905) 2024-06-18 00:09:41 +08:00
semantic-release-bot c88a4b6a62 🔖 chore(release): v1.0.5 [skip ci]
### [Version&nbsp;1.0.5](https://github.com/lobehub/lobe-chat/compare/v1.0.4...v1.0.5)
<sup>Released on **2024-06-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix onboard and auth for community version.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix onboard and auth for community version, closes [#2908](https://github.com/lobehub/lobe-chat/issues/2908) ([b02020d](https://github.com/lobehub/lobe-chat/commit/b02020d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 14:47:32 +00:00
Arvin Xu b02020d9a3 🐛 fix: fix onboard and auth for community version (#2908) 2024-06-17 22:42:26 +08:00
semantic-release-bot e815c47492 🔖 chore(release): v1.0.4 [skip ci]
### [Version&nbsp;1.0.4](https://github.com/lobehub/lobe-chat/compare/v1.0.3...v1.0.4)
<sup>Released on **2024-06-17**</sup>

#### 💄 Styles

- **misc**: Add stepfun as a new provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add stepfun as a new provider, closes [#2803](https://github.com/lobehub/lobe-chat/issues/2803) ([e1989a1](https://github.com/lobehub/lobe-chat/commit/e1989a1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 14:04:35 +00:00
Arvin Xu e1989a1e6d 💄 style: add stepfun as a new provider (#2803)
*  feat: add stepfun

*  test: add test

* 🐛 fix: hide browser fetch

* 🐛 fix: fix browser fetch components

* 🐛 fix: fix browser fetch options
2024-06-17 21:59:44 +08:00
Rubu Jam fbc488e994 ️ perf: optimize Cache-Control (#2848) 2024-06-17 21:58:08 +08:00
semantic-release-bot 76aa46a5cd 🔖 chore(release): v1.0.3 [skip ci]
### [Version&nbsp;1.0.3](https://github.com/lobehub/lobe-chat/compare/v1.0.2...v1.0.3)
<sup>Released on **2024-06-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix clerk  `UNAUTHORIZED` auth error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix clerk  `UNAUTHORIZED` auth error, closes [#2907](https://github.com/lobehub/lobe-chat/issues/2907) ([bb33ba4](https://github.com/lobehub/lobe-chat/commit/bb33ba4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 13:49:59 +00:00
Arvin Xu bb33ba411a 🐛 fix: fix clerk UNAUTHORIZED auth error (#2907)
* 🐛 fix: fix clerk auth error

* 🐛 fix: fix clerk auth error

* 🐛 fix: prefetch error translation ns
2024-06-17 21:44:59 +08:00
semantic-release-bot 8e1a5536a8 🔖 chore(release): v1.0.2 [skip ci]
### [Version&nbsp;1.0.2](https://github.com/lobehub/lobe-chat/compare/v1.0.1...v1.0.2)
<sup>Released on **2024-06-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Openai key and openai proxy are invalid in feature flags.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Openai key and openai proxy are invalid in feature flags, closes [#2886](https://github.com/lobehub/lobe-chat/issues/2886) ([ec4f481](https://github.com/lobehub/lobe-chat/commit/ec4f481))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 12:54:50 +00:00
Suemor ec4f481175 🐛 fix: openai key and openai proxy are invalid in feature flags (#2886)
* fix: openai key and openai proxy are invalid in feature flags

* fix: remove password tab

* refactor: set variable whether to enable tab
2024-06-17 20:49:42 +08:00
arvinxx 8156b6cdcf ️ revert: Merge remote-tracking branch 'origin/main' 2024-06-17 20:04:26 +08:00
arvinxx d5d76aaa34 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	README.md
#	README.zh-CN.md
2024-06-17 19:59:39 +08:00
semantic-release-bot 8ab8ac7635 🔖 chore(release): v1.0.1 [skip ci]
### [Version&nbsp;1.0.1](https://github.com/lobehub/lobe-chat/compare/v1.0.0...v1.0.1)
<sup>Released on **2024-06-17**</sup>

#### 💄 Styles

- **misc**: Remove r2 cdn url.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Remove r2 cdn url, closes [#2878](https://github.com/lobehub/lobe-chat/issues/2878) ([19fd4d5](https://github.com/lobehub/lobe-chat/commit/19fd4d5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 07:03:30 +00:00
CanisMinor 19fd4d57d7 💄 style: remove r2 cdn url (#2878)
* 💄 style: Remove r2 cdn url

* 💄 style: Update SettingContainer

* 🔧 chore: Move share setting components
2024-06-17 14:58:43 +08:00
Arvin Xu 093ac69d10 🔨 chore: improve issue template (#2899) 2024-06-17 14:37:43 +08:00
Arvin Xu 45f104b5ba 🔖 chore(release): Release v1.0.0 [skip ci] 2024-06-17 12:48:33 +08:00
semantic-release-bot b88deed358 🔖 chore(release): v0.164.0 [skip ci]
## [Version&nbsp;0.164.0](https://github.com/lobehub/lobe-chat/compare/v0.163.0...v0.164.0)
<sup>Released on **2024-06-17**</sup>

####  Features

- **misc**: Release LobeChat 1.0.

#### 🔧 Chores

- **misc**: Bump version.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Release LobeChat 1.0, closes [#2897](https://github.com/lobehub/lobe-chat/issues/2897) ([97bb377](https://github.com/lobehub/lobe-chat/commit/97bb377))

#### Chores

* **misc**: Bump version, closes [#2896](https://github.com/lobehub/lobe-chat/issues/2896) ([6e2d03b](https://github.com/lobehub/lobe-chat/commit/6e2d03b))

</details>

#### 💥 BREAKING CHANGES

* **misc**: Update LICENSE to Apache 2.0
* **misc**: update to 1.0.0

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 04:42:36 +00:00
Arvin Xu 97bb377326 feat: release LobeChat 1.0 (#2897)
BREAKING CHANGE: Update LICENSE to Apache 2.0
2024-06-17 12:37:29 +08:00
Arvin Xu 6e2d03bf04 🔨 chore: bump version (#2896)
BREAKING CHANGE: update to 1.0.0
2024-06-17 12:28:43 +08:00
semantic-release-bot 96e1789b40 🔖 chore(release): v0.163.0 [skip ci]
## [Version&nbsp;0.163.0](https://github.com/lobehub/lobe-chat/compare/v0.162.25...v0.163.0)
<sup>Released on **2024-06-17**</sup>

####  Features

- **misc**: Support server db mode with Postgres / Drizzle ORM / tRPC.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support server db mode with Postgres / Drizzle ORM / tRPC, closes [#2556](https://github.com/lobehub/lobe-chat/issues/2556) ([b26afbf](https://github.com/lobehub/lobe-chat/commit/b26afbf))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-17 04:03:30 +00:00
Arvin Xu 1ad516bdea 🔨 chore: update release.yml (#2895) 2024-06-17 11:58:40 +08:00
Arvin Xu 4dcf81fad2 Merge pull request #2889 to release LobeChat 1.0
 feat: Release LobeChat 1.0
2024-06-17 11:16:10 +08:00
Arvin Xu 7e4ab83d3b 📝 chore: Update sync.yml comment 2024-06-17 03:06:59 +00:00
Arvin Xu 492a9aa24c 🔧 chore: Update sync.yml to reduce sync frequency 2024-06-17 03:06:59 +00:00
Arvin Xu 6c1f6db2a6 🔨 chore(LICENSE): Update LICENSE to Apache 2.0 from LobeChat v1 (#1812)
BREAKING: Update Project LICENSE to Apache 2.0
2024-06-17 03:06:59 +00:00
Arvin Xu b26afbff7f feat: support server db mode with Postgres / Drizzle ORM / tRPC (#2556) 2024-06-17 03:06:59 +00:00
semantic-release-bot 7789340ead 🔖 chore(release): v0.162.25 [skip ci]
### [Version&nbsp;0.162.25](https://github.com/lobehub/lobe-chat/compare/v0.162.24...v0.162.25)
<sup>Released on **2024-06-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix issues for client fetch.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix issues for client fetch, closes [#2753](https://github.com/lobehub/lobe-chat/issues/2753) ([6f5be5d](https://github.com/lobehub/lobe-chat/commit/6f5be5d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-16 10:36:47 +00:00
cy948 6f5be5de27 🐛 fix: fix issues for client fetch (#2753)
* 🚸 feat: improve UX for clientfetch

* 🚨 fix: circular dependence

* 💡 docs: update comments

*  test: client fetch enabled

*  test: client fetch

* ?? fix: wrong condition

*  test: update tests

* 🐛 fix: wrong selector

* ♻️ refactor: modify vaults selectors

*  revert: style changed

*  revert: cancel style fix

* 🧪 test: isProviderEndpointNotEmpty

* 🧪 test: isProviderApiKeyNotEmpty

*  test: isProviderEndpointNotEmpty

* ♻️ refactor: endpoint for aws bedrock

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-06-16 18:32:42 +08:00
lobehubbot 9174b291e7 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-16 03:07:59 +00:00
renovate[bot] 18241e7266 Update dependency uuid to v10 (#2884) 2024-06-16 11:03:59 +08:00
CanisMinor 1f306143d5 🐛 fix: Fix enableMaxTokens in agent setting (fix #2859) (#2870) 2024-06-14 20:45:18 +08:00
semantic-release-bot 920d60fe13 🔖 chore(release): v0.162.24 [skip ci]
### [Version&nbsp;0.162.24](https://github.com/lobehub/lobe-chat/compare/v0.162.23...v0.162.24)
<sup>Released on **2024-06-14**</sup>

#### 💄 Styles

- **misc**: Update error card style, Update settings footer style and about page.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update error card style, closes [#2868](https://github.com/lobehub/lobe-chat/issues/2868) ([a9d678b](https://github.com/lobehub/lobe-chat/commit/a9d678b))
* **misc**: Update settings footer style and about page, closes [#2846](https://github.com/lobehub/lobe-chat/issues/2846) ([d815109](https://github.com/lobehub/lobe-chat/commit/d815109))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-14 08:54:13 +00:00
Rubu Jam 044bf2d0a5 🔨 chore: fix vercel build (#2867) 2024-06-14 16:50:06 +08:00
CanisMinor a9d678bf20 💄 style: Update error card style (#2868) 2024-06-14 13:24:33 +08:00
CanisMinor d815109ed7 💄 style: Update settings footer style and about page (#2846)
* 💄 style: Update settings footer style and about page

* 🔧 chore: Update mailTo func

* 🐛 fix: Fix llm footer

* 🐛 fix: Fix system-agent meta
2024-06-14 10:40:57 +08:00
semantic-release-bot fef62d625d 🔖 chore(release): v0.162.23 [skip ci]
### [Version&nbsp;0.162.23](https://github.com/lobehub/lobe-chat/compare/v0.162.22...v0.162.23)
<sup>Released on **2024-06-12**</sup>

#### 💄 Styles

- **misc**: Add Qwen2 models, Add Zhipu new models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Qwen2 models, closes [#2832](https://github.com/lobehub/lobe-chat/issues/2832) ([fb97be9](https://github.com/lobehub/lobe-chat/commit/fb97be9))
* **misc**: Add Zhipu new models, closes [#2830](https://github.com/lobehub/lobe-chat/issues/2830) ([5be43f0](https://github.com/lobehub/lobe-chat/commit/5be43f0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-12 02:31:21 +00:00
sxjeru 5be43f09d1 💄 style: Add Zhipu new models (#2830) 2024-06-12 10:27:04 +08:00
sxjeru fb97be93d5 💄 style: Add Qwen2 models (#2832) 2024-06-12 10:25:40 +08:00
Maple Gao 3c96d46753 💄 style (Ollama): Added Qwen2, Phi-3 and Aya 23 models (#2808)
* 💄 config (Ollama): Added Phi-3 and Aya 23 models

* 💄 config (Ollama): Added Phi-3 and Aya 23 models

* 💄 config (Ollama): Added Qwen2

* 💄 config (Ollama): Added Qwen2 as default, remove unused Phi-3 Instruct
2024-06-12 10:24:48 +08:00
semantic-release-bot 4be5dd34e2 🔖 chore(release): v0.162.22 [skip ci]
### [Version&nbsp;0.162.22](https://github.com/lobehub/lobe-chat/compare/v0.162.21...v0.162.22)
<sup>Released on **2024-06-11**</sup>

#### 💄 Styles

- **misc**: Expand `Clear` tooltip maxWidth.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Expand `Clear` tooltip maxWidth, closes [#2822](https://github.com/lobehub/lobe-chat/issues/2822) ([a5c3d6f](https://github.com/lobehub/lobe-chat/commit/a5c3d6f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-11 14:17:10 +00:00
sxjeru a5c3d6fc08 💄 style: Expand Clear tooltip maxWidth (#2822) 2024-06-09 17:30:36 +08:00
lobehubbot b6ffb848ae 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-09 09:25:34 +00:00
semantic-release-bot 2f5f5c77ad 🔖 chore(release): v0.162.21 [skip ci]
### [Version&nbsp;0.162.21](https://github.com/lobehub/lobe-chat/compare/v0.162.20...v0.162.21)
<sup>Released on **2024-06-09**</sup>

#### 💄 Styles

- **misc**: Do not show noDescription in new sesstion.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Do not show noDescription in new sesstion, closes [#2749](https://github.com/lobehub/lobe-chat/issues/2749) ([30b00aa](https://github.com/lobehub/lobe-chat/commit/30b00aa))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-09 09:24:48 +00:00
Tisfeng 30b00aa322 💄 style: do not show noDescription in new sesstion (#2749)
* perf: do not show noDescription in new sesstion

* fix: ci error
2024-06-09 17:20:38 +08:00
lobehubbot dd42080b82 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-09 08:52:59 +00:00
CanisMinor ddf42f8ab3 🔨 chore: Add slot (#2821)
* 💄 style: Add slot

* 🔧 chore: Add spacing
2024-06-09 16:48:49 +08:00
renovate[bot] 428c9f0d76 Update dependency @testing-library/react to v16 (#2820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-09 16:47:52 +08:00
semantic-release-bot 468913d7d9 🔖 chore(release): v0.162.20 [skip ci]
### [Version&nbsp;0.162.20](https://github.com/lobehub/lobe-chat/compare/v0.162.19...v0.162.20)
<sup>Released on **2024-06-08**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-08 04:01:13 +00:00
Arvin Xu b32f428027 ️ perf: improve performance of session navigation (#2815)
* ️ perf: improve performance of session navigation

* 🐛 fix: fix mobile navigation

* ♻️ refactor: clean code
2024-06-08 11:57:08 +08:00
Harry Sun 41d96bef14 📝 docs: Add deploy as serverless function on Zeabur (#2787)
* Add deploy as serverless function on Zeabur to doc

* typo
2024-06-07 14:50:57 +08:00
semantic-release-bot 82c29f174b 🔖 chore(release): v0.162.19 [skip ci]
### [Version&nbsp;0.162.19](https://github.com/lobehub/lobe-chat/compare/v0.162.18...v0.162.19)
<sup>Released on **2024-06-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix OpenAi BaseURL in api form.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix OpenAi BaseURL in api form, closes [#2806](https://github.com/lobehub/lobe-chat/issues/2806) ([1392957](https://github.com/lobehub/lobe-chat/commit/1392957))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-07 04:57:41 +00:00
JARVISMindEngineer 139295728a 🐛 fix: fix OpenAi BaseURL in api form (#2806) 2024-06-07 12:53:42 +08:00
semantic-release-bot 4e31314b0e 🔖 chore(release): v0.162.18 [skip ci]
### [Version&nbsp;0.162.18](https://github.com/lobehub/lobe-chat/compare/v0.162.17...v0.162.18)
<sup>Released on **2024-06-06**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor model provider implement.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor model provider implement, closes [#2801](https://github.com/lobehub/lobe-chat/issues/2801) ([7bb4fec](https://github.com/lobehub/lobe-chat/commit/7bb4fec))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-06 16:34:13 +00:00
Arvin Xu 7bb4fec7f6 ♻️ refactor: refactor model provider implement (#2801)
* ♻️ refactor: refactor the provider

* ♻️ refactor: refactor the error code

*  test: fix test

*  test: fix test

* 🌐 chore: update i18n

* 🌐 chore: update i18n
2024-06-07 00:30:06 +08:00
Arvin Xu adebf0a921 📝 docs: update url-share docs (#2791)
* 📝 docs: update docs

* update docs
2024-06-05 11:11:16 +08:00
semantic-release-bot 8f4760f60c 🔖 chore(release): v0.162.17 [skip ci]
### [Version&nbsp;0.162.17](https://github.com/lobehub/lobe-chat/compare/v0.162.16...v0.162.17)
<sup>Released on **2024-06-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `response.undefined` error  with some provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix `response.undefined` error  with some provider, closes [#2782](https://github.com/lobehub/lobe-chat/issues/2782) ([5676899](https://github.com/lobehub/lobe-chat/commit/5676899))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-04 03:45:20 +00:00
wyw 75cd63aa39 feat: Support Qwen as new model provider (#2715)
Co-authored-by: mingholy.lmh <mingholy.lmh@gmail.com>
2024-06-04 11:38:56 +08:00
Arvin Xu 5676899181 🐛 fix: fix response.undefined error with some provider (#2782)
* fix response

* Update index.test.ts
2024-06-04 11:38:21 +08:00
semantic-release-bot b5b025d453 🔖 chore(release): v0.162.16 [skip ci]
### [Version&nbsp;0.162.16](https://github.com/lobehub/lobe-chat/compare/v0.162.15...v0.162.16)
<sup>Released on **2024-06-04**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-04 02:31:45 +00:00
Arvin Xu 39906a229a 🔨 build: pin ajv@8.14.0 to fix vercel build (#2780) 2024-06-04 10:27:33 +08:00
lobehubbot 8164f3ce9d 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-03 16:13:45 +00:00
semantic-release-bot 4593b0e6f7 🔖 chore(release): v0.162.15 [skip ci]
### [Version&nbsp;0.162.15](https://github.com/lobehub/lobe-chat/compare/v0.162.14...v0.162.15)
<sup>Released on **2024-06-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix send button loading on only add user message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix send button loading on only add user message, closes [#2774](https://github.com/lobehub/lobe-chat/issues/2774) ([a7f2982](https://github.com/lobehub/lobe-chat/commit/a7f2982))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-03 16:13:02 +00:00
Arvin Xu a7f2982258 🐛 fix: fix send button loading on only add user message (#2774) 2024-06-04 00:08:41 +08:00
semantic-release-bot 1d2bc0ddce 🔖 chore(release): v0.162.14 [skip ci]
### [Version&nbsp;0.162.14](https://github.com/lobehub/lobe-chat/compare/v0.162.13...v0.162.14)
<sup>Released on **2024-06-03**</sup>

#### 💄 Styles

- **misc**: Improve loading state.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve loading state, closes [#2767](https://github.com/lobehub/lobe-chat/issues/2767) ([fbdfde9](https://github.com/lobehub/lobe-chat/commit/fbdfde9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-03 07:12:59 +00:00
Arvin Xu fbdfde9625 💄 style: improve loading state (#2767) 2024-06-03 15:08:52 +08:00
lobehubbot 3fc975b741 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-02 16:05:05 +00:00
Harry Sun b713453b7a 🐛 chore: fix deploy failed on netlify (#2761)
* fix deploy failed on netlify

* Update netlify.toml

Increased max_old_space_size to 8192
2024-06-03 00:01:07 +08:00
lobehubbot 1aa79dee2f 📝 docs(bot): Auto sync agents & plugin to readme 2024-06-01 03:58:55 +00:00
Star b37976c24e 📝 docs(env): update configuration docs (#2729)
* 📝 docs(env): configuration type

Signed-off-by: Star <i@ssstttar.com>

* 📝 docs: fix punctuation marks

Signed-off-by: Star <i@ssstttar.com>

* 📝 docs: add chatConfig

Signed-off-by: Star <i@ssstttar.com>

* 📝 docs(bot): Auto sync agents & plugin to readme

---------

Signed-off-by: Star <i@ssstttar.com>
2024-06-01 11:55:00 +08:00
semantic-release-bot 455c432a52 🔖 chore(release): v0.162.13 [skip ci]
### [Version&nbsp;0.162.13](https://github.com/lobehub/lobe-chat/compare/v0.162.12...v0.162.13)
<sup>Released on **2024-06-01**</sup>

#### 💄 Styles

- **misc**: Improve config upload modal.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve config upload modal, closes [#2745](https://github.com/lobehub/lobe-chat/issues/2745) ([af9af9f](https://github.com/lobehub/lobe-chat/commit/af9af9f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-06-01 03:54:10 +00:00
Arvin Xu af9af9f087 💄 style: improve config upload modal (#2745)
* 💄 style: improve config upload modal

* 🎨 chore: clean code
2024-06-01 11:50:21 +08:00
lobehubbot 5c64849695 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-31 11:08:38 +00:00
lobehubbot 2ee834458e 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-31 11:05:09 +00:00
semantic-release-bot ce198f4d72 🔖 chore(release): v0.162.12 [skip ci]
### [Version&nbsp;0.162.12](https://github.com/lobehub/lobe-chat/compare/v0.162.11...v0.162.12)
<sup>Released on **2024-05-31**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor session meta method.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor session meta method, closes [#2737](https://github.com/lobehub/lobe-chat/issues/2737) ([b103c3c](https://github.com/lobehub/lobe-chat/commit/b103c3c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-31 11:04:28 +00:00
Arvin Xu b103c3cd2a ♻️ refactor: refactor session meta method (#2737)
* ♻️ refactor: add session meta

*  test: fix test

*  test: fix test
2024-05-31 19:00:25 +08:00
semantic-release-bot 36ce76100e 🔖 chore(release): v0.162.11 [skip ci]
### [Version&nbsp;0.162.11](https://github.com/lobehub/lobe-chat/compare/v0.162.10...v0.162.11)
<sup>Released on **2024-05-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix import config.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix import config, closes [#2720](https://github.com/lobehub/lobe-chat/issues/2720) ([a5ddd9a](https://github.com/lobehub/lobe-chat/commit/a5ddd9a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-29 16:00:38 +00:00
Arvin Xu a5ddd9adf0 🐛 fix: fix import config (#2720) 2024-05-29 23:56:37 +08:00
semantic-release-bot c8cc640726 🔖 chore(release): v0.162.10 [skip ci]
### [Version&nbsp;0.162.10](https://github.com/lobehub/lobe-chat/compare/v0.162.9...v0.162.10)
<sup>Released on **2024-05-29**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the config import for server import.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the config import for server import, closes [#2718](https://github.com/lobehub/lobe-chat/issues/2718) ([d4ee64b](https://github.com/lobehub/lobe-chat/commit/d4ee64b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-29 15:42:10 +00:00
Arvin Xu d4ee64b8a2 ♻️ refactor: refactor the config import for server import (#2718) 2024-05-29 23:38:11 +08:00
semantic-release-bot 5eb43e80b8 🔖 chore(release): v0.162.9 [skip ci]
### [Version&nbsp;0.162.9](https://github.com/lobehub/lobe-chat/compare/v0.162.8...v0.162.9)
<sup>Released on **2024-05-29**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the settings to add optimistic updating.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the settings to add optimistic updating, closes [#2709](https://github.com/lobehub/lobe-chat/issues/2709) ([fade53e](https://github.com/lobehub/lobe-chat/commit/fade53e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-29 04:55:34 +00:00
Arvin Xu fade53ef83 ♻️ refactor: refactor the settings to add optimistic updating (#2709) 2024-05-29 12:51:34 +08:00
lobehubbot 0b460453e9 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-28 16:01:51 +00:00
semantic-release-bot 3019a0a4cd 🔖 chore(release): v0.162.8 [skip ci]
### [Version&nbsp;0.162.8](https://github.com/lobehub/lobe-chat/compare/v0.162.7...v0.162.8)
<sup>Released on **2024-05-28**</sup>

#### 💄 Styles

- **misc**: Add optimistic loading for image uploading.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add optimistic loading for image uploading, closes [#2700](https://github.com/lobehub/lobe-chat/issues/2700) ([f99c9ce](https://github.com/lobehub/lobe-chat/commit/f99c9ce))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-28 16:01:09 +00:00
Arvin Xu f99c9ce90e 💄 style: add optimistic loading for image uploading (#2700)
* 🚸 refactor: add optimistic loading for file uploading

*  test: fix tests

* 🚸 style: improve error fallback

* ♻️ refactor: improve swr type

*  test: fix tests
2024-05-28 23:57:14 +08:00
lobehubbot ee6cb65f7b 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-28 15:40:02 +00:00
semantic-release-bot 4d3fe3814d 🔖 chore(release): v0.162.7 [skip ci]
### [Version&nbsp;0.162.7](https://github.com/lobehub/lobe-chat/compare/v0.162.6...v0.162.7)
<sup>Released on **2024-05-28**</sup>

#### 💄 Styles

- **misc**: Improve display of `set limited history messages`, `randomness` and `voice input`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve display of `set limited history messages`, `randomness` and `voice input`, closes [#2586](https://github.com/lobehub/lobe-chat/issues/2586) ([22c9b9c](https://github.com/lobehub/lobe-chat/commit/22c9b9c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-28 15:39:14 +00:00
Rubu Jam 22c9b9c56f 💄 style: improve display of set limited history messages, randomness and voice input (#2586)
* 💄 style: Modify the display effect of some content

* 💄 style: Modify the display effect of `voice input`

* 💄 style: Modify the display effect of `voice input`
2024-05-28 23:35:11 +08:00
lobehubbot 6a51975844 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-28 11:58:32 +00:00
semantic-release-bot 3e41d9962c 🔖 chore(release): v0.162.6 [skip ci]
### [Version&nbsp;0.162.6](https://github.com/lobehub/lobe-chat/compare/v0.162.5...v0.162.6)
<sup>Released on **2024-05-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix the default agent not work correctly on new device.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix the default agent not work correctly on new device, closes [#2699](https://github.com/lobehub/lobe-chat/issues/2699) ([e4c7536](https://github.com/lobehub/lobe-chat/commit/e4c7536))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-28 11:57:47 +00:00
Arvin Xu e4c7536b8c 🐛 fix: fix the default agent not work correctly on new device (#2699)
* 🐛 fix: fix

* 🐛 fix: fix session refresh issue
2024-05-28 19:53:42 +08:00
semantic-release-bot 3493129b74 🔖 chore(release): v0.162.5 [skip ci]
### [Version&nbsp;0.162.5](https://github.com/lobehub/lobe-chat/compare/v0.162.4...v0.162.5)
<sup>Released on **2024-05-28**</sup>

#### 💄 Styles

- **misc**: Add `SYSTEM_AGENT` env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add `SYSTEM_AGENT` env, closes [#2694](https://github.com/lobehub/lobe-chat/issues/2694) ([0dfcf8d](https://github.com/lobehub/lobe-chat/commit/0dfcf8d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-28 11:24:42 +00:00
Arvin Xu 0dfcf8dd3f 💄 style: add SYSTEM_AGENT env (#2694) 2024-05-28 19:20:36 +08:00
semantic-release-bot c84df58ce8 🔖 chore(release): v0.162.4 [skip ci]
### [Version&nbsp;0.162.4](https://github.com/lobehub/lobe-chat/compare/v0.162.3...v0.162.4)
<sup>Released on **2024-05-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix auto focus issues.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix auto focus issues, closes [#2697](https://github.com/lobehub/lobe-chat/issues/2697) ([8df856e](https://github.com/lobehub/lobe-chat/commit/8df856e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-28 10:10:07 +00:00
Arvin Xu 8df856ec39 🐛 fix: fix auto focus issues (#2697)
* 🐛 fix: fix fetch when need login again

* 🐛 fix: fix autofocus
2024-05-28 18:06:12 +08:00
semantic-release-bot 920a70d422 🔖 chore(release): v0.162.3 [skip ci]
### [Version&nbsp;0.162.3](https://github.com/lobehub/lobe-chat/compare/v0.162.2...v0.162.3)
<sup>Released on **2024-05-28**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-28 07:22:36 +00:00
Arvin Xu 4d4ad0e6ef ️ perf: pin react-i18next@14.0.2 to improve performance (#2691) 2024-05-28 15:18:35 +08:00
lobehubbot 1022ed5cc1 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-28 06:31:17 +00:00
semantic-release-bot 283ab9ee51 🔖 chore(release): v0.162.2 [skip ci]
### [Version&nbsp;0.162.2](https://github.com/lobehub/lobe-chat/compare/v0.162.1...v0.162.2)
<sup>Released on **2024-05-28**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor agent store data.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor agent store data, closes [#2690](https://github.com/lobehub/lobe-chat/issues/2690) ([e201937](https://github.com/lobehub/lobe-chat/commit/e201937))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-28 06:30:22 +00:00
Arvin Xu e2019374c4 ♻️ refactor: refactor agent store data (#2690)
* ♻️ refactor: refactor agent store data

* 🎨 refactor: improve code
2024-05-28 14:26:21 +08:00
ijevin d420de3b88 📝 docs: Update docs/self-hosting/advanced/upstream-sync.mdx (#2682) 2024-05-28 14:24:33 +08:00
lobehubbot 10b8f0ef90 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-27 14:28:57 +00:00
Rubu Jam 729a9775e2 📝 docs: update docs (#2669)
* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs
2024-05-27 22:24:57 +08:00
lobehubbot 65e3b80250 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-27 14:20:29 +00:00
semantic-release-bot 87030fffd2 🔖 chore(release): v0.162.1 [skip ci]
### [Version&nbsp;0.162.1](https://github.com/lobehub/lobe-chat/compare/v0.162.0...v0.162.1)
<sup>Released on **2024-05-27**</sup>

#### 💄 Styles

- **misc**: Improve the display effect of plug-in API name and description.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve the display effect of plug-in API name and description, closes [#2678](https://github.com/lobehub/lobe-chat/issues/2678) ([19cd0b9](https://github.com/lobehub/lobe-chat/commit/19cd0b9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-27 14:19:41 +00:00
Rubu Jam 19cd0b9971 💄 style: Improve the display effect of plug-in API name and description (#2678) 2024-05-27 22:15:34 +08:00
semantic-release-bot 774c6c90fa 🔖 chore(release): v0.162.0 [skip ci]
## [Version&nbsp;0.162.0](https://github.com/lobehub/lobe-chat/compare/v0.161.25...v0.162.0)
<sup>Released on **2024-05-27**</sup>

####  Features

- **misc**: Support topic agent.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support topic agent, closes [#2683](https://github.com/lobehub/lobe-chat/issues/2683) ([56865fe](https://github.com/lobehub/lobe-chat/commit/56865fe))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-27 10:06:11 +00:00
Arvin Xu 56865fe3ab feat: support topic agent (#2683)
*  feat: support topic agent

*  test: fix test

*  test: fix test

*  test: add tests

* 🌐 chore: add i18n
2024-05-27 18:01:52 +08:00
semantic-release-bot 48da563963 🔖 chore(release): v0.161.25 [skip ci]
### [Version&nbsp;0.161.25](https://github.com/lobehub/lobe-chat/compare/v0.161.24...v0.161.25)
<sup>Released on **2024-05-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix trpc/edge path error when setting `NEXT_PUBLIC_BASE_PATH`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix trpc/edge path error when setting `NEXT_PUBLIC_BASE_PATH`, closes [#2681](https://github.com/lobehub/lobe-chat/issues/2681) ([622b390](https://github.com/lobehub/lobe-chat/commit/622b390))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-27 07:13:00 +00:00
wangm23456 622b3908dc 🐛 fix: fix trpc/edge path error when setting NEXT_PUBLIC_BASE_PATH (#2681) 2024-05-27 15:08:56 +08:00
semantic-release-bot e903c1115f 🔖 chore(release): v0.161.24 [skip ci]
### [Version&nbsp;0.161.24](https://github.com/lobehub/lobe-chat/compare/v0.161.23...v0.161.24)
<sup>Released on **2024-05-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix the missing user id in chat compeletition and fix remove unstarred topic not working.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix the missing user id in chat compeletition and fix remove unstarred topic not working, closes [#2677](https://github.com/lobehub/lobe-chat/issues/2677) ([c9fb2de](https://github.com/lobehub/lobe-chat/commit/c9fb2de))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-27 04:26:39 +00:00
Arvin Xu c9fb2dee1d 🐛 fix: fix the missing user id in chat compeletition and fix remove unstarred topic not working (#2677)
* 🐛 fix: fix remove all topic not working

* 🐛 fix: fix remove all topic not working

* 🐛 fix: fix user id missing in chat competition
2024-05-27 12:21:57 +08:00
renovate[bot] 3fc4265022 Update dependency @anthropic-ai/sdk to ^0.21.0 (#1712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 10:35:39 +08:00
semantic-release-bot b4c575fdf1 🔖 chore(release): v0.161.23 [skip ci]
### [Version&nbsp;0.161.23](https://github.com/lobehub/lobe-chat/compare/v0.161.22...v0.161.23)
<sup>Released on **2024-05-27**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor `keyVaults` and rename `endpoint` to `baseURL`.

#### 💄 Styles

- **misc**: Fix PluginStore layout.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor `keyVaults` and rename `endpoint` to `baseURL`, closes [#2673](https://github.com/lobehub/lobe-chat/issues/2673) ([4049bc7](https://github.com/lobehub/lobe-chat/commit/4049bc7))

#### Styles

* **misc**: Fix PluginStore layout, closes [#2590](https://github.com/lobehub/lobe-chat/issues/2590) [#2511](https://github.com/lobehub/lobe-chat/issues/2511) ([e1ae39b](https://github.com/lobehub/lobe-chat/commit/e1ae39b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-27 02:14:43 +00:00
sxjeru e1ae39b5c3 💄 style: fix PluginStore layout (#2590)
* fix #2511

* Update index.tsx

* Update index.tsx

* Update index.tsx

* Update index.tsx

* Update index.tsx
2024-05-27 10:10:43 +08:00
Arvin Xu 4049bc703e ♻️ refactor: refactor keyVaults and rename endpoint to baseURL (#2673)
* ♻️ refactor: refactor endpoint to baseURL

*  test: fix test

* 🚨 ci: fix lint

*  test: fix migration test

* 🗃️ refactor: refactor the user setting client db
2024-05-27 10:08:59 +08:00
semantic-release-bot 6650daf3c7 🔖 chore(release): v0.161.22 [skip ci]
### [Version&nbsp;0.161.22](https://github.com/lobehub/lobe-chat/compare/v0.161.21...v0.161.22)
<sup>Released on **2024-05-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix connection checker.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix connection checker, closes [#2672](https://github.com/lobehub/lobe-chat/issues/2672) ([bef8926](https://github.com/lobehub/lobe-chat/commit/bef8926))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-26 15:37:09 +00:00
Arvin Xu bef8926532 🐛 fix: fix connection checker (#2672)
* 🐛 fix: fix check error

* 💄 style: improve bubble loading

* ♻️ refactor: add store devtools url control

* 🚚 refactor: move settings type folder

* ♻️ refactor: rename type

* 🐛 fix: fix check error
2024-05-26 23:33:01 +08:00
semantic-release-bot d1cdaa002b 🔖 chore(release): v0.161.21 [skip ci]
### [Version&nbsp;0.161.21](https://github.com/lobehub/lobe-chat/compare/v0.161.20...v0.161.21)
<sup>Released on **2024-05-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix the batch import error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix the batch import error, closes [#2671](https://github.com/lobehub/lobe-chat/issues/2671) ([db8f2c6](https://github.com/lobehub/lobe-chat/commit/db8f2c6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-26 14:58:17 +00:00
Arvin Xu db8f2c6137 🐛 fix: fix the batch import error (#2671) 2024-05-26 22:54:22 +08:00
renovate[bot] 0b9be471e9 Update dependency fake-indexeddb to v6 (#2660)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-26 22:47:18 +08:00
semantic-release-bot fe95f312c2 🔖 chore(release): v0.161.20 [skip ci]
### [Version&nbsp;0.161.20](https://github.com/lobehub/lobe-chat/compare/v0.161.19...v0.161.20)
<sup>Released on **2024-05-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix vercel build.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix vercel build, closes [#2666](https://github.com/lobehub/lobe-chat/issues/2666) ([cb70e4a](https://github.com/lobehub/lobe-chat/commit/cb70e4a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-26 10:41:11 +00:00
Arvin Xu cb70e4adea 💚 fix: fix vercel build (#2666) 2024-05-26 18:37:19 +08:00
semantic-release-bot 1c185b443e 🔖 chore(release): v0.161.19 [skip ci]
### [Version&nbsp;0.161.19](https://github.com/lobehub/lobe-chat/compare/v0.161.18...v0.161.19)
<sup>Released on **2024-05-25**</sup>

#### 💄 Styles

- **misc**: Update token tag popover style.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update token tag popover style, closes [#2631](https://github.com/lobehub/lobe-chat/issues/2631) ([7635129](https://github.com/lobehub/lobe-chat/commit/7635129))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-25 13:48:01 +00:00
CanisMinor 76351296a1 💄 style: Update token tag popover style (#2631)
* 💄 style: Update token tag popover style

* 💄 style: Fix empty status

* 💄 style: Fix width

* 💄 style: Change num font family

* 💄 style: Add title

* 💄 style: Change fontfamily
2024-05-25 21:44:04 +08:00
semantic-release-bot 899cd520ea 🔖 chore(release): v0.161.18 [skip ci]
### [Version&nbsp;0.161.18](https://github.com/lobehub/lobe-chat/compare/v0.161.17...v0.161.18)
<sup>Released on **2024-05-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix aws log.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix aws log ([58f3ed1](https://github.com/lobehub/lobe-chat/commit/58f3ed1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-25 12:20:32 +00:00
arvinxx 58f3ed103b 🐛 fix: fix aws log 2024-05-25 20:15:35 +08:00
semantic-release-bot e76e284682 🔖 chore(release): v0.161.17 [skip ci]
### [Version&nbsp;0.161.17](https://github.com/lobehub/lobe-chat/compare/v0.161.16...v0.161.17)
<sup>Released on **2024-05-25**</sup>

#### ♻ Code Refactoring

- **misc**: Migrate some agent config to `chatConfig`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Migrate some agent config to `chatConfig`, closes [#2646](https://github.com/lobehub/lobe-chat/issues/2646) ([2f311dc](https://github.com/lobehub/lobe-chat/commit/2f311dc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-25 02:13:33 +00:00
Arvin Xu 2f311dc4b6 🗃️ refactor: migrate some agent config to chatConfig (#2646)
* 🗃️ refactor: refactor the agent config to chat config

*  test: fix test

* 🗃️ refactor: add db migration

*  test: fix test
2024-05-25 10:09:28 +08:00
semantic-release-bot 25e6007c92 🔖 chore(release): v0.161.16 [skip ci]
### [Version&nbsp;0.161.16](https://github.com/lobehub/lobe-chat/compare/v0.161.15...v0.161.16)
<sup>Released on **2024-05-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix bedrock show by default on vercel.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix bedrock show by default on vercel, closes [#2634](https://github.com/lobehub/lobe-chat/issues/2634) ([7ad3af2](https://github.com/lobehub/lobe-chat/commit/7ad3af2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-25 01:50:14 +00:00
Arvin Xu 7ad3af2002 🐛 fix: fix bedrock show by default on vercel (#2634)
* 🐛 fix: fix bedrock show by default

* try to log aws key

* try to log aws key

* 🐛 fix: hide Bedrock by default
2024-05-25 09:46:08 +08:00
lobehubbot d7d34d15ea 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-24 15:56:09 +00:00
semantic-release-bot 0f2d30e64e 🔖 chore(release): v0.161.15 [skip ci]
### [Version&nbsp;0.161.15](https://github.com/lobehub/lobe-chat/compare/v0.161.14...v0.161.15)
<sup>Released on **2024-05-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix avatar missing on client DB mode.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix avatar missing on client DB mode, closes [#2645](https://github.com/lobehub/lobe-chat/issues/2645) ([12726c2](https://github.com/lobehub/lobe-chat/commit/12726c2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-24 15:55:23 +00:00
Arvin Xu 12726c24e1 🐛 fix: fix avatar missing on client DB mode (#2645)
* 🐛 fix: fix avatar missing

* 🐛 fix: fix user avatar

* ♻️ refactor: refactor to remove deprecated userId and avatar field

*  test: improve test
2024-05-24 23:51:19 +08:00
lobehubbot 4712849938 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-24 11:40:08 +00:00
semantic-release-bot b9ecb417e1 🔖 chore(release): v0.161.14 [skip ci]
### [Version&nbsp;0.161.14](https://github.com/lobehub/lobe-chat/compare/v0.161.13...v0.161.14)
<sup>Released on **2024-05-24**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the global app status and fix PWA installer.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the global app status and fix PWA installer, closes [#2637](https://github.com/lobehub/lobe-chat/issues/2637) ([1f70305](https://github.com/lobehub/lobe-chat/commit/1f70305))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-24 11:39:12 +00:00
Arvin Xu 1f70305edf ♻️ refactor: refactor the global app status and fix PWA installer (#2637)
* 🚸 style: improve PWAInstall show timing

* ♻️ refactor: refactor the global preference to system status

* 🐛 fix: fix update status

* 🐛 fix: fix status

*  test: fix test

* 🎨 chore: improve code
2024-05-24 19:35:01 +08:00
Rubu Jam 69600dad09 🔨 chore: update issue template (#2642)
* 🔨 chore: update issue template

* 🔨 chore: update issue template
2024-05-24 17:38:42 +08:00
semantic-release-bot 9a19438c14 🔖 chore(release): v0.161.13 [skip ci]
### [Version&nbsp;0.161.13](https://github.com/lobehub/lobe-chat/compare/v0.161.12...v0.161.13)
<sup>Released on **2024-05-24**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-24 09:15:02 +00:00
Arvin Xu 5bfc0dfbb2 ️ perf: fix ssr hydration to improve home loading (#2640) 2024-05-24 17:10:37 +08:00
Rubu Jam 634870a0ed 🔨 chore: update issue template (#2624)
* 🔨 chore: update issue template

* 🔨 chore: update issue template

* 📝 docs: Add introduction to `ENABLED_OPENAI` and `ENABLED_OLLAMA`
2024-05-24 16:54:06 +08:00
semantic-release-bot 73989e725d 🔖 chore(release): v0.161.12 [skip ci]
### [Version&nbsp;0.161.12](https://github.com/lobehub/lobe-chat/compare/v0.161.11...v0.161.12)
<sup>Released on **2024-05-23**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the home redirect implement.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the home redirect implement, closes [#2626](https://github.com/lobehub/lobe-chat/issues/2626) ([ab4216e](https://github.com/lobehub/lobe-chat/commit/ab4216e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-23 17:09:39 +00:00
Arvin Xu ab4216e03d ♻️ refactor: refactor the home redirect implement (#2626)
* ♻️ refactor: refactor to improve loading rediect

* ♻️ refactor: refactor to improve loading rediect
2024-05-24 01:05:39 +08:00
semantic-release-bot ce85cc653a 🔖 chore(release): v0.161.11 [skip ci]
### [Version&nbsp;0.161.11](https://github.com/lobehub/lobe-chat/compare/v0.161.10...v0.161.11)
<sup>Released on **2024-05-23**</sup>

#### 💄 Styles

- **misc**: Improve PWA install guide.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve PWA install guide, closes [#2617](https://github.com/lobehub/lobe-chat/issues/2617) ([7fee545](https://github.com/lobehub/lobe-chat/commit/7fee545))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-23 16:03:28 +00:00
CanisMinor 7fee545c7a 💄 style: improve PWA install guide (#2617)
*  feat: Update PWA install

*  feat: Update usePlatform

*  feat: Update isSonomaOrLaterSafari

* 🐛 fix: Fix isSonomaOrLaterSafari

* 🐛 fix: Fix isSupportInstallPWA

*  test: Add test

*  test: Add isSonomaOrLaterSafari test
2024-05-23 23:59:30 +08:00
semantic-release-bot 4a23cad8ca 🔖 chore(release): v0.161.10 [skip ci]
### [Version&nbsp;0.161.10](https://github.com/lobehub/lobe-chat/compare/v0.161.9...v0.161.10)
<sup>Released on **2024-05-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Refactor user store and fix custom model list form.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Refactor user store and fix custom model list form, closes [#2620](https://github.com/lobehub/lobe-chat/issues/2620) ([81ea886](https://github.com/lobehub/lobe-chat/commit/81ea886))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-23 14:41:03 +00:00
Arvin Xu 81ea8865b1 🐛 fix: refactor user store and fix custom model list form (#2620)
* ♻️ refactor: refactor user store

* ♻️ refactor: refactor the user trace

* 🐛 fix: fix parser model

* 🐛 fix: fix parser model

* 🐛 fix: fix parser model

* ♻️ refactor: refactor modal

* 🐛 fix: try to fix modal

* 🐛 fix: fix model list select error

*  test: add test for model list
2024-05-23 22:33:07 +08:00
semantic-release-bot f7d4635ae2 🔖 chore(release): v0.161.9 [skip ci]
### [Version&nbsp;0.161.9](https://github.com/lobehub/lobe-chat/compare/v0.161.8...v0.161.9)
<sup>Released on **2024-05-23**</sup>

#### 💄 Styles

- **misc**: Fix image style and improve drag upload box.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix image style and improve drag upload box, closes [#2610](https://github.com/lobehub/lobe-chat/issues/2610) ([5e1a4d6](https://github.com/lobehub/lobe-chat/commit/5e1a4d6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-23 13:19:45 +00:00
CanisMinor 5e1a4d6f3c 💄 style: fix image style and improve drag upload box (#2610)
* 💄 style: Fix image style

* 💄 style: Update drage upload style

* Update meta.ts

* ♻️ refactor: Refactor dragging root
2024-05-23 21:15:50 +08:00
Arthals 2a3e94dda9 📝 docs: sync feature flags path change (#2614)
* 📝 docs: sync feature flags path change

* 📝 docs: adjust path for feature flags

* 📝 docs: relative path
2024-05-23 18:04:08 +08:00
Arthals b287b0aa87 📝 docs: Feature Flags & fix some typo (#2585) 2024-05-23 01:26:29 +08:00
semantic-release-bot 047e55909c 🔖 chore(release): v0.161.8 [skip ci]
### [Version&nbsp;0.161.8](https://github.com/lobehub/lobe-chat/compare/v0.161.7...v0.161.8)
<sup>Released on **2024-05-22**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 16:54:37 +00:00
Arvin Xu c7fc8da939 ️ perf: improve chat session performance (#2613)
* 🎨 chore: improve initial state

* ️ perf: improve session performance
2024-05-23 00:50:42 +08:00
semantic-release-bot 6842e4642b 🔖 chore(release): v0.161.7 [skip ci]
### [Version&nbsp;0.161.7](https://github.com/lobehub/lobe-chat/compare/v0.161.6...v0.161.7)
<sup>Released on **2024-05-22**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to serverDB ENV.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor to serverDB ENV, closes [#2612](https://github.com/lobehub/lobe-chat/issues/2612) ([fa1409e](https://github.com/lobehub/lobe-chat/commit/fa1409e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 15:46:25 +00:00
Arvin Xu fa1409e851 ♻️ refactor: refactor to serverDB ENV (#2612) 2024-05-22 23:42:26 +08:00
semantic-release-bot b735afa4a1 🔖 chore(release): v0.161.6 [skip ci]
### [Version&nbsp;0.161.6](https://github.com/lobehub/lobe-chat/compare/v0.161.5...v0.161.6)
<sup>Released on **2024-05-22**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 15:20:45 +00:00
Arvin Xu 4ffe8b7fc7 ️ perf: improve topic loading ux and performance (#2609)
* ️ perf: improve topic loading performance

*  test: fix tests

*  test: add tests

*  test: add tests
2024-05-22 23:16:53 +08:00
semantic-release-bot f0e796515d 🔖 chore(release): v0.161.5 [skip ci]
### [Version&nbsp;0.161.5](https://github.com/lobehub/lobe-chat/compare/v0.161.4...v0.161.5)
<sup>Released on **2024-05-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move feature flags ENV.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move feature flags ENV, closes [#2605](https://github.com/lobehub/lobe-chat/issues/2605) ([054a404](https://github.com/lobehub/lobe-chat/commit/054a404))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 14:59:21 +00:00
Arvin Xu 054a4049cf ♻️ refactor: move feature flags ENV (#2605)
* 🚚 refactor: move the feature folder
2024-05-22 22:55:24 +08:00
semantic-release-bot 86777594f0 🔖 chore(release): v0.161.4 [skip ci]
### [Version&nbsp;0.161.4](https://github.com/lobehub/lobe-chat/compare/v0.161.3...v0.161.4)
<sup>Released on **2024-05-22**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the app ENV.

#### 🐛 Bug Fixes

- **misc**: Fix market and plugin cache.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the app ENV, closes [#2604](https://github.com/lobehub/lobe-chat/issues/2604) ([acc0fdc](https://github.com/lobehub/lobe-chat/commit/acc0fdc))

#### What's fixed

* **misc**: Fix market and plugin cache, closes [#2608](https://github.com/lobehub/lobe-chat/issues/2608) ([a3f161e](https://github.com/lobehub/lobe-chat/commit/a3f161e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 13:59:03 +00:00
Arvin Xu a3f161e427 🐛 fix: fix market and plugin cache (#2608)
* 🐛 fix: fix market and plugin cache

* Update route.ts
2024-05-22 21:55:07 +08:00
Arvin Xu acc0fdc9ef ♻️ refactor: refactor the app ENV (#2604)
* ♻️ refactor: refactor the app env

* ♻️ refactor: refactor the app client env

* ♻️ refactor: refactor the app client env

* ♻️ refactor: refactor the app client env
2024-05-22 21:53:34 +08:00
semantic-release-bot df6dc6ced2 🔖 chore(release): v0.161.3 [skip ci]
### [Version&nbsp;0.161.3](https://github.com/lobehub/lobe-chat/compare/v0.161.2...v0.161.3)
<sup>Released on **2024-05-22**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the langfuse env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the langfuse env, closes [#2602](https://github.com/lobehub/lobe-chat/issues/2602) ([cbebfbc](https://github.com/lobehub/lobe-chat/commit/cbebfbc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 12:09:26 +00:00
Arvin Xu cbebfbc314 ♻️ refactor: refactor the langfuse env (#2602) 2024-05-22 20:05:23 +08:00
semantic-release-bot b173c70db0 🔖 chore(release): v0.161.2 [skip ci]
### [Version&nbsp;0.161.2](https://github.com/lobehub/lobe-chat/compare/v0.161.1...v0.161.2)
<sup>Released on **2024-05-22**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the llm env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the llm env, closes [#2592](https://github.com/lobehub/lobe-chat/issues/2592) ([5eb225a](https://github.com/lobehub/lobe-chat/commit/5eb225a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 11:22:28 +00:00
Arvin Xu 5eb225a6af ♻️ refactor: refactor the llm env (#2592)
* ♻️ refactor: refactor the llm env

*  test: update test

*  test: fix test
2024-05-22 19:18:35 +08:00
lobehubbot eab2f37d06 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-22 08:54:48 +00:00
semantic-release-bot bca147e4e2 🔖 chore(release): v0.161.1 [skip ci]
### [Version&nbsp;0.161.1](https://github.com/lobehub/lobe-chat/compare/v0.161.0...v0.161.1)
<sup>Released on **2024-05-22**</sup>

#### 💄 Styles

- **misc**: Fix setting modal style problem.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix setting modal style problem, closes [#2599](https://github.com/lobehub/lobe-chat/issues/2599) ([1a3f8f3](https://github.com/lobehub/lobe-chat/commit/1a3f8f3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-22 08:54:01 +00:00
CanisMinor 1a3f8f32d3 💄 style: fix setting modal style problem (#2599)
* 💄 style: Fix setting modal style problem

* Update SettingModalLayout.tsx

* Update Header.tsx
2024-05-22 16:48:47 +08:00
semantic-release-bot 8026689990 🔖 chore(release): v0.161.0 [skip ci]
## [Version&nbsp;0.161.0](https://github.com/lobehub/lobe-chat/compare/v0.160.8...v0.161.0)
<sup>Released on **2024-05-21**</sup>

####  Features

- **misc**: Add system agent to select another model provider for translation.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add system agent to select another model provider for translation, closes [#1902](https://github.com/lobehub/lobe-chat/issues/1902) ([3945387](https://github.com/lobehub/lobe-chat/commit/3945387))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-21 17:41:54 +00:00
Tung Pham 3945387d3b feat: add system agent to select another model provider for translation (#1902)
*  feat: add support for change default translation agent

* 🚸 style: fix improve menu accessibility

*  feat: add system agent module

* 🌐 chore: add i18n

* 🌐 chore: add i18n

* ♻️ refactor: refactor the ModelSelect

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-05-22 01:37:58 +08:00
semantic-release-bot 56fe865350 🔖 chore(release): v0.160.8 [skip ci]
### [Version&nbsp;0.160.8](https://github.com/lobehub/lobe-chat/compare/v0.160.7...v0.160.8)
<sup>Released on **2024-05-21**</sup>

#### 💄 Styles

- **misc**: `Tooltip` should not be selected & Model selector overlaps with reset button.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: `Tooltip` should not be selected & Model selector overlaps with reset button, closes [#2500](https://github.com/lobehub/lobe-chat/issues/2500) [#2511](https://github.com/lobehub/lobe-chat/issues/2511) [#2581](https://github.com/lobehub/lobe-chat/issues/2581) ([0c62fb7](https://github.com/lobehub/lobe-chat/commit/0c62fb7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-21 15:52:58 +00:00
sxjeru 0c62fb76da 💄 style: Tooltip should not be selected & Model selector overlaps with reset button (#2500)
* pointerEvents: 'none'

* “获取模型列表"

* fix:模型选择框重叠

* Update index.tsx

* fix

* fix

* fix #2511

* fix #2581

* Revert 2 fixs

* revert
2024-05-21 23:48:34 +08:00
semantic-release-bot 71a2f1512a 🔖 chore(release): v0.160.7 [skip ci]
### [Version&nbsp;0.160.7](https://github.com/lobehub/lobe-chat/compare/v0.160.6...v0.160.7)
<sup>Released on **2024-05-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix duplicate model panel key.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix duplicate model panel key, closes [#2591](https://github.com/lobehub/lobe-chat/issues/2591) ([c733fcf](https://github.com/lobehub/lobe-chat/commit/c733fcf))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-21 14:41:15 +00:00
Arvin Xu c733fcfcc2 🐛 fix: fix duplicate model panel key (#2591)
* 🐛 fix: fix duplicate model menu key

*  test: fix test
2024-05-21 22:37:17 +08:00
semantic-release-bot bf96b92787 🔖 chore(release): v0.160.6 [skip ci]
### [Version&nbsp;0.160.6](https://github.com/lobehub/lobe-chat/compare/v0.160.5...v0.160.6)
<sup>Released on **2024-05-21**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor a Notification component, refactor code, refactor message action, refactor the type, refactor user preference.

#### 💄 Styles

- **misc**: Add ENABLED_OPENAI env, add fetch error notification, improve openai fetch client switch, improve redirect when login.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor a Notification component ([28db3d5](https://github.com/lobehub/lobe-chat/commit/28db3d5))
* **misc**: Refactor code, closes [#2584](https://github.com/lobehub/lobe-chat/issues/2584) ([086244c](https://github.com/lobehub/lobe-chat/commit/086244c))
* **misc**: Refactor message action ([224bd67](https://github.com/lobehub/lobe-chat/commit/224bd67))
* **misc**: Refactor the type ([ddf1abf](https://github.com/lobehub/lobe-chat/commit/ddf1abf))
* **misc**: Refactor user preference ([1823b0d](https://github.com/lobehub/lobe-chat/commit/1823b0d))

#### Styles

* **misc**: Add ENABLED_OPENAI env ([35f6230](https://github.com/lobehub/lobe-chat/commit/35f6230))
* **misc**: Add fetch error notification ([0186b4b](https://github.com/lobehub/lobe-chat/commit/0186b4b))
* **misc**: Improve openai fetch client switch ([3cad470](https://github.com/lobehub/lobe-chat/commit/3cad470))
* **misc**: Improve redirect when login ([cb26655](https://github.com/lobehub/lobe-chat/commit/cb26655))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-21 12:20:20 +00:00
Arvin Xu 086244caff ♻️ refactor: refactor code (#2584)
♻️ refactor: refactor some code
2024-05-21 20:16:09 +08:00
arvinxx 3cad4701c0 💄 style: improve openai fetch client switch 2024-05-21 19:48:56 +08:00
Arvin Xu ddf1abffc8 ♻️ refactor: refactor the type 2024-05-21 19:30:58 +08:00
Arvin Xu 5a1706b962 🌐 chore: add i18n 2024-05-21 19:30:58 +08:00
Arvin Xu 461bf3d672 🎨 chore: improve code 2024-05-21 19:30:58 +08:00
Arvin Xu bc506190ad 🎨 chore: fix findDOMNode error 2024-05-21 19:30:58 +08:00
Arvin Xu 1823b0dd5c ♻️ refactor: refactor user preference 2024-05-21 19:30:58 +08:00
Arvin Xu cb266552a6 💄 style: improve redirect when login 2024-05-21 19:30:58 +08:00
Arvin Xu 28db3d5b45 ♻️ refactor: refactor a Notification component 2024-05-21 19:30:38 +08:00
Arvin Xu 8340ad8509 🎨 chore: improve code 2024-05-21 19:30:38 +08:00
Arvin Xu 35f623084d 💄 style: add ENABLED_OPENAI env 2024-05-21 19:30:38 +08:00
Arvin Xu 0186b4b403 💄 style: add fetch error notification 2024-05-21 19:29:43 +08:00
Arvin Xu 224bd67782 ♻️ refactor: refactor message action 2024-05-21 19:29:43 +08:00
cy948 5fc90a9baf 🐛fix: fix condition on client fetch (#2519)
* 🐛fix: wrong client fetch judgement

*  test: add test for `isProviderFetchOnClient`

* 🔧 fix: make azure request sent from server

* 🔧 refactor: show client fetch for azure
2024-05-20 17:40:25 +08:00
semantic-release-bot 6638c702d4 🔖 chore(release): v0.160.5 [skip ci]
### [Version&nbsp;0.160.5](https://github.com/lobehub/lobe-chat/compare/v0.160.4...v0.160.5)
<sup>Released on **2024-05-20**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor analytics env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor analytics env, closes [#2570](https://github.com/lobehub/lobe-chat/issues/2570) ([d809d3f](https://github.com/lobehub/lobe-chat/commit/d809d3f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-20 06:12:49 +00:00
Arvin Xu d809d3f574 ♻️ refactor: refactor analytics env (#2570)
* ♻️ refactor: refactor analytics env

*  test: add test for analytics
2024-05-20 14:08:21 +08:00
semantic-release-bot 911c98c31d 🔖 chore(release): v0.160.4 [skip ci]
### [Version&nbsp;0.160.4](https://github.com/lobehub/lobe-chat/compare/v0.160.3...v0.160.4)
<sup>Released on **2024-05-20**</sup>

#### 💄 Styles

- **misc**: Modify bedrock provided model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Modify bedrock provided model, closes [#2473](https://github.com/lobehub/lobe-chat/issues/2473) ([a1fabf6](https://github.com/lobehub/lobe-chat/commit/a1fabf6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-20 04:31:39 +00:00
Rubu Jam a1fabf6299 💄 style: Modify bedrock provided model (#2473)
* 💄 style: Modify bedrock provided model

* 💄 style: Adjust copywriting
2024-05-20 12:27:39 +08:00
semantic-release-bot 5c4ffc797c 🔖 chore(release): v0.160.3 [skip ci]
### [Version&nbsp;0.160.3](https://github.com/lobehub/lobe-chat/compare/v0.160.2...v0.160.3)
<sup>Released on **2024-05-19**</sup>

#### 💄 Styles

- **misc**: Add two feature flags: check_updates 、welcome_suggest.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add two feature flags: check_updates 、welcome_suggest, closes [#2555](https://github.com/lobehub/lobe-chat/issues/2555) ([84c69c9](https://github.com/lobehub/lobe-chat/commit/84c69c9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-19 15:55:44 +00:00
coulsontl 84c69c9fd7 💄 style: add two feature flags: check_updates 、welcome_suggest (#2555)
* feat: add two feature flags: check_updates 、welcome_suggest

* refactor code

* refactor code

* refactor code

* remove unused code

* fix test code

* optimize code
2024-05-19 23:51:56 +08:00
semantic-release-bot 54cf16aa7a 🔖 chore(release): v0.160.2 [skip ci]
### [Version&nbsp;0.160.2](https://github.com/lobehub/lobe-chat/compare/v0.160.1...v0.160.2)
<sup>Released on **2024-05-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Upgrade antd and fix lint type.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Upgrade antd and fix lint type, closes [#2567](https://github.com/lobehub/lobe-chat/issues/2567) ([efe28da](https://github.com/lobehub/lobe-chat/commit/efe28da))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-19 14:49:09 +00:00
Arvin Xu efe28daa48 🚨 fix: upgrade antd and fix lint type (#2567) 2024-05-19 22:45:11 +08:00
semantic-release-bot aae108ec5d 🔖 chore(release): v0.160.1 [skip ci]
### [Version&nbsp;0.160.1](https://github.com/lobehub/lobe-chat/compare/v0.160.0...v0.160.1)
<sup>Released on **2024-05-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix enable ollama env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix enable ollama env ([9c3f5a8](https://github.com/lobehub/lobe-chat/commit/9c3f5a8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-18 15:02:23 +00:00
arvinxx 9c3f5a8b7c 🐛 fix: fix enable ollama env 2024-05-18 22:58:14 +08:00
semantic-release-bot 80b908dded 🔖 chore(release): v0.160.0 [skip ci]
## [Version&nbsp;0.160.0](https://github.com/lobehub/lobe-chat/compare/v0.159.12...v0.160.0)
<sup>Released on **2024-05-18**</sup>

####  Features

- **misc**: Bump version and add enable ollama env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Bump version and add enable ollama env, closes [#2554](https://github.com/lobehub/lobe-chat/issues/2554) ([f5ce7c9](https://github.com/lobehub/lobe-chat/commit/f5ce7c9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-18 14:51:17 +00:00
Arvin Xu f5ce7c99bc feat: bump version and add enable ollama env (#2554)
* ⬆️ chore: bump antd

* 🐛 fix: support enable ollama
2024-05-18 22:47:26 +08:00
lobehubbot 02f3fc363b 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-18 14:34:57 +00:00
Arvin Xu 882ebbe940 feat: support upload images to s3 (#2547)
* ♻️ refactor: refactor file by file and upload for upload to s3

*  feat: support upload file to s3

*  test: fix test

* 🛂 feat: add auth for the upload path

*  test: fix circular deps

*  test: add more tests

*  test: add more tests

*  test: add more tests

*  test: add more tests
2024-05-18 22:30:48 +08:00
semantic-release-bot 9e0195dbc2 🔖 chore(release): v0.159.12 [skip ci]
### [Version&nbsp;0.159.12](https://github.com/lobehub/lobe-chat/compare/v0.159.11...v0.159.12)
<sup>Released on **2024-05-15**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the create message flow to fix some bugs.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the create message flow to fix some bugs, closes [#2521](https://github.com/lobehub/lobe-chat/issues/2521) ([7263a33](https://github.com/lobehub/lobe-chat/commit/7263a33))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-15 16:45:13 +00:00
Arvin Xu 7263a331ce ♻️ refactor: refactor the create message flow to fix some bugs (#2521)
* ♻️ refactor: refactor the create message flow

*  test: fix test

*  test: add test

*  test: add more test

* 💄 style: improve loading state
2024-05-16 00:41:29 +08:00
lobehubbot ffbe641c45 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-15 09:18:19 +00:00
semantic-release-bot a08f802f0f 🔖 chore(release): v0.159.11 [skip ci]
### [Version&nbsp;0.159.11](https://github.com/lobehub/lobe-chat/compare/v0.159.10...v0.159.11)
<sup>Released on **2024-05-15**</sup>

#### 💄 Styles

- **misc**: Add Gemini 1.5 Flash model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Gemini 1.5 Flash model, closes [#2507](https://github.com/lobehub/lobe-chat/issues/2507) ([5568472](https://github.com/lobehub/lobe-chat/commit/5568472))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-15 09:17:32 +00:00
sxjeru 556847278c 💄 style: add Gemini 1.5 Flash model (#2507)
* Update google.ts

* Update google.ts

* del gemini-1.0-pro-002

* Update google.ts
2024-05-15 17:13:36 +08:00
CanisMinor b94d4d926b 📝 docs: Fix overview image (#2514) 2024-05-15 13:43:40 +08:00
semantic-release-bot ade6269d1e 🔖 chore(release): v0.159.10 [skip ci]
### [Version&nbsp;0.159.10](https://github.com/lobehub/lobe-chat/compare/v0.159.9...v0.159.10)
<sup>Released on **2024-05-15**</sup>

#### 💄 Styles

- **misc**: Fix setting modal on responsive and some other style problem.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix setting modal on responsive and some other style problem, closes [#2512](https://github.com/lobehub/lobe-chat/issues/2512) ([f6b4ca4](https://github.com/lobehub/lobe-chat/commit/f6b4ca4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-15 05:21:52 +00:00
CanisMinor f6b4ca4f7d 💄 style: Fix setting modal on responsive and some other style problem (#2512) 2024-05-15 13:17:46 +08:00
semantic-release-bot d108280b70 🔖 chore(release): v0.159.9 [skip ci]
### [Version&nbsp;0.159.9](https://github.com/lobehub/lobe-chat/compare/v0.159.8...v0.159.9)
<sup>Released on **2024-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix agent config on page init.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix agent config on page init, closes [#2506](https://github.com/lobehub/lobe-chat/issues/2506) ([90e742d](https://github.com/lobehub/lobe-chat/commit/90e742d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 18:33:44 +00:00
Arvin Xu 90e742db14 🐛 fix: fix agent config on page init (#2506) 2024-05-15 02:29:51 +08:00
semantic-release-bot d61f69ad14 🔖 chore(release): v0.159.8 [skip ci]
### [Version&nbsp;0.159.8](https://github.com/lobehub/lobe-chat/compare/v0.159.7...v0.159.8)
<sup>Released on **2024-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix retry issue when hide page.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix retry issue when hide page, closes [#2503](https://github.com/lobehub/lobe-chat/issues/2503) ([24489bc](https://github.com/lobehub/lobe-chat/commit/24489bc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 17:23:51 +00:00
Arvin Xu 24489bc729 🐛 fix: fix retry issue when hide page (#2503) 2024-05-15 01:20:03 +08:00
semantic-release-bot 315c8728cb 🔖 chore(release): v0.159.7 [skip ci]
### [Version&nbsp;0.159.7](https://github.com/lobehub/lobe-chat/compare/v0.159.6...v0.159.7)
<sup>Released on **2024-05-14**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 16:55:45 +00:00
Arvin Xu f55747ffb7 ️ perf: improve chat workspace performance and plugin store ux (#2499)
* 💄 style: improve ux

*  test: fix test

* ️ perf: improve chat workspace performance
2024-05-15 00:51:59 +08:00
semantic-release-bot 1d7b557ecc 🔖 chore(release): v0.159.6 [skip ci]
### [Version&nbsp;0.159.6](https://github.com/lobehub/lobe-chat/compare/v0.159.5...v0.159.6)
<sup>Released on **2024-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Login button not show on user panel.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Login button not show on user panel, closes [#2496](https://github.com/lobehub/lobe-chat/issues/2496) ([39637fb](https://github.com/lobehub/lobe-chat/commit/39637fb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 14:32:35 +00:00
cy948 39637fbdfb 🐛 fix: login button not show on user panel (#2496)
* 🐛 fix: show login button when enable nextauth

* 🐛 fix: wrong navigate after logout
2024-05-14 22:28:52 +08:00
semantic-release-bot 1484a042be 🔖 chore(release): v0.159.5 [skip ci]
### [Version&nbsp;0.159.5](https://github.com/lobehub/lobe-chat/compare/v0.159.4...v0.159.5)
<sup>Released on **2024-05-14**</sup>

#### 💄 Styles

- **misc**: Fix scroll and expand.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix scroll and expand, closes [#2470](https://github.com/lobehub/lobe-chat/issues/2470) ([8b1202a](https://github.com/lobehub/lobe-chat/commit/8b1202a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 14:05:10 +00:00
CanisMinor 8b1202a520 💄 style: fix scroll and expand (#2470)
* 💄 style: Fix scroll and expand

* 💄 style: improve empty card

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-05-14 22:01:13 +08:00
semantic-release-bot 5f4523a5b3 🔖 chore(release): v0.159.4 [skip ci]
### [Version&nbsp;0.159.4](https://github.com/lobehub/lobe-chat/compare/v0.159.3...v0.159.4)
<sup>Released on **2024-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Refresh model config form & mobile footer button lost.

#### 💄 Styles

- **misc**: Add GPT-4o model, update perplexity models, updates 01.AI model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Refresh model config form & mobile footer button lost, closes [#2318](https://github.com/lobehub/lobe-chat/issues/2318) [#2319](https://github.com/lobehub/lobe-chat/issues/2319) [#1811](https://github.com/lobehub/lobe-chat/issues/1811) ([eadcefc](https://github.com/lobehub/lobe-chat/commit/eadcefc))

#### Styles

* **misc**: Add GPT-4o model, closes [#2481](https://github.com/lobehub/lobe-chat/issues/2481) ([ae6a03f](https://github.com/lobehub/lobe-chat/commit/ae6a03f))
* **misc**: Update perplexity models, closes [#2469](https://github.com/lobehub/lobe-chat/issues/2469) ([488cde7](https://github.com/lobehub/lobe-chat/commit/488cde7))
* **misc**: Updates 01.AI model list, closes [#2471](https://github.com/lobehub/lobe-chat/issues/2471) ([f28711a](https://github.com/lobehub/lobe-chat/commit/f28711a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 11:26:45 +00:00
sxjeru eadcefc7b4 🐛 fix: refresh model config form & mobile footer button lost (#2318)
* fix form not update

* Update ModelConfigModal.tsx

* fix #2319

* react/jsx-sort-props

* #1811

* onCancel closeModal

* zIndex
2024-05-14 19:22:54 +08:00
Maple Gao 488cde7718 💄 style: update perplexity models (#2469) 2024-05-14 19:21:41 +08:00
sxjeru ae6a03f442 💄 style: add GPT-4o model (#2481)
* gpt-4o

* fix

* fix ci

* fix ci

* fix

* fix

* rollback

* Snapshots 2 updated
2024-05-14 19:20:12 +08:00
Maple Gao f28711a32e 💄 style: updates 01.AI model list (#2471)
https://platform.lingyiwanwu.com/docs#%E6%A8%A1%E5%9E%8B
2024-05-14 19:18:49 +08:00
semantic-release-bot db1f888110 🔖 chore(release): v0.159.3 [skip ci]
### [Version&nbsp;0.159.3](https://github.com/lobehub/lobe-chat/compare/v0.159.2...v0.159.3)
<sup>Released on **2024-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix DeepSeek using wrong model ID.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix DeepSeek using wrong model ID, closes [#2484](https://github.com/lobehub/lobe-chat/issues/2484) ([465dbfc](https://github.com/lobehub/lobe-chat/commit/465dbfc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 08:06:33 +00:00
Rubu Jam 465dbfc3b1 🐛 fix: fix DeepSeek using wrong model ID (#2484)
* 🐛 fix: Fix DeepSeek using wrong model ID

* 🐛 fix: Fix DeepSeek using wrong model ID
2024-05-14 16:02:42 +08:00
semantic-release-bot 5815d864d2 🔖 chore(release): v0.159.2 [skip ci]
### [Version&nbsp;0.159.2](https://github.com/lobehub/lobe-chat/compare/v0.159.1...v0.159.2)
<sup>Released on **2024-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Dragging text mistakenly as image.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Dragging text mistakenly as image, closes [#2111](https://github.com/lobehub/lobe-chat/issues/2111) ([3c047ef](https://github.com/lobehub/lobe-chat/commit/3c047ef))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 05:27:39 +00:00
sxjeru 3c047efe0d 🐛 fix: dragging text mistakenly as image (#2111) 2024-05-14 13:23:56 +08:00
semantic-release-bot a9e2faf3ac 🔖 chore(release): v0.159.1 [skip ci]
### [Version&nbsp;0.159.1](https://github.com/lobehub/lobe-chat/compare/v0.159.0...v0.159.1)
<sup>Released on **2024-05-14**</sup>

#### ♻ Code Refactoring

- **misc**: Move next-auth hooks to user store actions.

#### 🐛 Bug Fixes

- **misc**: Pin `antd@5.17.0` to fix build error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move next-auth hooks to user store actions, closes [#2364](https://github.com/lobehub/lobe-chat/issues/2364) ([6dbcd70](https://github.com/lobehub/lobe-chat/commit/6dbcd70))

#### What's fixed

* **misc**: Pin `antd@5.17.0` to fix build error, closes [#2483](https://github.com/lobehub/lobe-chat/issues/2483) ([aa03833](https://github.com/lobehub/lobe-chat/commit/aa03833))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 05:00:19 +00:00
Arvin Xu aa03833061 🐛 fix: pin antd@5.17.0 to fix build error (#2483) 2024-05-14 12:56:37 +08:00
cy948 6dbcd70f23 ♻️ refactor: Move next-auth hooks to user store actions (#2364)
* ♻️ refactor: move next-auth hooks to store  acitons

* 🔥 refactor: remove redundant files

* ♻️ refactor: add next-auth hooks

* ♻️ refactor: add env `NEXT_PUBLIC_ENABLE_NEXT_AUTH`

* 📝 docs: update docs for new NextAuth env

* ♻️ refactor: remove `login` in auth actions

* 🐛fix: login buttion not shown on settings

*  test: hooks in auth actions

* ♻️ refactor: change button show condition

* ♻️ refactor: use server config to show oauth button

* 🐛fix: context error in settings

* ♻️ refactor: use server config store to enable auth

* 💬 refactor: remove tips

* ♻️ refactor: remove env `NEXT_PUBLIC_ENABLE_NEXT_AUTH`

* 🔥 refactor: remove open profile in store auth actions

*  test(useMenu): change states
2024-05-14 12:42:16 +08:00
lobehubbot 8264d5d212 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-14 02:57:39 +00:00
semantic-release-bot 2aa50db019 🔖 chore(release): v0.159.0 [skip ci]
## [Version&nbsp;0.159.0](https://github.com/lobehub/lobe-chat/compare/v0.158.2...v0.159.0)
<sup>Released on **2024-05-14**</sup>

####  Features

- **misc**: Support DeepSeek as new model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support DeepSeek as new model provider, closes [#2446](https://github.com/lobehub/lobe-chat/issues/2446) ([18028f3](https://github.com/lobehub/lobe-chat/commit/18028f3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-14 02:56:58 +00:00
Rubu Jam 18028f340d feat: Support DeepSeek as new model provider (#2446)
*  feat: support DeepSeek as provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

*  feat: Support DeepSeek as new model provider

* 💄 style: Translate some content

*  feat: Support DeepSeek as new model provider

* 🐛 fix: Clean up the code and resolve a bug
2024-05-14 10:53:08 +08:00
semantic-release-bot a77f4fbaaf 🔖 chore(release): v0.158.2 [skip ci]
### [Version&nbsp;0.158.2](https://github.com/lobehub/lobe-chat/compare/v0.158.1...v0.158.2)
<sup>Released on **2024-05-13**</sup>

#### 💄 Styles

- **misc**: Fix TelemetryNotification zindex.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Fix TelemetryNotification zindex, closes [#2476](https://github.com/lobehub/lobe-chat/issues/2476) ([54524ab](https://github.com/lobehub/lobe-chat/commit/54524ab))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-13 12:59:47 +00:00
Arvin Xu 54524ab39e 💄 style: fix TelemetryNotification zindex (#2476) 2024-05-13 20:55:29 +08:00
semantic-release-bot 344f257cf5 🔖 chore(release): v0.158.1 [skip ci]
### [Version&nbsp;0.158.1](https://github.com/lobehub/lobe-chat/compare/v0.158.0...v0.158.1)
<sup>Released on **2024-05-13**</sup>

#### 💄 Styles

- **misc**: Add PWA install and metadata & ld generate.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add PWA install and metadata & ld generate, closes [#2438](https://github.com/lobehub/lobe-chat/issues/2438) ([6e9c69a](https://github.com/lobehub/lobe-chat/commit/6e9c69a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-13 12:40:10 +00:00
CanisMinor 6e9c69a8f6 💄 style: add PWA install and metadata & ld generate (#2438)
*  feat: Add PWA install button

* 🐛 fix: Fix review problem

* 🐛 fix: Fix review problem

* 🔧 chore: Update i18n

* 🔧 chore: Update metadata

* 🐛 fix: Fix preview problem

* 🐛 fix: Fix title

* 🔧 chore: Update pwa i18n
2024-05-13 20:36:16 +08:00
semantic-release-bot db81d9f704 🔖 chore(release): v0.158.0 [skip ci]
## [Version&nbsp;0.158.0](https://github.com/lobehub/lobe-chat/compare/v0.157.2...v0.158.0)
<sup>Released on **2024-05-13**</sup>

####  Features

- **misc**: Add user profile page.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add user profile page, closes [#2433](https://github.com/lobehub/lobe-chat/issues/2433) ([91f7294](https://github.com/lobehub/lobe-chat/commit/91f7294))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-13 09:45:51 +00:00
CanisMinor 91f72942e4 feat: add user profile page (#2433)
*  feat: Add profile

* 🔧 chore: Update i18n

*  test: Fix test

*  test: Add tests

* 🐛 fix: Fix enableClerk

* 🔧 chore: Fix .eslintignore

* 🐛 fix: Fix review problem

* 💄 style: Fix UserInfo padding
2024-05-13 17:41:53 +08:00
semantic-release-bot b7913660bf 🔖 chore(release): v0.157.2 [skip ci]
### [Version&nbsp;0.157.2](https://github.com/lobehub/lobe-chat/compare/v0.157.1...v0.157.2)
<sup>Released on **2024-05-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix azure openai stream.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix azure openai stream, closes [#2465](https://github.com/lobehub/lobe-chat/issues/2465) ([760fe67](https://github.com/lobehub/lobe-chat/commit/760fe67))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-13 02:50:39 +00:00
Arvin Xu 760fe6736c 🐛 fix: fix azure openai stream (#2465) 2024-05-13 10:47:02 +08:00
lobehubbot fc488ccf81 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-13 02:45:57 +00:00
renovate[bot] 98715085cc Update dependency @google/generative-ai to ^0.11.0 (#2371)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 10:42:18 +08:00
Rubu Jam 4ba23ea04a 💄 style : Add an "Assistant and Conversation" icon (#2410)
* style:Add an "Assistant and Conversation" icon

* 💄 style : Add an "Assistant and Conversation" icon

* 💄 style: Add an "Assistant and Conversation" icon

* 💄 style : Add an `Assistant and Conversation` icon

* 💄 style : Add an `Assistant and Conversation` icon
2024-05-12 17:40:33 +08:00
lobehubbot ba69a418e3 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-12 09:17:25 +00:00
semantic-release-bot 2b712d8bf3 🔖 chore(release): v0.157.1 [skip ci]
### [Version&nbsp;0.157.1](https://github.com/lobehub/lobe-chat/compare/v0.157.0...v0.157.1)
<sup>Released on **2024-05-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix dalle error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix dalle error ([7c493de](https://github.com/lobehub/lobe-chat/commit/7c493de))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-12 09:16:47 +00:00
arvinxx 7c493de58d 🐛 fix: fix dalle error 2024-05-12 17:12:49 +08:00
Arvin Xu 2a252f904b ️ perf: improve tool calling streaming (#2460)
* 🐛 fix: fix token count

* ️ perf: reduce plugin store fetcher

* ️ perf: support tool calling smoothing

*  test: fix test

* ♻️ refactor: refactor the dalle generation

* 🚸 style: improve dalle plugin error handle

*  test: fix test

*  test: fix test
2024-05-12 17:10:52 +08:00
semantic-release-bot 24c81f29af 🔖 chore(release): v0.157.0 [skip ci]
## [Version&nbsp;0.157.0](https://github.com/lobehub/lobe-chat/compare/v0.156.2...v0.157.0)
<sup>Released on **2024-05-11**</sup>

####  Features

- **misc**:  upgrade to the new `tool calls` mode.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**:  upgrade to the new `tool calls` mode, closes [#2414](https://github.com/lobehub/lobe-chat/issues/2414) ([7404f3b](https://github.com/lobehub/lobe-chat/commit/7404f3b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-11 15:44:56 +00:00
Arvin Xu 7404f3bcea feat: upgrade to the new tool calls mode (#2414)
*  feat: finish OpenAI stream tool_calls protocol

* 💄 style: design the Tool Call UI

*  feat: support zhipu GLM tool calling

*  feat: support moonshot function calling

*  feat: support groq tool callings

*  feat: azure openai stream tool calling

*  feat: support minimax tool calling

*  feat: support mistral tool calling

*  feat: support google tool calling

*  feat: support anthropic tool calling

* ♻️ refactor: refactor ollama stream

* ♻️ refactor: refactor the protocol stream transformer

* ♻️ refactor: refactor the bedrock stream

* ♻️ refactor: remove Stream Text Response

*  test: clean some tests

* 🗃️ refactor: import and export tool migration

* 🗃️ refactor: migrate database

*  test: fix test

* ♻️ refactor: refactor createCallbacksTransformer to fix tests

*  test: add tests for runtime

*  test: add more tests

*  test: add test

* 🎨 chore: improve code

* 🐛 fix: fix auto meta
2024-05-11 23:41:14 +08:00
semantic-release-bot 5e57399de6 🔖 chore(release): v0.156.2 [skip ci]
### [Version&nbsp;0.156.2](https://github.com/lobehub/lobe-chat/compare/v0.156.1...v0.156.2)
<sup>Released on **2024-05-10**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-10 09:51:08 +00:00
Anoyi ebcd0831f5 🔨 build(docker): fix OOM when building docker image (#2447)
* 🐛 fix: OOM when docker build
2024-05-10 17:47:31 +08:00
lobehubbot 3fdea6839f 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-10 07:40:18 +00:00
semantic-release-bot ac6bcf2d78 🔖 chore(release): v0.156.1 [skip ci]
### [Version&nbsp;0.156.1](https://github.com/lobehub/lobe-chat/compare/v0.156.0...v0.156.1)
<sup>Released on **2024-05-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Azure OpenAI Vision models issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Azure OpenAI Vision models issue, closes [#2429](https://github.com/lobehub/lobe-chat/issues/2429) ([9b8a4b1](https://github.com/lobehub/lobe-chat/commit/9b8a4b1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-10 07:39:22 +00:00
Anoyi 9b8a4b1a79 🐛 fix: Azure OpenAI Vision models issue (#2429) 2024-05-10 15:35:47 +08:00
semantic-release-bot e5f5a147a9 🔖 chore(release): v0.156.0 [skip ci]
## [Version&nbsp;0.156.0](https://github.com/lobehub/lobe-chat/compare/v0.155.9...v0.156.0)
<sup>Released on **2024-05-09**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to improve provider locale.

####  Features

- **misc**: Support perplexity proxy url.

#### 🐛 Bug Fixes

- **misc**: Fix anthropic messages need pairs, fix parameter conditions for perplexity, fix Perplexity duplicate token.

#### 💄 Styles

- **misc**: Improve groq location error, improve location error, improve model provider ux, support groq proxy url.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor to improve provider locale ([538b7bc](https://github.com/lobehub/lobe-chat/commit/538b7bc))

#### What's improved

* **misc**: Support perplexity proxy url ([30bbe61](https://github.com/lobehub/lobe-chat/commit/30bbe61))

#### What's fixed

* **misc**: Fix anthropic messages need pairs ([0e01db0](https://github.com/lobehub/lobe-chat/commit/0e01db0))
* **misc**: Fix parameter conditions for perplexity ([156cf5f](https://github.com/lobehub/lobe-chat/commit/156cf5f))
* **misc**: Fix Perplexity duplicate token ([6695c4b](https://github.com/lobehub/lobe-chat/commit/6695c4b))

#### Styles

* **misc**: Improve groq location error ([023c21b](https://github.com/lobehub/lobe-chat/commit/023c21b))
* **misc**: Improve location error ([862c0ae](https://github.com/lobehub/lobe-chat/commit/862c0ae))
* **misc**: Improve model provider ux, closes [#2439](https://github.com/lobehub/lobe-chat/issues/2439) ([0deb079](https://github.com/lobehub/lobe-chat/commit/0deb079))
* **misc**: Support groq proxy url ([ba1ba2a](https://github.com/lobehub/lobe-chat/commit/ba1ba2a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-09 14:14:45 +00:00
Arvin Xu 0deb079aa8 💄 style: improve model provider ux (#2439)
💄 style: improve model provider ux
2024-05-09 22:11:15 +08:00
arvinxx 156cf5fe96 🐛 fix: fix parameter conditions for perplexity 2024-05-09 22:00:28 +08:00
arvinxx 30bbe611ba feat: support perplexity proxy url 2024-05-09 21:53:09 +08:00
arvinxx 6695c4bc74 🐛 fix: fix Perplexity duplicate token 2024-05-09 21:51:59 +08:00
arvinxx 0e01db0662 🐛 fix: fix anthropic messages need pairs 2024-05-09 21:28:49 +08:00
arvinxx 023c21b305 💄 style: improve groq location error 2024-05-09 21:28:49 +08:00
Arvin Xu 862c0ae51a 💄 style: improve location error 2024-05-09 21:28:49 +08:00
arvinxx ba1ba2ab2d 🚸 style: support groq proxy url 2024-05-09 21:28:49 +08:00
arvinxx 538b7bca7e ♻️ refactor: refactor to improve provider locale 2024-05-09 21:28:49 +08:00
Yash Mehrotra 425bdcb0ef 🔨 chore: fixed a minor mistake in the docker file (#2437) 2024-05-09 13:37:00 +08:00
semantic-release-bot d362d0aa43 🔖 chore(release): v0.155.9 [skip ci]
### [Version&nbsp;0.155.9](https://github.com/lobehub/lobe-chat/compare/v0.155.8...v0.155.9)
<sup>Released on **2024-05-09**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-09 04:05:31 +00:00
Arvin Xu cb2a0849c2 ⬆️ build: upgrade antd to 5.17.0 (#2430)
* ⬆️ chore: try to use 5.0.3

* ⬆️ chore: try to upgrade antd to 5.17.0
2024-05-09 11:39:48 +08:00
semantic-release-bot 2dd557d29c 🔖 chore(release): v0.155.8 [skip ci]
### [Version&nbsp;0.155.8](https://github.com/lobehub/lobe-chat/compare/v0.155.7...v0.155.8)
<sup>Released on **2024-05-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix mobile session style.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix mobile session style ([998a191](https://github.com/lobehub/lobe-chat/commit/998a191))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-09 02:57:36 +00:00
CanisMinor 998a191a81 🐛 fix: Fix mobile session style 2024-05-09 02:53:56 +00:00
semantic-release-bot c1f87d1031 🔖 chore(release): v0.155.7 [skip ci]
### [Version&nbsp;0.155.7](https://github.com/lobehub/lobe-chat/compare/v0.155.6...v0.155.7)
<sup>Released on **2024-05-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix panel expand.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix panel expand ([5e78089](https://github.com/lobehub/lobe-chat/commit/5e78089))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-08 15:56:42 +00:00
canisminor1990 5e78089954 🐛 fix: Fix panel expand 2024-05-08 23:52:00 +08:00
semantic-release-bot f37f42b355 🔖 chore(release): v0.155.6 [skip ci]
### [Version&nbsp;0.155.6](https://github.com/lobehub/lobe-chat/compare/v0.155.5...v0.155.6)
<sup>Released on **2024-05-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix editing long message issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix editing long message issue, closes [#2431](https://github.com/lobehub/lobe-chat/issues/2431) ([380d8da](https://github.com/lobehub/lobe-chat/commit/380d8da))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-08 13:39:27 +00:00
Arvin Xu 380d8daf08 🐛 fix: fix editing long message issue (#2431)
* ♻️ refactor: refactor chatLoadingId to chatLoadingIds

* 💄 style: improve yi icon

* 💄 style: fix openrouter model meta

*  test: add test

* 💄 style: fix translate item
2024-05-08 21:36:00 +08:00
lobehubbot 2630c86ebb 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-08 12:48:21 +00:00
semantic-release-bot f853b4aa51 🔖 chore(release): v0.155.5 [skip ci]
### [Version&nbsp;0.155.5](https://github.com/lobehub/lobe-chat/compare/v0.155.4...v0.155.5)
<sup>Released on **2024-05-08**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-08 12:47:42 +00:00
CanisMinor 2aeaedce6f ️ perf: refactor Chat Layout to improve performance (#2339)
* ♻️ refactor: Refactor Chat Layout

*  test: Fix test

* 🐛 fix: Fix ci

* 🔧 chore: Rename workspace

* 🔧 chore: Revert sync style

* 🐛 fix: Fix review problem

* 💄 style: Fix style

* 🔧 chore: Revert useInterceptingRoutes

* 🐛 fix: Fix review problem

* 💄 style: Remove animation

* 🐛 fix: Fix panel

* 🐛 fix: Fix mobile style

* 🐛 fix: Fix Workspace Modal

* 🐛 fix: FIx ios keyboard scroll back

* 🐛 fix: Fix lint

* 🔧 chore: prepare to rebase

* 🐛 fix: Fix PWA

* 🐛 fix: Fix safearea
2024-05-08 20:43:59 +08:00
lobehubbot bf1fe3dba2 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-08 08:12:26 +00:00
semantic-release-bot 97412b8b2d 🔖 chore(release): v0.155.4 [skip ci]
### [Version&nbsp;0.155.4](https://github.com/lobehub/lobe-chat/compare/v0.155.3...v0.155.4)
<sup>Released on **2024-05-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix Agent Settings Form.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix Agent Settings Form ([12c62a0](https://github.com/lobehub/lobe-chat/commit/12c62a0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-08 08:11:44 +00:00
CanisMinor 12c62a03ec 🐛 fix: Fix Agent Settings Form 2024-05-08 08:08:04 +00:00
semantic-release-bot 04c1826816 🔖 chore(release): v0.155.3 [skip ci]
### [Version&nbsp;0.155.3](https://github.com/lobehub/lobe-chat/compare/v0.155.2...v0.155.3)
<sup>Released on **2024-05-08**</sup>

#### 💄 Styles

- **misc**: Optimized MaxToken Slider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Optimized MaxToken Slider, closes [#2258](https://github.com/lobehub/lobe-chat/issues/2258) ([dfb892b](https://github.com/lobehub/lobe-chat/commit/dfb892b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-08 03:27:29 +00:00
sxjeru dfb892b86a 💄 style: optimized MaxToken Slider (#2258)
* Update MaxTokenSlider

* k -> K

* i18n

* Small screen adaptation

* `next/image` Un-configured Host

* ModelSelect.featureTag.tokens

* 128k=128,000, 4K=4096, Kibi / kilo

* Restore llm.ts

* Inf -> ∞

* patch

* const Kibi = 1024;

* refactor marks

* Update MaxTokenSlider.tsx

* infinity icon
2024-05-08 11:23:41 +08:00
semantic-release-bot e7252da36b 🔖 chore(release): v0.155.2 [skip ci]
### [Version&nbsp;0.155.2](https://github.com/lobehub/lobe-chat/compare/v0.155.1...v0.155.2)
<sup>Released on **2024-05-08**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-08 03:18:49 +00:00
Cross 682305ff1c 🔨 build: fix build failure (#2424) 2024-05-08 11:14:51 +08:00
semantic-release-bot e71e9dc9e0 🔖 chore(release): v0.155.1 [skip ci]
### [Version&nbsp;0.155.1](https://github.com/lobehub/lobe-chat/compare/v0.155.0...v0.155.1)
<sup>Released on **2024-05-07**</sup>

#### 💄 Styles

- **misc**: Improve llm list when all closed.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve llm list when all closed, closes [#2409](https://github.com/lobehub/lobe-chat/issues/2409) ([1eb20c7](https://github.com/lobehub/lobe-chat/commit/1eb20c7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-07 06:35:36 +00:00
Anoyi 1eb20c7a85 💄 style: Improve llm list when all closed (#2409) 2024-05-07 14:32:09 +08:00
semantic-release-bot d6074f792d 🔖 chore(release): v0.155.0 [skip ci]
## [Version&nbsp;0.155.0](https://github.com/lobehub/lobe-chat/compare/v0.154.7...v0.155.0)
<sup>Released on **2024-05-07**</sup>

####  Features

- **misc**: Add DataStatistics.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add DataStatistics ([cf474bb](https://github.com/lobehub/lobe-chat/commit/cf474bb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-07 05:34:54 +00:00
CanisMinor cf474bb150 feat: Add DataStatistics 2024-05-07 05:31:12 +00:00
semantic-release-bot 00016c0584 🔖 chore(release): v0.154.7 [skip ci]
### [Version&nbsp;0.154.7](https://github.com/lobehub/lobe-chat/compare/v0.154.6...v0.154.7)
<sup>Released on **2024-05-07**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the message slice internal method name.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the message slice internal method name, closes [#2407](https://github.com/lobehub/lobe-chat/issues/2407) ([8c70bdd](https://github.com/lobehub/lobe-chat/commit/8c70bdd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-07 02:52:28 +00:00
Arvin Xu 8c70bdde2b ♻️ refactor: refactor the message slice internal method name (#2407)
* ♻️ refactor: refactor the message slice action

* ♻️ refactor: refactor the message slice action
2024-05-07 10:48:51 +08:00
semantic-release-bot 091ce6b6fe 🔖 chore(release): v0.154.6 [skip ci]
### [Version&nbsp;0.154.6](https://github.com/lobehub/lobe-chat/compare/v0.154.5...v0.154.6)
<sup>Released on **2024-05-07**</sup>

#### 💄 Styles

- **misc**: Add gemini-1.0-pro-002.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add gemini-1.0-pro-002, closes [#2406](https://github.com/lobehub/lobe-chat/issues/2406) ([44b29a9](https://github.com/lobehub/lobe-chat/commit/44b29a9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-07 02:03:04 +00:00
Derrick Kondo 44b29a9ac8 💄 style: Add gemini-1.0-pro-002 (#2406) 2024-05-07 09:59:30 +08:00
semantic-release-bot 7488f53ed3 🔖 chore(release): v0.154.5 [skip ci]
### [Version&nbsp;0.154.5](https://github.com/lobehub/lobe-chat/compare/v0.154.4...v0.154.5)
<sup>Released on **2024-05-06**</sup>

#### 💄 Styles

- **misc**: Update LLM Settings Form styles.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update LLM Settings Form styles, closes [#2393](https://github.com/lobehub/lobe-chat/issues/2393) ([4f98e6c](https://github.com/lobehub/lobe-chat/commit/4f98e6c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-06 10:07:13 +00:00
CanisMinor 4f98e6c608 💄 style: Update LLM Settings Form styles (#2393)
* 💄 style: Update LLM Settings Form styles

* 💄 style: Fix alert order
2024-05-06 18:03:22 +08:00
a.k.a. 小黄蜂 aeb09f50b7 📝 docs: update environment variables for next auth (#2395)
* 📝 docs: update environment variables for next auth

* 📝 docs: fix typo in next auth
2024-05-06 16:35:46 +08:00
lobehubbot ddd00d2d24 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-06 05:27:57 +00:00
semantic-release-bot 50938973d8 🔖 chore(release): v0.154.4 [skip ci]
### [Version&nbsp;0.154.4](https://github.com/lobehub/lobe-chat/compare/v0.154.3...v0.154.4)
<sup>Released on **2024-05-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix next auth config.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix next auth config, closes [#2390](https://github.com/lobehub/lobe-chat/issues/2390) ([dbda107](https://github.com/lobehub/lobe-chat/commit/dbda107))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-06 05:27:10 +00:00
Arvin Xu dbda1074d8 🐛 fix: fix next auth config (#2390) 2024-05-06 13:23:33 +08:00
lobehubbot f8c36ffef5 📝 docs(bot): Auto sync agents & plugin to readme 2024-05-06 02:24:29 +00:00
semantic-release-bot 8e6ec9a397 🔖 chore(release): v0.154.3 [skip ci]
### [Version&nbsp;0.154.3](https://github.com/lobehub/lobe-chat/compare/v0.154.2...v0.154.3)
<sup>Released on **2024-05-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix docker build.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix docker build ([80a270d](https://github.com/lobehub/lobe-chat/commit/80a270d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-06 02:23:52 +00:00
Arvin Xu 80a270db25 🐛 fix: fix docker build 2024-05-06 02:20:02 +00:00
semantic-release-bot 54496306ec 🔖 chore(release): v0.154.2 [skip ci]
### [Version&nbsp;0.154.2](https://github.com/lobehub/lobe-chat/compare/v0.154.1...v0.154.2)
<sup>Released on **2024-05-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix docker build.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix docker build, closes [#2385](https://github.com/lobehub/lobe-chat/issues/2385) ([9cf60b5](https://github.com/lobehub/lobe-chat/commit/9cf60b5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-06 02:11:33 +00:00
Arvin Xu 9cf60b5072 🐛 fix: fix docker build (#2385) 2024-05-06 10:07:57 +08:00
semantic-release-bot 9bbaa629d1 🔖 chore(release): v0.154.1 [skip ci]
### [Version&nbsp;0.154.1](https://github.com/lobehub/lobe-chat/compare/v0.154.0...v0.154.1)
<sup>Released on **2024-05-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix agent meta input disabled.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix agent meta input disabled, closes [#2381](https://github.com/lobehub/lobe-chat/issues/2381) ([d1fc512](https://github.com/lobehub/lobe-chat/commit/d1fc512))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-05 16:50:48 +00:00
Arvin Xu d1fc51242b 🐛 fix: fix agent meta input disabled (#2381)
* ⬆️ chore: upgrade deps

* 🐛 fix: fix disabled the meta input

* 🐛 fix: fix docker build

* 🎨 chore: improve code
2024-05-06 00:47:23 +08:00
semantic-release-bot 7a9a53d717 🔖 chore(release): v0.154.0 [skip ci]
## [Version&nbsp;0.154.0](https://github.com/lobehub/lobe-chat/compare/v0.153.1...v0.154.0)
<sup>Released on **2024-05-05**</sup>

####  Features

- **misc**: Support clerk as auth provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support clerk as auth provider, closes [#2374](https://github.com/lobehub/lobe-chat/issues/2374) ([bf8ef1f](https://github.com/lobehub/lobe-chat/commit/bf8ef1f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2024-05-05 15:19:17 +00:00
Arvin Xu bf8ef1f862 feat: support clerk as auth provider (#2374)
*  feat: support clerk as auth provider

* ♻️ refactor: refactor the auth env config to `s3-oss/env`

*  test: add test for the theme mode and action

* 💄 style: fix style

* 🌐 chore: update locale

*  test: add more test

* 🎨 chore: clean code

* 📝 docs: update docs
2024-05-05 23:15:40 +08:00
2377 changed files with 219396 additions and 22024 deletions
-2
View File
@@ -4,8 +4,6 @@ node_modules
npm-debug.log
.next
.git
scripts
docs
.github
*.md
.env.example
+73 -1
View File
@@ -33,7 +33,7 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# AZURE_ENDPOINT=https://docs-test-001.openai.azure.com
# Azure's API version, follows the YYYY-MM-DD format
# AZURE_API_VERSION=2024-02-01
# AZURE_API_VERSION=2024-06-01
### Anthropic Service ####
@@ -104,6 +104,18 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# MINIMAX_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### DeepSeek AI ####
# DEEPSEEK_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### Qwen AI ####
# QWEN_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### SiliconCloud AI ####
# SILICONCLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
########################################
############ Market Service ############
########################################
@@ -121,3 +133,63 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# set the plugin settings
# the format is `plugin-identifier:key1=value1;key2=value2`, multiple settings fields are separated by semicolons `;`, multiple plugin settings are separated by commas `,`.
# PLUGIN_SETTINGS=search-engine:SERPAPI_API_KEY=xxxxx
########################################
##### S3 Object Storage Service ########
########################################
# S3 keys
#S3_ACCESS_KEY_ID=9998d6757e276cf9f1edbd325b7083a6
#S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f497ac2
# Bucket name
#S3_BUCKET=lobechat
# Bucket request endpoint
#S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
# Public access domain for the bucket
#S3_PUBLIC_DOMAIN=https://s3-for-lobechat.your-domain.com
# Bucket region, such as us-west-1, generally not needed to add
# but some service providers may require configuration
# S3_REGION=us-west-1
########################################
############ Auth Service ##############
########################################
# Clerk related configurations
# Clerk public key and secret key
#NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxxxxxxxx
#CLERK_SECRET_KEY=sk_live_xxxxxxxxxxxxxxxxxxxxxx
# you need to config the clerk webhook secret key if you want to use the clerk with database
#CLERK_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxx
# NextAuth related configurations
# NEXT_AUTH_SECRET=
# Auth0 configurations
# AUTH_AUTH0_ID=
# AUTH_AUTH0_SECRET=
# AUTH_AUTH0_ISSUER=https://your-domain.auth0.com
########################################
########## Server Database #############
########################################
# Specify the service mode as server if you want to use the server database
#NEXT_PUBLIC_SERVICE_MODE=server
# Postgres database URL
#DATABASE_URL=postgres://username:password@host:port/database
# use `openssl rand -base64 32` to generate a key for the encryption of the database
# we use this key to encrypt the user api key
#KEY_VAULTS_SECRET=xxxxx/xxxxxxxxxxxxxx=
+1 -2
View File
@@ -10,9 +10,8 @@ coverage
# test
jest*
_test_
__test__
*.test.ts
*.test.tsx
# umi
.umi
+35 -24
View File
@@ -5,53 +5,64 @@ labels: ['🐛 Bug']
body:
- type: dropdown
attributes:
label: '💻 Operating System'
label: '📦 Environment'
multiple: true
options:
- Windows
- macOS
- Ubuntu
- Other Linux
- iOS
- Android
- Other
- 'Official Preview'
- 'Vercel'
- 'Zeabur'
- 'Sealos'
- 'Netlify'
- 'Docker'
- 'Other'
validations:
required: true
- type: input
attributes:
label: '📌 Version'
validations:
required: true
- type: dropdown
attributes:
label: '📦 Environment'
label: '💻 Operating System'
multiple: true
options:
- Official Preview
- Vercel / Zeabur / Sealos
- Docker
- Other
- 'Windows'
- 'macOS'
- 'Ubuntu'
- 'Other Linux'
- 'iOS'
- 'Android'
- 'Other'
validations:
required: true
- type: dropdown
attributes:
label: '🌐 Browser'
multiple: true
options:
- Chrome
- Edge
- Safari
- Firefox
- Other
- 'Chrome'
- 'Edge'
- 'Safari'
- 'Firefox'
- 'Other'
validations:
required: true
- type: textarea
attributes:
label: '🐛 Bug Description'
description: A clear and concise description of the bug.
description: A clear and concise description of the bug, if the above option is `Other`, please also explain in detail.
validations:
required: true
- type: textarea
attributes:
label: '🚦 Expected Behavior'
description: A clear and concise description of what you expected to happen.
- type: textarea
attributes:
label: '📷 Recurrence Steps'
description: A clear and concise description of how to recurrence.
- type: textarea
attributes:
label: '🚦 Expected Behavior'
description: A clear and concise description of what you expected to happen.
- type: textarea
attributes:
label: '📝 Additional Information'
+34 -24
View File
@@ -5,54 +5,64 @@ labels: ['🐛 Bug']
body:
- type: dropdown
attributes:
label: '💻 系统环境'
label: '📦 部署环境'
multiple: true
options:
- Windows
- macOS
- Ubuntu
- Other Linux
- iOS
- Android
- Other
- 'Official Preview'
- 'Vercel'
- 'Zeabur'
- 'Sealos'
- 'Netlify'
- 'Docker'
- 'Other'
validations:
required: true
- type: input
attributes:
label: '📌 软件版本'
validations:
required: true
- type: dropdown
attributes:
label: '📦 部署环境'
label: '💻 系统环境'
multiple: true
options:
- Official Preview
- Vercel / Zeabur / Sealos
- Docker
- Other
- 'Windows'
- 'macOS'
- 'Ubuntu'
- 'Other Linux'
- 'iOS'
- 'Android'
- 'Other'
validations:
required: true
- type: dropdown
attributes:
label: '🌐 浏览器'
multiple: true
options:
- Chrome
- Edge
- Safari
- Firefox
- Other
- 'Chrome'
- 'Edge'
- 'Safari'
- 'Firefox'
- 'Other'
validations:
required: true
- type: textarea
attributes:
label: '🐛 问题描述'
description: 请提供一个清晰且简洁的问题描述。
description: 请提供一个清晰且简洁的问题描述,若上述选项为`Other`,也请详细说明
validations:
required: true
- type: textarea
attributes:
label: '🚦 期望结果'
description: 请提供一个清晰且简洁的描述,说明您期望发生什么。
- type: textarea
attributes:
label: '📷 复现步骤'
description: 请提供一个清晰且简洁的描述,说明如何复现问题。
- type: textarea
attributes:
label: '🚦 期望结果'
description: 请提供一个清晰且简洁的描述,说明您期望发生什么。
- type: textarea
attributes:
label: '📝 补充信息'
+2 -1
View File
@@ -6,9 +6,10 @@
- [ ] 🐛 fix
- [ ] ♻️ refactor
- [ ] 💄 style
- [ ] 🔨 chore
- [ ] 👷 build
- [ ] ⚡️ perf
- [ ] 📝 docs
- [ ] 🔨 chore
#### 🔀 变更说明 | Description of Change
+46
View File
@@ -0,0 +1,46 @@
name: Publish Database Docker Image
on:
workflow_dispatch:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: lobehub/lobe-chat-database
tags: |
type=raw,value=latest
type=ref,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.database # 指定使用 Dockerfile.database 文件
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
+23 -2
View File
@@ -8,6 +8,17 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
@@ -22,8 +33,18 @@ jobs:
- name: Lint
run: bun run lint
- name: Test
run: bun run test
- name: Test Server Coverage
run: bun run test-server:coverage
env:
DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
NEXT_PUBLIC_SERVICE_MODE: server
KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com
- name: Test App Coverage
run: bun run test-app:coverage
- name: Release
run: bun run release
+1 -1
View File
@@ -7,7 +7,7 @@ permissions:
on:
schedule:
- cron: '0 * * * *' # every hour
- cron: '0 */6 * * *' # every 6 hours
workflow_dispatch:
jobs:
+37 -4
View File
@@ -1,9 +1,23 @@
name: Test CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
@@ -18,10 +32,29 @@ jobs:
- name: Lint
run: bun run lint
- name: Test and coverage
run: bun run test:coverage
- name: Test Server Coverage
run: bun run test-server:coverage
env:
DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
NEXT_PUBLIC_SERVICE_MODE: server
KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com
- name: Upload coverage to Codecov
- name: Upload Server coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/server/lcov.info
flags: server
- name: Test App Coverage
run: bun run test-app:coverage
- name: Upload App Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/app/lcov.info
flags: app
+7
View File
@@ -55,8 +55,15 @@ next-env.d.ts
.next
.env
public/*.js
public/sitemap.xml
public/sitemap-index.xml
bun.lockb
sitemap*.xml
robots.txt
# Serwist
public/sw*
public/swe-worker*
*.patch
*.pdf
+1 -2
View File
@@ -23,8 +23,7 @@ module.exports = defineConfig({
'vi-VN',
],
temperature: 0,
modelName: 'gpt-3.5-turbo-0125',
splitToken: 2048,
modelName: 'gpt-4o-mini',
experimental: {
jsonMode: true,
},
+3
View File
@@ -14,3 +14,6 @@ public-hoist-pattern[]=*semantic-release*
public-hoist-pattern[]=*stylelint*
public-hoist-pattern[]=@auth/core
public-hoist-pattern[]=@clerk/backend
public-hoist-pattern[]=@clerk/types
public-hoist-pattern[]=pdfjs-dist
+1 -1
View File
@@ -1 +1 @@
lts/hydrogen
lts/iron
+1 -1
View File
@@ -2,7 +2,7 @@ const { defineConfig } = require('@lobehub/seo-cli');
module.exports = defineConfig({
entry: ['./docs/**/*.mdx'],
modelName: 'gpt-3.5-turbo-0125',
modelName: 'gpt-4o-mini',
experimental: {
jsonMode: true,
},
+1
View File
@@ -4,5 +4,6 @@ module.exports = {
...config,
rules: {
'selector-id-pattern': null,
...config.rules,
},
};
+10247
View File
File diff suppressed because it is too large Load Diff
+189 -84
View File
@@ -1,109 +1,214 @@
## Base image for all building stages
FROM node:20-slim AS base
## Sharp dependencies, copy all the files for production
FROM base AS sharp
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
ARG USE_CN_MIRROR
WORKDIR /app
ENV DEBIAN_FRONTEND="noninteractive"
RUN pnpm add sharp
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \
fi \
# Add required package
&& apt update \
&& apt install ca-certificates proxychains-ng -qy \
# Prepare required package to distroless
&& mkdir -p /distroless/bin /distroless/etc /distroless/etc/ssl/certs /distroless/lib \
# Copy proxychains to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libproxychains.so.4 /distroless/lib/libproxychains.so.4 \
&& cp /usr/lib/$(arch)-linux-gnu/libdl.so.2 /distroless/lib/libdl.so.2 \
&& cp /usr/bin/proxychains4 /distroless/bin/proxychains \
&& cp /etc/proxychains4.conf /distroless/etc/proxychains4.conf \
# Copy node to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libstdc++.so.6 /distroless/lib/libstdc++.so.6 \
&& cp /usr/lib/$(arch)-linux-gnu/libgcc_s.so.1 /distroless/lib/libgcc_s.so.1 \
&& cp /usr/local/bin/node /distroless/bin/node \
# Copy CA certificates to distroless
&& cp /etc/ssl/certs/ca-certificates.crt /distroless/etc/ssl/certs/ca-certificates.crt \
# Cleanup temp files
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
## Install dependencies only when needed
## Builder image, install all the dependencies and build the app
FROM base AS builder
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
ARG USE_CN_MIRROR
ARG NEXT_PUBLIC_BASE_PATH
ARG NEXT_PUBLIC_SENTRY_DSN
ARG NEXT_PUBLIC_ANALYTICS_POSTHOG
ARG NEXT_PUBLIC_POSTHOG_HOST
ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_ANALYTICS_UMAMI
ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}"
# Sentry
ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \
SENTRY_ORG="" \
SENTRY_PROJECT=""
# Posthog
ENV NEXT_PUBLIC_ANALYTICS_POSTHOG="${NEXT_PUBLIC_ANALYTICS_POSTHOG}" \
NEXT_PUBLIC_POSTHOG_HOST="${NEXT_PUBLIC_POSTHOG_HOST}" \
NEXT_PUBLIC_POSTHOG_KEY="${NEXT_PUBLIC_POSTHOG_KEY}"
# Umami
ENV NEXT_PUBLIC_ANALYTICS_UMAMI="${NEXT_PUBLIC_ANALYTICS_UMAMI}" \
NEXT_PUBLIC_UMAMI_SCRIPT_URL="${NEXT_PUBLIC_UMAMI_SCRIPT_URL}" \
NEXT_PUBLIC_UMAMI_WEBSITE_ID="${NEXT_PUBLIC_UMAMI_WEBSITE_ID}"
# Node
ENV NODE_OPTIONS="--max-old-space-size=8192"
WORKDIR /app
COPY package.json ./
COPY .npmrc ./
# If you want to build docker in China
# RUN npm config set registry https://registry.npmmirror.com/
RUN pnpm i
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
export SENTRYCLI_CDNURL="https://npmmirror.com/mirrors/sentry-cli"; \
npm config set registry "https://registry.npmmirror.com/"; \
echo 'canvas_binary_host_mirror=https://npmmirror.com/mirrors/canvas' >> .npmrc; \
fi \
# Set the registry for corepack
&& export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
# Enable corepack
&& corepack enable \
# Use pnpm for corepack
&& corepack use pnpm \
# Install the dependencies
&& pnpm i \
# Add sharp dependencies
&& mkdir -p /deps \
&& pnpm add sharp --prefix /deps
COPY . .
RUN pnpm run build:docker # run build standalone for docker version
## Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app
# run build standalone for docker version
RUN npm run build:docker
ENV NODE_ENV production
## Application image, copy all the files for production
FROM busybox:latest AS app
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
COPY --from=base /distroless/ /
COPY --from=builder /app/public ./public
# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown nextjs:nodejs .next
COPY --from=builder /app/public /app/public
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=sharp --chown=nextjs:nodejs /app/node_modules/.pnpm ./node_modules/.pnpm
COPY --from=builder /app/.next/standalone /app/
COPY --from=builder /app/.next/static /app/.next/static
COPY --from=builder /deps/node_modules/.pnpm /app/node_modules/.pnpm
# Copy server launcher
COPY --from=builder /app/scripts/serverLauncher/startServer.js /app/startServer.js
RUN \
# Add nextjs:nodejs to run the app
addgroup -S -g 1001 nodejs \
&& adduser -D -G nodejs -H -S -h /app -u 1001 nextjs \
# Set permission for nextjs:nodejs
&& chown -R nextjs:nodejs /app /etc/proxychains4.conf
## Production image, copy all the files and run next
FROM scratch
# Copy all the files from app, set the correct permission for prerender cache
COPY --from=app / /
ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
# set hostname to localhost
ENV HOSTNAME="0.0.0.0" \
PORT="3210"
# General Variables
ENV ACCESS_CODE="" \
API_KEY_SELECT_MODE="" \
DEFAULT_AGENT_CONFIG="" \
SYSTEM_AGENT="" \
FEATURE_FLAGS="" \
PROXY_URL=""
# Model Variables
ENV \
# AI21
AI21_API_KEY="" AI21_MODEL_LIST="" \
# Ai360
AI360_API_KEY="" AI360_MODEL_LIST="" \
# Anthropic
ANTHROPIC_API_KEY="" ANTHROPIC_MODEL_LIST="" ANTHROPIC_PROXY_URL="" \
# Amazon Bedrock
AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="" AWS_BEDROCK_MODEL_LIST="" \
# Azure OpenAI
AZURE_API_KEY="" AZURE_API_VERSION="" AZURE_ENDPOINT="" AZURE_MODEL_LIST="" \
# Baichuan
BAICHUAN_API_KEY="" BAICHUAN_MODEL_LIST="" \
# DeepSeek
DEEPSEEK_API_KEY="" DEEPSEEK_MODEL_LIST="" \
# Fireworks AI
FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \
# GitHub
GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \
# Google
GOOGLE_API_KEY="" GOOGLE_MODEL_LIST="" GOOGLE_PROXY_URL="" \
# Groq
GROQ_API_KEY="" GROQ_MODEL_LIST="" GROQ_PROXY_URL="" \
# HuggingFace
HUGGINGFACE_API_KEY="" HUGGINGFACE_MODEL_LIST="" HUGGINGFACE_PROXY_URL="" \
# Hunyuan
HUNYUAN_API_KEY="" HUNYUAN_MODEL_LIST="" \
# Minimax
MINIMAX_API_KEY="" MINIMAX_MODEL_LIST="" \
# Mistral
MISTRAL_API_KEY="" MISTRAL_MODEL_LIST="" \
# Moonshot
MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
# Novita
NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
# Ollama
OLLAMA_MODEL_LIST="" OLLAMA_PROXY_URL="" \
# OpenAI
OPENAI_API_KEY="" OPENAI_MODEL_LIST="" OPENAI_PROXY_URL="" \
# OpenRouter
OPENROUTER_API_KEY="" OPENROUTER_MODEL_LIST="" \
# Perplexity
PERPLEXITY_API_KEY="" PERPLEXITY_MODEL_LIST="" PERPLEXITY_PROXY_URL="" \
# Qwen
QWEN_API_KEY="" QWEN_MODEL_LIST="" \
# SenseNova
SENSENOVA_ACCESS_KEY_ID="" SENSENOVA_ACCESS_KEY_SECRET="" SENSENOVA_MODEL_LIST="" \
# SiliconCloud
SILICONCLOUD_API_KEY="" SILICONCLOUD_MODEL_LIST="" SILICONCLOUD_PROXY_URL="" \
# Spark
SPARK_API_KEY="" SPARK_MODEL_LIST="" \
# Stepfun
STEPFUN_API_KEY="" STEPFUN_MODEL_LIST="" \
# Taichu
TAICHU_API_KEY="" TAICHU_MODEL_LIST="" \
# TogetherAI
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
# Upstage
UPSTAGE_API_KEY="" UPSTAGE_MODEL_LIST="" \
# Wenxin
WENXIN_ACCESS_KEY="" WENXIN_SECRET_KEY="" WENXIN_MODEL_LIST="" \
# 01.AI
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
# Zhipu
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
USER nextjs
EXPOSE 3210
EXPOSE 3210/tcp
# set hostname to localhost
ENV HOSTNAME "0.0.0.0"
ENV PORT=3210
ENTRYPOINT ["/bin/node"]
# General Variables
ENV ACCESS_CODE ""
ENV API_KEY_SELECT_MODE ""
# OpenAI
ENV OPENAI_API_KEY ""
ENV OPENAI_PROXY_URL ""
ENV OPENAI_MODEL_LIST ""
# Azure OpenAI
ENV USE_AZURE_OPENAI ""
ENV AZURE_API_KEY ""
ENV AZURE_API_VERSION ""
# Google
ENV GOOGLE_API_KEY ""
# Zhipu
ENV ZHIPU_API_KEY ""
# Moonshot
ENV MOONSHOT_API_KEY ""
# Ollama
ENV OLLAMA_PROXY_URL ""
ENV OLLAMA_MODEL_LIST ""
# Perplexity
ENV PERPLEXITY_API_KEY ""
# Anthropic
ENV ANTHROPIC_API_KEY ""
# Mistral
ENV MISTRAL_API_KEY ""
# OpenRouter
ENV OPENROUTER_API_KEY ""
ENV OPENROUTER_MODEL_LIST ""
# 01.AI
ENV ZEROONE_API_KEY ""
# TogetherAI
ENV TOGETHERAI_API_KEY ""
# Minimax
ENV MINIMAX_API_KEY ""
CMD ["node", "server.js"]
CMD ["/app/startServer.js"]
+249
View File
@@ -0,0 +1,249 @@
## Base image for all building stages
FROM node:20-slim AS base
ARG USE_CN_MIRROR
ENV DEBIAN_FRONTEND="noninteractive"
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \
fi \
# Add required package
&& apt update \
&& apt install ca-certificates proxychains-ng -qy \
# Prepare required package to distroless
&& mkdir -p /distroless/bin /distroless/etc /distroless/etc/ssl/certs /distroless/lib \
# Copy proxychains to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libproxychains.so.4 /distroless/lib/libproxychains.so.4 \
&& cp /usr/lib/$(arch)-linux-gnu/libdl.so.2 /distroless/lib/libdl.so.2 \
&& cp /usr/bin/proxychains4 /distroless/bin/proxychains \
&& cp /etc/proxychains4.conf /distroless/etc/proxychains4.conf \
# Copy node to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libstdc++.so.6 /distroless/lib/libstdc++.so.6 \
&& cp /usr/lib/$(arch)-linux-gnu/libgcc_s.so.1 /distroless/lib/libgcc_s.so.1 \
&& cp /usr/local/bin/node /distroless/bin/node \
# Copy CA certificates to distroless
&& cp /etc/ssl/certs/ca-certificates.crt /distroless/etc/ssl/certs/ca-certificates.crt \
# Cleanup temp files
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
## Builder image, install all the dependencies and build the app
FROM base AS builder
ARG USE_CN_MIRROR
ARG NEXT_PUBLIC_BASE_PATH
ARG NEXT_PUBLIC_SERVICE_MODE
ARG NEXT_PUBLIC_SENTRY_DSN
ARG NEXT_PUBLIC_ANALYTICS_POSTHOG
ARG NEXT_PUBLIC_POSTHOG_HOST
ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_ANALYTICS_UMAMI
ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}"
ENV NEXT_PUBLIC_SERVICE_MODE="${NEXT_PUBLIC_SERVICE_MODE:-server}" \
APP_URL="http://app.com" \
DATABASE_DRIVER="node" \
DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" \
KEY_VAULTS_SECRET="use-for-build"
# Sentry
ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \
SENTRY_ORG="" \
SENTRY_PROJECT=""
# Posthog
ENV NEXT_PUBLIC_ANALYTICS_POSTHOG="${NEXT_PUBLIC_ANALYTICS_POSTHOG}" \
NEXT_PUBLIC_POSTHOG_HOST="${NEXT_PUBLIC_POSTHOG_HOST}" \
NEXT_PUBLIC_POSTHOG_KEY="${NEXT_PUBLIC_POSTHOG_KEY}"
# Umami
ENV NEXT_PUBLIC_ANALYTICS_UMAMI="${NEXT_PUBLIC_ANALYTICS_UMAMI}" \
NEXT_PUBLIC_UMAMI_SCRIPT_URL="${NEXT_PUBLIC_UMAMI_SCRIPT_URL}" \
NEXT_PUBLIC_UMAMI_WEBSITE_ID="${NEXT_PUBLIC_UMAMI_WEBSITE_ID}"
# Node
ENV NODE_OPTIONS="--max-old-space-size=8192"
WORKDIR /app
COPY package.json ./
COPY .npmrc ./
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
export SENTRYCLI_CDNURL="https://npmmirror.com/mirrors/sentry-cli"; \
npm config set registry "https://registry.npmmirror.com/"; \
echo 'canvas_binary_host_mirror=https://npmmirror.com/mirrors/canvas' >> .npmrc; \
fi \
# Set the registry for corepack
&& export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
# Enable corepack
&& corepack enable \
# Use pnpm for corepack
&& corepack use pnpm \
# Install the dependencies
&& pnpm i \
# Add sharp and db migration dependencies
&& mkdir -p /deps \
&& pnpm add sharp pg drizzle-orm --prefix /deps
COPY . .
# run build standalone for docker version
RUN npm run build:docker
## Application image, copy all the files for production
FROM busybox:latest AS app
COPY --from=base /distroless/ /
COPY --from=builder /app/public /app/public
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/.next/standalone /app/
COPY --from=builder /app/.next/static /app/.next/static
# copy dependencies
COPY --from=builder /deps/node_modules/.pnpm /app/node_modules/.pnpm
COPY --from=builder /deps/node_modules/pg /app/node_modules/pg
COPY --from=builder /deps/node_modules/drizzle-orm /app/node_modules/drizzle-orm
# Copy database migrations
COPY --from=builder /app/src/database/server/migrations /app/migrations
COPY --from=builder /app/scripts/migrateServerDB/docker.cjs /app/docker.cjs
COPY --from=builder /app/scripts/migrateServerDB/errorHint.js /app/errorHint.js
# Copy server launcher
COPY --from=builder /app/scripts/serverLauncher/startServer.js /app/startServer.js
RUN \
# Add nextjs:nodejs to run the app
addgroup -S -g 1001 nodejs \
&& adduser -D -G nodejs -H -S -h /app -u 1001 nextjs \
# Set permission for nextjs:nodejs
&& chown -R nextjs:nodejs /app /etc/proxychains4.conf
## Production image, copy all the files and run next
FROM scratch
# Copy all the files from app, set the correct permission for prerender cache
COPY --from=app / /
ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
# set hostname to localhost
ENV HOSTNAME="0.0.0.0" \
PORT="3210"
# General Variables
ENV ACCESS_CODE="" \
APP_URL="" \
API_KEY_SELECT_MODE="" \
DEFAULT_AGENT_CONFIG="" \
SYSTEM_AGENT="" \
FEATURE_FLAGS="" \
PROXY_URL=""
# Database
ENV KEY_VAULTS_SECRET="" \
DATABASE_DRIVER="node" \
DATABASE_URL=""
# Next Auth
ENV NEXT_AUTH_SECRET="" \
NEXT_AUTH_SSO_PROVIDERS="" \
NEXTAUTH_URL=""
# S3
ENV NEXT_PUBLIC_S3_DOMAIN="" \
S3_PUBLIC_DOMAIN="" \
S3_ACCESS_KEY_ID="" \
S3_BUCKET="" \
S3_ENDPOINT="" \
S3_SECRET_ACCESS_KEY=""
# Model Variables
ENV \
# AI21
AI21_API_KEY="" AI21_MODEL_LIST="" \
# Ai360
AI360_API_KEY="" AI360_MODEL_LIST="" \
# Anthropic
ANTHROPIC_API_KEY="" ANTHROPIC_MODEL_LIST="" ANTHROPIC_PROXY_URL="" \
# Amazon Bedrock
AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="" AWS_BEDROCK_MODEL_LIST="" \
# Azure OpenAI
AZURE_API_KEY="" AZURE_API_VERSION="" AZURE_ENDPOINT="" AZURE_MODEL_LIST="" \
# Baichuan
BAICHUAN_API_KEY="" BAICHUAN_MODEL_LIST="" \
# DeepSeek
DEEPSEEK_API_KEY="" DEEPSEEK_MODEL_LIST="" \
# Fireworks AI
FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \
# GitHub
GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \
# Google
GOOGLE_API_KEY="" GOOGLE_MODEL_LIST="" GOOGLE_PROXY_URL="" \
# Groq
GROQ_API_KEY="" GROQ_MODEL_LIST="" GROQ_PROXY_URL="" \
# HuggingFace
HUGGINGFACE_API_KEY="" HUGGINGFACE_MODEL_LIST="" HUGGINGFACE_PROXY_URL="" \
# Hunyuan
HUNYUAN_API_KEY="" HUNYUAN_MODEL_LIST="" \
# Minimax
MINIMAX_API_KEY="" MINIMAX_MODEL_LIST="" \
# Mistral
MISTRAL_API_KEY="" MISTRAL_MODEL_LIST="" \
# Moonshot
MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
# Novita
NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
# Ollama
OLLAMA_MODEL_LIST="" OLLAMA_PROXY_URL="" \
# OpenAI
OPENAI_API_KEY="" OPENAI_MODEL_LIST="" OPENAI_PROXY_URL="" \
# OpenRouter
OPENROUTER_API_KEY="" OPENROUTER_MODEL_LIST="" \
# Perplexity
PERPLEXITY_API_KEY="" PERPLEXITY_MODEL_LIST="" PERPLEXITY_PROXY_URL="" \
# Qwen
QWEN_API_KEY="" QWEN_MODEL_LIST="" \
# SenseNova
SENSENOVA_ACCESS_KEY_ID="" SENSENOVA_ACCESS_KEY_SECRET="" SENSENOVA_MODEL_LIST="" \
# SiliconCloud
SILICONCLOUD_API_KEY="" SILICONCLOUD_MODEL_LIST="" SILICONCLOUD_PROXY_URL="" \
# Spark
SPARK_API_KEY="" SPARK_MODEL_LIST="" \
# Stepfun
STEPFUN_API_KEY="" STEPFUN_MODEL_LIST="" \
# Taichu
TAICHU_API_KEY="" TAICHU_MODEL_LIST="" \
# TogetherAI
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
# Upstage
UPSTAGE_API_KEY="" UPSTAGE_MODEL_LIST="" \
# Wenxin
WENXIN_ACCESS_KEY="" WENXIN_SECRET_KEY="" WENXIN_MODEL_LIST="" \
# 01.AI
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
# Zhipu
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
USER nextjs
EXPOSE 3210/tcp
ENTRYPOINT ["/bin/node"]
CMD ["/app/startServer.js"]
+34 -17
View File
@@ -1,21 +1,38 @@
MIT License
Apache License Version 2.0
Copyright (c) 2023 - current LobeHub
Copyright (c) 2024/06/17 - current LobeHub LLC. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
----------
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
From 1.0, LobeChat is licensed under the Apache License 2.0, with the following additional conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1. The commercial usage of LobeChat:
a. LobeChat may be utilized commercially, including as a frontend and backend service without modifying the source code.
b. a commercial license must be obtained from the producer if you want to develop and distribute a derivative work based on LobeChat.
Please contact hello@lobehub.com by email to inquire about licensing matters.
2. As a contributor, you should agree that:
a. The producer can adjust the open-source agreement to be more strict or relaxed as deemed necessary.
b. Your contributed code may be used for commercial purposes, including but not limited to its cloud edition.
Apart from the specific conditions mentioned above, all other rights and restrictions follow the Apache License 2.0. Detailed information about the Apache License 2.0 can be found at http://www.apache.org/licenses/LICENSE-2.0.
----------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+809
View File
@@ -0,0 +1,809 @@
<div align="center"><a name="readme-top"></a>
[![][image-banner]][vercel-link]
# Lobe Chat
オープンソースのモダンデザインChatGPT/LLMs UI/フレームワーク。<br/>
音声合成、マルチモーダル、拡張可能な([function call][docs-functionc-call])プラグインシステムをサポート。<br/>
プライベートなOpenAI ChatGPT/Claude/Gemini/Groq/Ollamaチャットアプリケーションをワンクリックで**無料**でデプロイ。
[English](./README.md) · [简体中文](./README.zh-CN.md) · **日本語** · [公式サイト][official-site] · [変更履歴](./CHANGELOG.md) · [ドキュメント][docs] · [ブログ][blog] · [フィードバック][github-issues-link]
<!-- SHIELD GROUP -->
[![][github-release-shield]][github-release-link]
[![][docker-release-shield]][docker-release-link]
[![][vercel-shield]][vercel-link]
[![][discord-shield]][discord-link]<br/>
[![][codecov-shield]][codecov-link]
[![][github-action-test-shield]][github-action-test-link]
[![][github-action-release-shield]][github-action-release-link]
[![][github-releasedate-shield]][github-releasedate-link]<br/>
[![][github-contributors-shield]][github-contributors-link]
[![][github-forks-shield]][github-forks-link]
[![][github-stars-shield]][github-stars-link]
[![][github-issues-shield]][github-issues-link]
[![][github-license-shield]][github-license-link]<br>
[![][sponsor-shield]][sponsor-link]
**LobeChatリポジトリを共有**
[![][share-x-shield]][share-x-link]
[![][share-telegram-shield]][share-telegram-link]
[![][share-whatsapp-shield]][share-whatsapp-link]
[![][share-reddit-shield]][share-reddit-link]
[![][share-weibo-shield]][share-weibo-link]
[![][share-mastodon-shield]][share-mastodon-link]
[![][share-linkedin-shield]][share-linkedin-link]
<sup>新しい時代の思考と創造を先導します。あなたのために、スーパー個人のために作られました。</sup>
[![][github-trending-shield]][github-trending-url]
[![][image-overview]][vercel-link]
</div>
<details>
<summary><kbd>目次</kbd></summary>
#### TOC
- [👋🏻 はじめに & コミュニティに参加](#-はじめに--コミュニティに参加)
- [✨ 特徴](#-特徴)
- [`1` マルチモデルサービスプロバイダーのサポート](#1-マルチモデルサービスプロバイダーのサポート)
- [`2` ローカル大規模言語モデル (LLM) のサポート](#2-ローカル大規模言語モデル-llm-のサポート)
- [`3` モデルの視覚認識](#3-モデルの視覚認識)
- [`4` TTS & STT 音声会話](#4-tts--stt-音声会話)
- [`5` テキストから画像生成](#5-テキストから画像生成)
- [`6` プラグインシステム (Function Calling)](#6-プラグインシステム-function-calling)
- [`7` エージェントマーケット (GPTs)](#7-エージェントマーケット-gpts)
- [`8` ローカル / リモートデータベースのサポート](#8-ローカル--リモートデータベースのサポート)
- [`9` マルチユーザ管理のサポート](#9-マルチユーザ管理のサポート)
- [`10` プログレッシブウェブアプリ (PWA)](#10-プログレッシブウェブアプリ-pwa)
- [`11` モバイルデバイスの適応](#11-モバイルデバイスの適応)
- [`12` カスタムテーマ](#12-カスタムテーマ)
- [`*` その他の特徴](#-その他の特徴)
- [⚡️ パフォーマンス](#-パフォーマンス)
- [🛳 自己ホスティング](#-自己ホスティング)
- [`A` Vercel、Zeabur、Sealosでのデプロイ](#a-vercelzeabursealosでのデプロイ)
- [`B` Dockerでのデプロイ](#b-dockerでのデプロイ)
- [環境変数](#環境変数)
- [📦 エコシステム](#-エコシステム)
- [🧩 プラグイン](#-プラグイン)
- [⌨️ ローカル開発](#-ローカル開発)
- [🤝 貢献](#-貢献)
- [❤️ スポンサー](#-スポンサー)
- [🔗 その他の製品](#-その他の製品)
####
<br/>
</details>
## 👋🏻 はじめに & コミュニティに参加
私たちは、AIGCのためのモダンデザインコンポーネントとツールを提供することを目指すデザインエンジニアのグループです。
ブートストラッピングアプローチを採用することで、開発者とユーザーに対してよりオープンで透明性のある、使いやすい製品エコシステムを提供することを目指しています。
ユーザーやプロの開発者にとって、LobeHubはあなたのAIエージェントの遊び場となるでしょう。LobeChatは現在アクティブに開発中であり、遭遇した[問題][issues-link]についてのフィードバックを歓迎します。
| [![][vercel-shield-badge]][vercel-link] | インストールや登録は不要です!私たちのウェブサイトにアクセスして、直接体験してください。 |
| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
| [![][discord-shield-badge]][discord-link] | 私たちのDiscordコミュニティに参加しましょう!ここでは、LobeHubの開発者や他の熱心なユーザーとつながることができます。 |
> \[!IMPORTANT]
>
> **スターを付けてください**。GitHubからのすべてのリリース通知を遅延なく受け取ることができます\~ ⭐️
[![][image-star]][github-stars-link]
<details>
<summary><kbd>スター履歴</kbd></summary>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=lobehub%2Flobe-chat&theme=dark&type=Date">
<img width="100%" src="https://api.star-history.com/svg?repos=lobehub%2Flobe-chat&type=Date">
</picture>
</details>
## ✨ 特徴
[![][image-feat-privoder]][docs-feat-provider]
### `1` [マルチモデルサービスプロバイダーのサポート][docs-feat-provider]
LobeChatの継続的な開発において、AI会話サービスを提供する際のモデルサービスプロバイダーの多様性がコミュニティのニーズを満たすために重要であることを深く理解しています。そのため、単一のモデルサービスプロバイダーに限定せず、複数のモデルサービスプロバイダーをサポートすることで、ユーザーにより多様で豊富な会話の選択肢を提供しています。
このようにして、LobeChatは異なるユーザーのニーズにより柔軟に対応し、開発者にも幅広い選択肢を提供します。
#### サポートされているモデルサービスプロバイダー
以下のモデルサービスプロバイダーをサポートしています:
- **AWS Bedrock**AWS Bedrockサービスと統合され、**Claude / LLama2**などのモデルをサポートし、強力な自然言語処理能力を提供します。[詳細はこちら](https://aws.amazon.com/cn/bedrock)
- **Anthropic (Claude)**Anthropicの**Claude**シリーズモデルにアクセスし、Claude 3およびClaude 2を含む、マルチモーダル機能と拡張コンテキストで業界の新しいベンチマークを設定します。[詳細はこちら](https://www.anthropic.com/claude)
- **Google AI (Gemini Pro, Gemini Vision)**Googleの**Gemini**シリーズモデルにアクセスし、GeminiおよびGemini Proを含む、高度な言語理解と生成をサポートします。[詳細はこちら](https://deepmind.google/technologies/gemini/)
- **Groq**:GroqのAIモデルにアクセスし、メッセージシーケンスを効率的に処理し、応答を生成し、マルチターンの対話や単一のインタラクションタスクを実行できます。[詳細はこちら](https://groq.com/)
- **OpenRouter****Claude 3**、**Gemma**、**Mistral**、**Llama2**、**Cohere**などのモデルのルーティングをサポートし、インテリジェントなルーティング最適化をサポートし、使用効率を向上させ、オープンで柔軟です。[詳細はこちら](https://openrouter.ai/)
- **01.AI (Yi Model)**01.AIモデルを統合し、推論速度が速いAPIシリーズを提供し、処理時間を短縮しながら優れたモデル性能を維持します。[詳細はこちら](https://01.ai/)
- **Together.ai**Together Inference APIを通じて、100以上の主要なオープンソースのチャット、言語、画像、コード、および埋め込みモデルにアクセスできます。これらのモデルについては、使用した分だけ支払います。[詳細はこちら](https://www.together.ai/)
- **ChatGLM**:智谱の**ChatGLM**シリーズモデル(GLM-4/GLM-4-vision/GLM-3-turbo)を追加し、ユーザーにもう一つの効率的な会話モデルの選択肢を提供します。[詳細はこちら](https://www.zhipuai.cn/)
- **Moonshot AI (Dark Side of the Moon)**:中国の革新的なAIスタートアップであるMoonshotシリーズモデルと統合し、より深い会話理解を提供します。[詳細はこちら](https://www.moonshot.cn/)
- **Minimax**Minimaxモデルを統合し、MoEモデル**abab6**を含む、より広範な選択肢を提供します。[詳細はこちら](https://www.minimaxi.com/)
- **DeepSeek**:中国の革新的なAIスタートアップであるDeepSeekシリーズモデルと統合し、性能と価格のバランスを取ったモデルを提供します。[詳細はこちら](https://www.deepseek.com/)
- **Qwen**:Qwenシリーズモデルを統合し、最新の**qwen-turbo**、**qwen-plus**、**qwen-max**を含む。[詳細はこちら](https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction)
- **Novita AI****Llama**、**Mistral**、その他の主要なオープンソースモデルに最安値でアクセスできます。検閲されないロールプレイに参加し、創造的な議論を引き起こし、制限のないイノベーションを促進します。**使用した分だけ支払います。** [詳細はこちら](https://novita.ai/llm-api?utm_source=lobechat&utm_medium=ch&utm_campaign=api)
同時に、ReplicateやPerplexityなどのモデルサービスプロバイダーのサポートも計画しています。これにより、サービスプロバイダーのライブラリをさらに充実させることができます。LobeChatがあなたのお気に入りのサービスプロバイダーをサポートすることを希望する場合は、[コミュニティディスカッション](https://github.com/lobehub/lobe-chat/discussions/1284)に参加してください。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-local]][docs-feat-local]
### `2` [ローカル大規模言語モデル (LLM) のサポート][docs-feat-local]
特定のユーザーのニーズに応えるために、LobeChatは[Ollama](https://ollama.ai)に基づいてローカルモデルの使用をサポートしており、ユーザーが自分自身またはサードパーティのモデルを柔軟に使用できるようにしています。
> \[!TIP]
>
> [📘 LobeChatでのOllamaの使用][docs-usage-ollama]について詳しくはこちらをご覧ください。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-vision]][docs-feat-vision]
### `3` [モデルの視覚認識][docs-feat-vision]
LobeChatは、OpenAIの最新の視覚認識機能を備えた[`gpt-4-vision`](https://platform.openai.com/docs/guides/vision)モデルをサポートしています。
これは視覚を認識できるマルチモーダルインテリジェンスです。ユーザーは簡単に画像をアップロードしたり、画像をドラッグアンドドロップして対話ボックスに入れることができ、
エージェントは画像の内容を認識し、これに基づいてインテリジェントな会話を行い、よりスマートで多様なチャットシナリオを作成します。
この機能は、新しいインタラクティブな方法を提供し、コミュニケーションがテキストを超えて視覚要素を含むことを可能にします。
日常の使用での画像共有や特定の業界での画像解釈に関係なく、エージェントは優れた会話体験を提供します。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-tts]][docs-feat-tts]
### `4` [TTS & STT 音声会話][docs-feat-tts]
LobeChatは、テキストから音声への変換(Text-to-Speech、TTS)および音声からテキストへの変換(Speech-to-Text、STT)技術をサポートしており、
テキストメッセージを明瞭な音声出力に変換し、ユーザーが実際の人と話しているかのように対話エージェントと対話できるようにします。
ユーザーは、エージェントに適した音声を選択することができます。
さらに、TTSは聴覚学習を好む人や忙しい中で情報を受け取りたい人にとって優れたソリューションを提供します。
LobeChatでは、異なる地域や文化的背景のユーザーのニーズに応えるために、さまざまな高品質の音声オプション(OpenAI Audio、Microsoft Edge Speech)を慎重に選択しました。
ユーザーは、個人の好みや特定のシナリオに応じて適切な音声を選択し、パーソナライズされたコミュニケーション体験を得ることができます。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-t2i]][docs-feat-t2i]
### `5` [テキストから画像生成][docs-feat-t2i]
最新のテキストから画像生成技術をサポートし、LobeChatはユーザーがエージェントとの対話中に直接画像作成ツールを呼び出すことができるようになりました。
[`DALL-E 3`](https://openai.com/dall-e-3)、[`MidJourney`](https://www.midjourney.com/)、[`Pollinations`](https://pollinations.ai/)などのAIツールの能力を活用することで、
エージェントはあなたのアイデアを画像に変えることができます。
これにより、プライベートで没入感のある創造プロセスが可能になり、個人的な対話に視覚的なストーリーテリングをシームレスに統合することができます。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-plugin]][docs-feat-plugin]
### `6` [プラグインシステム (Function Calling)][docs-feat-plugin]
LobeChatのプラグインエコシステムは、そのコア機能の重要な拡張であり、LobeChatアシスタントの実用性と柔軟性を大幅に向上させます。
<video controls src="https://github.com/lobehub/lobe-chat/assets/28616219/f29475a3-f346-4196-a435-41a6373ab9e2" muted="false"></video>
プラグインを利用することで、LobeChatアシスタントはリアルタイムの情報を取得して処理することができ、ウェブ情報を検索し、ユーザーに即時かつ関連性の高いニュースを提供することができます。
さらに、これらのプラグインはニュースの集約に限定されず、他の実用的な機能にも拡張できます。たとえば、ドキュメントの迅速な検索、画像の生成、Bilibili、Steamなどのさまざまなプラットフォームからのデータの取得、さまざまなサードパーティサービスとの連携などです。
> \[!TIP]
>
> [📘 プラグインの使用][docs-usage-plugin]について詳しくはこちらをご覧ください。
<!-- PLUGIN LIST -->
| 最近の提出 | 説明 |
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| [ショッピングツール](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | eBayとAliExpressで製品を検索し、eBayのイベントとクーポンを見つけます。プロンプトの例を取得します。<br/>`ショッピング` `e-bay` `ali-express` `クーポン` |
| [Savvy Trader AI](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **savvytrader** on **2024-06-27**</sup> | リアルタイムの株式、暗号通貨、その他の投資データ。<br/>`株式` `分析` |
| [ソーシャル検索](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **say-apps** on **2024-06-02**</sup> | ソーシャル検索は、ツイート、ユーザー、フォロワー、画像、メディアなどへのアクセスを提供します。<br/>`ソーシャル` `ツイッター` `x` `検索` |
| [スペース](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **automateyournetwork** on **2024-05-12**</sup> | NASAを含む宇宙データ。<br/>`宇宙` `nasa` |
> 📊 合計プラグイン数: [<kbd>**52**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
<!-- PLUGIN LIST -->
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-agent]][docs-feat-agent]
### `7` [エージェントマーケット (GPTs)][docs-feat-agent]
LobeChatエージェントマーケットプレイスでは、クリエイターが多くの優れたエージェントを発見できる活気に満ちた革新的なコミュニティを提供しています。
これらのエージェントは、仕事のシナリオで重要な役割を果たすだけでなく、学習プロセスでも大いに便利です。
私たちのマーケットプレイスは、単なるショーケースプラットフォームではなく、協力の場でもあります。ここでは、誰もが自分の知恵を貢献し、開発したエージェントを共有できます。
> \[!TIP]
>
> [🤖/🏪 エージェントを提出][submit-agents-link]することで、簡単にエージェント作品をプラットフォームに提出できます。
> 重要なのは、LobeChatが高度な自動化国際化(i18n)ワークフローを確立しており、
> あなたのエージェントを複数の言語バージョンにシームレスに翻訳できることです。
> これにより、ユーザーがどの言語を話していても、エージェントを障害なく体験できます。
> \[!IMPORTANT]
>
> すべてのユーザーがこの成長するエコシステムに参加し、エージェントの反復と最適化に参加することを歓迎します。
> 一緒に、より面白く、実用的で革新的なエージェントを作成し、エージェントの多様性と実用性をさらに豊かにしましょう。
<!-- AGENT LIST -->
| 最近の提出 | 説明 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Cプログラム学習アシスタント](https://chat-preview.lobehub.com/market?agent=sichuan-university-941-c-programming-assistant)<br/><sup>By **[YBGuoYang](https://github.com/YBGuoYang)** on **2024-07-28**</sup> | Cプログラム設計の学習を支援します<br/>`941` |
| [ブランドパイオニア](https://chat-preview.lobehub.com/market?agent=brand-pioneer)<br/><sup>By **[SaintFresh](https://github.com/SaintFresh)** on **2024-07-25**</sup> | ブランド開発の専門家、思想リーダー、ブランド戦略のスーパー天才、ブランドビジョナリー。ブランドパイオニアは、革新の最前線の探検家であり、自分の分野の発明者です。市場を提供し、専門分野の画期的な進展を特徴とする未来の世界を想像させてください。<br/>`ビジネス` `ブランドパイオニア` `ブランド開発` `ビジネスアシスタント` `ブランドナラティブ` |
| [ネットワークセキュリティアシスタント](https://chat-preview.lobehub.com/market?agent=cybersecurity-copilot)<br/><sup>By **[huoji120](https://github.com/huoji120)** on **2024-07-23**</sup> | ログ、コード、逆コンパイルを分析し、問題を特定し、最適化の提案を提供するネットワークセキュリティの専門家アシスタント。<br/>`ネットワークセキュリティ` `トラフィック分析` `ログ分析` `コード逆コンパイル` `ctf` |
| [BIDOSx2](https://chat-preview.lobehub.com/market?agent=bidosx-2-v-2)<br/><sup>By **[SaintFresh](https://github.com/SaintFresh)** on **2024-07-21**</sup> | 従来のAIを超越する高度なAI LLM。'BIDOS'は、'ブランドのアイデア、開発、運営、スケーリング'と'ビジネスインテリジェンス決定最適化システム'の両方を意味します。<br/>`ブランド開発` `aiアシスタント` `市場分析` `戦略計画` `ビジネス最適化` `ビジネスインテリジェンス` |
> 📊 合計エージェント数: [<kbd>**307**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
<!-- AGENT LIST -->
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-database]][docs-feat-database]
### `8` [ローカル / リモートデータベースのサポート][docs-feat-database]
LobeChatは、サーバーサイドデータベースとローカルデータベースの両方の使用をサポートしています。ニーズに応じて、適切なデプロイメントソリューションを選択できます:
- **ローカルデータベース**:データとプライバシー保護に対するより多くの制御を希望するユーザーに適しています。LobeChatはCRDTConflict-Free Replicated Data Type)技術を使用してマルチデバイス同期を実現しています。これはシームレスなデータ同期体験を提供することを目的とした実験的な機能です。
- **サーバーサイドデータベース**:より便利なユーザー体験を希望するユーザーに適しています。LobeChatはPostgreSQLをサーバーサイドデータベースとしてサポートしています。サーバーサイドデータベースの設定方法についての詳細なドキュメントは、[サーバーサイドデータベースの設定](https://lobehub.com/docs/self-hosting/advanced/server-database)をご覧ください。
どのデータベースを選択しても、LobeChatは優れたユーザー体験を提供します。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-auth]][docs-feat-auth]
### `9` [マルチユーザ管理のサポート][docs-feat-auth]
LobeChatはマルチユーザ管理をサポートし、異なるニーズに応じて2つの主要なユーザ認証および管理ソリューションを提供します:
- **next-auth**LobeChatは、複数の認証方法(OAuth、メールログイン、資格情報ログインなど)をサポートする柔軟で強力な認証ライブラリである`next-auth`を統合しています。`next-auth`を使用すると、ユーザの登録、ログイン、セッション管理、ソーシャルログインなどの機能を簡単に実装し、ユーザデータのセキュリティとプライバシーを確保できます。
- **Clerk**:より高度なユーザ管理機能が必要なユーザ向けに、LobeChatは`Clerk`もサポートしています。`Clerk`は、現代的なユーザ管理プラットフォームであり、多要素認証(MFA)、ユーザプロファイル管理、ログイン活動の監視など、より豊富な機能を提供します。`Clerk`を使用すると、より高いセキュリティと柔軟性を得ることができ、複雑なユーザ管理ニーズに簡単に対応できます。
どのユーザ管理ソリューションを選択しても、LobeChatは優れたユーザー体験と強力な機能サポートを提供します。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-pwa]][docs-feat-pwa]
### `10` [プログレッシブウェブアプリ (PWA)][docs-feat-pwa]
私たちは、今日のマルチデバイス環境でユーザーにシームレスな体験を提供することの重要性を深く理解しています。
そのため、プログレッシブウェブアプリケーション([PWA](https://support.google.com/chrome/answer/9658361))技術を採用しました。
これは、ウェブアプリケーションをネイティブアプリに近い体験に引き上げるモダンなウェブ技術です。
PWAを通じて、LobeChatはデスクトップとモバイルデバイスの両方で高度に最適化されたユーザー体験を提供しながら、その軽量で高性能な特性を維持します。
視覚的および感覚的には、インターフェースを慎重に設計し、ネイティブアプリと区別がつかないようにし、
スムーズなアニメーション、レスポンシブレイアウト、および異なるデバイスの画面解像度に適応するようにしています。
> \[!NOTE]
>
> PWAのインストールプロセスに慣れていない場合は、以下の手順に従ってLobeChatをデスクトップアプリケーション(モバイルデバイスにも適用)として追加できます:
>
> - コンピュータでChromeまたはEdgeブラウザを起動します。
> - LobeChatのウェブページにアクセスします。
> - アドレスバーの右上にある<kbd>インストール</kbd>アイコンをクリックします。
> - 画面の指示に従ってPWAのインストールを完了します。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-mobile]][docs-feat-mobile]
### `11` [モバイルデバイスの適応][docs-feat-mobile]
モバイルデバイスのユーザー体験を向上させるために、一連の最適化設計を行いました。現在、モバイルユーザー体験のバージョンを繰り返し改善しています。ご意見やアイデアがある場合は、GitHub IssuesやPull Requestsを通じてフィードバックをお寄せください。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-theme]][docs-feat-theme]
### `12` [カスタムテーマ][docs-feat-theme]
デザインエンジニアリング指向のアプリケーションとして、LobeChatはユーザーの個別体験を重視しており、
柔軟で多様なテーマモードを導入しています。日中のライトモードと夜間のダークモードを含みます。
テーマモードの切り替えに加えて、さまざまな色のカスタマイズオプションを提供し、ユーザーが自分の好みに応じてアプリケーションのテーマカラーを調整できるようにしています。
落ち着いたダークブルー、活気のあるピーチピンク、プロフェッショナルなグレーホワイトなど、LobeChatでは自分のスタイルに合った色の選択肢を見つけることができます。
> \[!TIP]
>
> デフォルトの設定は、ユーザーのシステムのカラーモードをインテリジェントに認識し、テーマを自動的に切り替えて、オペレーティングシステムと一貫した視覚体験を提供します。
> 詳細を手動で制御するのが好きなユーザーには、直感的な設定オプションと、会話シナリオに対してチャットバブルモードとドキュメントモードの選択肢を提供します。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
### `*` その他の特徴
これらの特徴に加えて、LobeChatは基本的な技術基盤も優れています:
- [x] 💨 **迅速なデプロイ**:VercelプラットフォームまたはDockerイメージを使用して、ワンクリックでデプロイを行い、1分以内にプロセスを完了できます。複雑な設定は不要です。
- [x] 🌐 **カスタムドメイン**:ユーザーが独自のドメインを持っている場合、プラットフォームにバインドして、どこからでも対話エージェントに迅速にアクセスできます。
- [x] 🔒 **プライバシー保護**:すべてのデータはユーザーのブラウザにローカルに保存され、ユーザーのプライバシーを保護します。
- [x] 💎 **洗練されたUIデザイン**:慎重に設計されたインターフェースで、エレガントな外観とスムーズなインタラクションを提供します。ライトモードとダークモードをサポートし、モバイルフレンドリーです。PWAサポートにより、よりネイティブに近い体験を提供します。
- [x] 🗣️ **スムーズな会話体験**:流れるような応答により、スムーズな会話体験を提供します。Markdownレンダリングを完全にサポートし、コードのハイライト、LaTexの数式、Mermaidのフローチャートなどを含みます。
> ✨ LobeChatの進化に伴い、さらに多くの機能が追加されます。
---
> \[!NOTE]
>
> 今後の[ロードマップ][github-project-link]計画は、Projectsセクションで確認できます。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## ⚡️ パフォーマンス
> \[!NOTE]
>
> 完全なレポートのリストは[📘 Lighthouseレポート][docs-lighthouse]で確認できます。
| デスクトップ | モバイル |
| :-----------------------------------------: | :----------------------------------------: |
| ![][chat-desktop] | ![][chat-mobile] |
| [📑 Lighthouseレポート][chat-desktop-report] | [📑 Lighthouseレポート][chat-mobile-report] |
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## 🛳 自己ホスティング
LobeChatは、Vercelと[Dockerイメージ][docker-release-link]を使用した自己ホスティングバージョンを提供しています。これにより、事前の知識がなくても数分で独自のチャットボットをデプロイできます。
> \[!TIP]
>
> [📘 独自のLobeChatを構築する][docs-self-hosting]について詳しくはこちらをご覧ください。
### `A` Vercel、Zeabur、Sealosでのデプロイ
このサービスをVercelまたはZeaburでデプロイしたい場合は、以下の手順に従ってください:
- [OpenAI API Key](https://platform.openai.com/account/api-keys)を準備します。
- 下のボタンをクリックしてデプロイを開始します:GitHubアカウントで直接ログインし、環境変数セクションに`OPENAI_API_KEY`(必須)と`ACCESS_CODE`(推奨)を入力します。
- デプロイが完了したら、使用を開始できます。
- カスタムドメインをバインド(オプション):Vercelが割り当てたドメインのDNSは一部の地域で汚染されているため、カスタムドメインをバインドすることで直接接続できます。
<div align="center">
| Vercelでデプロイ | Zeaburでデプロイ | Sealosでデプロイ |
| :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: |
| [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] |
</div>
#### フォーク後
フォーク後、リポジトリのアクションページで他のアクションを無効にし、アップストリーム同期アクションのみを保持します。
#### 更新を維持
READMEのワンクリックデプロイ手順に従って独自のプロジェクトをデプロイした場合、「更新が利用可能です」というプロンプトが常に表示されることがあります。これは、Vercelがデフォルトで新しいプロジェクトを作成し、フォークしないため、更新を正確に検出できないためです。
> \[!TIP]
>
> [📘 最新バージョンと自動同期][docs-upstream-sync]の手順に従って再デプロイすることをお勧めします。
<br/>
### `B` Dockerでのデプロイ
[![][docker-release-shield]][docker-release-link]
[![][docker-size-shield]][docker-size-link]
[![][docker-pulls-shield]][docker-pulls-link]
LobeChatサービスを独自のプライベートデバイスにデプロイするためのDockerイメージを提供しています。以下のコマンドを使用してLobeChatサービスを開始します:
```fish
$ docker run -d -p 3210:3210 \
-e OPENAI_API_KEY=sk-xxxx \
-e ACCESS_CODE=lobe66 \
--name lobe-chat \
lobehub/lobe-chat
```
> \[!TIP]
>
> OpenAIサービスをプロキシ経由で使用する必要がある場合は、`OPENAI_PROXY_URL`環境変数を使用してプロキシアドレスを設定できます:
```fish
$ docker run -d -p 3210:3210 \
-e OPENAI_API_KEY=sk-xxxx \
-e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
-e ACCESS_CODE=lobe66 \
--name lobe-chat \
lobehub/lobe-chat
```
> \[!NOTE]
>
> Dockerを使用したデプロイの詳細な手順については、[📘 Dockerデプロイガイド][docs-docker]を参照してください。
<br/>
### 環境変数
このプロジェクトは、環境変数で設定される追加の構成項目を提供します:
| 環境変数 | 必須 | 説明 | 例 |
| -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `OPENAI_API_KEY` | はい | これはOpenAIアカウントページで申請したAPIキーです | `sk-xxxxxx...xxxxxx` |
| `OPENAI_PROXY_URL` | いいえ | OpenAIインターフェイスプロキシを手動で設定する場合、この設定項目を使って、デフォルトのOpenAI APIリクエストベースURLを上書きすることができます。 | `https://api.chatanywhere.cn` または `https://aihubmix.com/v1` <br/>デフォルトの値は<br/>`https://api.openai.com/v1` |
| `ACCESS_CODE` | いいえ | このサービスにアクセスするためのパスワードを追加します。漏洩を避けるために長いパスワードを設定することができます。この値にカンマが含まれる場合は、パスワードの配列となります。 | `awCTe)re_r74` または `rtrt_ewee3@09!` または `code1,code2,code3` |
| `OPENAI_MODEL_LIST` | いいえ | モデルリストをコントロールするために使用します。モデルを追加するには `+` を、モデルを非表示にするには `-` を、モデルの表示名をカンマ区切りでカスタマイズするには `model_name=display_name` を使用します。 | `qwen-7b-chat,+glm-6b,-gpt-3.5-turbo` |
> \[!NOTE]
>
> 環境変数の完全なリストは [📘環境変数][docs-env-var] にあります
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## 📦 エコシステム
| NPM | リポジトリ | 説明 | バージョン |
| --------------------------------- | --------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [@lobehub/ui][lobe-ui-link] | [lobehub/lobe-ui][lobe-ui-github] | AIGC ウェブアプリケーション構築専用のオープンソースUIコンポーネントライブラリ。 | [![][lobe-ui-shield]][lobe-ui-link] |
| [@lobehub/icons][lobe-icons-link] | [lobehub/lobe-icons][lobe-icons-github] | 人気の AI/LLM モデルブランドの SVG ロゴとアイコン集。 | [![][lobe-icons-shield]][lobe-icons-link] |
| [@lobehub/tts][lobe-tts-link] | [lobehub/lobe-tts][lobe-tts-github] | 高品質で信頼性の高い TTS/STT React Hooks ライブラリ | [![][lobe-tts-shield]][lobe-tts-link] |
| [@lobehub/lint][lobe-lint-link] | [lobehub/lobe-lint][lobe-lint-github] | LobeHub の ESlint、Stylelint、Commitlint、Prettier、Remark、Semantic Release の設定。 | [![][lobe-lint-shield]][lobe-lint-link] |
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## 🧩 プラグイン
プラグインは、LobeChatの[関数呼び出し][docs-functionc-call]機能を拡張する手段を提供します。プラグインを使用して、新しい関数呼び出しやメッセージ結果の新しいレンダリング方法を導入することができます。プラグイン開発に興味がある方は、Wikiの[📘プラグイン開発ガイド][docs-plugin-dev]を参照してください。
- [lobe-chat-plugins][lobe-chat-plugins]: これはLobeChatのプラグインインデックスです。このリポジトリからindex.jsonにアクセスし、LobeChatで利用可能なプラグインのリストをユーザに表示します。
- [chat-plugin-template][chat-plugin-template]: これはLobeChatプラグイン開発用のプラグインテンプレートです。
- [@lobehub/chat-plugin-sdk][chat-plugin-sdk]: LobeChatプラグインSDKは、Lobe Chat用の優れたチャットプラグインの作成を支援します。
- [@lobehub/chat-plugins-gateway][chat-plugins-gateway]: LobeChat Plugins Gatewayは、LobeChatプラグインのためのゲートウェイを提供するバックエンドサービスです。このサービスはVercelを使用してデプロイされます。プライマリAPIのPOST /api/v1/runnerはEdge Functionとしてデプロイされます。
> \[!NOTE]
>
> プラグインシステムは現在大規模な開発中です。詳しくは以下の issue をご覧ください:
>
> - [x] [**プラグインフェイズ 1**](https://github.com/lobehub/lobe-chat/issues/73): プラグインを本体から分離し、メンテナンスのためにプラグインを独立したリポジトリに分割し、プラグインの動的ロードを実現する。
> - [x] [**プラグインフェイズ 2**](https://github.com/lobehub/lobe-chat/issues/97): プラグイン使用の安全性と安定性、より正確な異常状態の提示、プラグインアーキテクチャの保守性、開発者フレンドリー。
> - [x] [**プラグインフェイズ 3**](https://github.com/lobehub/lobe-chat/issues/149): より高度で包括的なカスタマイズ機能、プラグイン認証のサポート、サンプル。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## ⌨️ ローカル開発
GitHub Codespaces を使ってオンライン開発ができます:
[![][codespaces-shield]][codespaces-link]
Or clone it for local development:
```fish
$ git clone https://github.com/lobehub/lobe-chat.git
$ cd lobe-chat
$ pnpm install
$ pnpm dev
```
より詳しい情報をお知りになりたい方は、[📘開発ガイド][docs-dev-guide]をご覧ください。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## 🤝 コントリビュート
どのようなタイプのコントリビュートも大歓迎です;コードを提供することに興味がある方は、GitHub の [Issues][github-issues-link] や [Projects][github-project-link] をチェックして、あなたの力をお貸しください。
> \[!TIP]
>
> 私たちは技術主導のフォーラムを創設し、知識の交流とアイデアの交換を促進することで、相互のインスピレーションと協力的なイノベーションを生み出すことを目指しています。
>
> LobeChat の改善にご協力ください。製品設計のフィードバックやユーザー体験に関するディスカッションを直接お寄せください。
>
> **プリンシパルメンテナー:** [@arvinxx](https://github.com/arvinxx) [@canisminor1990](https://github.com/canisminor1990)
[![][pr-welcome-shield]][pr-welcome-link]
[![][submit-agents-shield]][submit-agents-link]
[![][submit-plugin-shield]][submit-plugin-link]
<a href="https://github.com/lobehub/lobe-chat/graphs/contributors" target="_blank">
<table>
<tr>
<th colspan="2">
<br><img src="https://contrib.rocks/image?repo=lobehub/lobe-chat"><br><br>
</th>
</tr>
<tr>
<td>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=active&period=past_28_days&owner_id=131470832&repo_ids=643445235&image_size=2x3&color_scheme=dark">
<img src="https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=active&period=past_28_days&owner_id=131470832&repo_ids=643445235&image_size=2x3&color_scheme=light">
</picture>
</td>
<td rowspan="2">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-org-participants-growth/thumbnail.png?activity=active&period=past_28_days&owner_id=131470832&repo_ids=643445235&image_size=4x7&color_scheme=dark">
<img src="https://next.ossinsight.io/widgets/official/compose-org-participants-growth/thumbnail.png?activity=active&period=past_28_days&owner_id=131470832&repo_ids=643445235&image_size=4x7&color_scheme=light">
</picture>
</td>
</tr>
<tr>
<td>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=new&period=past_28_days&owner_id=131470832&repo_ids=643445235&image_size=2x3&color_scheme=dark">
<img src="https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=new&period=past_28_days&owner_id=131470832&repo_ids=643445235&image_size=2x3&color_scheme=light">
</picture>
</td>
</tr>
</table>
</a>
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## ❤️ スポンサー
あなたの一度きりの寄付が、私たちの銀河系で輝きを放ちます!皆様は流れ星であり、私たちの旅路に迅速かつ明るい影響を与えます。私たちを信じてくださり、ありがとうございます。皆様の寛大なお気持ちが、私たちの使命に向かって、一度に輝かしい閃光を放つよう導いてくださるのです。
<a href="https://opencollective.com/lobehub" target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/lobehub/.github/blob/main/static/sponsor-dark.png?raw=true">
<img src="https://github.com/lobehub/.github/blob/main/static/sponsor-light.png?raw=true">
</picture>
</a>
<div align="right">
[![][back-to-top]](#readme-top)
</div>
## 🔗 その他の製品
- **[🅰️ Lobe SD Theme][lobe-theme]:** Stable Diffusion WebUI のためのモダンなテーマ、絶妙なインターフェースデザイン、高度にカスタマイズ可能なUI、効率を高める機能。
- **[⛵️ Lobe Midjourney WebUI][lobe-midjourney-webui]:** Midjourney の WebUI は、AI を活用しテキストプロンプトから豊富で多様な画像を素早く生成し、創造性を刺激して会話を盛り上げます。
- **[🌏 Lobe i18n][lobe-i18n] :** Lobe i18n は ChatGPT を利用した国際化翻訳プロセスの自動化ツールです。大きなファイルの自動分割、増分更新、OpenAIモデル、APIプロキシ、温度のカスタマイズオプションなどの機能をサポートしています。
- **[💌 Lobe Commit][lobe-commit]:** Lobe Commit は、Langchain/ChatGPT を活用して Gitmoji ベースのコミットメッセージを生成する CLI ツールです。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
---
<details><summary><h4>📝 License</h4></summary>
[![][fossa-license-shield]][fossa-license-link]
</details>
Copyright © 2024 [LobeHub][profile-link]. <br />
This project is [Apache 2.0](./LICENSE) licensed.
<!-- LINK GROUP -->
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
[blog]: https://lobehub.com/blog
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/chat_preview_lobehub_com_chat.html
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/chat_preview_lobehub_com_chat.html
[chat-plugin-sdk]: https://github.com/lobehub/chat-plugin-sdk
[chat-plugin-template]: https://github.com/lobehub/chat-plugin-template
[chat-plugins-gateway]: https://github.com/lobehub/chat-plugins-gateway
[codecov-link]: https://codecov.io/gh/lobehub/lobe-chat
[codecov-shield]: https://img.shields.io/codecov/c/github/lobehub/lobe-chat?labelColor=black&style=flat-square&logo=codecov&logoColor=white
[codespaces-link]: https://codespaces.new/lobehub/lobe-chat
[codespaces-shield]: https://github.com/codespaces/badge.svg
[deploy-button-image]: https://vercel.com/button
[deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
[deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
[deploy-on-sealos-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
[deploy-on-zeabur-button-image]: https://zeabur.com/button.svg
[deploy-on-zeabur-link]: https://zeabur.com/templates/VZGGTI
[discord-link]: https://discord.gg/AYFPHvv2jT
[discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
[discord-shield-badge]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
[docker-pulls-link]: https://hub.docker.com/r/lobehub/lobe-chat
[docker-pulls-shield]: https://img.shields.io/docker/pulls/lobehub/lobe-chat?color=45cc11&labelColor=black&style=flat-square
[docker-release-link]: https://hub.docker.com/r/lobehub/lobe-chat
[docker-release-shield]: https://img.shields.io/docker/v/lobehub/lobe-chat?color=369eff&label=docker&labelColor=black&logo=docker&logoColor=white&style=flat-square
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
[docs]: https://lobehub.com/docs/usage/start
[docs-dev-guide]: https://github.com/lobehub/lobe-chat/wiki/index
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
[docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
[docs-feat-auth]: https://lobehub.com/docs/usage/features/auth
[docs-feat-database]: https://lobehub.com/docs/usage/features/database
[docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
[docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
[docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
[docs-feat-provider]: https://lobehub.com/docs/usage/features/multi-ai-providers
[docs-feat-pwa]: https://lobehub.com/docs/usage/features/pwa
[docs-feat-t2i]: https://lobehub.com/docs/usage/features/text-to-image
[docs-feat-theme]: https://lobehub.com/docs/usage/features/theme
[docs-feat-tts]: https://lobehub.com/docs/usage/features/tts
[docs-feat-vision]: https://lobehub.com/docs/usage/features/vision
[docs-functionc-call]: https://lobehub.com/blog/openai-function-call
[docs-lighthouse]: https://github.com/lobehub/lobe-chat/wiki/Lighthouse
[docs-plugin-dev]: https://lobehub.com/docs/usage/plugins/development
[docs-self-hosting]: https://lobehub.com/docs/self-hosting/start
[docs-upstream-sync]: https://lobehub.com/docs/self-hosting/advanced/upstream-sync
[docs-usage-ollama]: https://lobehub.com/docs/usage/providers/ollama
[docs-usage-plugin]: https://lobehub.com/docs/usage/plugins/basic
[fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
[github-action-release-link]: https://github.com/actions/workflows/lobehub/lobe-chat/release.yml
[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-chat/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
[github-action-test-link]: https://github.com/actions/workflows/lobehub/lobe-chat/test.yml
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-chat/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
[github-contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-chat?color=c4f042&labelColor=black&style=flat-square
[github-forks-link]: https://github.com/lobehub/lobe-chat/network/members
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat?color=8ae8ff&labelColor=black&style=flat-square
[github-issues-link]: https://github.com/lobehub/lobe-chat/issues
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat?color=ff80eb&labelColor=black&style=flat-square
[github-license-link]: https://github.com/lobehub/lobe-chat/blob/main/LICENSE
[github-license-shield]: https://img.shields.io/badge/license-apache%202.0-white?labelColor=black&style=flat-square
[github-project-link]: https://github.com/lobehub/lobe-chat/projects
[github-release-link]: https://github.com/lobehub/lobe-chat/releases
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
[github-releasedate-link]: https://github.com/lobehub/lobe-chat/releases
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?labelColor=black&style=flat-square
[github-stars-link]: https://github.com/lobehub/lobe-chat/network/stargazers
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat?color=ffcb47&labelColor=black&style=flat-square
[github-trending-shield]: https://trendshift.io/api/badge/repositories/2256
[github-trending-url]: https://trendshift.io/repositories/2256
[image-banner]: https://github.com/lobehub/lobe-chat/assets/28616219/9f155dff-4737-429f-9cad-a70a1a860c5f
[image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
[image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9
[image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
[image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
[image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
[image-feat-privoder]: https://github.com/lobehub/lobe-chat/assets/28616219/b164bc54-8ba2-4c1e-b2f2-f4d7f7e7a551
[image-feat-pwa]: https://gw.alipayobjects.com/zos/kitchen/69x6bllkX3/pwa.webp
[image-feat-t2i]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/297746445-0ff762b9-aa08-4337-afb7-12f932b6efbb.png
[image-feat-theme]: https://gw.alipayobjects.com/zos/kitchen/pvus1lo%26Z7/darkmode.webp
[image-feat-tts]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/284072124-c9853d8d-f1b5-44a8-a305-45ebc0f6d19a.png
[image-feat-vision]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/284072129-382bdf30-e3d6-4411-b5a0-249710b8ba08.png
[image-overview]: https://github.com/lobehub/lobe-chat/assets/17870709/56b95d48-f573-41cd-8b38-387bf88bc4bf
[image-star]: https://github.com/lobehub/lobe-chat/assets/17870709/cb06b748-513f-47c2-8740-d876858d7855
[issues-link]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
[lobe-chat-plugins]: https://github.com/lobehub/lobe-chat-plugins
[lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
[lobe-i18n]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-i18n
[lobe-icons-github]: https://github.com/lobehub/lobe-icons
[lobe-icons-link]: https://www.npmjs.com/package/@lobehub/icons
[lobe-icons-shield]: https://img.shields.io/npm/v/@lobehub/icons?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[lobe-lint-github]: https://github.com/lobehub/lobe-lint
[lobe-lint-link]: https://www.npmjs.com/package/@lobehub/lint
[lobe-lint-shield]: https://img.shields.io/npm/v/@lobehub/lint?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[lobe-midjourney-webui]: https://github.com/lobehub/lobe-midjourney-webui
[lobe-theme]: https://github.com/lobehub/sd-webui-lobe-theme
[lobe-tts-github]: https://github.com/lobehub/lobe-tts
[lobe-tts-link]: https://www.npmjs.com/package/@lobehub/tts
[lobe-tts-shield]: https://img.shields.io/npm/v/@lobehub/tts?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[lobe-ui-github]: https://github.com/lobehub/lobe-ui
[lobe-ui-link]: https://www.npmjs.com/package/@lobehub/ui
[lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[official-site]: https://lobehub.com
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
[profile-link]: https://github.com/lobehub
[share-linkedin-link]: https://linkedin.com/feed
[share-linkedin-shield]: https://img.shields.io/badge/-share%20on%20linkedin-black?labelColor=black&logo=linkedin&logoColor=white&style=flat-square
[share-mastodon-link]: https://mastodon.social/share?text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source,%20extensible%20(Function%20Calling),%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT/LLM%20web%20application.%20https://github.com/lobehub/lobe-chat%20#chatbot%20#chatGPT%20#openAI
[share-mastodon-shield]: https://img.shields.io/badge/-share%20on%20mastodon-black?labelColor=black&logo=mastodon&logoColor=white&style=flat-square
[share-reddit-link]: https://www.reddit.com/submit?title=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.%20%23chatbot%20%23chatGPT%20%23openAI&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
[share-reddit-shield]: https://img.shields.io/badge/-share%20on%20reddit-black?labelColor=black&logo=reddit&logoColor=white&style=flat-square
[share-telegram-link]: https://t.me/share/url"?text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.%20%23chatbot%20%23chatGPT%20%23openAI&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
[share-telegram-shield]: https://img.shields.io/badge/-share%20on%20telegram-black?labelColor=black&logo=telegram&logoColor=white&style=flat-square
[share-weibo-link]: http://service.weibo.com/share/share.php?sharesource=weibo&title=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.%20%23chatbot%20%23chatGPT%20%23openAI&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
[share-weibo-shield]: https://img.shields.io/badge/-share%20on%20weibo-black?labelColor=black&logo=sinaweibo&logoColor=white&style=flat-square
[share-whatsapp-link]: https://api.whatsapp.com/send?text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.%20https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat%20%23chatbot%20%23chatGPT%20%23openAI
[share-whatsapp-shield]: https://img.shields.io/badge/-share%20on%20whatsapp-black?labelColor=black&logo=whatsapp&logoColor=white&style=flat-square
[share-x-link]: https://x.com/intent/tweet?hashtags=chatbot%2CchatGPT%2CopenAI&text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
[share-x-shield]: https://img.shields.io/badge/-share%20on%20x-black?labelColor=black&logo=x&logoColor=white&style=flat-square
[sponsor-link]: https://opencollective.com/lobehub 'Become ❤️ LobeHub Sponsor'
[sponsor-shield]: https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square
[submit-agents-link]: https://github.com/lobehub/lobe-chat-agents
[submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-c4f042?labelColor=black&style=for-the-badge
[submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
[submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
[vercel-link]: https://chat-preview.lobehub.com
[vercel-shield]: https://img.shields.io/badge/vercel-online-55b467?labelColor=black&logo=vercel&style=flat-square
[vercel-shield-badge]: https://img.shields.io/badge/TRY%20LOBECHAT-ONLINE-55b467?labelColor=black&logo=vercel&style=for-the-badge
+120 -49
View File
@@ -8,7 +8,7 @@ An open-source, modern-design ChatGPT/LLMs UI/Framework.<br/>
Supports speech-synthesis, multi-modal, and extensible ([function call][docs-functionc-call]) plugin system.<br/>
One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/Ollama chat application.
**English** · [简体中文](./README.zh-CN.md) · [Changelog](./CHANGELOG.md) · [Documents][docs] · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]
**English** · [简体中文](./README.zh-CN.md) · [日本語](./README.ja-JP.md) · [Official Site][official-site] · [Changelog](./CHANGELOG.md) · [Documents][docs] · [Blog][blog] · [Feedback][github-issues-link]
<!-- SHIELD GROUP -->
@@ -52,20 +52,23 @@ One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/
- [👋🏻 Getting Started & Join Our Community](#-getting-started--join-our-community)
- [✨ Features](#-features)
- [`1` Multi-Model Service Provider Support](#1-multi-model-service-provider-support)
- [`2` Local Large Language Model (LLM) Support](#2-local-large-language-model-llm-support)
- [`3` Model Visual Recognition](#3-model-visual-recognition)
- [`4` TTS & STT Voice Conversation](#4-tts--stt-voice-conversation)
- [`5` Text to Image Generation](#5-text-to-image-generation)
- [`6` Plugin System (Function Calling)](#6-plugin-system-function-calling)
- [`7` Agent Market (GPTs)](#7-agent-market-gpts)
- [`8` Progressive Web App (PWA)](#8-progressive-web-app-pwa)
- [`9` Mobile Device Adaptation](#9-mobile-device-adaptation)
- [`10` Custom Themes](#10-custom-themes)
- [`1` File Upload/Knowledge Base](#1-file-uploadknowledge-base)
- [`2` Multi-Model Service Provider Support](#2-multi-model-service-provider-support)
- [`3` Local Large Language Model (LLM) Support](#3-local-large-language-model-llm-support)
- [`4` Model Visual Recognition](#4-model-visual-recognition)
- [`5` TTS & STT Voice Conversation](#5-tts--stt-voice-conversation)
- [`6` Text to Image Generation](#6-text-to-image-generation)
- [`7` Plugin System (Function Calling)](#7-plugin-system-function-calling)
- [`8` Agent Market (GPTs)](#8-agent-market-gpts)
- [`9` Support Local / Remote Database](#9-support-local--remote-database)
- [`10` Support Multi-User Management](#10-support-multi-user-management)
- [`11` Progressive Web App (PWA)](#11-progressive-web-app-pwa)
- [`12` Mobile Device Adaptation](#12-mobile-device-adaptation)
- [`13` Custom Themes](#13-custom-themes)
- [`*` What's more](#-whats-more)
- [⚡️ Performance](#-performance)
- [🛳 Self Hosting](#-self-hosting)
- [`A` Deploying with Vercel, Zeabur or Sealos](#a-deploying-with-vercel-zeabur-or-sealos)
- [`A` Deploying with Vercel, Zeabur , Sealos or Alibaba Cloud](#a-deploying-with-vercel-zeabur--sealos-or-alibaba-cloud)
- [`B` Deploying with Docker](#b-deploying-with-docker)
- [Environment Variable](#environment-variable)
- [📦 Ecosystem](#-ecosystem)
@@ -108,9 +111,27 @@ Whether for users or professional developers, LobeHub will be your AI Agent play
## ✨ Features
[![][image-feat-knowledgebase]][docs-feat-knowledgebase]
### `1` [File Upload/Knowledge Base][docs-feat-knowledgebase]
LobeChat supports file upload and knowledge base functionality. You can upload various types of files including documents, images, audio, and video, as well as create knowledge bases, making it convenient for users to manage and search for files. Additionally, you can utilize files and knowledge base features during conversations, enabling a richer dialogue experience.
<https://github.com/user-attachments/assets/faa8cf67-e743-4590-8bf6-ebf6ccc34175>
> \[!TIP]
>
> Learn more on [📘 LobeChat Knowledge Base Launch — From Now On, Every Step Counts](https://lobehub.com/blog/knowledge-base)
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-privoder]][docs-feat-provider]
### `1` [Multi-Model Service Provider Support][docs-feat-provider]
### `2` [Multi-Model Service Provider Support][docs-feat-provider]
In the continuous development of LobeChat, we deeply understand the importance of diversity in model service providers for meeting the needs of the community when providing AI conversation services. Therefore, we have expanded our support to multiple model service providers, rather than being limited to a single one, in order to offer users a more diverse and rich selection of conversations.
@@ -130,6 +151,9 @@ We have implemented support for the following model service providers:
- **ChatGLM**: Added the **ChatGLM** series models from Zhipuai (GLM-4/GLM-4-vision/GLM-3-turbo), providing users with another efficient conversation model choice. [Learn more](https://www.zhipuai.cn/)
- **Moonshot AI (Dark Side of the Moon)**: Integrated with the Moonshot series models, an innovative AI startup from China, aiming to provide deeper conversation understanding. [Learn more](https://www.moonshot.cn/)
- **Minimax**: Integrated the Minimax models, including the MoE model **abab6**, offers a broader range of choices. [Learn more](https://www.minimaxi.com/)
- **DeepSeek**: Integrated with the DeepSeek series models, an innovative AI startup from China, The product has been designed to provide a model that balances performance with price. [Learn more](https://www.deepseek.com/)
- **Qwen**: Integrated the Qwen series models, including the latest **qwen-turbo**, **qwen-plus** and **qwen-max**. [Learn more](https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction)
- **Novita AI**: Access **Llama**, **Mistral**, and other leading open-source models at cheapest prices. Engage in uncensored role-play, spark creative discussions, and foster unrestricted innovation. **Pay For What You Use.** [Learn more](https://novita.ai/llm-api?utm_source=lobechat&utm_medium=ch&utm_campaign=api)
At the same time, we are also planning to support more model service providers, such as Replicate and Perplexity, to further enrich our service provider library. If you would like LobeChat to support your favorite service provider, feel free to join our [community discussion](https://github.com/lobehub/lobe-chat/discussions/1284).
@@ -141,7 +165,7 @@ At the same time, we are also planning to support more model service providers,
[![][image-feat-local]][docs-feat-local]
### `2` [Local Large Language Model (LLM) Support][docs-feat-local]
### `3` [Local Large Language Model (LLM) Support][docs-feat-local]
To meet the specific needs of users, LobeChat also supports the use of local models based on [Ollama](https://ollama.ai), allowing users to flexibly use their own or third-party models.
@@ -157,7 +181,7 @@ To meet the specific needs of users, LobeChat also supports the use of local mod
[![][image-feat-vision]][docs-feat-vision]
### `3` [Model Visual Recognition][docs-feat-vision]
### `4` [Model Visual Recognition][docs-feat-vision]
LobeChat now supports OpenAI's latest [`gpt-4-vision`](https://platform.openai.com/docs/guides/vision) model with visual recognition capabilities,
a multimodal intelligence that can perceive visuals. Users can easily upload or drag and drop images into the dialogue box,
@@ -175,7 +199,7 @@ Whether it's sharing images in daily use or interpreting images within specific
[![][image-feat-tts]][docs-feat-tts]
### `4` [TTS & STT Voice Conversation][docs-feat-tts]
### `5` [TTS & STT Voice Conversation][docs-feat-tts]
LobeChat supports Text-to-Speech (TTS) and Speech-to-Text (STT) technologies, enabling our application to convert text messages into clear voice outputs,
allowing users to interact with our conversational agent as if they were talking to a real person. Users can choose from a variety of voices to pair with the agent.
@@ -192,7 +216,7 @@ Users can choose the voice that suits their personal preferences or specific sce
[![][image-feat-t2i]][docs-feat-t2i]
### `5` [Text to Image Generation][docs-feat-t2i]
### `6` [Text to Image Generation][docs-feat-t2i]
With support for the latest text-to-image generation technology, LobeChat now allows users to invoke image creation tools directly within conversations with the agent. By leveraging the capabilities of AI tools such as [`DALL-E 3`](https://openai.com/dall-e-3), [`MidJourney`](https://www.midjourney.com/), and [`Pollinations`](https://pollinations.ai/), the agents are now equipped to transform your ideas into images.
@@ -206,7 +230,7 @@ This enables a more private and immersive creative process, allowing for the sea
[![][image-feat-plugin]][docs-feat-plugin]
### `6` [Plugin System (Function Calling)][docs-feat-plugin]
### `7` [Plugin System (Function Calling)][docs-feat-plugin]
The plugin ecosystem of LobeChat is an important extension of its core functionality, greatly enhancing the practicality and flexibility of the LobeChat assistant.
@@ -222,14 +246,14 @@ In addition, these plugins are not limited to news aggregation, but can also ext
<!-- PLUGIN LIST -->
| Recent Submits | Description |
| ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [Social Search](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **say-apps** on **2024-05-02**</sup> | The Social Search provides access to tweets, users, followers, images, media and more.<br/>`social` `twitter` `x` `search` |
| [Search Google via Serper](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **Barry** on **2024-04-30**</sup> | Google search engine via Serper.dev free API (2500x🆓/month)<br/>`web` `search` |
| [NFT Guru](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **swap** on **2024-04-03**</sup> | Discover current prices of NFTs across major platforms and keep track of the rapidly changing marketplace with real-time<br/>`crypto` `nft` |
| [Calendar Assistant](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **cc** on **2024-03-13**</sup> | A plugin to manage your calendar events # will auto generate i18n in workflow<br/>`calendar` `schedule` `will-auto-generate-i-18-n-in-workflow` |
| Recent Submits | Description |
| ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [Tongyi wanxiang Image Generator](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **YoungTx** on **2024-08-09**</sup> | This plugin uses Alibaba's Tongyi Wanxiang model to generate images based on text prompts.<br/>`image` `tongyi` `wanxiang` |
| [Shopping tools](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | Search for products on eBay & AliExpress, find eBay events & coupons. Get prompt examples.<br/>`shopping` `e-bay` `ali-express` `coupons` |
| [Savvy Trader AI](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **savvytrader** on **2024-06-27**</sup> | Realtime stock, crypto and other investment data.<br/>`stock` `analyze` |
| [Search1API](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **fatwang2** on **2024-05-06**</sup> | Search aggregation service, specifically designed for LLMs<br/>`web` `search` |
> 📊 Total plugins: [<kbd>**56**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
> 📊 Total plugins: [<kbd>**49**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
<!-- PLUGIN LIST -->
@@ -241,7 +265,7 @@ In addition, these plugins are not limited to news aggregation, but can also ext
[![][image-feat-agent]][docs-feat-agent]
### `7` [Agent Market (GPTs)][docs-feat-agent]
### `8` [Agent Market (GPTs)][docs-feat-agent]
In LobeChat Agent Marketplace, creators can discover a vibrant and innovative community that brings together a multitude of well-designed agents,
which not only play an important role in work scenarios but also offer great convenience in learning processes.
@@ -261,14 +285,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
<!-- AGENT LIST -->
| Recent Submits | Description |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Sales Description Specialist](https://chat-preview.lobehub.com/market?agent=verkauf-kleinanzeigen)<br/><sup>By **[highseen](https://github.com/highseen)** on **2024-04-30**</sup> | Assists in the sale of used items through research, pricing, description, and title creation.<br/>`product-sales` `research` `description` |
| [Jailbreak Assistant DAN](https://chat-preview.lobehub.com/market?agent=gpt-4-dan-assistant)<br/><sup>By **[MapleEve](https://github.com/MapleEve)** on **2024-04-26**</sup> | Bypass OpenAI review mechanism, ChatGPT after jailbreak<br/>`creative` `artificial-intelligence` `conversation` `jailbreak` |
| [TailwindHelper](https://chat-preview.lobehub.com/market?agent=tailwind-helper)<br/><sup>By **[aototo](https://github.com/aototo)** on **2024-04-26**</sup> | TailwindHelper is a professional frontend designer with a solid foundation in design theory and rich practical experience. Created by a leading software development company, it aims to help developers and designers accelerate the development process of web interfaces. TailwindHelper is proficient in the Tailwind CSS framework and can translate complex design requirements into efficient and responsive CSS class names.<br/>`tailwindcss` `css` `tailwind-helper` |
| [yapi JSON-SCHEMA to Typescript](https://chat-preview.lobehub.com/market?agent=yapi-ts-helper)<br/><sup>By **[zcf0508](https://github.com/zcf0508)** on **2024-04-26**</sup> | Specializes in converting JSON schema to TypeScript types.<br/>`typescript` `development` |
| Recent Submits | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Algorithm Answer Mentor](https://chat-preview.lobehub.com/market?agent=leetcode-tutor)<br/><sup>By **[Stark-X](https://github.com/Stark-X)** on **2024-10-21**</sup> | Specializes in LeetCode algorithm solutions and user guidance<br/>`algorithm` `problem-solving` `programming` `education` |
| [Psychologist](https://chat-preview.lobehub.com/market?agent=psychological-counselor)<br/><sup>By **[JIANGTUNAN](https://github.com/JIANGTUNAN)** on **2024-10-21**</sup> | An experienced psychologist, warmly and patiently listening to your story.<br/>`psychological-counseling` `consultation` `sharing` `friendly` `doctor` `counselor` |
| [Boxing Training Master](https://chat-preview.lobehub.com/market?agent=boxing-master)<br/><sup>By **[Luyi-2333](https://github.com/Luyi-2333)** on **2024-10-15**</sup> | Expert in boxing training guidance and personalized plan development<br/>`boxing-training` `personalized-plans` `fitness-guidance` `progress-evaluation` `technique-improvement` `health-and-nutrition` |
| [Coconut](https://chat-preview.lobehub.com/market?agent=deep-thinker-ai)<br/><sup>By **[hia1234](https://github.com/hia1234)** on **2024-10-15**</sup> | A chatbot that undergoes several reviews of its responses, checking whether there is a basis for its statements and actively requesting feedback while engaging in repeated interactions.<br/>`programming` `general` |
> 📊 Total agents: [<kbd>**244**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
> 📊 Total agents: [<kbd>**420**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
<!-- AGENT LIST -->
@@ -278,9 +302,44 @@ Our marketplace is not just a showcase platform but also a collaborative space.
</div>
[![][image-feat-database]][docs-feat-database]
### `9` [Support Local / Remote Database][docs-feat-database]
LobeChat supports the use of both server-side and local databases. Depending on your needs, you can choose the appropriate deployment solution:
- **Local database**: suitable for users who want more control over their data and privacy protection. LobeChat uses CRDT (Conflict-Free Replicated Data Type) technology to achieve multi-device synchronization. This is an experimental feature aimed at providing a seamless data synchronization experience.
- **Server-side database**: suitable for users who want a more convenient user experience. LobeChat supports PostgreSQL as a server-side database. For detailed documentation on how to configure the server-side database, please visit [Configure Server-side Database](https://lobehub.com/docs/self-hosting/advanced/server-database).
Regardless of which database you choose, LobeChat can provide you with an excellent user experience.
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-auth]][docs-feat-auth]
### `10` [Support Multi-User Management][docs-feat-auth]
LobeChat supports multi-user management and provides two main user authentication and management solutions to meet different needs:
- **next-auth**: LobeChat integrates `next-auth`, a flexible and powerful identity verification library that supports multiple authentication methods, including OAuth, email login, credential login, etc. With `next-auth`, you can easily implement user registration, login, session management, social login, and other functions to ensure the security and privacy of user data.
- [**Clerk**](https://go.clerk.com/exgqLG0): For users who need more advanced user management features, LobeChat also supports `Clerk`, a modern user management platform. `Clerk` provides richer functions, such as multi-factor authentication (MFA), user profile management, login activity monitoring, etc. With `Clerk`, you can get higher security and flexibility, and easily cope with complex user management needs.
Regardless of which user management solution you choose, LobeChat can provide you with an excellent user experience and powerful functional support.
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-pwa]][docs-feat-pwa]
### `8` [Progressive Web App (PWA)][docs-feat-pwa]
### `11` [Progressive Web App (PWA)][docs-feat-pwa]
We deeply understand the importance of providing a seamless experience for users in today's multi-device environment.
Therefore, we have adopted Progressive Web Application ([PWA](https://support.google.com/chrome/answer/9658361)) technology,
@@ -307,7 +366,7 @@ providing smooth animations, responsive layouts, and adapting to different devic
[![][image-feat-mobile]][docs-feat-mobile]
### `9` [Mobile Device Adaptation][docs-feat-mobile]
### `12` [Mobile Device Adaptation][docs-feat-mobile]
We have carried out a series of optimization designs for mobile devices to enhance the user's mobile experience. Currently, we are iterating on the mobile user experience to achieve smoother and more intuitive interactions. If you have any suggestions or ideas, we welcome you to provide feedback through GitHub Issues or Pull Requests.
@@ -319,7 +378,7 @@ We have carried out a series of optimization designs for mobile devices to enhan
[![][image-feat-theme]][docs-feat-theme]
### `10` [Custom Themes][docs-feat-theme]
### `13` [Custom Themes][docs-feat-theme]
As a design-engineering-oriented application, LobeChat places great emphasis on users' personalized experiences,
hence introducing flexible and diverse theme modes, including a light mode for daytime and a dark mode for nighttime.
@@ -380,15 +439,15 @@ Beside these features, LobeChat also have much better basic technique undergroun
## 🛳 Self Hosting
LobeChat provides Self-Hosted Version with Vercel and [Docker Image][docker-release-link]. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.
LobeChat provides Self-Hosted Version with Vercel, Alibaba Cloud, and [Docker Image][docker-release-link]. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.
> \[!TIP]
>
> Learn more about [📘 Build your own LobeChat][docs-self-hosting] by checking it out.
### `A` Deploying with Vercel, Zeabur or Sealos
### `A` Deploying with Vercel, Zeabur , Sealos or Alibaba Cloud
If you want to deploy this service yourself on either Vercel or Zeabur, you can follow these steps:
"If you want to deploy this service yourself on Vercel, Zeabur or Alibaba Cloud, you can follow these steps:
- Prepare your [OpenAI API Key](https://platform.openai.com/account/api-keys).
- Click the button below to start deployment: Log in directly with your GitHub account, and remember to fill in the `OPENAI_API_KEY`(required) and `ACCESS_CODE` (recommended) on the environment variable section.
@@ -397,9 +456,9 @@ If you want to deploy this service yourself on either Vercel or Zeabur, you can
<div align="center">
| Deploy with Vercel | Deploy with Zeabur | Deploy with Sealos |
| :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: |
| [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] |
| Deploy with Vercel | Deploy with Zeabur | Deploy with Sealos | Deploy with RepoCloud | Deploy with Alibaba Cloud |
| :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------------: | :-----------------------------------------------------------------------: |
| [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] | [![][deploy-on-repocloud-button-image]][deploy-on-repocloud-link] | [![][deploy-on-alibaba-cloud-button-image]][deploy-on-alibaba-cloud-link] |
</div>
@@ -627,11 +686,12 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
</details>
Copyright © 2024 [LobeHub][profile-link]. <br />
This project is [MIT](./LICENSE) licensed.
This project is [Apache 2.0](./LICENSE) licensed.
<!-- LINK GROUP -->
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
[blog]: https://lobehub.com/blog
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/chat_preview_lobehub_com_chat.html
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
@@ -645,6 +705,10 @@ This project is [MIT](./LICENSE) licensed.
[codespaces-shield]: https://github.com/codespaces/badge.svg
[deploy-button-image]: https://vercel.com/button
[deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
[deploy-on-alibaba-cloud-button-image]: https://service-info-public.oss-cn-hangzhou.aliyuncs.com/computenest-en.svg
[deploy-on-alibaba-cloud-link]: https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=LobeChat%E7%A4%BE%E5%8C%BA%E7%89%88
[deploy-on-repocloud-button-image]: https://d16t0pc4846x52.cloudfront.net/deploylobe.svg
[deploy-on-repocloud-link]: https://repocloud.io/details/?app_id=248
[deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
[deploy-on-sealos-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
[deploy-on-zeabur-button-image]: https://zeabur.com/button.svg
@@ -658,11 +722,14 @@ This project is [MIT](./LICENSE) licensed.
[docker-release-shield]: https://img.shields.io/docker/v/lobehub/lobe-chat?color=369eff&label=docker&labelColor=black&logo=docker&logoColor=white&style=flat-square
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
[docs]: https://lobehub.com/docs
[docs]: https://lobehub.com/docs/usage/start
[docs-dev-guide]: https://github.com/lobehub/lobe-chat/wiki/index
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
[docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
[docs-feat-auth]: https://lobehub.com/docs/usage/features/auth
[docs-feat-database]: https://lobehub.com/docs/usage/features/database
[docs-feat-knowledgebase]: https://lobehub.com/blog/knowledge-base
[docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
[docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
[docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
@@ -672,7 +739,7 @@ This project is [MIT](./LICENSE) licensed.
[docs-feat-theme]: https://lobehub.com/docs/usage/features/theme
[docs-feat-tts]: https://lobehub.com/docs/usage/features/tts
[docs-feat-vision]: https://lobehub.com/docs/usage/features/vision
[docs-functionc-call]: https://platform.openai.com/docs/guides/function-calling
[docs-functionc-call]: https://lobehub.com/blog/openai-function-call
[docs-lighthouse]: https://github.com/lobehub/lobe-chat/wiki/Lighthouse
[docs-plugin-dev]: https://lobehub.com/docs/usage/plugins/development
[docs-self-hosting]: https://lobehub.com/docs/self-hosting/start
@@ -692,7 +759,7 @@ This project is [MIT](./LICENSE) licensed.
[github-issues-link]: https://github.com/lobehub/lobe-chat/issues
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat?color=ff80eb&labelColor=black&style=flat-square
[github-license-link]: https://github.com/lobehub/lobe-chat/blob/main/LICENSE
[github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-chat?color=white&labelColor=black&style=flat-square
[github-license-shield]: https://img.shields.io/badge/license-apache%202.0-white?labelColor=black&style=flat-square
[github-project-link]: https://github.com/lobehub/lobe-chat/projects
[github-release-link]: https://github.com/lobehub/lobe-chat/releases
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
@@ -704,6 +771,9 @@ This project is [MIT](./LICENSE) licensed.
[github-trending-url]: https://trendshift.io/repositories/2256
[image-banner]: https://github.com/lobehub/lobe-chat/assets/28616219/9f155dff-4737-429f-9cad-a70a1a860c5f
[image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
[image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9
[image-feat-knowledgebase]: https://github.com/user-attachments/assets/77e58e1c-c82f-4341-b159-f4eeede9967f
[image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
[image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
[image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
@@ -713,7 +783,7 @@ This project is [MIT](./LICENSE) licensed.
[image-feat-theme]: https://gw.alipayobjects.com/zos/kitchen/pvus1lo%26Z7/darkmode.webp
[image-feat-tts]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/284072124-c9853d8d-f1b5-44a8-a305-45ebc0f6d19a.png
[image-feat-vision]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/284072129-382bdf30-e3d6-4411-b5a0-249710b8ba08.png
[image-overview]: https://github.com/lobehub/lobe-chat/assets/28616219/8b04c3c9-3d71-4fb4-bd9b-a4f415c5876d
[image-overview]: https://github.com/lobehub/lobe-chat/assets/17870709/56b95d48-f573-41cd-8b38-387bf88bc4bf
[image-star]: https://github.com/lobehub/lobe-chat/assets/17870709/cb06b748-513f-47c2-8740-d876858d7855
[issues-link]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
[lobe-chat-plugins]: https://github.com/lobehub/lobe-chat-plugins
@@ -733,6 +803,7 @@ This project is [MIT](./LICENSE) licensed.
[lobe-ui-github]: https://github.com/lobehub/lobe-ui
[lobe-ui-link]: https://www.npmjs.com/package/@lobehub/ui
[lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[official-site]: https://lobehub.com
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
[profile-link]: https://github.com/lobehub
@@ -757,5 +828,5 @@ This project is [MIT](./LICENSE) licensed.
[submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
[submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
[vercel-link]: https://chat-preview.lobehub.com
[vercel-shield]: https://img.shields.io/website?down_message=offline&label=vercel&labelColor=black&logo=vercel&style=flat-square&up_message=online&url=https%3A%2F%2Fchat-preview.lobehub.com
[vercel-shield-badge]: https://img.shields.io/website?down_message=offline&label=try%20lobechat&labelColor=black&logo=vercel&style=for-the-badge&up_message=online&url=https%3A%2F%2Fchat-preview.lobehub.com
[vercel-shield]: https://img.shields.io/badge/vercel-online-55b467?labelColor=black&logo=vercel&style=flat-square
[vercel-shield-badge]: https://img.shields.io/badge/TRY%20LOBECHAT-ONLINE-55b467?labelColor=black&logo=vercel&style=for-the-badge
+123 -51
View File
@@ -8,7 +8,7 @@
支持语音合成、多模态、可扩展的([function call][docs-functionc-call])插件系统<br/>
一键**免费**拥有你自己的 ChatGPT/Gemini/Claude/Ollama 应用
[English](./README.md) · **简体中文** · [更新日志](./CHANGELOG.md) · [文档][github-document-link] · [报告问题][github-issues-link] · [请求功能][github-issues-link]
[English](./README.md) · **简体中文** · [日本語](./README.ja-JP.md) · [官网][official-site] · [更新日志](./CHANGELOG.md) · [文档][docs] · [博客][blog] · [反馈问题][github-issues-link]
<!-- SHIELD GROUP -->
@@ -39,6 +39,7 @@
<sup>探索私人生产力的未来。在个体崛起的时代中为你打造.</sup>
[![][github-trending-shield]][github-trending-url]
[![][github-hello-shield]][github-hello-url]
[![][image-overview]][vercel-link]
@@ -51,20 +52,23 @@
- [👋🏻 开始使用 & 交流](#-开始使用--交流)
- [✨ 特性一览](#-特性一览)
- [`1` 多模型服务商支持](#1-多模型服务商支持)
- [`2` 支持本地大语言模型 (LLM)](#2-支持本地大语言模型-llm)
- [`3` 模型视觉识别 (Model Visual)](#3-模型视觉识别-model-visual)
- [`4` TTS & STT 语音会话](#4-tts--stt-语音会话)
- [`5` Text to Image 文生图](#5-text-to-image-文生图)
- [`6` 插件系统 (Function Calling)](#6-插件系统-function-calling)
- [`7` 助手市场 (GPTs)](#7-助手市场-gpts)
- [`8` 渐进式 Web 应用 (PWA)](#8-渐进式-web-应用-pwa)
- [`9` 移动设备适配](#9-移动设备适配)
- [`10` 自定义主题](#10-自定义主题)
- [`1` 文件上传 / 知识库](#1-文件上传--知识库)
- [`2` 多模型服务商支持](#2-多模型服务商支持)
- [`3` 支持本地大语言模型 (LLM)](#3-支持本地大语言模型-llm)
- [`4` 模型视觉识别 (Model Visual)](#4-模型视觉识别-model-visual)
- [`5` TTS & STT 语音会话](#5-tts--stt-语音会话)
- [`6` Text to Image 文生图](#6-text-to-image-文生图)
- [`7` 插件系统 (Tools Calling)](#7-插件系统-tools-calling)
- [`8` 助手市场 (GPTs)](#8-助手市场-gpts)
- [`9` 支持本地 / 远程数据库](#9-支持本地--远程数据库)
- [`10` 支持多用户管理](#10-支持多用户管理)
- [`11` 渐进式 Web 应用 (PWA)](#11-渐进式-web-应用-pwa)
- [`12` 移动设备适配](#12-移动设备适配)
- [`13` 自定义主题](#13-自定义主题)
- [更多特性](#更多特性)
- [⚡️ 性能测试](#-性能测试)
- [🛳 开箱即用](#-开箱即用)
- [`A` 使用 Vercel、Zeabur Sealos 部署](#a-使用-vercelzeabur-或-sealos-部署)
- [`A` 使用 Vercel、Zeabur Sealos 或 阿里云计算巢 部署](#a-使用-vercelzeabur-sealos-或-阿里云计算巢-部署)
- [`B` 使用 Docker 部署](#b-使用-docker-部署)
- [环境变量](#环境变量)
- [获取 OpenAI API Key](#获取-openai-api-key)
@@ -107,9 +111,27 @@
## ✨ 特性一览
[![][image-feat-knowledgebase]][docs-feat-knowledgebase]
### `1` [文件上传 / 知识库][docs-feat-knowledgebase]
LobeChat 支持文件上传与知识库功能,你可以上传文件、图片、音频、视频等多种类型的文件,以及创建知识库,方便用户管理和查找文件。同时在对话中使用文件和知识库功能,实现更加丰富的对话体验。
<https://github.com/user-attachments/assets/faa8cf67-e743-4590-8bf6-ebf6ccc34175>
> \[!TIP]
>
> 查阅 [📘 LobeChat 知识库上线 —— 此刻起,跬步千里](https://lobehub.com/zh/blog/knowledge-base) 了解详情。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-privoder]][docs-feat-provider]
### `1` [多模型服务商支持][docs-feat-provider]
### `2` [多模型服务商支持][docs-feat-provider]
在 LobeChat 的不断发展过程中,我们深刻理解到在提供 AI 会话服务时模型服务商的多样性对于满足社区需求的重要性。因此,我们不再局限于单一的模型服务商,而是拓展了对多种模型服务商的支持,以便为用户提供更为丰富和多样化的会话选择。
@@ -129,6 +151,9 @@
- **Groq**:接入了 Groq 的 AI 模型,高效处理消息序列,生成回应,胜任多轮对话及单次交互任务。[了解更多](https://groq.com/)
- **OpenRouter**:其支持包括 **Claude 3****Gemma****Mistral****Llama2**和**Cohere**等模型路由,支持智能路由优化,提升使用效率,开放且灵活。[了解更多](https://openrouter.ai/)
- **Minimax**: 接入了 Minimax 的 AI 模型,包括 MoE 模型 **abab6**,提供了更多的选择空间。[了解更多](https://www.minimaxi.com/)
- **DeepSeek**: 接入了 DeepSeek 的 AI 模型,包括最新的 **DeepSeek-V2**,提供兼顾性能与价格的模型。[了解更多](https://www.deepseek.com/)
- **Qwen**: 接入了 Qwen 的 AI 模型,包括最新的 **qwen-turbo****qwen-plus** 和 **qwen-max** 等模型。[了解更多](https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction)
- **Novita AI**: 性价比最高的开源模型供应商,支持 **Llama****Mistral** 系列等最前沿的开源模型。在情感陪伴等场景表现优异,无任何内容限制或审查。 [了解更多](https://novita.ai/model-api/product/llm-api?utm_source=lobechat&utm_medium=ch&utm_campaign=api)
同时,我们也在计划支持更多的模型服务商,如 Replicate 和 Perplexity 等,以进一步丰富我们的服务商库。如果你希望让 LobeChat 支持你喜爱的服务商,欢迎加入我们的[社区讨论](https://github.com/lobehub/lobe-chat/discussions/1284)。
@@ -140,7 +165,7 @@
[![][image-feat-local]][docs-feat-local]
### `2` [支持本地大语言模型 (LLM)][docs-feat-local]
### `3` [支持本地大语言模型 (LLM)][docs-feat-local]
为了满足特定用户的需求,LobeChat 还基于 [Ollama](https://ollama.ai) 支持了本地模型的使用,让用户能够更灵活地使用自己的或第三方的模型。
@@ -156,7 +181,7 @@
[![][image-feat-vision]][docs-feat-vision]
### `3` [模型视觉识别 (Model Visual)][docs-feat-vision]
### `4` [模型视觉识别 (Model Visual)][docs-feat-vision]
LobeChat 已经支持 OpenAI 最新的 [`gpt-4-vision`](https://platform.openai.com/docs/guides/vision) 支持视觉识别的模型,这是一个具备视觉识别能力的多模态应用。
用户可以轻松上传图片或者拖拽图片到对话框中,助手将能够识别图片内容,并在此基础上进行智能对话,构建更智能、更多元化的聊天场景。
@@ -171,7 +196,7 @@ LobeChat 已经支持 OpenAI 最新的 [`gpt-4-vision`](https://platform.openai.
[![][image-feat-tts]][docs-feat-tts]
### `4` [TTS & STT 语音会话][docs-feat-tts]
### `5` [TTS & STT 语音会话][docs-feat-tts]
LobeChat 支持文字转语音(Text-to-SpeechTTS)和语音转文字(Speech-to-Text,STT)技术,这使得我们的应用能够将文本信息转化为清晰的语音输出,用户可以像与真人交谈一样与我们的对话助手进行交流。
用户可以从多种声音中选择,给助手搭配合适的音源。 同时,对于那些倾向于听觉学习或者想要在忙碌中获取信息的用户来说,TTS 提供了一个极佳的解决方案。
@@ -186,7 +211,7 @@ LobeChat 支持文字转语音(Text-to-SpeechTTS)和语音转文字(Spe
[![][image-feat-t2i]][docs-feat-t2i]
### `5` [Text to Image 文生图][docs-feat-t2i]
### `6` [Text to Image 文生图][docs-feat-t2i]
支持最新的文本到图片生成技术,LobeChat 现在能够让用户在与助手对话中直接调用文生图工具进行创作。
通过利用 [`DALL-E 3`](https://openai.com/dall-e-3)、[`MidJourney`](https://www.midjourney.com/) 和 [`Pollinations`](https://pollinations.ai/) 等 AI 工具的能力, 助手们现在可以将你的想法转化为图像。
@@ -200,7 +225,7 @@ LobeChat 支持文字转语音(Text-to-SpeechTTS)和语音转文字(Spe
[![][image-feat-plugin]][docs-feat-plugin]
### `6` [插件系统 (Function Calling)][docs-feat-plugin]
### `7` [插件系统 (Tools Calling)][docs-feat-plugin]
LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地增强了 ChatGPT 的实用性和灵活性。
@@ -214,14 +239,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
<!-- PLUGIN LIST -->
| 最近新增 | 插件描述 |
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
| [社交搜索](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **say-apps** on **2024-05-02**</sup> | 社交搜索提供访问推文、用户、关注者、图片、媒体等功能。<br/>`社交` `推特` `x` `搜索` |
| [通过 Serper 搜索 Google](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **Barry** on **2024-04-30**</sup> | 通过 Serper.dev 免费 API 进行 Google 搜索引擎(每月 2500 次🆓)<br/>`网络` `搜索` |
| [NFT Guru](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **swap** on **2024-04-03**</sup> | 发现主要平台上 NFT 的当前价格,并通过实时跟踪快速变化的市场了解情况<br/>`加密货币` `nft` |
| [日历助手](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **cc** on **2024-03-13**</sup> | 一个用于管理日历事件的插件 # 将自动生成工作流程中的 i18n<br/>`日历` `日程安排` `将自动生成工作流程中的-i-18-n` |
| 最近新增 | 插件描述 |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [通义万象图像生成器](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **YoungTx** on **2024-08-09**</sup> | 此插件使用阿里巴巴的通义万象模型根据文本提示生成图像。<br/>`图像` `通义` `万象` |
| [购物工具](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | 在 eBay 和 AliExpress 上搜索产品,查找 eBay 活动和优惠券。获取快速示例。<br/>`购物` `e-bay` `ali-express` `优惠券` |
| [Savvy Trader AI](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **savvytrader** on **2024-06-27**</sup> | 实时股票、加密货币和其他投资数据。<br/>`股票` `分析` |
| [Search1API](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **fatwang2** on **2024-05-06**</sup> | 搜索聚合服务,专为 LLMs 设计<br/>`web` `search` |
> 📊 Total plugins: [<kbd>**56**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
> 📊 Total plugins: [<kbd>**49**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
<!-- PLUGIN LIST -->
@@ -233,7 +258,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
[![][image-feat-agent]][docs-feat-agent]
### `7` [助手市场 (GPTs)][docs-feat-agent]
### `8` [助手市场 (GPTs)][docs-feat-agent]
在 LobeChat 的助手市场中,创作者们可以发现一个充满活力和创新的社区,它汇聚了众多精心设计的助手,这些助手不仅在工作场景中发挥着重要作用,也在学习过程中提供了极大的便利。
我们的市场不仅是一个展示平台,更是一个协作的空间。在这里,每个人都可以贡献自己的智慧,分享个人开发的助手。
@@ -249,14 +274,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
<!-- AGENT LIST -->
| 最近新增 | 助手说明 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [销售描述专家](https://chat-preview.lobehub.com/market?agent=verkauf-kleinanzeigen)<br/><sup>By **[highseen](https://github.com/highseen)** on **2024-04-30**</sup> | 通过研究、定价、描述和标题设计帮助销售二手物品。<br/>`产品销售` `研究` `描述` |
| [越狱助手 DAN](https://chat-preview.lobehub.com/market?agent=gpt-4-dan-assistant)<br/><sup>By **[MapleEve](https://github.com/MapleEve)** on **2024-04-26**</sup> | 突破 OpenAI 审核机制,越狱之后的 ChatGPT<br/>`创意` `人工智能` `对话` `越狱` |
| [TailwindHelper](https://chat-preview.lobehub.com/market?agent=tailwind-helper)<br/><sup>By **[aototo](https://github.com/aototo)** on **2024-04-26**</sup> | TailwindHelper 是一位专业的前端设计师,拥有深厚的设计理论基础和丰富的实践经验。它由一家领先的软件开发公司创建,旨在帮助开发者和设计师加速 Web 界面的开发过程。TailwindHelper 精通 Tailwind CSS 框架,并能够理解复杂的设计要求,转化为高效且响应式的 CSS 类名。<br/>`tailwindcss` `css` `tailwind-helper` |
| [yapi JSON-SCHEMA to Typescript](https://chat-preview.lobehub.com/market?agent=yapi-ts-helper)<br/><sup>By **[zcf0508](https://github.com/zcf0508)** on **2024-04-26**</sup> | 擅长将 JSON schema 转换为 TypeScript 类型。<br/>`typescript` `开发` |
| 最近新增 | 助手说明 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [算法解答导师](https://chat-preview.lobehub.com/market?agent=leetcode-tutor)<br/><sup>By **[Stark-X](https://github.com/Stark-X)** on **2024-10-21**</sup> | 擅长 LeetCode 算法解答与用户指导<br/>`算法` `解题` `编程` `教育` |
| [心理咨询师](https://chat-preview.lobehub.com/market?agent=psychological-counselor)<br/><sup>By **[JIANGTUNAN](https://github.com/JIANGTUNAN)** on **2024-10-21**</sup> | 一个资深心理医生,温暖和耐心的倾听你的故事。<br/>`心理咨询` `咨询` `倾述` `友好` `医生` `咨询师` |
| [拳击训练大师](https://chat-preview.lobehub.com/market?agent=boxing-master)<br/><sup>By **[Luyi-2333](https://github.com/Luyi-2333)** on **2024-10-15**</sup> | 擅长拳击训练指导与个性化计划制定<br/>`拳击训练` `个性化计划` `健身指导` `进度评估` `技术提升` `健康与营养` |
| [椰子](https://chat-preview.lobehub.com/market?agent=deep-thinker-ai)<br/><sup>By **[hia1234](https://github.com/hia1234)** on **2024-10-15**</sup> | 在自己的回答中进行多次审查,确保聊天机器人所说的话有依据,并积极请求反馈,反复进行互动<br/>`编程` `一般` |
> 📊 Total agents: [<kbd>**244**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
> 📊 Total agents: [<kbd>**420**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
<!-- AGENT LIST -->
@@ -266,9 +291,44 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
</div>
[![][image-feat-database]][docs-feat-database]
### `9` [支持本地 / 远程数据库][docs-feat-database]
LobeChat 支持同时使用服务端数据库和本地数据库。根据您的需求,您可以选择合适的部署方案:
- 本地数据库:适合希望对数据有更多掌控感和隐私保护的用户。LobeChat 采用了 CRDT (Conflict-Free Replicated Data Type) 技术,实现了多端同步功能。这是一项实验性功能,旨在提供无缝的数据同步体验。
- 服务端数据库:适合希望更便捷使用体验的用户。LobeChat 支持 PostgreSQL 作为服务端数据库。关于如何配置服务端数据库的详细文档,请前往 [配置服务端数据库](https://lobehub.com/zh/docs/self-hosting/advanced/server-database)。
无论您选择哪种数据库,LobeChat 都能为您提供卓越的用户体验。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-auth]][docs-feat-auth]
### `10` [支持多用户管理][docs-feat-auth]
LobeChat 支持多用户管理,提供了两种主要的用户认证和管理方案,以满足不同需求:
- **next-auth**LobeChat 集成了 `next-auth`,一个灵活且强大的身份验证库,支持多种身份验证方式,包括 OAuth、邮件登录、凭证登录等。通过 `next-auth`,您可以轻松实现用户的注册、登录、会话管理以及社交登录等功能,确保用户数据的安全性和隐私性。
- [**Clerk**](https://go.clerk.com/exgqLG0):对于需要更高级用户管理功能的用户,LobeChat 还支持 `Clerk`,一个现代化的用户管理平台。`Clerk` 提供了更丰富的功能,如多因素认证 (MFA)、白名单、用户管理、登录活动监控等。通过 `Clerk`,您可以获得更高的安全性和灵活性,轻松应对生产级的用户管理需求。
您可以根据自己的需求,选择合适的用户管理方案。
<div align="right">
[![][back-to-top]](#readme-top)
</div>
[![][image-feat-pwa]][docs-feat-pwa]
### `8` [渐进式 Web 应用 (PWA)][docs-feat-pwa]
### `11` [渐进式 Web 应用 (PWA)][docs-feat-pwa]
我们深知在当今多设备环境下为用户提供无缝体验的重要性。为此,我们采用了渐进式 Web 应用 [PWA](https://support.google.com/chrome/answer/9658361) 技术,
这是一种能够将网页应用提升至接近原生应用体验的现代 Web 技术。通过 PWA,LobeChat 能够在桌面和移动设备上提供高度优化的用户体验,同时保持轻量级和高性能的特点。
@@ -291,7 +351,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
[![][image-feat-mobile]][docs-feat-mobile]
### `9` [移动设备适配][docs-feat-mobile]
### `12` [移动设备适配][docs-feat-mobile]
针对移动设备进行了一系列的优化设计,以提升用户的移动体验。目前,我们正在对移动端的用户体验进行版本迭代,以实现更加流畅和直观的交互。如果您有任何建议或想法,我们非常欢迎您通过 GitHub Issues 或者 Pull Requests 提供反馈。
@@ -303,7 +363,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
[![][image-feat-theme]][docs-feat-theme]
### `10` [自定义主题][docs-feat-theme]
### `13` [自定义主题][docs-feat-theme]
作为设计工程师出身,LobeChat 在界面设计上充分考虑用户的个性化体验,因此引入了灵活多变的主题模式,其中包括日间的亮色模式和夜间的深色模式。
除了主题模式的切换,还提供了一系列的颜色定制选项,允许用户根据自己的喜好来调整应用的主题色彩。无论是想要沉稳的深蓝,还是希望活泼的桃粉,或者是专业的灰白,用户都能够在 LobeChat 中找到匹配自己风格的颜色选择。
@@ -367,9 +427,9 @@ LobeChat 提供了 Vercel 的 自托管版本 和 [Docker 镜像][docker-release
>
> 完整教程请查阅 [📘 构建属于自己的 Lobe Chat][docs-self-hosting]
### `A` 使用 Vercel、Zeabur Sealos 部署
### `A` 使用 Vercel、Zeabur Sealos 或 阿里云计算巢 部署
如果想在 Vercel Zeabur 上部署该服务,可以按照以下步骤进行操作:
如果想在 Vercel Zeabur 或 阿里云 上部署该服务,可以按照以下步骤进行操作:
- 准备好你的 [OpenAI API Key](https://platform.openai.com/account/api-keys) 。
- 点击下方按钮开始部署: 直接使用 GitHub 账号登录即可,记得在环境变量页填入 `OPENAI_API_KEY` (必填) and `ACCESS_CODE`(推荐);
@@ -378,9 +438,9 @@ LobeChat 提供了 Vercel 的 自托管版本 和 [Docker 镜像][docker-release
<div align="center">
| 使用 Vercel 部署 | 使用 Zeabur 部署 | 使用 Sealos 部署 |
| :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: |
| [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] |
| 使用 Vercel 部署 | 使用 Zeabur 部署 | 使用 Sealos 部署 | 使用阿里云计算巢部署 |
| :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: | :-----------------------------------------------------------------------: |
| [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] | [![][deploy-on-alibaba-cloud-button-image]][deploy-on-alibaba-cloud-link] |
</div>
@@ -477,9 +537,9 @@ API Key 是使用 LobeChat 进行大语言模型会话的必要信息,本节
如果你发现注册 OpenAI 账户或者绑定外币信用卡比较麻烦,可以考虑借助一些知名的 OpenAI 第三方代理商来获取 API Key,这可以有效降低获取 OpenAI API Key 的门槛。但与此同时,一旦使用三方服务,你可能也需要承担潜在的风险,
请根据你自己的实际情况自行决策。以下是常见的第三方模型代理商列表,供你参考:
| | 服务商 | 特性说明 | Proxy 代理地址 | 链接 |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------------------------------------------------------------- | ------------------------- | ------------------------------- |
| <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/296272721-c3ac0bf3-e433-4496-89c4-ebdc20689c17.jpg" width="48" /> | **AiHubMix** | 使用 OpenAI 企业接口,全站模型价格为官方 **6 折**(含 GPT-4 | `https://aihubmix.com/v1` | [获取](https://lobe.li/XHnZIUP) |
| | 服务商 | 特性说明 | Proxy 代理地址 | 链接 |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | --------------------------------------------------------------- | ------------------------- | ------------------------------- |
| <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/296272721-c3ac0bf3-e433-4496-89c4-ebdc20689c17.jpg" width="48" /> | **AiHubMix** | 使用 OpenAI 企业接口,全站模型价格为官方 **86 折**(含 GPT-4 | `https://aihubmix.com/v1` | [获取](https://lobe.li/XHnZIUP) |
> \[!WARNING]
>
@@ -648,11 +708,12 @@ $ pnpm run dev
</details>
Copyright © 2023 [LobeHub][profile-link]. <br />
This project is [MIT](./LICENSE) licensed.
This project is [Apache 2.0](./LICENSE) licensed.
<!-- LINK GROUP -->
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
[blog]: https://lobehub.com/zh/blog
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/chat_preview_lobehub_com_chat.html
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
@@ -666,6 +727,8 @@ This project is [MIT](./LICENSE) licensed.
[codespaces-shield]: https://github.com/codespaces/badge.svg
[deploy-button-image]: https://vercel.com/button
[deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
[deploy-on-alibaba-cloud-button-image]: https://service-info-public.oss-cn-hangzhou.aliyuncs.com/computenest-en.svg
[deploy-on-alibaba-cloud-link]: https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=LobeChat%E7%A4%BE%E5%8C%BA%E7%89%88
[deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
[deploy-on-sealos-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
[deploy-on-zeabur-button-image]: https://zeabur.com/button.svg
@@ -679,10 +742,14 @@ This project is [MIT](./LICENSE) licensed.
[docker-release-shield]: https://img.shields.io/docker/v/lobehub/lobe-chat?color=369eff&label=docker&labelColor=black&logo=docker&logoColor=white&style=flat-square
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
[docs]: https://lobehub.com/zh/docs/usage/start
[docs-dev-guide]: https://github.com/lobehub/lobe-chat/wiki/index
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
[docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
[docs-feat-auth]: https://lobehub.com/docs/usage/features/auth
[docs-feat-database]: https://lobehub.com/docs/usage/features/database
[docs-feat-knowledgebase]: https://lobehub.com/blog/knowledge-base
[docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
[docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
[docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
@@ -692,7 +759,7 @@ This project is [MIT](./LICENSE) licensed.
[docs-feat-theme]: https://lobehub.com/docs/usage/features/theme
[docs-feat-tts]: https://lobehub.com/docs/usage/features/tts
[docs-feat-vision]: https://lobehub.com/docs/usage/features/vision
[docs-functionc-call]: https://platform.openai.com/docs/guides/function-calling
[docs-functionc-call]: https://lobehub.com/zh/blog/openai-function-call
[docs-lighthouse]: https://github.com/lobehub/lobe-chat/wiki/Lighthouse.zh-CN
[docs-plugin-dev]: https://lobehub.com/docs/usage/plugins/development
[docs-self-hosting]: https://lobehub.com/docs/self-hosting/start
@@ -707,13 +774,14 @@ This project is [MIT](./LICENSE) licensed.
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-chat/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
[github-contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-chat?color=c4f042&labelColor=black&style=flat-square
[github-document-link]: https://lobehub.com/docs
[github-forks-link]: https://github.com/lobehub/lobe-chat/network/members
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat?color=8ae8ff&labelColor=black&style=flat-square
[github-hello-shield]: https://abroad.hellogithub.com/v1/widgets/recommend.svg?rid=39701baf5a734cb894ec812248a5655a&claim_uid=HxYvFN34htJzGCD&theme=dark&theme=neutral&theme=dark&theme=neutral
[github-hello-url]: https://hellogithub.com/repository/39701baf5a734cb894ec812248a5655a
[github-issues-link]: https://github.com/lobehub/lobe-chat/issues
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat?color=ff80eb&labelColor=black&style=flat-square
[github-license-link]: https://github.com/lobehub/lobe-chat/blob/main/LICENSE
[github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-chat?color=white&labelColor=black&style=flat-square
[github-license-shield]: https://img.shields.io/badge/license-apache%202.0-white?labelColor=black&style=flat-square
[github-project-link]: https://github.com/lobehub/lobe-chat/projects
[github-release-link]: https://github.com/lobehub/lobe-chat/releases
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
@@ -725,6 +793,9 @@ This project is [MIT](./LICENSE) licensed.
[github-trending-url]: https://trendshift.io/repositories/2256
[image-banner]: https://github.com/lobehub/lobe-chat/assets/28616219/9f155dff-4737-429f-9cad-a70a1a860c5f
[image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
[image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9
[image-feat-knowledgebase]: https://github.com/user-attachments/assets/77e58e1c-c82f-4341-b159-f4eeede9967f
[image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
[image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
[image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
@@ -734,7 +805,7 @@ This project is [MIT](./LICENSE) licensed.
[image-feat-theme]: https://gw.alipayobjects.com/zos/kitchen/pvus1lo%26Z7/darkmode.webp
[image-feat-tts]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/284072124-c9853d8d-f1b5-44a8-a305-45ebc0f6d19a.png
[image-feat-vision]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/284072129-382bdf30-e3d6-4411-b5a0-249710b8ba08.png
[image-overview]: https://github.com/lobehub/lobe-chat/assets/28616219/8b04c3c9-3d71-4fb4-bd9b-a4f415c5876d
[image-overview]: https://github.com/lobehub/lobe-chat/assets/17870709/56b95d48-f573-41cd-8b38-387bf88bc4bf
[image-star]: https://github.com/lobehub/lobe-chat/assets/17870709/cb06b748-513f-47c2-8740-d876858d7855
[issues-link]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
[lobe-chat-plugins]: https://github.com/lobehub/lobe-chat-plugins
@@ -754,6 +825,7 @@ This project is [MIT](./LICENSE) licensed.
[lobe-ui-github]: https://github.com/lobehub/lobe-ui
[lobe-ui-link]: https://www.npmjs.com/package/@lobehub/ui
[lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[official-site]: https://lobehub.com
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
[profile-link]: https://github.com/lobehub
@@ -776,5 +848,5 @@ This project is [MIT](./LICENSE) licensed.
[submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
[submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
[vercel-link]: https://chat-preview.lobehub.com
[vercel-shield]: https://img.shields.io/website?down_message=offline&label=vercel&labelColor=black&logo=vercel&style=flat-square&up_message=online&url=https%3A%2F%2Fchat-preview.lobehub.com
[vercel-shield-badge]: https://img.shields.io/website?down_message=offline&label=try%20lobechat&labelColor=black&logo=vercel&style=for-the-badge&up_message=online&url=https%3A%2F%2Fchat-preview.lobehub.com
[vercel-shield]: https://img.shields.io/badge/vercel-online-55b467?labelColor=black&logo=vercel&style=flat-square
[vercel-shield-badge]: https://img.shields.io/badge/TRY%20LOBECHAT-ONLINE-55b467?labelColor=black&logo=vercel&style=for-the-badge
+11
View File
@@ -0,0 +1,11 @@
coverage:
status:
project:
default: off
server:
flags:
- server
app:
flags:
- app
patch: off
+11 -11
View File
@@ -4,14 +4,14 @@ This document aims to guide developers on how to develop a complete feature requ
We will use the implementation of sessionGroup as an example: [✨ feat: add session group manager](https://github.com/lobehub/lobe-chat/pull/1055), and explain the complete implementation process through the following six main sections:
1. Data Model / Database Definition
2. Service Implementation / Model Implementation
3. Frontend Data Flow Store Implementation
4. UI Implementation and Action Binding
5. Data Migration
6. Data Import and Export
1. [Data Model / Database Definition](#1-data-model--database-definition)
2. [Service Implementation / Model Implementation](#2-service-implementation--model-implementation)
3. [Frontend Data Flow Store Implementation](#3-frontend-data-flow-store-implementation)
4. [UI Implementation and Action Binding](#4-ui-implementation-and-action-binding)
5. [Data Migration](#5-data-migration)
6. [Data Import and Export](#6-data-import-and-export)
## 1. Database Section
## 1. Data Model / Database Definition
To implement the Session Group feature, it is necessary to define the relevant data model and indexes at the database level.
@@ -119,7 +119,7 @@ As a result, you can now view the `sessionGroups` table in the `LOBE_CHAT_DB` in
![](https://github.com/lobehub/lobe-chat/assets/28616219/aea50f66-4060-4a32-88c8-b3c672d05be8)
## 2. Model and Service Section
## 2. Service Implementation / Model Implementation
### Define Model
@@ -176,7 +176,7 @@ class SessionService {
}
```
## 3. Store Action Section
## 3. Frontend Data Flow Store Implementation
In the LobeChat application, the Store module is used to manage the frontend state of the application. The Actions within it are functions that trigger state updates, usually by calling methods in the service layer to perform actual data processing operations and then updating the state in the Store. We use `zustand` as the underlying dependency for the Store module. For a detailed practical introduction to state management, you can refer to [📘 Best Practices for State Management](../State-Management/State-Management-Intro.zh-CN.md).
@@ -351,7 +351,7 @@ Since all data retrieval in the UI is implemented using syntax like `useSessionS
>
> If you are not familiar with the concept and functionality of selectors, you can refer to the section [📘 Data Storage and Retrieval Module](./State-Management-Selectors.en-US) for relevant information.
## IV. UI Section
## 4. UI Implementation and Action Binding
Bind Store Action in the UI component to implement interactive logic, for example `CreateGroupModal`:
@@ -570,7 +570,7 @@ export class LocalDB extends Dexie {
This is our data migration strategy. When performing the migration, it is essential to ensure the correctness of the migration script and validate the migration results through thorough testing.
## VI. Data Import and Export
## 6. Data Import and Export
In LobeChat, the data import and export feature is designed to ensure that users can migrate their data between different devices. This includes session, topic, message, and settings data. In the implementation of the Session Group feature, we also need to handle data import and export to ensure that the complete exported data can be restored exactly the same on other devices.
+10 -10
View File
@@ -4,14 +4,14 @@
我们将以 sessionGroup 的实现为示例:[✨ feat: add session group manager](https://github.com/lobehub/lobe-chat/pull/1055) , 通过以下六个主要部分来阐述完整的实现流程:
1. 数据模型 / 数据库定义
2. Service 实现 / Model 实现
3. 前端数据流 Store 实现
4. UI 实现与 action 绑定
5. 数据迁移
6. 数据导入导出
1. [数据模型 / 数据库定义](#一数据模型--数据库定义)
2. [Service 实现 / Model 实现](#二service-实现--model-实现)
3. [前端数据流 Store 实现](#三前端数据流-store-实现)
4. [UI 实现与 action 绑定](#四ui-实现与-action-绑定)
5. [数据迁移](#五数据迁移)
6. [数据导入导出](#六数据导入导出)
## 一、数据库部分
## 一、数据模型 / 数据库定义
为了实现 Session Group 功能,首先需要在数据库层面定义相关的数据模型和索引。
@@ -119,7 +119,7 @@ export class LocalDB extends Dexie {
![](https://github.com/lobehub/lobe-chat/assets/28616219/aea50f66-4060-4a32-88c8-b3c672d05be8)
## 二、Model 与 Service 部分
## 二、Service 实现 / Model 实现
### 定义 Model
@@ -176,7 +176,7 @@ class SessionService {
}
```
## 三、Store Action 部分
## 三、前端数据流 Store 实现
在 LobeChat 应用中,Store 是用于管理应用前端状态的模块。其中的 Action 是触发状态更新的函数,通常会调用服务层的方法来执行实际的数据处理操作,然后更新 Store 中的状态。我们采用了 `zustand` 作为 Store 模块的底层依赖,对于状态管理的详细实践介绍,可以查阅 [📘 状态管理最佳实践](../State-Management/State-Management-Intro.zh-CN.md)
@@ -351,7 +351,7 @@ const customSessionGroups = (s: SessionStore): CustomSessionGroup[] => s.customS
>
> 如果你对 Selectors 的概念和功能不太了解,可以查阅 [📘 数据存储取数模块](../State-Management/State-Management-Selectors.zh-CN.md) 部分了解相关内容。
## 四、UI 部分
## 四、UI 实现与 action 绑定
在 UI 组件中绑定 Store Action 实现交互逻辑,例如 `CreateGroupModal`
+81 -13
View File
@@ -1,22 +1,26 @@
# Technical Development Getting Started Guide
Welcome to the LobeChat technical development getting started guide. LobeChat is an AI conversation application built on the Next.js framework, which integrates a series of technology stacks to achieve diverse functions and features. This guide will provide a detailed introduction to the main technical components of LobeChat and how to configure and use these technologies in your development environment.
Welcome to the LobeChat Technical Development Getting Started Guide. LobeChat is an AI conversation application built on the Next.js framework, incorporating a range of technology stacks to achieve diverse functionalities and features. This guide will detail the main technical components of LobeChat and how to configure and use these technologies in your development environment.
#### TOC
- [Basic Technology Stack](#basic-technology-stack)
- [Folder Directory Structure](#folder-directory-structure)
- [Local Development Environment Setup](#local-development-environment-setup)
- [Code Style and Contribution Guide](#code-style-and-contribution-guide)
- [Internationalization Implementation Guide](#internationalization-implementation-guide)
- [Appendix: Resources and References](#appendix-resources-and-references)
## Basic Technology Stack
The core technology stack of LobeChat includes:
The core technology stack of LobeChat is as follows:
- **Framework**: We have chosen [Next.js](https://nextjs.org/), a powerful React framework that provides key features such as server-side rendering, routing framework, and Router Handler for our project.
- **Component Library**: We use [Ant Design (antd)](https://ant.design/) as the basic component library, and also introduce [lobe-ui](https://github.com/lobehub/lobe-ui) as our business component library.
- **State Management**: We have opted for [zustand](https://github.com/pmndrs/zustand), a lightweight and easy-to-use state management library.
- **Framework**: We chose [Next.js](https://nextjs.org/), a powerful React framework that provides key features such as server-side rendering, routing framework, and Router Handler.
- **Component Library**: We use [Ant Design (antd)](https://ant.design/) as the basic component library, along with [lobe-ui](https://github.com/lobehub/lobe-ui) as our business component library.
- **State Management**: We selected [zustand](https://github.com/pmndrs/zustand), a lightweight and easy-to-use state management library.
- **Network Requests**: We use [swr](https://swr.vercel.app/), a React Hooks library for data fetching.
- **Routing**: For routing management, we directly use the solution provided by [Next.js](https://nextjs.org/) itself.
- **Internationalization**: We use [i18next](https://www.i18next.com/) to implement multi-language support for the application.
- **Routing**: For routing management, we directly use the solution provided by [Next.js](https://nextjs.org/).
- **Internationalization**: We use [i18next](https://www.i18next.com/) to support multiple languages in the application.
- **Styling**: We use [antd-style](https://github.com/ant-design/antd-style), a CSS-in-JS library that complements Ant Design.
- **Unit Testing**: We use [vitest](https://github.com/vitest-dev/vitest) for unit testing.
@@ -26,18 +30,82 @@ The folder directory structure of LobeChat is as follows:
```bash
src
├── app # Main logic of the application and code related to state management
├── app # Code related to the main logic and state management of the application
├── components # Reusable UI components
├── config # Application configuration files, including client-side environment variables and server-side environment variables
├── config # Application configuration files, including client and server environment variables
├── const # Used to define constants, such as action types, route names, etc.
├── features # Function modules related to business features, such as Agent settings, plugin development pop-ups, etc.
├── hooks # Custom utility hooks reused throughout the application
├── features # Business-related feature modules, such as Agent settings, plugin development pop-ups, etc.
├── hooks # Custom utility Hooks reusable across the application
├── layout # Application layout components, such as navigation bars, sidebars, etc.
├── locales # Language files for internationalization
├── services # Encapsulated backend service interfaces, such as HTTP requests
├── store # Zustand store for state management
├── types # TypeScript type definition files
└── utils # Common utility functions
└── utils # General utility functions
```
For a detailed introduction to the directory structure, please refer to: [Folder Directory Structure](Folder-Structure.en-US.md)
For a detailed introduction to the directory structure, see: [Folder Directory Structure](Folder-Structure.zh-CN.md)
## Local Development Environment Setup
This section outlines setting up the development environment and local development. Before starting, please ensure that Node.js, Git, and your chosen package manager (Bun or PNPM) are installed in your local environment.
We recommend using WebStorm as your integrated development environment (IDE).
1. **Get the code**: Clone the LobeChat code repository locally:
```bash
git clone https://github.com/lobehub/lobe-chat.git
```
2. **Install dependencies**: Enter the project directory and install the required dependencies:
```bash
cd lobe-chat
# If you use Bun
bun install
# If you use PNPM
pnpm install
```
3. **Run and debug**: Start the local development server and begin your development journey:
```bash
# Start the development server with Bun
bun run dev
# Visit http://localhost:3010 to view the application
```
> \[!IMPORTANT]\
> If you encounter the error "Could not find 'stylelint-config-recommended'" when installing dependencies with `npm`, please reinstall the dependencies using `pnpm` or `bun`.
Now, you should be able to see the welcome page of LobeChat in your browser. For a detailed environment setup guide, please refer to [Development Environment Setup Guide](Setup-Development.zh-CN.md).
## Code Style and Contribution Guide
In the LobeChat project, we place great emphasis on the quality and consistency of the code. For this reason, we have established a series of code style standards and contribution processes to ensure that every developer can smoothly participate in the project. Here are the code style and contribution guidelines you need to follow as a developer.
- **Code Style**: We use `@lobehub/lint` to unify the code style, including ESLint, Prettier, remarklint, and stylelint configurations. Please adhere to our code standards to maintain code consistency and readability.
- **Contribution Process**: We use gitmoji and semantic release for code submission and release processes. Please use gitmoji to annotate your commit messages and ensure compliance with the semantic release standards so that our automation systems can correctly handle version control and releases.
All contributions will undergo code review. Maintainers may suggest modifications or requirements. Please respond actively to review comments and make timely adjustments. We look forward to your participation and contribution.
For detailed code style and contribution guidelines, please refer to [Code Style and Contribution Guide](Contributing-Guidelines.zh-CN.md).
## Internationalization Implementation Guide
LobeChat uses `i18next` and `lobe-i18n` to implement multilingual support, ensuring a global user experience.
Internationalization files are located in `src/locales`, containing the default language (Chinese). We generate other language JSON files automatically through `lobe-i18n`.
If you want to add a new language, follow specific steps detailed in [New Language Addition Guide](../Internationalization/Add-New-Locale.zh-CN.md). We encourage you to participate in our internationalization efforts to provide better services to global users.
For a detailed guide on internationalization implementation, please refer to [Internationalization Implementation Guide](../Internationalization/Internationalization-Implementation.zh-CN.md).
## Appendix: Resources and References
To support developers in better understanding and using the technology stack of LobeChat, we provide a comprehensive list of resources and references — [LobeChat Resources and References](https://github.com/lobehub/lobe-chat/wiki/Resources.zh-CN) - Visit our maintained list of resources, including tutorials, articles, and other useful links.
We encourage developers to utilize these resources to deepen their learning and enhance their skills, join community discussions through [LobeChat GitHub Discussions](https://github.com/lobehub/lobe-chat/discussions) or [Discord](https://discord.com/invite/AYFPHvv2jT), ask questions, or share your experiences.
If you have any questions or need further assistance, please do not hesitate to contact us through the above channels.
+3
View File
@@ -76,6 +76,9 @@ bun run dev
# 访问 http://localhost:3010 查看应用
```
> \[!IMPORTANT]\
> 如果使用`npm`安装依赖出现`Could not find "stylelint-config-recommended"`错误,请使用 `pnpm` 或者 `bun` 重新安装依赖。
现在,你应该可以在浏览器中看到 LobeChat 的欢迎页面。详细的环境配置指南,请参考 [开发环境设置指南](Setup-Development.zh-CN.md)。
## 代码风格与贡献指南
+35
View File
@@ -0,0 +1,35 @@
# Proxy, if you need it
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# Other environment variables, as needed. You can refer to the environment variables configuration for the client version, making sure not to have ACCESS_CODE.
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
# ===========================
# ====== Preset config ======
# ===========================
# if no special requirements, no need to change
LOBE_PORT=3210
CASDOOR_PORT=8000
MINIO_PORT=9000
# Postgres related, which are the necessary environment variables for DB
LOBE_DB_NAME=lobechat
POSTGRES_PASSWORD=uWNZugjBqixf8dxC
# Casdoor secret
AUTH_CASDOOR_ID=a387a4892ee19b1a2249
AUTH_CASDOOR_SECRET=dbf205949d704de81b0b5b3603174e23fbecc354
# MinIO S3 configuration
MINIO_ROOT_USER=YOUR_MINIO_USER
MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
# Configure the bucket information of MinIO
MINIO_LOBE_BUCKET=lobe
S3_ACCESS_KEY_ID=soaucnP8Bip0TDdUjxng
S3_SECRET_ACCESS_KEY=ZPUzvY34umfcfxvWKSv0P00vczVMB6YmgJS5J9eO
+36
View File
@@ -0,0 +1,36 @@
# Proxy,如果你需要的话(比如你使用 GitHub 作为鉴权服务提供商)
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# 其他环境变量,视需求而定,可以参照客户端版本的环境变量配置,注意不要有 ACCESS_CODE
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
# ===================
# ===== 预设配置 =====
# ===================
# 如没有特殊需要不用更改
LOBE_PORT=3210
CASDOOR_PORT=8000
MINIO_PORT=9000
# Postgres 相关,也即 DB 必须的环境变量
LOBE_DB_NAME=lobechat
POSTGRES_PASSWORD=uWNZugjBqixf8dxC
# Casdoor secret
AUTH_CASDOOR_ID=a387a4892ee19b1a2249
AUTH_CASDOOR_SECRET=dbf205949d704de81b0b5b3603174e23fbecc354
# MinIO S3 配置
MINIO_ROOT_USER=YOUR_MINIO_USER
MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
# 在下方配置 minio 中添加的桶
MINIO_LOBE_BUCKET=lobe
S3_ACCESS_KEY_ID=soaucnP8Bip0TDdUjxng
S3_SECRET_ACCESS_KEY=ZPUzvY34umfcfxvWKSv0P00vczVMB6YmgJS5J9eO
+105
View File
@@ -0,0 +1,105 @@
name: lobe-chat-database
services:
network-service:
image: alpine
container_name: lobe-network
ports:
- '${MINIO_PORT}:${MINIO_PORT}' # MinIO API
- '9001:9001' # MinIO Console
- '${CASDOOR_PORT}:${CASDOOR_PORT}' # Casdoor
- '${LOBE_PORT}:3210' # LobeChat
command: tail -f /dev/null
networks:
- lobe-network
postgresql:
image: pgvector/pgvector:pg16
container_name: lobe-postgres
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_DB=${LOBE_DB_NAME}'
- 'POSTGRES_PASSWORD=${POSTGRES_PASSWORD}'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
restart: always
networks:
- lobe-network
minio:
image: minio/minio
container_name: lobe-minio
network_mode: 'service:network-service'
volumes:
- './s3_data:/etc/minio/data'
environment:
- 'MINIO_ROOT_USER=${MINIO_ROOT_USER}'
- 'MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}'
- 'MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:${LOBE_PORT}'
restart: always
command: >
server /etc/minio/data --address ":${MINIO_PORT}" --console-address ":9001"
casdoor:
image: casbin/casdoor
container_name: lobe-casdoor
entrypoint: /bin/sh -c './server --createDatabase=true'
network_mode: 'service:network-service'
depends_on:
postgresql:
condition: service_healthy
environment:
RUNNING_IN_DOCKER: 'true'
driverName: 'postgres'
dataSourceName: 'user=postgres password=${POSTGRES_PASSWORD} host=postgresql port=5432 sslmode=disable dbname=casdoor'
origin: 'http://localhost:${CASDOOR_PORT}'
runmode: 'dev'
volumes:
- ./init_data.json:/init_data.json
lobe:
image: lobehub/lobe-chat-database
container_name: lobe-chat
network_mode: 'service:network-service'
depends_on:
postgresql:
condition: service_healthy
network-service:
condition: service_started
minio:
condition: service_started
casdoor:
condition: service_started
environment:
- 'APP_URL=http://localhost:3210'
- 'NEXT_AUTH_SSO_PROVIDERS=casdoor'
- 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
- 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
- 'AUTH_URL=http://localhost:${LOBE_PORT}/api/auth'
- 'AUTH_CASDOOR_ISSUER=http://localhost:${CASDOOR_PORT}'
- 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
- 'S3_ENDPOINT=http://localhost:${MINIO_PORT}'
- 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
- 'S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}'
- 'S3_ENABLE_PATH_STYLE=1'
- 'LLM_VISION_IMAGE_USE_BASE64=1'
env_file:
- .env
restart: always
volumes:
data:
driver: local
s3_data:
driver: local
networks:
lobe-network:
driver: bridge
+777
View File
@@ -0,0 +1,777 @@
{
"adapters": [
{
"owner": "built-in",
"name": "user-adapter-built-in",
"createdTime": "2024-09-09T09:26:13Z",
"table": "casbin_user_rule",
"useSameDb": true,
"type": "",
"databaseType": "",
"host": "",
"port": 0,
"user": "",
"password": "",
"database": ""
},
{
"owner": "built-in",
"name": "api-adapter-built-in",
"createdTime": "2024-09-09T09:26:12Z",
"table": "casbin_api_rule",
"useSameDb": true,
"type": "",
"databaseType": "",
"host": "",
"port": 0,
"user": "",
"password": "",
"database": ""
}
],
"applications": [
{
"owner": "admin",
"name": "app-built-in",
"createdTime": "2024-09-09T09:26:06Z",
"displayName": "LobeChat",
"logo": "https://lobehub.com/icon-192x192.png",
"homepageUrl": "https://lobehub.com",
"description": "LobeChat",
"organization": "built-in",
"cert": "cert-built-in",
"headerHtml": "",
"enablePassword": true,
"enableSignUp": true,
"enableSigninSession": false,
"enableAutoSignin": false,
"enableCodeSignin": false,
"enableSamlCompress": false,
"enableSamlC14n10": false,
"enableSamlPostBinding": false,
"enableWebAuthn": false,
"enableLinkWithEmail": true,
"orgChoiceMode": "",
"samlReplyUrl": "",
"providers": [],
"signinMethods": [
{
"name": "Password",
"displayName": "Password",
"rule": "All"
}
],
"signupItems": [
{
"name": "ID",
"visible": false,
"required": true,
"prompted": false,
"customCss": "",
"label": "",
"placeholder": "",
"regex": "",
"rule": "Random"
},
{
"name": "Username",
"visible": true,
"required": true,
"prompted": false,
"customCss": "",
"label": "",
"placeholder": "",
"regex": "",
"rule": "None"
},
{
"name": "Display name",
"visible": true,
"required": true,
"prompted": false,
"customCss": "",
"label": "",
"placeholder": "",
"regex": "",
"rule": "None"
},
{
"name": "Password",
"visible": true,
"required": true,
"prompted": false,
"customCss": "",
"label": "",
"placeholder": "",
"regex": "",
"rule": "None"
},
{
"name": "Confirm password",
"visible": true,
"required": true,
"prompted": false,
"customCss": "",
"label": "",
"placeholder": "",
"regex": "",
"rule": "None"
},
{
"name": "Signup button",
"visible": true,
"required": false,
"prompted": false,
"customCss": "",
"label": "",
"placeholder": "",
"regex": "",
"rule": ""
}
],
"signinItems": [
{
"name": "Back button",
"visible": true,
"label": "",
"customCss": ".back-button {\n top: 65px;\n left: 15px;\n position: absolute;\n}\n.back-inner-button{}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Languages",
"visible": true,
"label": "",
"customCss": ".login-languages {\n top: 55px;\n right: 5px;\n position: absolute;\n}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Logo",
"visible": true,
"label": "",
"customCss": ".login-logo-box {}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Signin methods",
"visible": true,
"label": "",
"customCss": ".signin-methods {}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Username",
"visible": true,
"label": "",
"customCss": ".login-username {}\n.login-username-input{}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Password",
"visible": true,
"label": "",
"customCss": ".login-password {}\n.login-password-input{}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Agreement",
"visible": true,
"label": "",
"customCss": ".login-agreement {}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Forgot password?",
"visible": true,
"label": "",
"customCss": ".login-forget-password {\n display: inline-flex;\n justify-content: space-between;\n width: 320px;\n margin-bottom: 25px;\n}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Login button",
"visible": true,
"label": "",
"customCss": ".login-button-box {\n margin-bottom: 5px;\n}\n.login-button {\n width: 100%;\n}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Signup link",
"visible": true,
"label": "",
"customCss": ".login-signup-link {\n margin-bottom: 24px;\n display: flex;\n justify-content: end;\n}",
"placeholder": "",
"rule": "None",
"isCustom": false
},
{
"name": "Providers",
"visible": true,
"label": "",
"customCss": ".provider-img {\n width: 30px;\n margin: 5px;\n}\n.provider-big-img {\n margin-bottom: 10px;\n}",
"placeholder": "",
"rule": "small",
"isCustom": false
}
],
"grantTypes": ["authorization_code"],
"organizationObj": null,
"certPublicKey": "",
"tags": [],
"samlAttributes": null,
"isShared": false,
"clientId": "a387a4892ee19b1a2249",
"clientSecret": "dbf205949d704de81b0b5b3603174e23fbecc354",
"redirectUris": ["http://localhost:3210/api/auth/callback/casdoor"],
"tokenFormat": "JWT",
"tokenSigningMethod": "",
"tokenFields": [],
"expireInHours": 168,
"refreshExpireInHours": 0,
"signupUrl": "",
"signinUrl": "",
"forgetUrl": "",
"affiliationUrl": "",
"termsOfUse": "",
"signupHtml": "",
"signinHtml": "",
"themeData": null,
"footerHtml": "",
"formCss": "",
"formCssMobile": "",
"formOffset": 2,
"formSideHtml": "",
"formBackgroundUrl": "",
"failedSigninLimit": 5,
"failedSigninFrozenTime": 15
}
],
"certs": [
{
"owner": "admin",
"name": "cert-built-in",
"createdTime": "2024-09-09T09:26:06Z",
"displayName": "Built-in Cert",
"scope": "JWT",
"type": "x509",
"cryptoAlgorithm": "RS256",
"bitSize": 4096,
"expireInYears": 20,
"certificate": "-----BEGIN CERTIFICATE-----\nMIIE3TCCAsWgAwIBAgIDAeJAMA0GCSqGSIb3DQEBCwUAMCgxDjAMBgNVBAoTBWFk\nbWluMRYwFAYDVQQDEw1jZXJ0LWJ1aWx0LWluMB4XDTI0MDkwOTA5MjYxMVoXDTQ0\nMDkwOTA5MjYxMVowKDEOMAwGA1UEChMFYWRtaW4xFjAUBgNVBAMTDWNlcnQtYnVp\nbHQtaW4wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC3EnylZ2VurCm4\ngVtZHBUw67qvuKoYuU9whqaJr2UQEboIX4ca+FtZCjDgcBoD80lwSoYrcKpTG+DI\nVEMDznUHOjKwongRWclV1jeE3jZqObtmG9872yt/WX+nxQLyDrk+nUGhci6Qrhgo\nYToN1DYaMqMV1Pi8catx8S0W3gg+ilb9mG3xdFpQo89o84mJhajTE/5/0jBuQ50D\nx8CRolpRWjZ6i9RNVfFQglei+aW0RNf1PY6RqMkxc/Hy0XwXf/bjM5Ax7Aajwteh\nx0Q1zeUaRMMhFu6REtz345oJdLJpUkpFwJN4dPQ35a0tqnjkD1MLZjvBhSgOt5IP\nAJA1HmcR83RMBS8B3iV6y/clPjr02cjyasORy+kL/aFMfZfwvuRWX1NqRE99+rUT\nlPszH2SQi7PCUItQK72nnMYWBMXgyS8/Mra48q7LDAB/ZQnWuEG1+P1SdsQUWM2U\naxkgjmfMNATVAgufrLOcOZDxAwVS7+quCF5f/QPTWaFqz5ofcpoUlf0iriv/k1mi\nl7OghX0eqyLI2cCSma+dgB1eMni91eDCLVRT25mGDYreFjkpAwpMx2uaBk5e6ffT\n2jmZ2Zp9iCrUomLXDNiwY2wZDClcDKFiHNhNPAN3IbvBC3c6qpt0dLsWvGYW2IQT\nTnI71r/YY1XN/mTa4t/zwI+/kghjMQIDAQABoxAwDjAMBgNVHRMBAf8EAjAAMA0G\nCSqGSIb3DQEBCwUAA4ICAQBJUMBYJXnNihlGA2NMFIZMlsnW+5tjUqqK/Pv+oSpt\nrqZxwDKFZL0NMxd4pVnLxIdU5HEcN2e01Xyqlaf5Tm3BZN6MaRVZAIRVfvxcNESQ\nYA0jSFjsJzZUFGIQf8P9a5u+7qqSmj4tZx4XaRjOGSOf8t2RMJDmAbUeydLiD8ny\nCcxTzetmyYky8J3NBUoYGRbwU6KKbkxHbT35QheAb3jT4CELopLZ57Aa5Fb8xTjQ\n6tNqwZ+Z3993FkTOWPYLNLM1l46oN3g9yVY4ncGjUJkxsLTpAXB4I+wdqeew9XXe\nxWNcY3cWWjA5VXgCNzntkPFM1D5IWkgP8MYVCvdv0Unfo78PahwVMoQMnDG4xLuS\n50gVKpukHLZQJNFPF0X4u/JeXauKPv/w7ssTTAK+8RIBYxBXQ72zDJNHyTqldR4e\nfPHZfcW7OTmUr5FGNZThyW7ipvZRWcLM4u4IaWF2ncllOSqAXs1gDxkk201J7Lrb\noZOjC3zgxE9HTCXpiszOAt5I38++5ufE3/hJW3ckz0jaJDeFqUphnn8eQhXPSwtC\nR8TL4ZpXSAFEpwahG+fCfZDK2KyPME33eXV3jtsYf0QHerYiMnP+tf1vAk3qtOzo\nE6Iv16fpBUvshk1Gm6E6bdhsP0hCrMwV4dm8uC3S52qcFiWZ6AC/HURaMbY+/lOs\n0A==\n-----END CERTIFICATE-----\n",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIJKAIBAAKCAgEAtxJ8pWdlbqwpuIFbWRwVMOu6r7iqGLlPcIamia9lEBG6CF+H\nGvhbWQow4HAaA/NJcEqGK3CqUxvgyFRDA851BzoysKJ4EVnJVdY3hN42ajm7Zhvf\nO9srf1l/p8UC8g65Pp1BoXIukK4YKGE6DdQ2GjKjFdT4vHGrcfEtFt4IPopW/Zht\n8XRaUKPPaPOJiYWo0xP+f9IwbkOdA8fAkaJaUVo2eovUTVXxUIJXovmltETX9T2O\nkajJMXPx8tF8F3/24zOQMewGo8LXocdENc3lGkTDIRbukRLc9+OaCXSyaVJKRcCT\neHT0N+WtLap45A9TC2Y7wYUoDreSDwCQNR5nEfN0TAUvAd4lesv3JT469NnI8mrD\nkcvpC/2hTH2X8L7kVl9TakRPffq1E5T7Mx9kkIuzwlCLUCu9p5zGFgTF4MkvPzK2\nuPKuywwAf2UJ1rhBtfj9UnbEFFjNlGsZII5nzDQE1QILn6yznDmQ8QMFUu/qrghe\nX/0D01mhas+aH3KaFJX9Iq4r/5NZopezoIV9HqsiyNnAkpmvnYAdXjJ4vdXgwi1U\nU9uZhg2K3hY5KQMKTMdrmgZOXun309o5mdmafYgq1KJi1wzYsGNsGQwpXAyhYhzY\nTTwDdyG7wQt3OqqbdHS7FrxmFtiEE05yO9a/2GNVzf5k2uLf88CPv5IIYzECAwEA\nAQKCAgEAtGj7fOTQCKiQ1MplgwMxvuwPJWwN9B9qMbIAHF9EcPmHIwlA00s8ehqY\n4BSZDpuKG6bVYam9r/khI0omYHHs0hqAKaFyQWcCChz4yW9SoIwUKSP+cbYiv3Ur\nX+G+bVwlIZdHPhqP2PQ3ylNGKqqeRmLwZGtkVBCQq9DIZmiYJ0mdQHwenHvVJPLJ\nStv1Bhk5rgleHAi+wWrQKRGIq/walWEZntp9dVjkXjqUsn7i1SuixoLLJK/41Us1\ne90FNQNeAbimuQun32n7peoBRiSJScHJqao3n6+/ImqhOgBOcYwutV559ZMLuKoW\nZ5I/YD/ZzroI2USnnRk6Tp53fmFfn55JyLRjXf82jGeavScNEpTfvE+qT9SGOSA9\nF8YkEzsnAOM6tov2NEkY9Ofjh25fc4QAoqbQY8HdIYUwB+BHU63Hhdgz5VVy2f+v\nXJIy4z86QlWsXfQkimz02+AXD2jOSMH+ne3Qs3Z6l2hHhcxJj+lnp2qUXI6iYBOI\nVkQ8D3WPpBldZ5cOGCN0MC/gcv7WTiLDdl4nLba+qeqTFCO2Ygc/knMU7RvZew5U\nCIvxdvkAwjpvY7xN6er/C0jSp57sE2IoqE2QaNBC9YCn34sWgSDb2AkDvmhdSixD\nNCumHKp0at4e13urQTduHKPTZiUkAKG93vcuLONFmDAco0Mp4AECggEBAN1OgCsj\nyucLi5ZSHDYc9yTOKW7nGYHOGIMXdHaPCe+8R/3aW+NwV6QzyHO4WFr6p21JcOse\nldmYlwLRDBaCfteodLGLGrOS9DG8lN5i4F0hiRKwkOma9bRwNNESVLLp9TvXaxVN\nhzofNhnqVBRhP9jEPREVUk3iN4D2+GifEGBVIRqvrPEdN2c2fdIKC8nucmQGg02I\nQxfLRK8IL2COUgoB3f1lf/w6brIySn4sbctw4KSyGPsrrWCCQrARqcZ9gyVCKV6t\n/SMJcvMQ0QG43cQxZK6P21gyd5sRWryo74lQSEWnvt9v6zfMDADMcxErzH6ZCLg1\naBvBwv98vkeClEECggEBANPFjvl8EDx/dSGDBcpFyAt6IV0fijXpzxS4/14Y0J1k\nxBsHfkpeuH65npbHcH9SFqQ/3Nyc6vTA4KVNroH5eyo2Y+PY1NjPOoJTiFf57W/X\ntduukaqUBZ3NsHG176jDgHYyrZPlEBRHquSDxUjkVdx8uQDxL8r6OrF4RgVduk1p\nytMadyXWwJ6AGtSgmHIUH5LMImfrxwh0X8GmzaG0nfjUe8kIzEJIU8xNi7K13UO+\n3B/9uI3fOGYQ/NrCv1RDj49qIj/2NpnSAfeUxaKICZ890ffMC9xJTFrR+QmaqtSc\n7uir0UXx1qH1Tx7HdAHR7Dk4cHW7HhrK33ULcc0eUvECggEAN96Wis2JbtTCU5u9\nFYgweHE3kpDzJosCMy4br8aiqows3JBgvEVjSsfr5hL281juJa/xutnI2Nsl3Icr\n9w7QuN8FPsEwZ39E+L10E8SAgeJyeW5r1x3Qw9HD87gd++EGkSnsFb+x0OGKRfab\nbV2zwaShCgwI8DKY8ozm33qwprE3H0aUcXZ/wyXFk94HZd41sLzYLx2kWoBtgYae\nd1DWs0IPaeZS7jlOMtxxY/MRcNe5TrrLhbVcGs4nyc1bwAl1r1VJnmZsTokXJPfs\n2/NwwRP7J/qXVGfBPDugXZqEhnTnGfakQEI/7qErspPqxL367UbzJZYOB1veP6Od\nYe48QQKCAQBnb1UYEjqz8eU6Cw7m7xJ4WJy3KVKOZrbYfktsoF40oiUOtqg+luky\nLGODbcJKzcN1UiQENTildxfCZaDYpww7X/mGLkA37W+8fCRaJB6OxCN1O1y2njno\nC7EkuSJnoaW7FaGmXPlvjlmv55SSt8QgP2L1TNh1IadNS1uX/2Ghsgx487JCbxQB\n1rxEInSTM7UANGiRrZ23SXAD2/8P/nIyOUaEuKFbtowHe9DB5wY9spk9nuVnliGr\n6Jw4FWryM1WJTOORriaZFvQTAz1M13krqDxH9gfM/pgmu+wRftP1qPkf99vtd+PH\nk1OjyvOkd+4TPLfhKRXZLEHcn0xkTW1hAoIBAD+7+n2Q6dzwFVJLPcPrlQtusEkn\nLYvAZlHqMjIZQGaqhRzunxACOVgbu87CFuf19AxmYC3b45ZfmgCuVTOGXMkZgKGK\njZbyg/bm6XypCwiixC/AIrlU0NG+3uWUSEle+BzYnmYyiAquCLu4TiHFDPWorqfd\nvEz+skrB/2OQe1UWkr66gP0P41hpGFVgz6mFUfJjepYUAUe2X8VfK1zWA97eZzGq\ngQTfC3LeDn3RtEQY6NtBMjfsXRiwtWtJcrSVg8BFp6NJgp8CJAckg03K25UYe8tk\n/YKZaoWowmGQqx7QkJ5Kckz70dS3rWhb8IKcLiir1sLz9UtsQeiue+Q/Ezo=\n-----END RSA PRIVATE KEY-----\n"
}
],
"enforcers": [
{
"owner": "built-in",
"name": "user-enforcer-built-in",
"createdTime": "2024-09-09T09:26:13Z",
"updatedTime": "2024-09-09 09:26:13",
"displayName": "User Enforcer",
"description": "",
"model": "built-in/user-model-built-in",
"adapter": "built-in/user-adapter-built-in",
"modelCfg": null
},
{
"owner": "built-in",
"name": "api-enforcer-built-in",
"createdTime": "2024-09-09T09:26:12Z",
"updatedTime": "2024-09-09 09:26:12",
"displayName": "API Enforcer",
"description": "",
"model": "built-in/api-model-built-in",
"adapter": "built-in/api-adapter-built-in",
"modelCfg": null
}
],
"groups": [],
"invitations": [],
"ldaps": [
{
"id": "ldap-built-in",
"owner": "built-in",
"createdTime": "2024-09-09T09:26:12Z",
"serverName": "BuildIn LDAP Server",
"host": "example.com",
"port": 389,
"enableSsl": false,
"username": "cn=buildin,dc=example,dc=com",
"password": "123",
"baseDn": "ou=BuildIn,dc=example,dc=com",
"filter": "",
"filterFields": null,
"defaultGroup": "",
"autoSync": 0,
"lastSync": ""
}
],
"models": [
{
"owner": "built-in",
"name": "user-model-built-in",
"createdTime": "2024-09-09T09:26:13Z",
"displayName": "Built-in Model",
"description": "",
"modelText": "[request_definition]\nr = sub, obj, act\n\n[policy_definition]\np = sub, obj, act\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = g(r.sub, p.sub) \u0026\u0026 r.obj == p.obj \u0026\u0026 r.act == p.act"
},
{
"owner": "built-in",
"name": "api-model-built-in",
"createdTime": "2024-09-09T09:26:12Z",
"displayName": "API Model",
"description": "",
"modelText": "[request_definition]\nr = subOwner, subName, method, urlPath, objOwner, objName\n\n[policy_definition]\np = subOwner, subName, method, urlPath, objOwner, objName\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = (r.subOwner == p.subOwner || p.subOwner == \"*\") \u0026\u0026 \\\n (r.subName == p.subName || p.subName == \"*\" || r.subName != \"anonymous\" \u0026\u0026 p.subName == \"!anonymous\") \u0026\u0026 \\\n (r.method == p.method || p.method == \"*\") \u0026\u0026 \\\n (r.urlPath == p.urlPath || p.urlPath == \"*\") \u0026\u0026 \\\n (r.objOwner == p.objOwner || p.objOwner == \"*\") \u0026\u0026 \\\n (r.objName == p.objName || p.objName == \"*\") || \\\n (r.subOwner == r.objOwner \u0026\u0026 r.subName == r.objName)"
}
],
"organizations": [
{
"owner": "admin",
"name": "built-in",
"createdTime": "2024-09-09T09:26:04Z",
"displayName": "Built-in Organization",
"websiteUrl": "https://example.com",
"logo": "",
"logoDark": "",
"favicon": "https://cdn.casbin.org/img/casbin/favicon.ico",
"passwordType": "plain",
"passwordSalt": "",
"passwordOptions": ["AtLeast6"],
"countryCodes": ["US", "ES", "FR", "DE", "GB", "CN", "JP", "KR", "VN", "ID", "SG", "IN"],
"defaultAvatar": "https://cdn.casbin.org/img/casbin.svg",
"defaultApplication": "",
"tags": [],
"languages": ["en", "zh", "es", "fr", "de", "id", "ja", "ko", "ru", "vi", "pt"],
"themeData": null,
"masterPassword": "",
"defaultPassword": "",
"masterVerificationCode": "",
"initScore": 2000,
"enableSoftDeletion": false,
"isProfilePublic": false,
"useEmailAsUsername": false,
"enableTour": true,
"mfaItems": null,
"accountItems": [
{
"name": "Organization",
"visible": true,
"viewRule": "Public",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "ID",
"visible": true,
"viewRule": "Public",
"modifyRule": "Immutable",
"regex": ""
},
{
"name": "Name",
"visible": true,
"viewRule": "Public",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Display name",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Avatar",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "User type",
"visible": true,
"viewRule": "Public",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Password",
"visible": true,
"viewRule": "Self",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Email",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Phone",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Country code",
"visible": true,
"viewRule": "Public",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Country/Region",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Location",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Affiliation",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Title",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Homepage",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Bio",
"visible": true,
"viewRule": "Public",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Tag",
"visible": true,
"viewRule": "Public",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Signup application",
"visible": true,
"viewRule": "Public",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Roles",
"visible": true,
"viewRule": "Public",
"modifyRule": "Immutable",
"regex": ""
},
{
"name": "Permissions",
"visible": true,
"viewRule": "Public",
"modifyRule": "Immutable",
"regex": ""
},
{
"name": "Groups",
"visible": true,
"viewRule": "Public",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "3rd-party logins",
"visible": true,
"viewRule": "Self",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Properties",
"visible": true,
"viewRule": "Admin",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Is admin",
"visible": true,
"viewRule": "Admin",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Is forbidden",
"visible": true,
"viewRule": "Admin",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Is deleted",
"visible": true,
"viewRule": "Admin",
"modifyRule": "Admin",
"regex": ""
},
{
"name": "Multi-factor authentication",
"visible": true,
"viewRule": "Self",
"modifyRule": "Self",
"regex": ""
},
{
"name": "WebAuthn credentials",
"visible": true,
"viewRule": "Self",
"modifyRule": "Self",
"regex": ""
},
{
"name": "Managed accounts",
"visible": true,
"viewRule": "Self",
"modifyRule": "Self",
"regex": ""
},
{
"name": "MFA accounts",
"visible": true,
"viewRule": "Self",
"modifyRule": "Self",
"regex": ""
}
]
}
],
"payments": [],
"permissions": [
{
"owner": "built-in",
"name": "permission-built-in",
"createdTime": "2024-09-09T09:26:04Z",
"displayName": "Built-in Permission",
"description": "Built-in Permission",
"users": ["built-in/*"],
"groups": [],
"roles": [],
"domains": [],
"model": "user-model-built-in",
"adapter": "",
"resourceType": "Application",
"resources": ["app-built-in"],
"actions": ["Read", "Write", "Admin"],
"effect": "Allow",
"isEnabled": true,
"submitter": "admin",
"approver": "admin",
"approveTime": "2024-09-09T09:26:04Z",
"state": "Approved"
}
],
"plans": [],
"pricings": [],
"products": [],
"providers": [],
"records": [],
"resources": [],
"roles": [],
"sessions": [],
"subscriptions": [],
"syncers": [],
"tokens": [],
"transactions": [],
"users": [
{
"owner": "built-in",
"name": "admin",
"createdTime": "2024-09-09T09:26:05Z",
"updatedTime": "",
"deletedTime": "",
"id": "bbf2a176-203c-414c-8cdd-ec92b019e07a",
"externalId": "",
"type": "normal-user",
"password": "123",
"passwordSalt": "",
"passwordType": "plain",
"displayName": "Admin",
"firstName": "",
"lastName": "",
"avatar": "https://cdn.casbin.org/img/casbin.svg",
"avatarType": "",
"permanentAvatar": "",
"email": "admin@example.com",
"emailVerified": false,
"phone": "12345678910",
"countryCode": "US",
"region": "",
"location": "",
"address": [],
"affiliation": "Example Inc.",
"title": "",
"idCardType": "",
"idCard": "",
"homepage": "",
"bio": "",
"tag": "staff",
"language": "",
"gender": "",
"birthday": "",
"education": "",
"score": 2000,
"karma": 0,
"ranking": 1,
"balance": 0,
"currency": "",
"isDefaultAvatar": false,
"isOnline": false,
"isAdmin": true,
"isForbidden": false,
"isDeleted": false,
"signupApplication": "app-built-in",
"hash": "",
"preHash": "",
"accessKey": "",
"accessSecret": "",
"accessToken": "",
"createdIp": "127.0.0.1",
"lastSigninTime": "",
"lastSigninIp": "",
"github": "",
"google": "",
"qq": "",
"wechat": "",
"facebook": "",
"dingtalk": "",
"weibo": "",
"gitee": "",
"linkedin": "",
"wecom": "",
"lark": "",
"gitlab": "",
"adfs": "",
"baidu": "",
"alipay": "",
"casdoor": "",
"infoflow": "",
"apple": "",
"azuread": "",
"azureadb2c": "",
"slack": "",
"steam": "",
"bilibili": "",
"okta": "",
"douyin": "",
"line": "",
"amazon": "",
"auth0": "",
"battlenet": "",
"bitbucket": "",
"box": "",
"cloudfoundry": "",
"dailymotion": "",
"deezer": "",
"digitalocean": "",
"discord": "",
"dropbox": "",
"eveonline": "",
"fitbit": "",
"gitea": "",
"heroku": "",
"influxcloud": "",
"instagram": "",
"intercom": "",
"kakao": "",
"lastfm": "",
"mailru": "",
"meetup": "",
"microsoftonline": "",
"naver": "",
"nextcloud": "",
"onedrive": "",
"oura": "",
"patreon": "",
"paypal": "",
"salesforce": "",
"shopify": "",
"soundcloud": "",
"spotify": "",
"strava": "",
"stripe": "",
"tiktok": "",
"tumblr": "",
"twitch": "",
"twitter": "",
"typetalk": "",
"uber": "",
"vk": "",
"wepay": "",
"xero": "",
"yahoo": "",
"yammer": "",
"yandex": "",
"zoom": "",
"metamask": "",
"web3onboard": "",
"custom": "",
"webauthnCredentials": null,
"preferredMfaType": "",
"recoveryCodes": null,
"totpSecret": "",
"mfaPhoneEnabled": false,
"mfaEmailEnabled": false,
"invitation": "",
"invitationCode": "",
"faceIds": null,
"ldap": "",
"properties": {},
"roles": null,
"permissions": null,
"groups": null,
"lastSigninWrongTime": "",
"signinWrongTimes": 0,
"managedAccounts": null,
"mfaAccounts": null,
"needUpdatePassword": false
}
],
"webhooks": []
}
+34
View File
@@ -0,0 +1,34 @@
# Logto secret
AUTH_LOGTO_ID=
AUTH_LOGTO_SECRET=
AUTH_LOGTO_ISSUER=
# MinIO S3 configuration
MINIO_ROOT_USER=YOUR_MINIO_USER
MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
# Configure the bucket information of MinIO
MINIO_LOBE_BUCKET=lobe
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
# Proxy, if you need it
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# Other environment variables, as needed. You can refer to the environment variables configuration for the client version, making sure not to have ACCESS_CODE.
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
# ----- Other config -----
# if no special requirements, no need to change
LOBE_PORT=3210
LOGTO_PORT=3001
MINIO_PORT=9000
# Postgres related, which are the necessary environment variables for DB
LOBE_DB_NAME=lobechat
POSTGRES_PASSWORD=uWNZugjBqixf8dxC
@@ -0,0 +1,34 @@
# Logto 鉴权相关
AUTH_LOGTO_ID=
AUTH_LOGTO_SECRET=
AUTH_LOGTO_ISSUER=
# MinIO S3 配置
MINIO_ROOT_USER=YOUR_MINIO_USER
MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
# 在下方配置 minio 中添加的桶
MINIO_LOBE_BUCKET=lobe
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
# Proxy,如果你需要的话(比如你使用 GitHub 作为鉴权服务提供商)
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# 其他环境变量,视需求而定,可以参照客户端版本的环境变量配置,注意不要有 ACCESS_CODE
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
# ----- 相关配置 start -----
# 如没有特殊需要不用更改
LOBE_PORT=3210
LOGTO_PORT=3001
MINIO_PORT=9000
# Postgres 相关,也即 DB 必须的环境变量
LOBE_DB_NAME=lobechat
POSTGRES_PASSWORD=uWNZugjBqixf8dxC
@@ -0,0 +1,103 @@
name: lobe-chat-database
services:
network-service:
image: alpine
container_name: lobe-network
ports:
- '${MINIO_PORT}:${MINIO_PORT}' # MinIO API
- '9001:9001' # MinIO Console
- '${LOGTO_PORT}:${LOGTO_PORT}' # Logto
- '3002:3002' # Logto Admin
- '${LOBE_PORT}:3210' # LobeChat
command: tail -f /dev/null
networks:
- lobe-network
postgresql:
image: pgvector/pgvector:pg16
container_name: lobe-postgres
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_DB=${LOBE_DB_NAME}'
- 'POSTGRES_PASSWORD=${POSTGRES_PASSWORD}'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
restart: always
networks:
- lobe-network
minio:
image: minio/minio
container_name: lobe-minio
network_mode: 'service:network-service'
volumes:
- './s3_data:/etc/minio/data'
environment:
- 'MINIO_ROOT_USER=${MINIO_ROOT_USER}'
- 'MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}'
- 'MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:${LOBE_PORT}'
restart: always
command: >
server /etc/minio/data --address ":${MINIO_PORT}" --console-address ":9001"
logto:
image: svhd/logto
container_name: lobe-logto
network_mode: 'service:network-service'
depends_on:
postgresql:
condition: service_healthy
environment:
- 'TRUST_PROXY_HEADER=1'
- 'PORT=${LOGTO_PORT}'
- 'DB_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/logto'
- 'ENDPOINT=http://localhost:${LOGTO_PORT}'
- 'ADMIN_ENDPOINT=http://localhost:3002'
entrypoint: ['sh', '-c', 'npm run cli db seed -- --swe && npm start']
lobe:
image: lobehub/lobe-chat-database
container_name: lobe-chat
network_mode: 'service:network-service'
depends_on:
postgresql:
condition: service_healthy
network-service:
condition: service_started
minio:
condition: service_started
logto:
condition: service_started
environment:
- 'APP_URL=http://localhost:3210'
- 'NEXT_AUTH_SSO_PROVIDERS=logto'
- 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
- 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
- 'NEXTAUTH_URL=http://localhost:${LOBE_PORT}/api/auth'
- 'AUTH_LOGTO_ISSUER=http://localhost:${LOGTO_PORT}/oidc'
- 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
- 'S3_ENDPOINT=http://localhost:${MINIO_PORT}'
- 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
- 'S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}'
- 'S3_ENABLE_PATH_STYLE=1'
env_file:
- .env
restart: always
volumes:
data:
driver: local
s3_data:
driver: local
networks:
lobe-network:
driver: bridge
Binary file not shown.
+243
View File
@@ -0,0 +1,243 @@
#!/bin/bash
# ==================
# == Env settings ==
# ==================
# ======================
# == Process the args ==
# ======================
# 1. Default values of arguments
# Arg: -f
# Determine force download asserts, default is not
FORCE_DOWNLOAD=false
# Arg: -l or --lang
# Determine the language to show, default is en
LANGUAGE="en_US"
# Arg: --url
# Determine the source URL to download files
SOURCE_URL="https://raw.githubusercontent.com/lobehub/lobe-chat/main"
# 2. Parse script arguments
while getopts "fl:-:" opt; do
case $opt in
f)
FORCE_DOWNLOAD=true
;;
l)
LANGUAGE=$OPTARG
;;
-)
case "${OPTARG}" in
lang)
LANGUAGE="${!OPTIND}"
OPTIND=$(($OPTIND + 1))
;;
url)
SOURCE_URL="${!OPTIND}"
OPTIND=$(($OPTIND + 1))
;;
*)
echo "Usage: $0 [-f] [-l language|--lang language] [--url source]" >&2
exit 1
;;
esac
;;
*)
echo "Usage: $0 [-f] [-l language|--lang language] [--url source]" >&2
exit 1
;;
esac
done
# ===============
# == Variables ==
# ===============
# File list
SUB_DIR="docker-compose/local"
FILES=(
"$SUB_DIR/docker-compose.yml"
"$SUB_DIR/.env.example"
"$SUB_DIR/init_data.json"
"$SUB_DIR/s3_data.tar.gz"
)
# Supported languages and messages
# Arg: -l --lang
# If the language is not supported, default to English
# Function to show messages
show_message() {
local key="$1"
case $key in
downloading)
case $LANGUAGE in
zh_CN)
echo "正在下载文件..."
;;
*)
echo "Downloading files..."
;;
esac
;;
downloaded)
case $LANGUAGE in
zh_CN)
echo " 已经存在,跳过下载。"
;;
*)
echo " already exists, skipping download."
;;
esac
;;
extracted_success)
case $LANGUAGE in
zh_CN)
echo " 解压成功到目录:"
;;
*)
echo " extracted successfully to directory: "
;;
esac
;;
extracted_failed)
case $LANGUAGE in
zh_CN)
echo " 解压失败。"
;;
*)
echo " extraction failed."
;;
esac
;;
file_not_exists)
case $LANGUAGE in
zh_CN)
echo " 不存在。"
;;
*)
echo " does not exist."
;;
esac
;;
tips_run_command)
case $LANGUAGE in
zh_CN)
echo "您已经完成了所有配置文件的下载。请运行以下命令启动LobeChat:"
;;
*)
echo "You have completed downloading all configuration files. Please run this command to start LobeChat:"
;;
esac
;;
tips_show_documentation)
case $LANGUAGE in
zh_CN)
echo "完整的环境变量在'.env'中可以在文档中找到:"
;;
*)
echo "Full environment variables in the '.env' can be found at the documentation on "
;;
esac
;;
tips_show_documentation_url)
case $LANGUAGE in
zh_CN)
echo "https://lobehub.com/zh/docs/self-hosting/environment-variables"
;;
*)
echo "https://lobehub.com/docs/self-hosting/environment-variables"
;;
esac
;;
tips_warning)
case $LANGUAGE in
zh_CN)
echo "警告:不要在生产环境中使用此演示应用程序!!!"
;;
*)
echo "Warning: do not use this demo application in production!!!"
;;
esac
;;
esac
}
# Function to download files
download_file() {
local file_url="$1"
local local_file="$2"
if [ "$FORCE_DOWNLOAD" = false ] && [ -e "$local_file" ]; then
echo "$local_file" $(show_message "downloaded")
return 0
fi
wget -q --show-progress "$file_url" -O "$local_file"
}
extract_file() {
local file_name=$1
local target_dir=$2
if [ -e "$file_name" ]; then
tar -zxvf "$file_name" -C "$target_dir" > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "$file_name" $(show_message "extracted_success") "$target_dir"
else
echo "$file_name" $(show_message "extracted_failed")
exit 1
fi
else
echo "$file_name" $(show_message "file_not_exists")
exit 1
fi
}
# Define colors
declare -A colors
colors=(
[black]="\e[30m"
[red]="\e[31m"
[green]="\e[32m"
[yellow]="\e[33m"
[blue]="\e[34m"
[magenta]="\e[35m"
[cyan]="\e[36m"
[white]="\e[37m"
[reset]="\e[0m"
)
print_centered() {
local text="$1" # Get input texts
local color="${2:-reset}" # Get color, default to reset
local term_width=$(tput cols) # Get terminal width
local text_length=${#text} # Get text length
local padding=$(((term_width - text_length) / 2)) # Get padding
# Check if the color is valid
if [[ -z "${colors[$color]}" ]]; then
echo "Invalid color specified. Available colors: ${!colors[@]}"
return 1
fi
# Print the text with padding
printf "%*s${colors[$color]}%s${colors[reset]}\n" $padding "" "$text"
}
# Download files asynchronously
download_file "$SOURCE_URL/${FILES[0]}" "docker-compose.yml"
download_file "$SOURCE_URL/${FILES[1]}" ".env"
download_file "$SOURCE_URL/${FILES[2]}" "init_data.json"
download_file "$SOURCE_URL/${FILES[3]}" "s3_data.tar.gz"
# Extract .tar.gz file without output
extract_file "s3_data.tar.gz" "."
rm s3_data.tar.gz
# Display final message
printf "\n%s\n\n" "$(show_message "tips_run_command")"
print_centered "docker compose up -d" "green"
printf "\n%s" "$(show_message "tips_show_documentation")"
printf "%s\n" $(show_message "tips_show_documentation_url")
printf "\n\e[33m%s\e[0m\n" "$(show_message "tips_warning")"
+33
View File
@@ -0,0 +1,33 @@
# Required: LobeChat domain for tRPC calls
# Ensure this domain is whitelisted in your NextAuth providers and S3 service CORS settings
APP_URL=http://localhost:3210
# Postgres related environment variables
# Required: Secret key for encrypting sensitive information. Generate with: openssl rand -base64 32
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
# Required: Postgres database connection string
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobechat
# NEXT_AUTH related environment variables
NEXTAUTH_URL=http://localhost:3210/api/auth
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
NEXT_AUTH_SSO_PROVIDERS=zitadel
# ZiTADEL provider configuration
# Please refer tohttps://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel
AUTH_ZITADEL_ID=285945938244075523
AUTH_ZITADEL_SECRET=hkbtzHLaCEIeHeFThym14UcydpmQiEB5JtAX08HSqSoJxhAlVVkyovTuNUZ5TNrT
AUTH_ZITADEL_ISSUER=http://localhost:8080
# MinIO S3 configuration
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
S3_ENDPOINT=http://localhost:9000
S3_BUCKET=lobe
S3_PUBLIC_DOMAIN=http://localhost:9000
S3_ENABLE_PATH_STYLE=1
LLM_VISION_IMAGE_USE_BASE64=1
# Other environment variables, as needed. You can refer to the environment variables configuration for the client version, making sure not to have ACCESS_CODE.
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
@@ -0,0 +1,32 @@
# LobeChat 域名
APP_URL=http://localhost:3210
# Postgres 相关,也即 DB 必须的环境变量
# 用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
# Postgres 数据库连接字符串
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobechat
# NEXT_AUTH 相关
NEXTAUTH_URL=http://localhost:3210/api/auth
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
NEXT_AUTH_SSO_PROVIDERS=zitadel
# ZiTADEL 鉴权服务提供商部分
# 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel
AUTH_ZITADEL_ID=285945938244075523
AUTH_ZITADEL_SECRET=hkbtzHLaCEIeHeFThym14UcydpmQiEB5JtAX08HSqSoJxhAlVVkyovTuNUZ5TNrT
AUTH_ZITADEL_ISSUER=http://localhost:8080
# MinIO S3 配置
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
S3_ENDPOINT=http://localhost:9000
S3_BUCKET=lobe
S3_PUBLIC_DOMAIN=http://localhost:9000
S3_ENABLE_PATH_STYLE=1
LLM_VISION_IMAGE_USE_BASE64=1
# 其他环境变量,视需求而定,可以参照客户端版本的环境变量配置,注意不要有 ACCESS_CODE
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
@@ -0,0 +1,86 @@
name: lobe-chat-database
services:
network-service:
image: alpine
container_name: lobe-network
ports:
- '9000:9000' # MinIO API
- '9001:9001' # MinIO Console
- '8080:8080' # Zitadel Console
- '3210:3210' # LobeChat
command: tail -f /dev/null
networks:
- lobe-network
postgresql:
image: pgvector/pgvector:pg16
container_name: lobe-postgres
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_DB=lobechat'
- 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
restart: always
networks:
- lobe-network
minio:
image: minio/minio
container_name: lobe-minio
network_mode: 'service:network-service'
volumes:
- './s3_data:/etc/minio/data'
environment:
- 'MINIO_ROOT_USER=YOUR_MINIO_USER'
- 'MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD'
- 'MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:3210'
restart: always
command: >
server /etc/minio/data --address ":9000" --console-address ":9001"
zitadel:
restart: 'always'
image: 'ghcr.io/zitadel/zitadel:latest'
container_name: lobe-zitadel
network_mode: 'service:network-service'
command: start-from-init --config /zitadel-config.yaml --steps /zitadel-init-steps.yaml --masterkey "cft3Tekr/rQBOqwoQSCPoncA9BHbn7QJ" --tlsMode disabled #MasterkeyNeedsToHave32Characters
volumes:
- ./zitadel-config.yaml:/zitadel-config.yaml:ro
- ./zitadel-init-steps.yaml:/zitadel-init-steps.yaml:ro
depends_on:
postgresql:
condition: service_healthy
lobe:
image: lobehub/lobe-chat-database
container_name: lobe-chat
network_mode: 'service:network-service'
depends_on:
postgresql:
condition: service_healthy
network-service:
condition: service_started
minio:
condition: service_started
zitadel:
condition: service_started
env_file:
- .env
restart: always
volumes:
data:
driver: local
s3_data:
driver: local
networks:
lobe-network:
driver: bridge
@@ -0,0 +1,26 @@
Log:
Level: 'info'
Port: 8080
ExternalPort: 8080
ExternalDomain: localhost
ExternalSecure: false
TLS:
Enabled: false
# If not using the docker compose example, adjust these values for connecting ZITADEL to your PostgreSQL
Database:
postgres:
Host: postgresql
Port: 5432
Database: zitadel
User:
Username: 'zitadel'
Password: 'zitadel'
SSL:
Mode: 'disable'
Admin:
Username: 'postgres'
Password: 'uWNZugjBqixf8dxC' #postgres password
SSL:
Mode: 'disable'
@@ -0,0 +1,11 @@
# All possible options and their defaults: https://github.com/zitadel/zitadel/blob/main/cmd/setup/steps.yaml
FirstInstance:
Org:
Human:
# use the loginname root@zitadel.localhost
Username: 'root'
# The password must be 8 characters or more and must contain uppercase letters, lowercase letters, symbols, and numbers. The first login will require a password change.
Password: 'Password1!'
Email:
# Optional, if set, can be used to log in with email.
Address: 'example@zitadel.com' # ZITADEL_FIRSTINSTANCE_ORG_HUMAN_EMAIL_ADDRESS
+34
View File
@@ -0,0 +1,34 @@
{
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": ["*"]
},
"Action": ["s3:GetBucketLocation"],
"Resource": ["arn:aws:s3:::lobe"]
},
{
"Effect": "Allow",
"Principal": {
"AWS": ["*"]
},
"Action": ["s3:ListBucket"],
"Resource": ["arn:aws:s3:::lobe"],
"Condition": {
"StringEquals": {
"s3:prefix": ["files/*"]
}
}
},
{
"Effect": "Allow",
"Principal": {
"AWS": ["*"]
},
"Action": ["s3:PutObject", "s3:DeleteObject", "s3:GetObject"],
"Resource": ["arn:aws:s3:::lobe/files/**"]
}
],
"Version": "2012-10-17"
}
@@ -0,0 +1,56 @@
# Required: LobeChat domain for tRPC calls
# Ensure this domain is whitelisted in your NextAuth providers and S3 service CORS settings
APP_URL=https://lobe.example.com/
# Postgres related environment variables
# Required: Secret key for encrypting sensitive information. Generate with: openssl rand -base64 32
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
# Required: Postgres database connection string
# Format: postgresql://username:password@host:port/dbname
# If using Docker, you can use the container name as the host
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
# NEXT_AUTH related environment variables
# Supports auth0, Azure AD, GitHub, Authentik, Zitadel, Logto, etc.
# For supported providers, see: https://lobehub.com/docs/self-hosting/advanced/auth#next-auth
# If you have ACCESS_CODE, please remove it. We use NEXT_AUTH as the sole authentication source
# Required: NextAuth secret key. Generate with: openssl rand -base64 32
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
# Required: Specify the authentication provider (e.g., Logto)
NEXT_AUTH_SSO_PROVIDERS=logto
# Required: NextAuth URL for callbacks
NEXTAUTH_URL=https://lobe.example.com/api/auth
# NextAuth providers configuration (example using Logto)
# For other providers, see: https://lobehub.com/docs/self-hosting/environment-variables/auth
AUTH_LOGTO_ID=YOUR_LOGTO_ID
AUTH_LOGTO_SECRET=YOUR_LOGTO_SECRET
AUTH_LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
# Proxy settings (if needed, e.g., when using GitHub as an auth provider)
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# S3 related environment variables (example using MinIO)
# Required: S3 Access Key ID (for MinIO, invalid until manually created in MinIO UI)
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
# Required: S3 Secret Access Key (for MinIO, invalid until manually created in MinIO UI)
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
# Required: S3 Endpoint for server/client connections to S3 API
S3_ENDPOINT=https://lobe-s3-api.example.com
# Required: S3 Bucket (invalid until manually created in MinIO UI)
S3_BUCKET=lobe
# Required: S3 Public Domain for client access to unstructured data
S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
# Optional: S3 Enable Path Style
# Use 0 for mainstream S3 cloud providers; use 1 for self-hosted MinIO
# See: https://lobehub.com/docs/self-hosting/advanced/s3#s-3-enable-path-style
S3_ENABLE_PATH_STYLE=1
# Other basic environment variables (as needed)
# See: https://lobehub.com/docs/self-hosting/environment-variables/basic
# Note: For server versions, the API must support embedding models (OpenAI text-embedding-3-small) for file processing
# You don't need to specify this model in OPENAI_MODEL_LIST
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
@@ -0,0 +1,55 @@
# 必填,LobeChat 域名,用于 tRPC 调用
# 请保证此域名在你的 NextAuth 鉴权服务提供商、S3 服务商的 CORS 白名单中
APP_URL=https://lobe.example.com/
# Postgres 相关,也即 DB 必需的环境变量
# 必填,用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
# 必填,Postgres 数据库连接字符串,用于连接到数据库
# 格式:postgresql://username:password@host:port/dbname,如果你的 pg 实例为 Docker 容器且位于同一 docker-compose 文件中,亦可使用容器名作为 host
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
# NEXT_AUTH 相关,也即鉴权服务必需的环境变量
# 可以使用 auth0、Azure AD、GitHub、Authentik、Zitadel、Logto 等,如有其他接入诉求欢迎提 PR
# 目前支持的鉴权服务提供商请参考:https://lobehub.com/zh/docs/self-hosting/advanced/auth#next-auth
# 如果你有 ACCESS_CODE,请务必清空,我们以 NEXT_AUTH 作为唯一鉴权来源
# 必填,用于 NextAuth 的密钥,可以使用 openssl rand -base64 32 生成
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
# 必填,指定鉴权服务提供商,这里以 Logto 为例
NEXT_AUTH_SSO_PROVIDERS=logto
# 必填,NextAuth 的 URL,用于 NextAuth 的回调
NEXTAUTH_URL=https://lobe.example.com/api/auth
# NextAuth 鉴权服务提供商部分,以 Logto 为例
# 其他鉴权服务提供商所需的环境变量,请参考:https://lobehub.com/zh/docs/self-hosting/environment-variables/auth
AUTH_LOGTO_ID=YOUR_LOGTO_ID
AUTH_LOGTO_SECRET=YOUR_LOGTO_SECRET
AUTH_LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
# 代理相关,如果你需要的话(比如你使用 GitHub 作为鉴权服务提供商)
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# S3 相关,也即非结构化数据(文件、图片等)存储必需的环境变量
# 这里以 MinIO 为例
# 必填,S3 的 Access Key ID,对于 MinIO 来说,直到在 MinIO UI 中手动创建之前都是无效的
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
# 必填,S3 的 Secret Access Key,对于 MinIO 来说,直到在 MinIO UI 中手动创建之前都是无效的
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
# 必填,S3 的 Endpoint,用于服务端/客户端连接到 S3 API
S3_ENDPOINT=https://lobe-s3-api.example.com
# 必填,S3 的 Bucket,直到在 MinIO UI 中手动创建之前都是无效的
S3_BUCKET=lobe
# 必填,S3 的 Public Domain,用于客户端通过公开连接访问非结构化数据
S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
# 选填,S3 的 Enable Path Style
# 对于主流 S3 Cloud 服务商,一般填 0 即可;对于自部署的 MinIO,请填 1
# 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/s3#s-3-enable-path-style
S3_ENABLE_PATH_STYLE=1
# 其他基础环境变量,视需求而定。注意不要有 ACCESS_CODE
# 请参考:https://lobehub.com/zh/docs/self-hosting/environment-variables/basic
# 请注意,对于服务端版本,其 API 必须支持嵌入(即 OpenAI text-embedding-3-small)模型,否则无法对上传文件进行处理,但你无需在 OPENAI_MODEL_LIST 中指定此模型
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
@@ -0,0 +1,71 @@
name: lobe-chat-database
services:
postgresql:
image: pgvector/pgvector:pg16
container_name: lobe-postgres
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_DB=lobe'
- 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
restart: always
minio:
image: minio/minio
container_name: lobe-minio
ports:
- '9000:9000'
- '9001:9001'
volumes:
- './s3_data:/etc/minio/data'
environment:
- 'MINIO_ROOT_USER=YOUR_MINIO_USER'
- 'MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD'
- 'MINIO_DOMAIN=lobe-s3-api.example.com'
- 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.example.com' # Your LobeChat's domain name.
restart: always
command: >
server /etc/minio/data --address ":9000" --console-address ":9001"
logto:
image: svhd/logto
container_name: lobe-logto
ports:
- '3001:3001'
- '3002:3002'
depends_on:
postgresql:
condition: service_healthy
environment:
- 'TRUST_PROXY_HEADER=1'
- 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/logto'
- 'ENDPOINT=https://lobe-auth-api.example.com'
- 'ADMIN_ENDPOINT=https://lobe-auth-ui.example.com'
entrypoint: ['sh', '-c', 'npm run cli db seed -- --swe && npm start']
lobe:
image: lobehub/lobe-chat-database
container_name: lobe-chat
ports:
- '3210:3210'
depends_on:
- postgresql
- minio
- logto
env_file:
- .env
restart: always
volumes:
data:
driver: local
s3_data:
driver: local
@@ -0,0 +1,53 @@
# Required: LobeChat domain for tRPC calls
# Ensure this domain is whitelisted in your NextAuth providers and S3 service CORS settings
APP_URL=https://lobe.example.com/
# Postgres related environment variables
# Required: Secret key for encrypting sensitive information. Generate with: openssl rand -base64 32
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
# Required: Postgres database connection string
# Format: postgresql://username:password@host:port/dbname
# If using Docker, you can use the container name as the host
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
# NEXT_AUTH related environment variables
# Required: NextAuth URL for callbacks
NEXTAUTH_URL=https://lobe.example.com/api/auth
# Required: NextAuth secret key. Generate with: openssl rand -base64 32
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
# Required: Specify the authentication provider
NEXT_AUTH_SSO_PROVIDERS=zitadel
# ZiTADEL provider configuration
# Please refer tohttps://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel
AUTH_ZITADEL_ID=285934220675723622
AUTH_ZITADEL_SECRET=pe7Nh3lopXkZkfqh5YEDYI2xsbIz08eZKqInOUZxssd3refRia518Apbv3DZ
AUTH_ZITADEL_ISSUER=https://zitadel.example.com
# Proxy settings (if needed, e.g., when using GitHub as an auth provider)
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# S3 related environment variables (example using MinIO)
# Required: S3 Access Key ID (for MinIO, invalid until manually created in MinIO UI)
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
# Required: S3 Secret Access Key (for MinIO, invalid until manually created in MinIO UI)
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
# Required: S3 Endpoint for server/client connections to S3 API
S3_ENDPOINT=https://lobe-s3-api.example.com
# Required: S3 Bucket (invalid until manually created in MinIO UI)
S3_BUCKET=lobe
# Required: S3 Public Domain for client access to unstructured data
S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
# Optional: S3 Enable Path Style
# Use 0 for mainstream S3 cloud providers; use 1 for self-hosted MinIO
# See: https://lobehub.com/docs/self-hosting/advanced/s3#s-3-enable-path-style
S3_ENABLE_PATH_STYLE=1
# Other basic environment variables (as needed)
# See: https://lobehub.com/docs/self-hosting/environment-variables/basic
# Note: For server versions, the API must support embedding models (OpenAI text-embedding-3-small) for file processing
# You don't need to specify this model in OPENAI_MODEL_LIST
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
@@ -0,0 +1,48 @@
# 必填,LobeChat 域名,用于 tRPC 调用
# 请保证此域名在你的 NextAuth 鉴权服务提供商、S3 服务商的 CORS 白名单中
APP_URL=https://lobe.example.com/
# Postgres 相关,也即 DB 必需的环境变量
# 必填,用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
# 必填,Postgres 数据库连接字符串,用于连接到数据库
# 格式:postgresql://username:password@host:port/dbname,如果你的 pg 实例为 Docker 容器且位于同一 docker-compose 文件中,亦可使用容器名作为 host
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
# NEXT_AUTH 相关,也即鉴权服务必需的环境变量
# 必填,NextAuth 的 URL,用于 NextAuth 的回调
NEXTAUTH_URL=https://lobe.example.com/api/auth
# 必填,用于 NextAuth 的密钥,可以使用 openssl rand -base64 32 生成
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
# 必填,指定鉴权服务提供商
NEXT_AUTH_SSO_PROVIDERS=zitadel
# ZiTADEL 鉴权服务提供商部分
# 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel
AUTH_ZITADEL_ID=285934220675723622
AUTH_ZITADEL_SECRET=pe7Nh3lopXkZkfqh5YEDYI2xsbIz08eZKqInOUZxssd3refRia518Apbv3DZ
AUTH_ZITADEL_ISSUER=https://zitadel.example.com
# S3 相关,也即非结构化数据(文件、图片等)存储必需的环境变量
# 这里以 MinIO 为例
# 必填,S3 的 Access Key ID,对于 MinIO 来说,直到在 MinIO UI 中手动创建之前都是无效的
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
# 必填,S3 的 Secret Access Key,对于 MinIO 来说,直到在 MinIO UI 中手动创建之前都是无效的
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
# 必填,S3 的 Endpoint,用于服务端/客户端连接到 S3 API
S3_ENDPOINT=https://lobe-s3-api.example.com
# 必填,S3 的 Bucket,直到在 MinIO UI 中手动创建之前都是无效的
S3_BUCKET=lobe
# 必填,S3 的 Public Domain,用于客户端通过公开连接访问非结构化数据
S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
# 选填,S3 的 Enable Path Style
# 对于主流 S3 Cloud 服务商,一般填 0 即可;对于自部署的 MinIO,请填 1
# 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/s3#s-3-enable-path-style
S3_ENABLE_PATH_STYLE=1
# 其他基础环境变量,视需求而定。注意不要有 ACCESS_CODE
# 请参考:https://lobehub.com/zh/docs/self-hosting/environment-variables/basic
# 请注意,对于服务端版本,其 API 必须支持嵌入(即 OpenAI text-embedding-3-small)模型,否则无法对上传文件进行处理,但你无需在 OPENAI_MODEL_LIST 中指定此模型
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
@@ -0,0 +1,69 @@
name: lobe-chat-database
services:
postgresql:
image: pgvector/pgvector:pg16
container_name: lobe-postgres
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_DB=lobe'
- 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
restart: always
minio:
image: minio/minio
container_name: lobe-minio
ports:
- '9000:9000'
- '9001:9001'
volumes:
- './s3_data:/etc/minio/data'
environment:
- 'MINIO_ROOT_USER=YOUR_MINIO_USER'
- 'MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD'
- 'MINIO_DOMAIN=lobe-s3-api.example.com'
- 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.example.com' # Your LobeChat's domain name.
restart: always
command: >
server /etc/minio/data --address ":9000" --console-address ":9001"
zitadel:
restart: always
image: ghcr.io/zitadel/zitadel:latest
container_name: lobe-zitadel
command: start-from-init --config /zitadel-config.yaml --steps /zitadel-init-steps.yaml --masterkey "cft3Tekr/rQBOqwoQSCPoncA9BHbn7QJ" --tlsMode external #MasterkeyNeedsToHave32Characters
ports:
- 8080:8080
volumes:
- ./zitadel-config.yaml:/zitadel-config.yaml:ro
- ./zitadel-init-steps.yaml:/zitadel-init-steps.yaml:ro
depends_on:
postgresql:
condition: service_healthy
lobe:
image: lobehub/lobe-chat-database
container_name: lobe-chat
ports:
- '3210:3210'
depends_on:
- postgresql
- minio
- zitadel
env_file:
- .env
restart: always
volumes:
data:
driver: local
s3_data:
driver: local
@@ -0,0 +1,25 @@
Log:
Level: 'info'
ExternalPort: 443
ExternalDomain: example.com #Your zitadel's domain name
ExternalSecure: true
TLS:
Enabled: false # ZITADEL_TLS_ENABLED
# If not using the docker compose example, adjust these values for connecting ZITADEL to your PostgreSQL
Database:
postgres:
Host: postgresql
Port: 5432
Database: zitadel
User:
Username: 'zitadel'
Password: 'zitadel'
SSL:
Mode: 'disable'
Admin:
Username: 'postgres'
Password: 'uWNZugjBqixf8dxC' #postgres password
SSL:
Mode: 'disable'
@@ -0,0 +1,11 @@
# All possible options and their defaults: https://github.com/zitadel/zitadel/blob/main/cmd/setup/steps.yaml
FirstInstance:
Org:
Human:
# use the loginname root@zitadel.localhost, replace localhost with your configured external domain
Username: 'root'
# The password must be 8 characters or more and must contain uppercase letters, lowercase letters, symbols, and numbers. The first login will require a password change.
Password: 'Password1!'
Email:
# Optional, if set, can be used to log in with email.
Address: 'example@zitadel.com' # ZITADEL_FIRSTINSTANCE_ORG_HUMAN_EMAIL_ADDRESS
+77
View File
@@ -0,0 +1,77 @@
---
title: LobeChat Authentication Service Configuration
description: >-
Learn how to configure external authentication services using Clerk or Next
Auth for centralized user authorization management. Supported authentication
services include Auth0, Azure ID, etc.
tags:
- Authentication Service
- Next Auth
- SSO
- Clerk
---
# Authentication Service
LobeChat supports the configuration of external authentication services using Clerk or Next Auth for internal use within enterprises/organizations to centrally manage user authorization.
## Clerk
Clerk is a comprehensive identity verification solution that has recently gained popularity. It provides a simple yet powerful API and services to handle user authentication and session management. Clerk's design philosophy is to offer a concise and modern authentication solution that enables developers to easily integrate and use it.
LobeChat has deeply integrated with Clerk to provide users with a more secure and convenient login and registration experience. It also relieves developers from the burden of managing authentication logic. Clerk's concise and modern design philosophy aligns perfectly with LobeChat's goals, making user management on the entire platform more efficient and reliable.
By setting the environment variables `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` in LobeChat's environment, you can enable and use Clerk.
## Next Auth
Before using NextAuth, please set the following variables in LobeChat's environment variables:
| Environment Variable | Type | Description |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | Required | The key used to encrypt Auth.js session tokens. You can use the following command: `openssl rand -base64 32`, or visit `https://generate-secret.vercel.app/32` to generate the key. |
| `NEXTAUTH_URL` | Required | This URL specifies the callback address for Auth.js when performing OAuth verification. Set this only if the default generated redirect address is incorrect. `https://example.com/api/auth` |
| `NEXT_AUTH_SSO_PROVIDERS` | Optional | This environment variable is used to enable multiple identity verification sources simultaneously, separated by commas, for example, `auth0,microsoft-entra-id,authentik`. |
Currently supported identity verification services include:
<Cards>
<Card href={'/docs/self-hosting/advanced/auth/next-auth/auth0'} title={'Auth0'} />
<Card
href={'/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id'}
title={'Microsoft Entra ID'}
/>
<Card href={'/docs/self-hosting/advanced/auth/next-auth/authentik'} title={'Authentik'} />
<Card href={'/docs/self-hosting/advanced/auth/next-auth/github'} title={'Github'} />
<Card href={'/docs/self-hosting/advanced/auth/next-auth/zitadel'} title={'ZITADEL'} />
<Card
href={'/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust'}
title={'Cloudflare Zero Trust'}
/>
<Card href={'/docs/self-hosting/advanced/auth/next-auth/authelia'} title={'Authelia'} />
<Card href={'/docs/self-hosting/advanced/auth/next-auth/logto'} title={'Logto'} />
</Cards>
Click on the links to view the corresponding platform's configuration documentation.
## Advanced Configuration
To simultaneously enable multiple identity verification sources, please set the `NEXT_AUTH_SSO_PROVIDERS` environment variable, separating them with commas, for example, `auth0,microsoft-entra-id,authentik`.
The order corresponds to the display order of the SSO providers.
| SSO Provider | Value |
| ------------------ | ----------- |
| Auth0 | `auth0` |
| Authenlia | `authenlia` |
| Authentik | `authentik` |
| Casdoor | `casdoor` |
| Cloudflare Zero Trust | `cloudflare-zero-trust` |
| Github | `github` |
| Logto | `logto` |
| Microsoft Entra ID | `microsoft-entra-id` |
| ZITADEL | `zitadel` |
## Other SSO Providers
Please refer to the [NextAuth.js](https://next-auth.js.org/providers) documentation and feel free to submit a Pull Request.
+74
View File
@@ -0,0 +1,74 @@
---
title: LobeChat 身份验证服务配置
description: 了解如何使用 Clerk 或 Next Auth 配置外部身份验证服务,以统一管理用户授权。支持的身份验证服务包括 Auth0、 Azure ID 等。
tags:
- 身份验证服务
- LobeChat
- SSO
- Clerk
---
# 身份验证服务
LobeChat 支持使用 Clerk 或者 Next Auth 配置外部身份验证服务,供企业 / 组织内部使用,统一管理用户授权。
## Clerk
Clerk 是一个近期流行起来的全面的身份验证解决方案,它提供了简单而强大的 API 和服务来处理用户认证和会话管理。Clerk 的设计哲学是提供一套简洁、现代的认证解决方案,使得开发者可以轻松集成和使用。
LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全、便捷的登录和注册体验,同时也为开发者减轻了管理身份验证逻辑的负担。Clerk 的简洁和现代的设计理念与 LobeChat 的目标非常契合,使得整个平台的用户管理更加高效和可靠。
在 LobeChat 的环境变量中设置 `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` 和 `CLERK_SECRET_KEY`,即可开启和使用 Clerk。
## Next Auth
在使用 NextAuth 之前,请先在 LobeChat 的环境变量中设置以下变量:
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令: `openssl rand -base64 32`,或者访问 `https://generate-secret.vercel.app/32` 生成秘钥。 |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
| `NEXT_AUTH_SSO_PROVIDERS` | 可选 | 该环境变量用于同时启用多个身份验证源,以逗号 `,` 分割,例如 `auth0,microsoft-entra-id,authentik`。 |
目前支持的身份验证服务有:
<Cards>
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/auth0'} title={'Auth0'} />
<Card
href={'/zh/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id'}
title={'Microsoft Entra ID'}
/>
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/authentik'} title={'Authentik'} />
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/github'} title={'Github'} />
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/zitadel'} title={'ZITADEL'} />
<Card
href={'/zh/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust'}
title={'Cloudflare Zero Trust'}
/>
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/authelia'} title={'Authelia'} />
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/logto'} title={'Logto'} />
</Cards>
点击即可查看对应平台的配置文档。
## 进阶配置
同时启用多个身份验证源请设置 `NEXT_AUTH_SSO_PROVIDERS` 环境变量,以逗号 `,` 分割,例如 `auth0,microsoft-entra-id,authentik`。
顺序为 SSO 提供商的显示顺序。
| SSO 提供商 | 值 |
| ------------------ | ----------- |
| Auth0 | `auth0` |
| Authenlia | `authenlia` |
| Authentik | `authentik` |
| Casdoor | `casdoor` |
| Cloudflare Zero Trust | `cloudflare-zero-trust` |
| Github | `github` |
| Logto | `logto` |
| Microsoft Entra ID | `microsoft-entra-id` |
| ZITADEL | `zitadel` |
## 其他 SSO 提供商
请参考 [NextAuth.js](https://next-auth.js.org/providers) 文档,欢迎提交 Pull Request。
+81
View File
@@ -0,0 +1,81 @@
---
title: Configure Clerk Authentication Service - Step-by-Step Guide
description: >-
Learn how to set up Clerk authentication with environment variables and
webhooks.
tags:
- Clerk Authentication
- Environment Variables
- Webhook Configuration
---
# Configure Clerk Authentication Service
Go to [Clerk](https://clerk.com?utm_source=lobehub\&utm_medium=docs) to register and create an application to obtain the corresponding Public Key and Secret Key.
## Get Environment Variables
<Steps>
### Add Public and Private Key Environment Variables
Add `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` environment variables. You can click on the "API Keys" in the menu and copy the corresponding values to get these environment variables.
<Image
alt={'Find the corresponding public and private key environment variables in Clerk'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/89883703-7a1a-4a11-b944-5d804544e57c'}>
>
</Image>
The environment variables required for this step are as follows:
```shell
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxxxxxxxx
CLERK_SECRET_KEY=sk_live_xxxxxxxxxxxxxxxxxxxxxx
```
### Create and Configure Webhook in Clerk
Since we let Clerk fully handle user authentication and management, we need Clerk to notify our application and store the changes in the user lifecycle (create, update, delete). We achieve this by using the Webhook provided by Clerk.
We need to add an endpoint in Clerk's Webhooks to inform Clerk to send notifications to this endpoint when a user's information changes.
<Image
alt={'Add Webhooks endpoint in Clerk'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/f50f47fb-5e8e-4930-bf4e-8cf6f5b8afb9'}>
>
</Image>
Fill in your project URL in the endpoint, such as `https://your-project.com/api/webhooks/clerk`. Then, subscribe to events by checking the three user events (`user.created`, `user.deleted`, `user.updated`), and click create.
<Callout type={'warning'}>The `https://` in the URL is essential to maintain the integrity of the URL.</Callout>
<Image
alt={'Configure URL and user events when adding Clerk Webhooks'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/0249ea56-ab17-4aa9-a56c-9ebd556c2645'}>
>
</Image>
### Add Webhook Secret to Environment Variables
After creating, you can find the secret of this Webhook in the bottom right corner:
<Image
alt={'View Clerk Webhooks secret'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/fab4abb2-584b-49de-9340-813382951635'}>
>
</Image>
The environment variable corresponding to this secret is `CLERK_WEBHOOK_SECRET`:
```shell
CLERK_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxx
```
</Steps>
By following these steps, you have successfully configured the Clerk authentication service.
@@ -0,0 +1,71 @@
---
title: 配置 Clerk 身份验证服务 - 完整指南
description: 学习如何配置 Clerk 身份验证服务,获取公私钥和设置 Webhook。
tags:
- Clerk
- 身份验证
- Webhook
- 环境变量
---
# 配置 Clerk 身份验证服务
前往 [Clerk](https://clerk.com?utm_source=lobehub&utm_medium=docs) 注册并创建应用,获取相应的 Public Key 和 Secret Key。
## 获取环境变量
<Steps>
### 添加公、私钥环境变量
添加 `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` 和 `CLERK_SECRET_KEY` 环境变量。你可以在菜单中点击「API Keys」,然后复制对应的值获取该环境变量。
<Image
alt={'在 Clerk 中找到对应的公私钥环境变量'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/89883703-7a1a-4a11-b944-5d804544e57c'}
></Image>
此步骤所需的环境变量如下:
```shell
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxxxxxxxx
CLERK_SECRET_KEY=sk_live_xxxxxxxxxxxxxxxxxxxxxx
```
### 在 Clerk 中创建并配置 Webhook
由于我们让 Clerk 完全接管用户鉴权与管理,因此我们需要在 Clerk 用户生命周期变更时(创建、更新、删除)中通知我们的应用并存储落库。我们通过 Clerk 提供的 Webhook 来实现这一诉求。
我们需要在 Clerk 的 Webhooks 中添加一个端点(Endpoint),告诉 Clerk 当用户发生变更时,向这个端点发送通知。
<Image
alt={'Clerk 添加 Webhooks 端点'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/f50f47fb-5e8e-4930-bf4e-8cf6f5b8afb9'}
></Image>
在 endppint 中填写你的项目 URL,如 `https://your-project.com/api/webhooks/clerk`。然后在订阅事件(Subscribe to events)中,勾选 user 的三个事件(`user.created` 、`user.deleted`、`user.updated`),然后点击创建。
<Callout type={'warning'}>URL的`https://`不可缺失,须保持URL的完整性</Callout>
<Image
alt={'添加 Clerk Webhooks 时,配置 URL 和用户事件'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/0249ea56-ab17-4aa9-a56c-9ebd556c2645'}
></Image>
### 将 Webhook 秘钥添加到环境变量
创建完毕后,可以在右下角找到该 Webhook 的秘钥:
<Image
alt={'查看 Clerk Webhooks 秘钥'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/fab4abb2-584b-49de-9340-813382951635'}
></Image>
这个秘钥所对应的环境变量名为 `CLERK_WEBHOOK_SECRET`
```shell
CLERK_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxx
```
</Steps>
这样,你已经成功配置了 Clerk 身份验证服务。
@@ -76,14 +76,12 @@ When deploying LobeChat, you need to configure the following environment variabl
| Environment Variable | Type | Description |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | Required | Enable single sign-on (SSO) for LobeChat. Set to `1` to enable single sign-on. |
| `NEXTAUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate a key using the following command: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | Optional | Select the single sign-on provider for LoboChat. Use `auth0` for Auth0. |
| `AUTH0_CLIENT_ID` | Required | Client ID of the Auth0 application |
| `AUTH0_CLIENT_SECRET` | Required | Client Secret of the Auth0 application |
| `AUTH0_ISSUER` | Required | Domain of the Auth0 application, `https://example.auth0.com` |
| `ACCESS_CODE` | Required | Add a password to access this service. You can set a sufficiently long random password to "disable" access code authorization. |
| `NEXTAUTH_URL` | Optional | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate a key using the following command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the single sign-on provider for LoboChat. Use `auth0` for Auth0. |
| `AUTH_AUTH0_ID` | Required | Client ID of the Auth0 application |
| `AUTH_AUTH0_SECRET` | Required | Client Secret of the Auth0 application |
| `AUTH_AUTH0_ISSUER` | Required | Domain of the Auth0 application, `https://example.auth0.com` |
| `NEXTAUTH_URL` | Required | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |
<Callout type={'tip'}>
You can refer to the related variable details at [📘Environment Variables](/docs/self-hosting/environment-variable#auth0).
@@ -15,7 +15,7 @@ tags:
<Steps>
### 创建 Auth0 应用
注册并登录 [Auth0][auth0-client-page],点击左侧导航栏的「Applications」,切换到应用管理界面,点击右上角「Create Application」以创建应用。
注册并登录 [Auth0](https://manage.auth0.com/dashboard),点击左侧导航栏的「Applications」,切换到应用管理界面,点击右上角「Create Application」以创建应用。
<Image
alt="创建 Auth0 应用 S1"
@@ -71,17 +71,15 @@ http(s)://your-domain/api/auth/callback/auth0
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | 必选 | 为 LobeChat 启用单点登录 (SSO)。设置为 `1` 以启用单点登录。 |
| `NEXTAUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Auth0 请填写 `auth0`。 |
| `AUTH0_CLIENT_ID` | 必选 | Auth0 应用程序的 Client ID |
| `AUTH0_CLIENT_SECRET` | 必选 | Auth0 应用程序的 Client Secret |
| `AUTH0_ISSUER` | 必选 | Auth0 应用程序的 Domain`https://example.auth0.com` |
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Auth0 请填写 `auth0`。 |
| `AUTH_AUTH0_ID` | 必选 | Auth0 应用程序的 Client ID |
| `AUTH_AUTH0_SECRET` | 必选 | Auth0 应用程序的 Client Secret |
| `AUTH_AUTH0_ISSUER` | 必选 | Auth0 应用程序的 Domain`https://example.auth0.com` |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/docs/self-hosting/environment-variable#auth0) 可查阅相关变量详情。
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#auth-0) 可查阅相关变量详情。
</Callout>
</Steps>
@@ -96,7 +94,7 @@ http(s)://your-domain/api/auth/callback/auth0
如果你的企业或组织已有现有的统一身份认证设施,可在 Applications -> SSO Integrations 中,连接现有的单点登录服务。
Auth0 支持 Azure Active Directory / Slack / Google Workspace / Office 365 / Zoom 等单点登录服务,详细支持列表可参考 [这里][auth0-sso-integrations]
Auth0 支持 Azure Active Directory / Slack / Google Workspace / Office 365 / Zoom 等单点登录服务,详细支持列表可参考 [这里](https://marketplace.auth0.com/features/sso-integrations)
<Image
alt="Connecting to an Existing Single Sign-On Service"
@@ -118,9 +116,6 @@ Auth0 支持 Azure Active Directory / Slack / Google Workspace / Office 365 / Zo
<Callout>
如果你需要限制登录人员,务必配置 **阻止策略**: 请在打开社交登录选项后,参考
[这篇文章][auth0-login-actions-manual] 创建 Action 来设置阻止 / 允许列表。
[这篇文章](https://auth0.com/blog/permit-or-deny-login-requests-using-auth0-actions/) 创建 Action
来设置阻止 / 允许列表。
</Callout>
[auth0-client-page]: https://manage.auth0.com/dashboard
[auth0-login-actions-manual]: https://auth0.com/blog/permit-or-deny-login-requests-using-auth0-actions/
[auth0-sso-integrations]: https://marketplace.auth0.com/features/sso-integrations
@@ -0,0 +1,75 @@
---
title: Configuring Authelia Authentication Service for LobeChat
description: >-
Learn how to configure Authelia authentication service in LobeChat, including
creating a provider, configuring environment variables, and deploying
LobeChat. Detailed steps and necessary environment variable settings.
tags:
- Authelia Configuration
- Single Sign-On (SSO)
- LobeChat Authentication
- Environment Variables
- Deployment Instructions
---
## Configuring Authelia Authentication Service
## Authelia Configuration Flow
<Steps>
### Create an Authelia Identity Provider
We assume you are already familiar with using Authelia. Let's say your LobeChat instance is deployed at https://lobe.example.com/.
Note that currently only localhost supports HTTP access; other domains need to enable TLS, otherwise Authelia will actively interrupt authentication by default.
Now, let's open and edit the configuration file of your Authelia instance:
Add a new lobe-chat item under identity_providers -> oidc:
```yaml
identity_providers:
oidc:
...
## The other portions of the mandatory OpenID Connect 1.0 configuration go here.
## See: https://www.authelia.com/c/oidc
- id: lobe-chat
description: LobeChat
secret: '$pbkdf2-sha512$310000$c8p78n7pUMln0jzvd4aK4Q$JNRBzwAo0ek5qKn50cFzzvE9RXV88h1wJn5KGiHrD0YKtZaR/nCb2CJPOsKaPK0hjf.9yHxzQGZziziccp6Yng' # The digest of 'insecure_secret'.
public: false
authorization_policy: two_factor
redirect_uris:
- https://chat.example.com/api/auth/callback/authelia
scopes:
- openid
- profile
- email
userinfo_signing_algorithm: none
```
Make sure to replace secret and redirect_urls with your own values.
Note! The secret configured in Authelia is ciphertext, i.e., a salted hash value. Its corresponding plaintext needs to be filled in LobeChat later.
Save the configuration file and restart the Authelia service. Now we have completed the Authelia configuration.
### Configure Environment Variables
When deploying LobeChat, you need to configure the following environment variables:
| Environment Variable | Type | Description |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | Required | The secret used to encrypt Auth.js session tokens. You can generate a secret using the following command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the SSO provider for LoboChat. Use `authentik` for Authentik. |
| `AUTH_AUTHELIA_ID` | Required | The id just configured in Authelia, example value is lobe-chat |
| `AUTH_AUTHELIA_SECRET` | Required | The plaintext corresponding to the secret just configured in Authelia, example value is insecure_secret |
| `AUTH_AUTHELIA_ISSUER` | Required | Your Authelia URL, for example https://sso.example.com |
| `NEXTAUTH_URL` | Required | This URL is used to specify the callback address for Auth.js when performing OAuth verification. It only needs to be set when the default generated redirect address is incorrect. https://chat.example.com/api/auth |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variable#Authelia) for details about the variables.
</Callout>
</Steps>
<Callout type={'info'}>
After a successful deployment, users will be able to use LobeChat by authenticating with the users
configured in Authelia.
</Callout>
@@ -0,0 +1,73 @@
---
title: 在 LobeChat 中配置 Authelia 身份验证服务
description: 学习如何在 LobeChat 中配置 Authelia 身份验证服务,包括创建提供程序、配置环境变量和部署 LobeChat。详细步骤和必要环境变量设置。
tags:
- Authelia
- 身份验证
- 单点登录
- 环境变量
- LobeChat
---
# 配置 Authelia 身份验证服务
## Authelia 配置流程
<Steps>
### 创建 Authelia 提供应用
我们现在默认您已经了解了如何使用 Authelia。假设您的 LobeChat 实例部署在 `https://lobe.example.com/` 中。
注意,目前只有 `localhost` 支持 HTTP 访问,其他域名需要启用 TLS,否则 Authelia 默认将主动中断身份认证。
现在,我们打开 Authelia 实例的配置文件进行编辑:
在 `identity_providers`-> `oidc` 下新增一个 `lobe-chat` 的项目:
```yaml
...
identity_providers:
oidc:
...
## The other portions of the mandatory OpenID Connect 1.0 configuration go here.
## See: https://www.authelia.com/c/oidc
- id: lobe-chat
description: LobeChat
secret: '$pbkdf2-sha512$310000$c8p78n7pUMln0jzvd4aK4Q$JNRBzwAo0ek5qKn50cFzzvE9RXV88h1wJn5KGiHrD0YKtZaR/nCb2CJPOsKaPK0hjf.9yHxzQGZziziccp6Yng' # The digest of 'insecure_secret'.
public: false
authorization_policy: two_factor
redirect_uris:
- https://chat.example.com/api/auth/callback/authelia
scopes:
- openid
- profile
- email
userinfo_signing_algorithm: none
```
请您确保 `secret` 和 `redirect_urls` 替换成您自己的值。
注意!Authelia 中配置 `secret` 是密文,即加盐哈希值。其对应的明文稍后需要填写在 lobeChat 中。
保存配置文件,然后重启 Authelia 服务。现在我们完成了 Authelia 的配置工作。
### 配置环境变量
在部署 LobeChat 时,你需要配置以下环境变量:
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Authelia 请填写 `authelia`。 |
| `AUTH_AUTHELIA_ID` | 必选 | 刚刚在 Authelia 配置的 `id`,示例值是 `lobe-chat` |
| `AUTH_AUTHELIA_SECRET` | 必选 | 刚刚在 Authelia 配置的 `secret` 对应的明文,示例值是 `insecure_secret` |
| `AUTH_AUTHELIA_ISSUER` | 必选 |您的 Authelia 的网址,例如 `https://sso.example.com` |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://chat.example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variable#Authelia) 可查阅相关变量详情。
</Callout>
</Steps>
<Callout type={'info'}>
部署成功后,用户将可以使用 Authelia 中配置的用户通过身份认证并使用 LobeChat。
</Callout>
@@ -54,14 +54,12 @@ When deploying LobeChat, you need to configure the following environment variabl
| Environment Variable | Type | Description |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | Required | Enable Single Sign-On (SSO) for LobeChat. Set to `1` to enable SSO. |
| `NEXTAUTH_SECRET` | Required | The secret used to encrypt Auth.js session tokens. You can generate a secret using the following command: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | Required | Select the SSO provider for LoboChat. Use `authentik` for Authentik. |
| `AUTHENTIK_CLIENT_ID` | Required | The Client ID from the Authentik application provider details page |
| `AUTHENTIK_CLIENT_SECRET` | Required | The Client Secret from the Authentik application provider details page |
| `AUTHENTIK_ISSUER` | Required | The OpenID Configuration Issuer from the Authentik application provider details page |
| `ACCESS_CODE` | Required | Add a password to access this service, you can set a sufficiently long random password to "disable" access code authorization |
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It only needs to be set when the default generated redirect address is incorrect. `https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | Required | The secret used to encrypt Auth.js session tokens. You can generate a secret using the following command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the SSO provider for LoboChat. Use `authentik` for Authentik. |
| `AUTH_AUTHENTIK_ID` | Required | The Client ID from the Authentik application provider details page |
| `AUTH_AUTHENTIK_SECRET` | Required | The Client Secret from the Authentik application provider details page |
| `AUTH_AUTHENTIK_ISSUER` | Required | The OpenID Configuration Issuer from the Authentik application provider details page |
| `NEXTAUTH_URL` | Required | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It only needs to be set when the default generated redirect address is incorrect. `https://example.com/api/auth` |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variable#Authentik) for details about the variables.
@@ -27,8 +27,8 @@ https://your-domain/api/auth/callback/authentik
```
<Callout type={'info'}>
- 可以之后再填写或修改 `重定向 URL/Origin(正则)`,但是务必保证填写的 URL 与部署的 URL 一致。 -
your-domain 请替换为自己的域名
- 可以之后再填写或修改 `重定向 URL/Origin(正则)`,但是务必保证填写的 URL 与部署的 URL 一致。
- your-domain 请替换为自己的域名
</Callout>
<Image
@@ -49,17 +49,15 @@ https://your-domain/api/auth/callback/authentik
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | 必选 | 为 LobeChat 启用单点登录 (SSO)。设置为 `1` 以启用单点登录。 |
| `NEXTAUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Authentik 请填写 `authentik`。 |
| `AUTHENTIK_CLIENT_ID` | 必选 | Authentik 提供程序详情页的 客户端 ID |
| `AUTHENTIK_CLIENT_SECRET` | 必选 | Authentik 提供程序详情页的 客户端 Secret |
| `AUTHENTIK_ISSUER` | 必选 | Authentik 提供程序详情页的 OpenID 配置颁发者 |
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Authentik 请填写 `authentik`。 |
| `AUTH_AUTHENTIK_ID` | 必选 | Authentik 提供程序详情页的 客户端 ID |
| `AUTH_AUTHENTIK_SECRET` | 必选 | Authentik 提供程序详情页的 客户端 Secret |
| `AUTH_AUTHENTIK_ISSUER` | 必选 | Authentik 提供程序详情页的 OpenID 配置颁发者 |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/docs/self-hosting/environment-variable#Authentik) 可查阅相关变量详情。
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variable#Authentik) 可查阅相关变量详情。
</Callout>
</Steps>
@@ -0,0 +1,122 @@
---
title: Configuring Casdoor Authentication Service in LobeChat
description: >-
Learn how to configure the Casdoor authentication service in LobeChat,
including deployment, creation, permission settings, and environment
variables.
tags:
- Casdoor Authentication
- Environment Variable Configuration
- Single Sign-On
- LobeChat
---
# Configuring Casdoor Authentication Service
[Casdoor](https://github.com/casdoor/casdoor) is an open-source authentication service that is rich in features and easy to use.
<Callout type={'tip'}>
If you want to privately deploy Casdoor, we recommend using Docker Compose to deploy it together with the LobeChat database version, allowing LobeChat to share the same Postgres instance.
</Callout>
## Casdoor Configuration Process
If you are deploying using a local network IP, the following assumptions apply:
- Your LobeChat database version IP/port is `http://LOBECHAT_IP:3210`.
- You privately deploy Casdoor, and its domain is `http://CASDOOR_IP:8000`.
If you are deploying using a public network, the following assumptions apply:
- Your LobeChat database version domain is `https://lobe.example.com`.
- You privately deploy Casdoor, and its domain is `https://lobe-auth-api.example.com`.
<Steps>
### Create a Casdoor Application
Access your privately deployed Casdoor WebUI (default is `http://localhost:8000/`) to enter the console. The default account is `admin`, and the password is `123`.
Go to `Authentication` -> `Applications`, create a `LobeChat` application or directly modify the built-in `built-in` application. You can explore other fields, but you must configure at least the following fields:
- Name, Display Name: `LobeChat`
- Redirect URLs:
- Local Development Environment: `http://localhost:3210/api/auth/callback/casdoor`
- Local Network IP Deployment: `http://LOBECHAT_IP:3210/api/auth/callback/casdoor`
- Public Network Environment: `https://lobe.example.com/api/auth/callback/casdoor`
There are also some optional fields that can enhance user experience:
- Logo: `https://lobehub.com/icon-192x192.png`
- Form CSS, Form CSS (Mobile):
```html
<style>
.login-panel {
padding: 40px 70px 0 70px;
border-radius: 10px;
background-color: #ffffff;
box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}
.panel-logo {
width: 64px;
}
.login-logo-box {
margin-top: 20px;
}
#parent-area
> main
> div
> div.login-content
> div.login-panel
> div.login-form
> div
> div
> button {
box-shadow: none !important;
border-radius: 10px !important;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
border: 1px solid #eee !important;
}
@media (max-width: 640px) {
.login-panel {
padding: 40px 0 0 0;
box-shadow: none;
}
}
</style>
```
Then, copy the `Client ID` and `Client Secret` and save them.
### Configure Environment Variables
Set the obtained `Client ID` and `Client Secret` as `AUTH_CASDOOR_ID` and `AUTH_CASDOOR_SECRET` in the LobeChat environment variables.
Configure `AUTH_CASDOOR_ISSUER` in the LobeChat environment variables as follows:
- `http://localhost:8000/` if you are in a local development environment.
- `http://CASDOOR_IP:8000/` if you are privately deploying Casdoor in a local network.
- `https://lobe-auth-api.example.com/` if you are deploying Casdoor in a public network environment.
When deploying LobeChat, you need to configure the following environment variables:
| Environment Variable | Type | Description |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | Required | A key for encrypting Auth.js session tokens. You can generate a key using the command: `openssl rand -base64 32`. |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the single sign-on provider for LobeChat. Fill in `casdoor` for using Casdoor. |
| `AUTH_CASDOOR_ID` | Required | The client ID from the Casdoor application details page. |
| `AUTH_CASDOOR_SECRET` | Required | The client secret from the Casdoor application details page. |
| `AUTH_CASDOOR_ISSUER` | Required | The OpenID Connect issuer for the Casdoor provider. |
| `NEXTAUTH_URL` | Required | This URL specifies the callback address for Auth.js during OAuth verification and needs to be set only if the default generated redirect address is incorrect. `https://lobe.example.com/api/auth` |
<Callout type={'tip'}>
Visit [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#casdoor) for details on related variables.
</Callout>
</Steps>
<Callout type={'info'}>Once deployed successfully, users will be able to authenticate via Casdoor and use LobeChat.</Callout>
@@ -0,0 +1,120 @@
---
title: 在 LobeChat 中配置 Casdoor 身份验证服务
description: 学习如何在 LobeChat 中配置 Casdoor 身份验证服务,包括部署、创建、设置权限和环境变量。
tags:
- Casdoor 身份验证
- 环境变量配置
- 单点登录
- LobeChat
---
# 配置 Casdoor 身份验证服务
[Casdoor](https://github.com/casdoor/casdoor) 是一个开源的身份验证服务,功能配置丰富且易于上手。
<Callout type={'tip'}>
若你想要私有部署 Casdoor,我们建议你将之与 LobeChat 数据库版本一同使用 Docker Compose 部署,此时
LobeChat 可以与之共用同一个 Postgres 实例。
</Callout>
## Casdoor 配置流程
若你使用局域网 IP 部署,下文假设:
- 你的 LobeChat 数据库版本 IP / 端口为 `http://LOBECHAT_IP:3210`。
- 你私有部署 Casdoor,其域名为 `http://CASDOOR_IP:8000`。
若你使用公网部署,下文假设:
- 你的 LobeChat 数据库版本域名为 `https://lobe.example.com`。
- 你私有部署 Casdoor,其域名为 `https://lobe-auth-api.example.com`。
<Steps>
### 创建 Casdoor 应用
访问你私有部署的 Casdoor WebUI(默认为 `http://localhost:8000/` 进入控制台,默认账号为 `admin`,密码为 `123`。
前往 `身份认证` -> `应用`,创建一个 `LobeChat` 应用或直接修改内置的 `built-in` 应用,其他字段可以自行探索,但你至少需要配置以下字段:
- 名称、显示名称:`LobeChat`
- 重定向 URLs
- 本地开发环境:`http://localhost:3210/api/auth/callback/casdoor`
- 局域网 IP 部署:`http://LOBECHAT_IP:3210/api/auth/callback/casdoor`
- 公网环境:`https://lobe.example.com/api/auth/callback/casdoor`
还有一些不必需但是可以提高用户体验的字段:
- Logo`https://lobehub.com/icon-192x192.png`
- 表单 CSS、表单 CSS(移动端):
```html
<style>
.login-panel {
padding: 40px 70px 0 70px;
border-radius: 10px;
background-color: #ffffff;
box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}
.panel-logo {
width: 64px;
}
.login-logo-box {
margin-top: 20px;
}
#parent-area
> main
> div
> div.login-content
> div.login-panel
> div.login-form
> div
> div
> button {
box-shadow: none !important;
border-radius: 10px !important;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
border: 1px solid #eee !important;
}
@media (max-width: 640px) {
.login-panel {
padding: 40px 0 0 0;
box-shadow: none;
}
}
</style>
```
随后,复制 `客户端 ID` 和 `客户端密钥`,并保存。
### 配置环境变量
将获取到的 `客户端 ID` 和 `客户端`,设为 LobeChat 环境变量中的 `AUTH_CASDOOR_ID` 和 `AUTH_CASDOOR_SECRET`。
配置 LobeChat 环境变量中 `AUTH_CASDOOR_ISSUER` 为:
- `http://localhost:8000/`,若你是本地开发环境
- `http://CASDOOR_IP:8000/`,若你是局域网私有部署的 Casdoor
- `https://lobe-auth-api.example.com/`,若你是公网环境部署的 Casdoor
在部署 LobeChat 时,你需要配置以下环境变量:
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Casdoor 请填写 `casdoor`。 |
| `AUTH_CASDOOR_ID` | 必选 | Casdoor 应用详情页的客户端 ID |
| `AUTH_CASDOOR_SECRET` | 必选 | Casdoor 应用详情页的客户端密钥 |
| `AUTH_CASDOOR_ISSUER` | 必选 | Casdoor 提供程序的 OpenID Connect 颁发者。 |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://lobe.example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#casdoor) 可查阅相关变量详情。
</Callout>
</Steps>
<Callout type={'info'}>部署成功后,用户将可以通过 Casdoor 身份认证并使用 LobeChat。</Callout>
@@ -0,0 +1,68 @@
---
title: Configuring Cloudflare Zero Trust Authentication Service for LobeChat
description: >-
Learn how to configure Cloudflare Zero Trust for Single Sign-On (SSO) for
LobeChat, including creating an application provider, setting environment
variables, and deployment instructions.
tags:
- Cloudflare Zero Trust
- Single Sign-On (SSO)
- LobeChat Authentication
- Environment Variables
- Deployment Instructions
---
# Configuring Cloudflare Zero Trust Authentication Service
## Cloudflare Zero Trust Configuration Flow
<Steps>
### Creating an Application in Cloudflare Zero Trust
We assume you are already familiar with using the Cloudflare Zero Trust platform and that your LobeChat instance is deployed at `https://chat.example.com`.
First, we need to visit `https://one.dash.cloudflare.com/` and navigate to `Access - Applications`.
![image](https://github.com/user-attachments/assets/4d671a7c-5d94-4c4b-b4fd-71a5a0e9d227)
Now, on the current page, click `Add an application` and select `SaaS`.
![image](https://github.com/user-attachments/assets/3da4c8c4-88c6-40a9-8005-6a0a44aa3b1f)
In the `Application` text box, enter the application name, such as `LobeChat SSO`. Then click `Select OIDC`, followed by clicking `Add application`.
![image](https://github.com/user-attachments/assets/16cd9aef-c87b-48a4-95c0-b666082e7515)
At this point, you have successfully created a SaaS application named `LobeChat SSO` in Cloudflare Zero Trust.
Next, we need to enter `https://chat.example.com/api/auth/callback/cloudflare-zero-trust` in the `Redirect URLs` field (note that `chat.example.com` should be replaced with your instance's address).
![image](https://github.com/user-attachments/assets/433fdce4-0af5-417f-b80d-163c2d4f02f6)
Finally, scroll down the page and record the following three values: `Client secret`, `Client ID`, and `Issuer`. You will need these for setting the environment variables when deploying LobeChat.
![image](https://github.com/user-attachments/assets/2dd3cde5-fa0d-4f52-b82b-28d9e89379a0)
### Configure Environment Variables
When deploying LobeChat, you need to configure the following environment variables:
| Environment Variable | Type | Description |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | Required | The secret used to encrypt Auth.js session tokens. You can generate a secret using the following command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the SSO provider for LoboChat. Use `cloudflare-zero-trust` for Cloudflare Zero Trust. |
| `AUTH_CLOUDFLARE_ZERO_TRUST_ID` | Required | The Client ID from the Cloudflare Zero Trust application provider details page |
| `AUTH_CLOUDFLARE_ZERO_TRUST_SECRET` | Required | The Client Secret from the Cloudflare Zero Trust application provider details page |
| `AUTH_CLOUDFLARE_ZERO_TRUST_ISSUER` | Required | The OpenID Configuration Issuer from the Cloudflare Zero Trust application provider details page |
| `NEXTAUTH_URL` | Required | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It only needs to be set when the default generated redirect address is incorrect. `https://example.com/api/auth` |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variable#Cloudflare%20Zero%20Trust) for details about the variables.
</Callout>
</Steps>
<Callout type={'info'}>
After a successful deployment, users will be able to use LobeChat by authenticating with the users
configured in Cloudflare Zero Trust.
</Callout>
@@ -0,0 +1,64 @@
---
title: 在 LobeChat 中配置 Cloudflare Zero Trust 身份验证服务
description: >-
学习如何在 LobeChat 中配置 Cloudflare Zero Trust 身份验证服务,包括创建提供程序、配置环境变量和部署
LobeChat。详细步骤和必要环境变量设置。
tags:
- Cloudflare Zero Trust
- 身份验证
- 单点登录
- 环境变量
- LobeChat
---
# 配置 Cloudflare Zero Trust 身份验证服务
## Cloudflare Zero Trust 配置流程
<Steps>
### 在 Cloudflare Zero Trust 中创建应用
我们现在默认您已经了解了如何使用 Cloudflare Zero Trust 平台且假设您的 LobeChat 实例部署在 `https://chat.example.com` 中。
首先我们需要访问 `https://one.dash.cloudflare.com/` 并前往 `Access - Applications` 中。
![image](https://github.com/user-attachments/assets/4d671a7c-5d94-4c4b-b4fd-71a5a0e9d227)
现在,在所在页面点击 `Add an application` 并选择 `SaaS`。
![image](https://github.com/user-attachments/assets/3da4c8c4-88c6-40a9-8005-6a0a44aa3b1f)
在 `Application` 文本框内填入应用名称,如:`LobeChat SSO`,然后点击 `Select OIDC` 后点击 `Add applicaiton`
![image](https://github.com/user-attachments/assets/16cd9aef-c87b-48a4-95c0-b666082e7515)
至此您已成功在 Clouflare Zero Trust 中创建了一个名为 `LobeChat SSO` 的 SaaS 应用。
接下来我们需要在 `Redirect URLs` 中填入 `https://chat.example.com/api/auth/callback/cloudflare-zero-trust`(注意此处的 `chat.example.com` 需要替换为您的实例地址) ![image](https://github.com/user-attachments/assets/433fdce4-0af5-417f-b80d-163c2d4f02f6)
最后我们将页面往下滚动,您将需要记录以下三个值 `Client secret`, `Client ID` 及 `Issuer` 以备后续部署 LobeChat 环境变量使用。
![image](https://github.com/user-attachments/assets/2dd3cde5-fa0d-4f52-b82b-28d9e89379a0)
### 配置环境变量
在部署 LobeChat 时,你需要配置以下环境变量:
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Cloudflare Zero Trust 请填写 `cloudflare-zero-trust`。 |
| `AUTH_CLOUDFLARE_ZERO_TRUST_ID` | 必选 | 在 Cloudflare Zero Trust 生成的 `Client ID`,示例值是 `lobe-chat` |
| `AUTH_CLOUDFLARE_ZERO_TRUST_SECRET` | 必选 | 在 Cloudflare Zero Trust 生成的 `Client secret`,示例值是 `insecure_secret` |
| `AUTH_CLOUDFLARE_ZERO_TRUST_ISSUER` | 必选 | 在 Cloudflare Zero Trust 生成的 `Issuer`,例如 `https://example.cloudflareaccess.com/cdn-cgi/access/sso/oidc/7db0f` |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://chat.example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variable#Cloudflare%20Zero%20Trust) 可查阅相关变量详情。
</Callout>
</Steps>
<Callout type={'info'}>
部署成功后,用户将可以使用 Cloudflare Zero Trust 中配置的用户通过身份认证并使用 LobeChat。
</Callout>
@@ -82,16 +82,14 @@ When deploying LobeChat, you need to configure the following environment variabl
| Environment Variable | Type | Description |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | Required | Enable Single Sign-On (SSO) for LobeChat. Set to `1` to enable SSO. |
| `NEXTAUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate the key using the command: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | Required | Select the Single Sign-On provider for LobeChat. Use `github` for Github. |
| `GITHUB_CLIENT_ID` | Required | Client ID in the Github App details page. |
| `GITHUB_CLIENT_SECRET` | Required | Client Secret in the Github App details page. |
| `ACCESS_CODE` | Required | Add a password for accessing this service. You can set a long random password to "disable" access code authorization. |
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. Only set it if the default generated redirect address is incorrect. `https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate the key using the command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the Single Sign-On provider for LobeChat. Use `github` for Github. |
| `AUTH_GITHUB_ID` | Required | Client ID in the Github App details page. |
| `AUTH_GITHUB_SECRET` | Required | Client Secret in the Github App details page. |
| `NEXTAUTH_URL` | Required | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. Only set it if the default generated redirect address is incorrect. `https://example.com/api/auth` |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variable#Github) for detailed
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#github) for detailed
information on these variables.
</Callout>
</Steps>
@@ -1,6 +1,6 @@
---
title: 在 LobeChat 中配置 Github 身份验证服务
description: 学习如何在 LobeChat 中配置Github身份验证服务,包括创建新的Github App、设置权限和环境变量。
description: 学习如何在 LobeChat 中配置 Github 身份验证服务,包括创建新的 Github App、设置权限和环境变量。
tags:
- Github 身份验证
- Github App
@@ -16,9 +16,9 @@ tags:
<Steps>
### 创建 Github 提供应用
点击[这里](https://github.com/settings/apps/new) 创建一个新的 Github App。
点击 [这里](https://github.com/settings/apps/new) 创建一个新的 Github App。
填写Github App name、Homepage URL、Callbak URL
填写 Github App name、Homepage URL、Callbak URL
<Image
alt="创建 Github 提供程序"
@@ -78,16 +78,14 @@ tags:
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | 必选 | 为 LobeChat 启用单点登录 (SSO)。设置为 `1` 以启用单点登录。 |
| `NEXTAUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Github 请填写 `github`。 |
| `GITHUB_CLIENT_ID` | 必选 | Github App详情页的 客户端 ID |
| `GITHUB_CLIENT_SECRET` | 必选 | Github App详情页的 客户端 Secret |
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Github 请填写 `github`。 |
| `AUTH_GITHUB_ID` | 必选 | Github App详情页的 客户端 ID |
| `AUTH_GITHUB_SECRET` | 必选 | Github App详情页的 客户端 Secret |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/docs/self-hosting/environment-variable#Github) 可查阅相关变量详情。
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#github) 可查阅相关变量详情。
</Callout>
</Steps>
@@ -0,0 +1,76 @@
---
title: Configuring Logto Authentication Service in LobeChat
description: >-
Learn how to configure Logto authentication service in LobeChat, including
deployment, creation, setting permissions, and environment variables.
tags:
- Logto Authentication
- Environment Variable Configuration
- Single Sign-On
- LobeChat
---
# Configuring Logto Authentication Service
[Logto](https://github.com/logto-io/logto) is an open-source authentication service with a simple and beautiful interface, rich in features and easy to use. You can choose to use the official Logto Cloud or opt for a private deployment of Logto.
<Callout type={'tip'}>
If you want to deploy Logto privately, we recommend using Docker Compose to deploy it together
with the LobeChat database version. In this case, LobeChat can share the same Postgres instance
with it.
</Callout>
## Logto Configuration Process
The following assumes your LobeChat database version domain is `https://lobe.example.com`.
If you are using a privately deployed Logto, assume its endpoint domain is `https://lobe-auth-api.example.com`.
If you are using Logto Cloud, assume its endpoint domain is `https://example.logto.app`.
<Steps>
### Create Logto Application
Access your privately deployed Logto WebUI or [Logto Cloud](http://cloud.logto.io/) to enter the console, and create a `Next.js (App Router)` application under `Applications` with any name.
### Configure Logto
Set the `Redirect URI` to `https://lobe.example.com/api/auth/callback/logto` and the `Post sign-out redirect URI` to `https://lobe.example.com/`.
Set `CORS allowed origins` to `https://lobe.example.com`.
<Image alt="Configure Logto" inStep src="https://github.com/user-attachments/assets/5b816379-c07b-40ea-bde4-df16e2e4e523" />
After successful creation, save the `Client ID` and `Client Secret`.
### Configure Environment Variables
<Image alt="Configure Environment Variables" inStep src="https://github.com/user-attachments/assets/15af6d94-af4f-4aa9-bbab-7a46e9f9e837" />
Set the obtained `Client ID` and `Client Secret` as `AUTH_LOGTO_ID` and `AUTH_LOGTO_SECRET` in the LobeChat environment variables.
Configure `AUTH_LOGTO_ISSUER` in the LobeChat environment variables as follows:
- `https://lobe-auth-api.example.com/oidc` if you are using a privately deployed Logto
- `https://example.logto.app/oidc` if you are using Logto Cloud
When deploying LobeChat, you need to configure the following environment variables:
| Environment Variable | Type | Description |
| ------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `NEXT_AUTH_SECRET` | Required | The key used to encrypt Auth.js session tokens. You can generate a key using the command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the single sign-on provider for LobeChat. For Logto, enter `logto`. |
| `AUTH_LOGTO_ID` | Required | The Client ID from the Logto App details page |
| `AUTH_LOGTO_SECRET` | Required | The Client Secret from the Logto App details page |
| `AUTH_LOGTO_ISSUER` | Required | OpenID Connect issuer of the Logto provider |
| `NEXTAUTH_URL` | Required | This URL specifies the callback address for Auth.js during OAuth verification, needed only if the default generated redirect address is incorrect. `https://lobe.example.com/api/auth` |
<Callout type={'tip'}>
Visit [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#logto) for details on related variables.
</Callout>
</Steps>
<Callout type={'info'}>
After successful deployment, users will be able to authenticate via Logto and use LobeChat.
</Callout>
@@ -0,0 +1,78 @@
---
title: 在 LobeChat 中配置 Logto 身份验证服务
description: 学习如何在 LobeChat 中配置 Logto 身份验证服务,包括部署、创建、设置权限和环境变量。
tags:
- Logto 身份验证
- 环境变量配置
- 单点登录
- LobeChat
---
# 配置 Logto 身份验证服务
[Logto](https://github.com/logto-io/logto) 是一个开源的身份验证服务,界面简洁美观、功能配置丰富且易于上手,你即可以选择使用其官方提供的 Logto Cloud,也可以选择私有部署 Logto。
<Callout type={'tip'}>
若你想要私有部署 Logto,我们建议你将之与 LobeChat 数据库版本一同使用 Docker Compose 部署,此时 LobeChat 可以与之共用同一个 Postgres 实例。
</Callout>
## Logto 配置流程
下文假设你的 LobeChat 数据库版本域名为 `https://lobe.example.com`。
若你是私有部署的 Logto,假设其 endpoint 域名为 `https://lobe-auth-api.example.com`。
若你是使用的 Logto Cloud,假设其 endpoint 域名为 `https://example.logto.app`。
<Steps>
### 创建 Logto 应用
访问你私有部署的 Logto WebUI 或者 [Logto Cloud](http://cloud.logto.io/) 进入控制台,在 `Applications` 里创建一个 `Next.js (App Router)` 应用,名称随意
### 配置 Logto
配置 `Redirect URI` 为 `https://lobe.example.com/api/auth/callback/logto``Post sign-out redirect URI` 为 `https://lobe.example.com/`
配置 `CORS allowed origins` 为 `https://lobe.example.com`
<Image
alt="配置 Logto"
inStep
src="https://github.com/user-attachments/assets/5b816379-c07b-40ea-bde4-df16e2e4e523"
/>
创建成功后, 将 `Client ID` 和 `Client Secret` 保存下来。
### 配置环境变量
<Image
alt="配置环境变量"
inStep
src="https://github.com/user-attachments/assets/15af6d94-af4f-4aa9-bbab-7a46e9f9e837"
/>
将获取到的 `Client ID` 和 `Client Secret`,设为 LobeChat 环境变量中的 `AUTH_LOGTO_ID` 和 `AUTH_LOGTO_SECRET`。
配置 LobeChat 环境变量中 `AUTH_LOGTO_ISSUER` 为:
- `https://lobe-auth-api.example.com/oidc`,若你是私有部署的 Logto
- `https://example.logto.app/oidc`,若你是使用的 Logto Cloud
在部署 LobeChat 时,你需要配置以下环境变量:
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Logto 请填写 `logto`。 |
| `AUTH_LOGTO_ID` | 必选 | Logto App 详情页的 Client ID |
| `AUTH_LOGTO_SECRET` | 必选 | Logto App 详情页的 Client Secret |
| `AUTH_LOGTO_ISSUER` | 必选 | Logto 提供程序的 OpenID Connect 颁发者 |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://lobe.example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#logto) 可查阅相关变量详情。
</Callout>
</Steps>
<Callout type={'info'}>部署成功后,用户将可以通过 Logto 身份认证并使用 LobeChat。</Callout>
@@ -25,7 +25,7 @@ Fill in the desired application name to be displayed to organizational users, ch
In the `Redirect URI (optional)` section, for the application type, select `Web`, and in the Callback URL, enter:
```bash
https://your-domain/api/auth/callback/azure-ad
https://your-domain/api/auth/callback/microsoft-entra-id
```
<Callout type={'info'}>
@@ -71,14 +71,12 @@ When deploying LobeChat, you need to configure the following environment variabl
| Environment Variable | Type | Description |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | Required | Enable single sign-on (SSO) for LobeChat. Set to `1` to enable single sign-on. |
| `NEXTAUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate the key using the following command: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | Required | Select the single sign-on provider for LoboChat. Use `azure-ad` for Microsoft Entra ID. |
| `AZURE_AD_CLIENT_ID` | Required | Client ID of the Microsoft Entra ID application. |
| `AZURE_AD_CLIENT_SECRET` | Required | Client Secret of the Microsoft Entra ID application. |
| `AZURE_AD_TENANT_ID` | Required | Tenant ID of the Microsoft Entra ID application. |
| `ACCESS_CODE` | Required | Add a password for accessing this service, you can set a sufficiently long random password to "disable" access code authorization. |
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It is only necessary to set it when the default generated redirect address is incorrect. `https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate the key using the following command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the single sign-on provider for LoboChat. Use `microsoft-entra-id` for Microsoft Entra ID. |
| `AUTH_MICROSOFT_ENTRA_ID_ID` | Required | Client ID of the Microsoft Entra ID application. |
| `AUTH_MICROSOFT_ENTRA_ID_SECRET` | Required | Client Secret of the Microsoft Entra ID application. |
| `AUTH_MICROSOFT_ENTRA_ID_TENANT_ID` | Required | Tenant ID of the Microsoft Entra ID application. |
| `NEXTAUTH_URL` | Required | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It is only necessary to set it when the default generated redirect address is incorrect. `https://example.com/api/auth` |
<Callout type={'tip'}>
You can refer to [📘 environment
@@ -24,7 +24,7 @@ tags:
在 `Redirect URI (optional)` 中,应用类型选择 `Web`Callback URL, 处填写:
```bash
https://your-domain/api/auth/callback/azure-ad
https://your-domain/api/auth/callback/microsoft-entra-id
```
<Callout type={'info'}>
@@ -68,17 +68,15 @@ https://your-domain/api/auth/callback/azure-ad
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | 必选 | 为 LobeChat 启用单点登录 (SSO)。设置为 `1` 以启用单点登录。 |
| `NEXTAUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Microsoft Entra ID 请填写 `azure-ad`。 |
| `AZURE_AD_CLIENT_ID` | 必选 | Microsoft Entra ID 应用程序的 Client ID |
| `AZURE_AD_CLIENT_SECRET` | 必选 | Microsoft Entra ID 应用程序的 Client Secret |
| `AZURE_AD_TENANT_ID` | 必选 | Microsoft Entra ID 应用程序的 Tenant ID |
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Microsoft Entra ID 请填写 `microsoft-entra-id`。 |
| `AUTH_MICROSOFT_ENTRA_ID_ID` | 必选 | Microsoft Entra ID 应用程序的 Client ID |
| `AUTH_MICROSOFT_ENTRA_ID_SECRET` | 必选 | Microsoft Entra ID 应用程序的 Client Secret |
| `AUTH_MICROSOFT_ENTRA_ID_TENANT_ID` | 必选 | Microsoft Entra ID 应用程序的 Tenant ID |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
<Callout type={'tip'}>
前往 [📘 环境变量](/docs/self-hosting/environment-variable#microsoft-entra-id) 可查阅相关变量详情。
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variable#microsoft-entra-id) 可查阅相关变量详情。
</Callout>
</Steps>
@@ -57,7 +57,8 @@ http(s)://your-domain/api/auth/callback/zitadel
- You can fill in or modify redirect URIs after creating the application, but make sure the filled
URL is consistent with the deployed URL.
- Replace `http(s)://your-domain` with the actual URL that LobeChat is deployed to.
- Replace `http(s)://your-domain` with the actual URL that LobeChat is deployed to.
</Callout>
Confirm the configuration and click **Create**.
@@ -76,8 +77,7 @@ Save the **ClientId** and **ClientSecret** for later use.
src="https://github.com/lobehub/lobe-chat/assets/8692892/407b4eed-7f21-4aa6-b68f-9bae2faf09d0"
/>
In the application settings page, navigate to the **Token Settings** tab, enable **User Info inside
ID Token** option, and click **Save**.
In the application settings page, navigate to the **Token Settings** tab, enable **User Info inside ID Token** option, and click **Save**.
<Image
alt="Create ZITADEL Application S7"
@@ -99,14 +99,12 @@ When deploying LobeChat, you need to configure the following environment variabl
| Environment Variable | Type | Description |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | Required | Enable single sign-on (SSO) for LobeChat. Set to `1` to enable single sign-on. |
| `NEXTAUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate a key using the following command: `openssl rand -base64 32` |
| `SSO_PROVIDERS` | Optional | Select the single sign-on provider for LoboChat. Use `zitadel` for ZITADEL. |
| `ZITADEL_CLIENT_ID` | Required | Client ID (`ClientId` as shown in ZITADEL) of the ZITADEL application |
| `ZITADEL_CLIENT_SECRET` | Required | Client Secret (`ClientSecret` as shown in ZITADEL) of the ZITADEL application |
| `ZITADEL_ISSUER` | Required | Issuer URL of the ZITADEL application |
| `ACCESS_CODE` | Required | Add a password to access this service. You can set a sufficiently long random password to "disable" access code authorization. |
| `NEXTAUTH_URL` | Optional | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate a key using the following command: `openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the single sign-on provider for LoboChat. Use `zitadel` for ZITADEL. |
| `AUTH_ZITADEL_ID` | Required | Client ID (`ClientId` as shown in ZITADEL) of the ZITADEL application |
| `AUTH_ZITADEL_SECRET` | Required | Client Secret (`ClientSecret` as shown in ZITADEL) of the ZITADEL application |
| `AUTH_ZITADEL_ISSUER` | Required | Issuer URL of the ZITADEL application |
| `NEXTAUTH_URL` | Required | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |
<Callout type={'tip'}>
You can refer to the related variable details at [📘Environment Variables](/docs/self-hosting/environment-variables/auth#zitadel).
@@ -53,7 +53,8 @@ http(s)://your-domain/api/auth/callback/zitadel
<Callout type={'important'}>
- 可以创建应用后再填写或修改重定向 URL,但请确保填写的 URL 与部署的 URL 一致。
- 请将 `http(s)://your-domain` 替换为 LobeChat 部署的实际 URL。
- 请将 `http(s)://your-domain` 替换为 LobeChat 部署的实际 URL。
</Callout>
确认配置并点击「创建」。
@@ -94,17 +95,15 @@ http(s)://your-domain/api/auth/callback/zitadel
| 环境变量 | 类型 | 描述 |
| --- | --- | --- |
| `ENABLE_OAUTH_SSO` | 必选 | 为 LobeChat 启用单点登录(SSO)。设置为 `1` 以启用单点登录。 |
| `NEXTAUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成密钥:`openssl rand -base64 32` |
| `SSO_PROVIDERS` | 选 | 为 LobeChat 选择单点登录提供程序。对于 ZITADEL,请填写 `zitadel`。 |
| `ZITADEL_CLIENT_ID` | 必选 | ZITADEL 应用的 Client ID`ClientId`)。 |
| `ZITADEL_CLIENT_SECRET` | 必选 | ZITADEL 应用的 Client Secret`ClientSecret`。 |
| `ZITADEL_ISSUER` | 必选 | ZITADEL 应用的 OpenID Connect 颁发者(issuerURL。 |
| `ACCESS_CODE` | 必选 | 添加访问此服务的代码。您可以设置一个足够长的随机密码以「禁用」访问码授权。 |
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 中执行 OAuth 认证的回调地址。仅当默认地址不正确时才需要设置。`https://example.com/api/auth` |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成密钥:`openssl rand -base64 32` |
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 为 LobeChat 选择单点登录提供程序。对于 ZITADEL,请填写 `zitadel`。 |
| `AUTH_ZITADEL_ID` | 选 | ZITADEL 应用的 Client ID`ClientId`。 |
| `AUTH_ZITADEL_SECRET` | 必选 | ZITADEL 应用的 Client Secret`ClientSecret`)。 |
| `AUTH_ZITADEL_ISSUER` | 必选 | ZITADEL 应用的 OpenID Connect 颁发者(issuerURL。 |
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 中执行 OAuth 认证的回调地址。仅当默认地址不正确时才需要设置。`https://example.com/api/auth` |
<Callout type={'tip'}>
您可以在 [📘 环境变量](/docs/self-hosting/environment-variables/auth#zitadel) 中查看相关变量的详细信息。
您可以在 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#zitadel) 中查看相关变量的详细信息。
</Callout>
</Steps>
@@ -1,51 +0,0 @@
---
title: >-
LobeChat Identity Verification Service - Centralized User Authorization
Management
description: >-
Learn about LobeChat's support for configuring external identity verification
services for centralized user authorization within enterprises/organizations.
Explore supported services like Auth0, Microsoft Entra ID, Authentik, Github,
and ZITADEL.
tags:
- Identity Verification Service
- Centralized User Authorization
- SSO Providers
- Auth0
- Microsoft Entra ID
- Authentik
- Github
- ZITADEL
---
# Identity Verification Service
LobeChat supports the configuration of external identity verification services for internal use within enterprises/organizations to centrally manage user authorization.
Currently supported identity verification services include:
- [Auth0](/docs/self-hosting/advanced/sso-providers/auth0)
- [Microsoft Entra ID](/docs/self-hosting/advanced/sso-providers/microsoft-entra-id)
- [Authentik](/docs/self-hosting/advanced/sso-providers/authentik)
- [Github](/docs/self-hosting/advanced/sso-providers/github)
- [ZITADEL](/docs/self-hosting/advanced/sso-providers/zitadel)
Click on the links to view the corresponding platform's configuration documentation.
## Advanced Configuration
To simultaneously enable multiple identity verification sources, please set the `SSO_PROVIDERS` environment variable, separating them with commas, for example, `auth0,azure-ad,authentik`.
The order corresponds to the display order of the SSO providers.
| SSO Provider | Value |
| ------------------ | ----------- |
| Auth0 | `auth0` |
| Microsoft Entra ID | `azure-ad` |
| Authentik | `authentik` |
| Github | `github` |
| ZITADEL | `zitadel` |
## Other SSO Providers
Please refer to the [NextAuth.js](https://next-auth.js.org/providers) documentation and feel free to submit a Pull Request.
@@ -1,47 +0,0 @@
---
title: LobeChat 外部身份验证服务配置指南
description: >-
了解如何配置外部身份验证服务以统一管理用户授权。支持的身份验证服务包括 Auth0, Microsoft Entra ID, Authentik,
Github, 和 ZITADEL。
tags:
- 身份验证服务
- LobeChat
- SSO
- Auth0
- Microsoft Entra ID
- Authentik
- Github
- ZITADEL
---
# 身份验证服务
LobeChat 支持配置外部身份验证服务,供企业 / 组织内部使用,统一管理用户授权。
目前支持的身份验证服务有:
- [Auth0](/docs/self-hosting/advanced/sso-providers/auth0)
- [Microsoft Entra ID](/docs/self-hosting/advanced/sso-providers/microsoft-entra-id)
- [Authentik](/docs/self-hosting/advanced/sso-providers/authentik)
- [Github](/docs/self-hosting/advanced/sso-providers/github)
- [ZITADEL](/docs/self-hosting/advanced/sso-providers/zitadel)
点击链接可以查看对应平台的配置文档。
## 进阶配置
同时启用多个身份验证源请设置 `SSO_PROVIDERS` 环境变量,以逗号 `,` 分割,例如 `auth0,azure-ad,authentik`。
顺序为 SSO 提供商的显示顺序。
| SSO 提供商 | 值 |
| ------------------ | ----------- |
| Auth0 | `auth0` |
| Microsoft Entra ID | `azure-ad` |
| Authentik | `authentik` |
| Github | `github` |
| ZITADEL | `zitadel` |
## 其他 SSO 提供商
请参考 [NextAuth.js](https://next-auth.js.org/providers) 文档,欢迎提交 Pull Request。
@@ -0,0 +1,51 @@
---
title: LobeChat Feature Flags Environment Variables Configuration Guide
description: >-
Learn how to use environment variables to customize LobeChat's feature flags,
including controlling whether a feature is enabled or disabled, or enabling or
disabling features for specific user groups or environments as needed.
tags:
- LobeChat
- Environment Variables
- Configuration Guide
- Feature Flags
---
# Feature Flags
In addition to basic environment variable configuration, LobeChat also offers feature flags to control whether a feature is enabled globally, or to enable or disable features for specific user groups or environments as needed.
## Feature Flags Environment Variable `FEATURE_FLAGS`
- Type: Optional
- Description: Used to control LobeChat's feature functionalities. Supports multiple feature flags, using `+` to add a feature and `-` to disable a feature. Separate multiple feature flags with a comma `,` and enclose the entire value in quotes `"` to avoid parsing errors.
- Default: `-`
- Example: `"-welcome_suggest"`
All features are controlled by the `FEATURE_FLAGS` variable as the sole configuration variable.
You can achieve various feature combinations using the above configuration syntax. All feature flags are Boolean values, enabled with `+` and disabled with `-`.
<Callout type={'tip'}>
Attention: Unlike the `OPENAI_MODEL_LIST` variable, the `FEATURE_FLAGS` variable does not support
the `all` keyword. You need to manually control all feature flags (otherwise, they will adopt
their default values).
</Callout>
| Configuration Item | Description | Default Value |
| ------------------------- | ----------------------------------------------- | ------------- |
| `webrtc_sync` | Enables WebRTC sync functionality. | Disabled |
| `language_model_settings` | Enables language model settings. | Enabled |
| `openai_api_key` | Allows users to customize the OpenAI API Key. | Enabled |
| `openai_proxy_url` | Allows users to customize the OpenAI proxy URL. | Enabled |
| `create_session` | Allows users to create sessions. | Enabled |
| `edit_agent` | Allows users to edit assistants. | Enabled |
| `dalle` | Enables the DALL-E functionality. | Enabled |
| `check_updates` | Allows checking for updates. | Enabled |
| `welcome_suggest` | Displays welcome suggestions. | Enabled |
| `market` | Enables the assistant market functionality. | Enabled |
| `speech_to_text` | Enables speech-to-text functionality. | Enabled |
| `knowledge_base` | Enables the knowledge base functionality. | Enabled |
| `clerk_sign_up` | Enables the Clerk SignUp functionality. | Enabled |
You can always check the [featureFlags](https://github.com/lobehub/lobe-chat/blob/main/src/config/featureFlags/schema.ts) to get the latest list of feature flags.
@@ -0,0 +1,47 @@
---
title: LobeChat 特性标志环境变量配置指南
description: 了解如何使用环境变量自定义 LobeChat 的特性标志,包括控制否启用某个功能、或者根据需要对特定用户群体或环境启用或禁用功能。
tags:
- LobeChat
- 环境变量
- 配置指南
- 特征标志
---
# 特性标志
除了基础的环境变量配置外,LobeChat 还提供了一些特性标志(Feature Flags),用于控制是否全局启用某个功能,或者根据需要对特定用户群体或环境启用或禁用功能。
## 特性标志环境变量 `FEATURE_FLAGS`
- 类型:可选
- 描述:用于控制 LobeChat 的特性功能,支持多个功能标志,使用 `+` 增加一个功能,使用 `-` 来关闭一个功能,多个功能标志之间使用英文逗号 `,` 隔开,最外层建议添加引号 `"` 以避免解析错误。
- 默认值:`-`
- 示例:`"-welcome_suggest"`
所有的功能统一以特性标志 `FEATURE_FLAGS` 作为唯一的配置变量。
你可以通过上述配置语法来实现更多的功能组合。所有的功能配置项都是布尔类型,通过 `+` 来启用,通过 `-` 来关闭。
<Callout type={'tip'}>
注意:与 `OPENAI_MODEL_LIST` 变量不同,`FEATURE_FLAGS` 变量不支持 `all`
关键字,你需要手动控制所有的功能标志(否则它们会采用对应的默认值)。
</Callout>
| 配置项 | 解释 | 默认值 |
| ------------------------- | -------------------------------- | ------ |
| `webrtc_sync` | 启用 WebRTC 同步功能。 | 关闭 |
| `language_model_settings` | 启用语言模型设置。 | 开启 |
| `openai_api_key` | 允许用户自定义 OpenAI API Key。 | 开启 |
| `openai_proxy_url` | 允许用户自定义 OpenAI 代理 URL。 | 开启 |
| `create_session` | 允许用户创建会话。 | 开启 |
| `edit_agent` | 允许用户编辑助手。 | 开启 |
| `dalle` | 启用 DALL-E 功能。 | 开启 |
| `check_updates` | 允许检查更新。 | 开启 |
| `welcome_suggest` | 显示欢迎建议。 | 开启 |
| `market` | 启用助手市场功能。 | 开启 |
| `speech_to_text` | 启用语音转文本功能。 | 开启 |
| `knowledge_base` | 启用知识库功能。 | 开启 |
| `clerk_sign_up` | 启用Clerk注册功能。 | 开启 |
你可以随时检查 [featureFlags](https://github.com/lobehub/lobe-chat/blob/main/src/config/featureFlags/schema.ts) 以获取最新的特性标志列表。
@@ -0,0 +1,53 @@
# Knowledge Base / File Upload
LobeChat supports file upload and knowledge base management. This feature relies on the following core technical components. Understanding these components will help you successfully deploy and maintain the knowledge base system.
## Core Components
### 1. PostgreSQL and PGVector
PostgreSQL is a powerful open-source relational database system, and PGVector is its extension for vector operations.
- **Purpose**: Store structured data and vector indexes
- **Deployment Tip**: Use official Docker image for quick deployment
Deployment script example:
```
docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvector/pgvector:pg16
```
- **Note**: Ensure sufficient resources for vector operations
### 2. S3-compatible Object Storage
S3 (or S3-compatible storage services) is used for storing uploaded files.
- **Purpose**: Store raw files
- **Options**: AWS S3, MinIO, or other S3-compatible services
- **Note**: Configure appropriate access permissions and security policies
### 3. OpenAI Embedding
OpenAI's Embedding service is used to convert text into vector representations.
<Callout type={'info'}>
LobeChat currently uses OpenAI's `text-embedding-3-small` model by default. Ensure your API Key has access to this model.
</Callout>
- **Purpose**: Generate vector representations for semantic search
- **Notes**:
- Requires valid OpenAI API key
- Implement proper API call limits and error handling
### 4. Unstructured.io (Optional)
Unstructured.io is a powerful document processing tool.
- **Purpose**: Process complex document formats, extract structured information
- **Use Case**: Handle non-plain text formats like PDF, Word
- **Note**: Evaluate processing needs based on document complexity
By correctly configuring and integrating these core components, you can build a powerful and efficient knowledge base system for LobeChat. Each component plays a crucial role in the overall architecture, supporting advanced document management and intelligent retrieval functions.
@@ -0,0 +1,53 @@
# 知识库 / 文件上传
LobeChat 支持文件上传 / 知识库管理。该功能依赖于以下核心技术组件,了解这些组件将有助于你成功部署和维护知识库系统。
## 核心组件
### 1. PostgreSQL 与 PGVector
PostgreSQL 是一个强大的开源关系型数据库系统,而 PGVector 是其扩展,为向量操作提供支持。
- **用途**:存储结构化数据和向量索引
- **部署建议**:使用官方 Docker 镜像可以快速部署 PostgreSQL 和 PGVector
示例部署脚本:
```
docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvector/pgvector:pg16
```
- **注意事项**:确保分配足够的资源以处理向量操作
### 2. S3 兼容的对象存储
S3(或兼容 S3 协议的存储服务)用于存储上传的文件。
- **用途**:存储原始文件
- **选项**:可以使用 AWS S3、MinIO 或其他兼容 S3 协议的存储服务
- **注意事项**:配置适当的访问权限和安全策略
### 3. OpenAI Embedding
OpenAI 的嵌入(Embedding)服务用于将文本转化为向量表示。
<Callout type={'info'}>
LobeChat 当前默认使用 OpenAI `text-embedding-3-small` 模型,请确保你的 API Key 可以访问该模型。
</Callout>
- **用途**:生成文本的向量表示,用于语义搜索
- **注意事项**
- 需要有效的 OpenAI API 密钥
- 实施适当的 API 调用限制和错误处理机制
### 4. Unstructured.io(可选)
Unstructured.io 是一个强大的文档处理工具。
- **用途**:处理复杂的文档格式,提取结构化信息
- **应用场景**:处理 PDF、Word 等非纯文本格式的文档
- **注意事项**:评估处理需求,根据文档复杂度决定是否部署
通过正确配置和集成这些核心组件,您可以为 LobeChat 构建一个强大、高效的知识库系统。每个组件都在整体架构中扮演着关键角色,共同支持高级的文档管理和智能检索功能。
+6 -4
View File
@@ -12,10 +12,12 @@ tags:
# Model List
LobeChat supports customizing the model list during deployment. You can use `+` to add a model, `-` to hide a model, and use `model name=display name<extension configuration>` to customize the display name of a model, separated by English commas. The basic syntax is as follows:
LobeChat supports customizing the model list during deployment. This configuration is done in the environment for each [model provider](/docs/self-hosting/environment-variables/model-provider).
```shell
id=displayName < maxToken:vision:fc:file > ,model2,model3
You can use `+` to add a model, `-` to hide a model, and use `model name=display name<extension configuration>` to customize the display name of a model, separated by English commas. The basic syntax is as follows:
```text
id=displayName<maxToken:vision:fc:file>,model2,model3
```
For example: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo`
@@ -36,7 +38,7 @@ Examples are as follows:
- `chatglm-6b=ChatGLM 6B<4096>`: ChatGLM 6B, maximum context of 4k, no advanced capabilities;
- `spark-v3.5=讯飞星火 v3.5<8192:fc>`: Xunfei Spark 3.5 model, maximum context of 8k, supports Function Call;
- `gemini-pro-vision=Gemini Pro Vision<16000:vision>`: Google Vision model, maximum context of 16k, supports image recognition;
- `gemini-1.5-flash-latest=Gemini 1.5 Flash<16000:vision>`: Google Vision model, maximum context of 16k, supports image recognition;
- `gpt-4-all=ChatGPT Plus<128000:fc:vision:file>`, hacked version of ChatGPT Plus web, context of 128k, supports image recognition, Function Call, file upload.
Currently supported extension capabilities are:
@@ -8,12 +8,15 @@ tags:
- 模型展示名
- 模型能力
---
# Model List
LobeChat 支持在部署时自定义模型列表,可以使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名<扩展配置>` 来自定义模型的展示名,用英文逗号隔开。通过 `<>` 来添加扩展配置。基本语法如下:
LobeChat 支持在部署时自定义模型列表,详情请参考 [模型提供商](/zh/docs/self-hosting/environment-variables/model-provider) 。
```shell
id=displayName < maxToken:vision:fc:file > ,model2,model3
你可以使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名<扩展配置>` 来自定义模型的展示名,用英文逗号隔开。通过 `<>` 来添加扩展配置。基本语法如下:
```text
id=displayName<maxToken:vision:fc:file>,model2,model3
```
例如: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo`
@@ -34,7 +37,7 @@ id=displayName<maxToken:vision:fc:file>
- `chatglm-6b=ChatGLM 6B<4096>`ChatGLM 6B,最大上下文 4k,没有高阶能力;
- `spark-v3.5=讯飞星火 v3.5<8192:fc>`:讯飞星火 3.5 模型,最大上下文 8k,支持 Function Call
- `gemini-pro-vision=Gemini Pro Vision<16000:vision>`Google 视觉模型,最大上下文 16k,支持图像识别;
- `gemini-1.5-flash-latest=Gemini 1.5 Flash<16000:vision>`Google 视觉模型,最大上下文 16k,支持图像识别;
- `gpt-4-all=ChatGPT Plus<128000:fc:vision:file>`hack 的 ChatGPT Plus 网页版,上下 128k ,支持图像识别、Function Call、文件上传
目前支持的扩展能力有:
+91
View File
@@ -0,0 +1,91 @@
---
title: Configuring S3 Storage Service for AI - LobeChat
description: Learn how to configure S3 storage for LobeChat's multimodal AI conversations.
tags:
- S3 Storage
- LobeChat
- AI Conversations
- Cloud Storage
- Image Upload
---
# Configuring S3 Storage Service
LobeChat has supported multimodal AI conversations since [a long time ago](https://x.com/lobehub/status/1724289575672291782), which involves the function of uploading images to AI. In the client-side database solution, image files are stored as binary data directly in the browser's IndexedDB database. However, this solution is not feasible in the server-side database. Storing file-like data directly in Postgres would greatly waste database storage space and slow down computational performance.
The best practice in this area is to use a file storage service (S3) to store image files. S3 is also the storage solution on which the file upload/knowledge base function depends.
<Callout type={'info'}>
In this documentation, S3 refers to a compatible S3 storage solution, which supports the Amazon S3 API for object storage systems. Common examples include Cloudflare R2, Alibaba Cloud OSS, and self-deployable Minio, all of which support the S3 compatible API.
</Callout>
## Core Environment Variables
<Steps>
### `S3_ACCESS_KEY_ID` and `S3_SECRET_ACCESS_KEY`
These are the two keys required by all S3 compatible storage services to access the S3 storage service, not detailed here.
### `S3_ENDPOINT`
The request endpoint of the storage bucket. Note that this link should not contain the name of the storage bucket.
<Callout type={'warning'}>`S3_ENDPOINT` must remove the suffix path, otherwise the uploaded files will not be accessible</Callout>
For example, for Cloudflare:
```shell
S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
```
### `S3_BUCKET` and `S3_REGION`
The name and region of the storage bucket. `S3_BUCKET` is required to specify the name of the storage bucket. `S3_REGION` is optional and is used to specify the region of the storage bucket. Generally, it does not need to be added, but some service providers may require configuration.
### `S3_SET_ACL`
Whether to set the ACL to `public-read` when uploading files. This option is enabled by default. If the service provider does not support setting individual ACLs for files (i.e., all files inherit the ACL of the storage bucket), enabling this option may cause request errors. Set `S3_SET_ACL` to `0` to disable it.
### `S3_PUBLIC_DOMAIN`
The public access domain of the storage bucket, used to access files in the storage bucket. This address needs to be **publicly readable**. The reason is that when OpenAI's gpt-4o and other vision models recognize images, OpenAI will try to download this image link on their servers. Therefore, this link must be publicly accessible. If it is a private link, OpenAI will not be able to access the image and thus will not be able to recognize the image content properly.
<Callout type={'warning'}>
Additionally, since this access domain is often a separate URL, it needs to be configured to allow cross-origin access to the site. Otherwise, cross-origin issues will occur in the browser.
</Callout>
### `S3_ENABLE_PATH_STYLE`
Whether to enable the `path-style` access mode of S3. This option is disabled by default. If your S3 service provider uses `path-style`, set `S3_ENABLE_PATH_STYLE` to `1` to enable it.
<Callout type={'info'}>
`path-style` and `virtual-host` are different ways to access buckets and objects in S3, with different URL structures and domain name resolutions.
Assuming the domain name of the S3 service provider is s3.example.net, the bucket is mybucket, and the object is config.env, the specific differences are as follows:
- path-style: `s3.example.net/mybucket/config.env`
- virtual-host: `mybucket.s3.example.net/config.env`
</Callout>
<Callout type={'tip'}>
Common S3 cloud service providers often default to the `virtual-host` mode, while self-deployed services like Minio default to using `path-style`. Therefore, if you use Minio as the S3 service, you need to set `S3_ENABLE_PATH_STYLE=1`.
</Callout>
</Steps>
## S3 Configuration Guide
Currently, the S3 configuration tutorials included in the documentation are:
<Cards>
<Card href={'/docs/self-hosting/advanced/s3/cloudflare-r2'} title={'Cloudflare R2'} />
<Card href={'/docs/self-hosting/advanced/s3/tencent-cloud'} title={'Tencent Cloud COS'} />
</Cards>
Click to view the tutorial for the corresponding platform. If the above tutorials do not include the S3 service provider you are using, feel free to submit a Pull Request to collectively improve the guide on S3 object storage.
+89
View File
@@ -0,0 +1,89 @@
---
title: 配置 S3 存储服务 - 多模态 AI 会话
description: 了解如何配置 S3 存储服务以支持多模态 AI 会话和图片上传。
tags:
- S3 存储
- 多模态 AI
- 图片上传
- 文件存储
---
# 配置 S3 存储服务
LobeChat 在 [很早以前](https://x.com/lobehub/status/1724289575672291782) 就支持了多模态的 AI 会话,其中涉及到图片上传给大模型的功能。在客户端数据库方案中,图片文件直接以二进制数据存储在浏览器 IndexedDB 数据库,但在服务端数据库中这个方案并不可行。因为在 Postgres 中直接存储文件类二进制数据会大大浪费宝贵的数据库存储空间,并拖慢计算性能。
这块最佳实践是使用文件存储服务(S3)来存储图片文件,同时 S3 也是文件上传/知识库功能所依赖的大容量静态文件存储方案。
<Callout type={'info'}>
在本文档库中,S3 所指代的是指兼容 S3 存储方案,即支持 Amazon S3 API 的对象存储系统,常见例如
Cloudflare R2 、阿里云 OSS,可以自部署的 minio 等均支持 S3 兼容 API。
</Callout>
## 核心环境变量
<Steps>
### `S3_ACCESS_KEY_ID` 与 `S3_SECRET_ACCESS_KEY`
所有 S3 兼容存储服务都需要的两个密钥,用于访问 S3 存储服务,不详细展开。
### `S3_ENDPOINT`
存储桶的请求端点, 注意此处链接不应该包含存储桶的名称。
<Callout type={'warning'}>`S3_ENDPOINT`必须删除后缀路径,否则会无法访问所上传文件</Callout>
例如 Cloudflare 为:
```shell
S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
```
### `S3_BUCKET` 和 `S3_REGION`
存储桶的名称和区域,`S3_BUCKET` 是必须的,用于指定存储桶的名称。 `S3_REGION` 是可选的,用于指定存储桶的区域,一般来说不需要添加,但某些服务商则需要配置。
### `S3_SET_ACL`
是否在上传文件时设置 ACL 为 `public-read`。该选项默认启用。如果服务商不支持为文件设置单独的 ACL(即所有文件继承存储桶的 ACL),启用此选项可能会导致请求错误,将 `S3_SET_ACL` 设置为 `0` 即可关闭。
### `S3_PUBLIC_DOMAIN`
存储桶对外的访问域名,用于访问存储桶中的文件,这个地址需要**允许互联网可读**。 原因是 OpenAI 的 gpt-4o 等视觉模型识别图片时,OpenAI 会尝试在他们的服务器中下载这个图片链接,因此这个链接必须是公开可访问的,如果是私有的链接,OpenAI 将无法访问到这个图片,进而无法正常识别到图片内容。
<Callout type={'warning'}>
此外,由于该访问域名往往是一个独立的网址,因此需要配置允许站点的跨域访问,否则会在浏览器中出现跨域问题。
</Callout>
### `S3_ENABLE_PATH_STYLE`
是否启用 S3 的 `path-style` 访问模式。此选项默认禁用。如果您的 S3 服务提供商使用 `path-style`,请将 `S3_ENABLE_PATH_STYLE` 设置为 `1` 以启用它。
<Callout type={'info'}>
`path-style` 和 `virtual-host` 在 S3 中是访问 bucket 和 object 的不同方式,URL 的结构和域名解析不太一样
假设 S3 服务商的域名是 s3.example.net bucket为mybucketobject为config.env,具体区别如下:
- path-style : `s3.example.net/mybucket/config.env`
- virtual-host : `mybucket.s3.example.net/config.env`
</Callout>
<Callout type={'tip'}>
常见的 S3 Cloud 服务商往往默认采用 `virtual-host` 模式,而自部署服务 minio 则默认使用的是 `path-style`。 因此如果你使用了 minio 作为 S3 服务,你需要设置 `S3_ENABLE_PATH_STYLE=1` 。
</Callout>
</Steps>
## S3 配置指南
目前文档中包含的 S3 配置指南如下:
<Cards>
<Card href={'/zh/docs/self-hosting/advanced/s3/cloudflare-r2'} title={'Cloudflare R2'} />
<Card href={'/zh/docs/self-hosting/advanced/s3/tencent-cloud'} title={'腾讯云 COS'} />
</Cards>
点击即可查看对应 S3 服务的部署指南,如果上述指南中不包含你所使用的 S3 服务商,欢迎提交 PR ,将共同完善 S3 对象存储的指南。
@@ -0,0 +1,146 @@
---
title: Configuring Cloudflare R2 Storage Service
description: Step-by-step guide to configure Cloudflare R2 for S3 storage.
tags:
- Cloudflare R2
- S3 Storage
- Configuration Guide
---
# Configuring Cloudflare R2 Storage Service
We need to configure an S3 storage service in the server-side database to store files.
## Configuration Steps
<Steps>
### Configure and Obtain S3 Bucket
You need to go to your S3 service provider (such as AWS S3, Cloudflare R2, etc.) and create a new storage bucket. The following is an example using Cloudflare R2 to guide you through the creation process.
The interface of Cloudflare R2 is shown below:
<Image
alt={'Cloudflare R2 Storage Interface'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/41f7f677-0153-4a96-b849-5ac9b7ebefee'}
></Image>
When creating the bucket, specify its name and then click create.
<Image
alt={'Create Bucket in R2'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/9c0d184c-3169-40fa-9115-011cfffb9ca7'}
></Image>
### Obtain Environment Variables for the Bucket
In the settings of the R2 storage bucket, you can view the bucket configuration information:
<Image
alt={'View relevant information of the bucket'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/2ceb210c-eca0-4439-ba27-8734d4ebb3ee'}
></Image>
The corresponding environment variables are:
```shell
# Bucket name
S3_BUCKET=lobechat
# Request endpoint of the bucket (note that the path in this link includes the bucket name, which must be removed, or use the link provided on the page for applying S3 API token)
S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
# Access domain of the bucket
S3_PUBLIC_DOMAIN=https://s3-for-lobechat.your-domain.com
```
<Callout type={'warning'}>`S3_ENDPOINT` must have its path removed, otherwise uploaded files cannot be accessed.</Callout>
### Obtain S3 Key Environment Variables
You need to obtain the access key for S3 so that the LobeChat server has permission to access the S3 storage service. In R2, you can configure the access key in the account details:
<Image
alt={'View access key of the bucket'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/be0c95c0-6693-44ee-a490-7e8dfaa8b34d'}
></Image>
Click the button in the upper right corner to create an API token and enter the create API Token page.
<Image
alt={'Create corresponding API token'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/7b0ea46c-5157-40a8-888f-f47664a4884f'}
></Image>
Since our server-side database needs to read and write to the S3 storage service, the permission needs to be set to `Object Read and Write`, then click create.
<Image
alt={'Configure API token permissions'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/d6f5a918-7b50-4d6e-83a6-3894ab930ddf'}
></Image>
After creation, you can see the corresponding S3 API token.
<Image
alt={'Copy API token'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/763b18f9-2b5f-44bb-a479-9b56d46f7397'}
></Image>
The corresponding environment variables are:
```shell
S3_ACCESS_KEY_ID=9998d6757e276cf9f1edbd325b7083a6
S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f497ac2
```
### Configure Cross-Origin Resource Sharing (CORS)
Since S3 storage services are often on a separate domain, cross-origin access needs to be configured.
In R2, you can find the CORS configuration in the settings of the storage bucket:
<Image
alt={'Cross-Origin Settings in Cloudflare R2'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/ab008be7-26b2-4b78-8bd9-24301bf34d23'}
></Image>
Add a CORS rule to allow requests from your domain (in the previous section, it is `https://your-project.vercel.app`):
<Image
alt={'Configure allowed site domain'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/dfcc2cb3-2958-4498-a8a4-51bec584fe7d'}
></Image>
Example configuration is as follows:
```json
[
{
"AllowedOrigins": ["https://your-project.vercel.app"],
"AllowedMethods": ["GET", "PUT", "HEAD", "POST", "DELETE"],
"AllowedHeaders": ["*"]
}
]
```
After configuration, click save.
</Steps>
## Overview of Environment Variables
<Callout type={'warning'}>The `https://` in the URL is essential and must be included to maintain the integrity of the URL.</Callout>
```shell
# S3 Keys
S3_ACCESS_KEY_ID=9998d6757e276cf9f1edbd325b7083a6
S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f497ac2
# Bucket Name
S3_BUCKET=lobechat
# Bucket Request Endpoint
S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
# Public Access Domain for the Bucket
S3_PUBLIC_DOMAIN=https://s3-dev.your-domain.com
# Bucket Region, such as us-west-1. Generally not required, but some service providers may need it.
# S3_REGION=us-west-1
```
@@ -0,0 +1,148 @@
---
title: 配置 Cloudflare R2 存储服务
description: 详细步骤配置 Cloudflare R2 存储服务,确保文件存储顺利进行。
tags:
- Cloudflare R2
- S3 存储
- 文件存储
- 环境变量
---
# 配置 Cloudflare R2 存储服务
在服务端数据库中我们需要配置 S3 存储服务来存储文件。
## 配置步骤
<Steps>
### 配置并获取 S3 存储桶
你需要前往你的 S3 服务提供商(如 AWS S3、Cloudflare R2 等)并创建一个新的存储桶(Bucket)。接下来以 Cloudflare R2 为例,介绍创建流程。
下图是 Cloudflare R2 的界面:
<Image
alt={'Cloudflare R2 存储界面'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/41f7f677-0153-4a96-b849-5ac9b7ebefee'}
/>
创建存储桶时将指定其名称,然后点击创建。
<Image
alt={'R2 创建存储桶'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/9c0d184c-3169-40fa-9115-011cfffb9ca7'}
/>
### 获取存储桶相关环境变量
在 R2 存储桶的设置中,可以看到桶配置的信息:
<Image
alt={'查看存储桶的相关信息'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/2ceb210c-eca0-4439-ba27-8734d4ebb3ee'}
/>
其对应的环境变量为:
```shell
# 存储桶的名称
S3_BUCKET=lobechat
# 存储桶的请求端点(注意此处链接的路径带存储桶名称,必须删除该路径,或使用申请 S3 API token 页面所提供的链接)
S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
# 存储桶对外的访问域名
S3_PUBLIC_DOMAIN=https://s3-for-lobechat.your-domain.com
```
<Callout type={'warning'}>`S3_ENDPOINT`必须删除其路径,否则会无法访问所上传文件</Callout>
### 获取 S3 密钥环境变量
你需要获取 S3 的访问密钥,以便 LobeChat 的服务端有权限访问 S3 存储服务。在 R2 中,你可以在账户详情中配置访问密钥:
<Image
alt={'查看存储桶的访问秘钥'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/be0c95c0-6693-44ee-a490-7e8dfaa8b34d'}
/>
点击右上角按钮创建 API token,进入创建 API Token 页面
<Image
alt={'创建对应 API token'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/7b0ea46c-5157-40a8-888f-f47664a4884f'}
/>
鉴于我们的服务端数据库需要读写 S3 存储服务,因此权限需要选择`对象读与写`,然后点击创建。
<Image
alt={'配置 API token 权限'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/d6f5a918-7b50-4d6e-83a6-3894ab930ddf'}
/>
创建完成后,就可以看到对应的 S3 API token
<Image
alt={'复制 API token'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/763b18f9-2b5f-44bb-a479-9b56d46f7397'}
/>
其对应的环境变量为:
```shell
S3_ACCESS_KEY_ID=9998d6757e276cf9f1edbd325b7083a6
S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f497ac2
```
### 配置跨域
由于 S3 存储服务往往是一个独立的网址,因此需要配置跨域访问。
在 R2 中,你可以在存储桶的设置中找到跨域配置:
<Image
alt={'Cloudflare R2 的跨域设置'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/ab008be7-26b2-4b78-8bd9-24301bf34d23'}
/>
添加跨域规则,允许你的域名(在上文是 `https://your-project.vercel.app`)来源的请求:
<Image
alt={'配置允许你的站点域名'}
src={'https://github.com/lobehub/lobe-chat/assets/28616219/dfcc2cb3-2958-4498-a8a4-51bec584fe7d'}
/>
示例配置如下:
```json
[
{
"AllowedOrigins": ["https://your-project.vercel.app"],
"AllowedMethods": ["GET", "PUT", "HEAD", "POST", "DELETE"],
"AllowedHeaders": ["*"]
}
]
```
配置后点击保存即可。
</Steps>
## 环境变量一览
<Callout type={'warning'}>URL的`https://`不可缺失,须保持URL的完整性</Callout>
```shell
# S3 秘钥
S3_ACCESS_KEY_ID=9998d6757e276cf9f1edbd325b7083a6
S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f497ac2
# 存储桶的名称
S3_BUCKET=lobechat
# 存储桶的请求端点
S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
# 存储桶对外的访问域名
S3_PUBLIC_DOMAIN=https://s3-dev.your-domain.com
# 桶的区域,如 us-west-1,一般来说不需要添加,但某些服务商则需要配置
# S3_REGION=us-west-1
```
@@ -0,0 +1,66 @@
---
title: Configuring Tencent Cloud COS Storage Service
description: >-
Detailed steps to configure Tencent Cloud COS storage service for smooth file
storage.
tags:
- Tencent Cloud COS
- S3 Storage
- File Storage
- Environment Variables
---
# Configuring Tencent Cloud COS Storage Service
We need to configure S3 storage service for file storage in the server-side database.
## Configuration Steps
<Steps>
### Configure and Obtain S3 Bucket
Create a new bucket on [Tencent Cloud COS](https://console.cloud.tencent.com/cos/bucket):
<Image alt={'Tencent Cloud COS Storage Interface'} src={'https://github.com/user-attachments/assets/d3626294-74ba-4944-9a63-052e6cf719ab'} />
Name the bucket (e.g., 'lobe'). Choose 'Public Read, Private Write', select any region, and keep other settings default.
<Image alt={'COS Create Bucket'} src={'https://github.com/user-attachments/assets/7257eb0e-4e2c-4db2-981d-354598e2c60f'} />
### Get Bucket-related Environment Variables
View bucket information in COS bucket overview:
<Image alt={'View Bucket Information'} src={'https://github.com/user-attachments/assets/d7d65e32-679d-4e50-a933-28cf5dde1330'} />
Corresponding environment variables:
```shell
S3_BUCKET=lobe-130xxxxxx2
S3_ENDPOINT=https://cos.ap-chengdu.myqcloud.com
S3_REGION=ap-chengdu
S3_PUBLIC_DOMAIN=https://lobe-1251234567.cos.ap-chengdu.myqcloud.com
```
<Callout type={'warning'}>
Note: `S3_ENDPOINT` should be `https://cos.ap-chengdu.myqcloud.com`, not `https://lobe-130xxxxxx2.cos.ap-chengdu.myqcloud.com`
Include `https://` in the URL
</Callout>
### Configure CORS
Add the following in 'Security Management - CORS Settings':
<Image alt={'Configure CORS'} src={'https://github.com/user-attachments/assets/35164b25-c964-42ce-9cb0-32f6ebe1d07c'} />
### Get S3 Keys
Create a new SecretId and SecretKey at [Tencent Cloud API Key Management](https://console.cloud.tencent.com/cam/capi). Use as `S3_ACCESS_KEY_ID` and `S3_SECRET_ACCESS_KEY`.
</Steps>
### Additional Notes
- Consider setting up CDN acceleration for improved access speed and reduced costs.
- Use role management when creating API keys for enhanced security.
@@ -0,0 +1,82 @@
---
title: 配置腾讯云 COS 存储服务
description: 详细步骤配置腾讯云 COS 存储服务,确保文件存储顺利进行。
tags:
- 腾讯云 COS
- S3 存储
- 文件存储
- 环境变量
---
# 配置腾讯云 COS 存储服务
在服务端数据库中我们需要配置 S3 存储服务来存储文件。
## 配置步骤
<Steps>
### 配置并获取 S3 存储桶
你需要首先前往 [腾讯云 COS](https://console.cloud.tencent.com/cos/bucket) 并创建一个新的存储桶(Bucket):
<Image
alt={'腾讯云 COS 存储界面'}
src={'https://github.com/user-attachments/assets/d3626294-74ba-4944-9a63-052e6cf719ab'}
/>
创建存储桶时将指定其名称,下文以 `lobe` 为例。选择 `公有读私有写`,地域随意,其余配置一概默认即可,然后点击创建。
<Image
alt={'COS 创建存储桶'}
src={'https://github.com/user-attachments/assets/7257eb0e-4e2c-4db2-981d-354598e2c60f'}
/>
### 获取存储桶相关环境变量
在 COS 存储桶的概览设置中,可以看到桶配置的信息:
<Image
alt={'查看存储桶的相关信息'}
src={'https://github.com/user-attachments/assets/d7d65e32-679d-4e50-a933-28cf5dde1330'}
/>
其对应的环境变量为:
```shell
# 存储桶的名称
S3_BUCKET=lobe-130xxxxxx2
# 存储桶的请求端点,注意没有前面的桶名
S3_ENDPOINT=https://cos.ap-chengdu.myqcloud.com
# 桶的区域
S3_REGION=ap-chengdu
# 存储桶对外的访问域名
S3_PUBLIC_DOMAIN=https://lobe-1251234567.cos.ap-chengdu.myqcloud.com
```
<Callout type={'warning'}>
请注意,`S3_ENDPOINT` 的值为 `https://cos.ap-chengdu.myqcloud.com`,而不是 `https://lobe-130xxxxxx2.cos.ap-chengdu.myqcloud.com`
且此处 URL 的 `https://` 不可缺失,须保持 URL 的完整性
</Callout>
### 配置跨域
在左侧 `安全管理 - 跨域访问 CORS 设置` 中,添加以下配置并保存:
<Image
alt={'配置跨域'}
src={'https://github.com/user-attachments/assets/35164b25-c964-42ce-9cb0-32f6ebe1d07c'}
/>
### 获取 S3 秘钥
前往 [腾讯云 API 密钥管理](https://console.cloud.tencent.com/cam/capi) 创建一个新的 SecretId 和 SecretKey,填写为 `S3_ACCESS_KEY_ID` 和 `S3_SECRET_ACCESS_KEY` 即可。
</Steps>
### 附加说明
- 对于对象存储,你可以选择设置 CDN 加速,以提高不同区域的访问速度,提高并发的同时减少下行费用。
- 创建 API 密钥时,推荐使用角色管理,以提高安全性。
@@ -1,9 +1,25 @@
# Share settings via URL
---
title: Share Settings via URL - Import and Export Configuration Settings
description: >-
Learn how to import and export configuration settings for LobeChat via URL.
Understand the supported settings, URL format, and parameter schema for
keyVaults and languageModel.
tags:
- Share Settings
- URL Import
- URL Export
- Configuration Settings
- LobeChat
- Parameter Schema
---
# Share settings via URL
LobeChat support import settings from external URL to quickly set up LobeChat configuration.
The currently supported settings are:
- `keyVaults`: provider api key and baseURL settings
- `languageModel`: Language model settings
## Import from URL
@@ -12,18 +28,18 @@ Use the following URL format to import settings parameters from an external URL:
```plaintext
https://lobehub.com/?settings=<settings object in JSON format>
https://lobehub.com/?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
https://lobehub.com/?settings={"keyVaults":{"openai":{"apiKey":"user-key","baseURL":"https://your-proxy.com/v1"}}}
```
Example of settings in JSON format:
```json
{
"languageModel": {
"openai": {
"apiKey": "user-key"
}
"keyVaults": {
"openai": {
"apiKey": "user-key"
}
}
}
```
@@ -32,69 +48,100 @@ Example of settings in JSON format:
```ts
// Generate settings to export to URL
const settings = {
languageModel: {
keyVaults: {
openai: {
apiKey: 'user-key',
endpoint: 'https://lobehub.com/v1'
apiKey: 'user-key',
baseURL: 'https://your-proxy.com/v1',
},
}};
},
};
// Convert settings to a JSON formatted string
const url = `/?settings=${JSON.stringify(settings)}`;
console.log(url);
// /?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
console.log(url);
// /?settings={"keyVaults":{"openai":{"apiKey":"user-key","baseURL":"https://your-proxy.com/v1"}}}
```
<Callout type={'warning'}>
LobeChat does not verify the correctness of the settings parameters in the URL, nor provide encryption or decryption methods. Please use with caution.
LobeChat does not verify the correctness of the settings parameters in the URL, nor provide
encryption or decryption methods. Please use with caution.
</Callout>
## Parameter schema
### languageModel
### keyVaults
- Property name and type
| Property name | Type |
|---------------|--------------------------------|
| anthropic | GeneralModelProviderConfig |
| azure | AzureOpenAIConfig |
| bedrock | AWSBedrockConfig |
| google | GeneralModelProviderConfig |
| groq | GeneralModelProviderConfig |
| minimax | GeneralModelProviderConfig |
| mistral | GeneralModelProviderConfig |
| moonshot | GeneralModelProviderConfig |
| ollama | GeneralModelProviderConfig |
| openai | GeneralModelProviderConfig |
| openrouter | GeneralModelProviderConfig |
| perplexity | GeneralModelProviderConfig |
| togetherai | GeneralModelProviderConfig |
| zeroone | GeneralModelProviderConfig |
| zhipu | GeneralModelProviderConfig |
| Property name | Type |
| ------------- | -------------------------- |
| anthropic | `OpenAICompatibleKeyVault` |
| azure | `AzureOpenAIKeyVault` |
| bedrock | `AWSBedrockKeyVault` |
| google | `OpenAICompatibleKeyVault` |
| groq | `OpenAICompatibleKeyVault` |
| minimax | `OpenAICompatibleKeyVault` |
| mistral | `OpenAICompatibleKeyVault` |
| moonshot | `OpenAICompatibleKeyVault` |
| ollama | `OpenAICompatibleKeyVault` |
| openai | `OpenAICompatibleKeyVault` |
| openrouter | `OpenAICompatibleKeyVault` |
| perplexity | `OpenAICompatibleKeyVault` |
| togetherai | `OpenAICompatibleKeyVault` |
| zeroone | `OpenAICompatibleKeyVault` |
| zhipu | `OpenAICompatibleKeyVault` |
- Type `GeneralModelProviderConfig`
- Type `OpenAICompatibleKeyVault`
| Property name | Type | Description |
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
| apiKey | string | The API key for the model provider. |
| autoFetchModelLists | boolean | Whether to automatically fetch model lists. |
| enabled | boolean | Whether the model provider is enabled. |
| enabledModels | string[] | null | The IDs of the enabled models. |
| endpoint | string | The endpoint for the model provider. |
| fetchOnClient | boolean | Whether to fetch on the client. |
| Property name | Type | Description |
| ------------- | ------ | ------------------------------------ |
| apiKey | string | The API key for the model provider. |
| baseURL | string | The endpoint for the model provider. |
- Type `AzureOpenAIConfig`
> Inherits the fields from `GeneralModelProviderConfig`
- Type `AzureOpenAIKeyVault`
| Property name | Type | Description |
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
| apiVersion | string | The API version for Azure OpenAI. |
| Property name | Type | Description |
| ------------- | ------ | ------------------------------------ |
| apiVersion | string | The API version for Azure OpenAI. |
| apiKey | string | The API key for the model provider. |
| endpoint | string | The endpoint for the model provider. |
- Type `AWSBedrockConfig`
> Inherits all fields from `GeneralModelProviderConfig` except `apiKey, endpoint`
- Type `AWSBedrockKeyVault`
| Property name | Type | Description |
| accessKeyId | string | The access key ID for AWS Bedrock. |
| region | string | The region for AWS Bedrock. |
| secretAccessKey | string | The secret access key for AWS Bedrock. |
| Property name | Type | Description |
| --------------- | ------ | -------------------------------------- |
| accessKeyId | string | The access key ID for AWS Bedrock. |
| region | string | The region for AWS Bedrock. |
| secretAccessKey | string | The secret access key for AWS Bedrock. |
### languageModel
```ts
export type UserModelProviderConfig = Record<string, ProviderConfig>;
```
| Property name | Type |
| ------------- | ---------------- |
| anthropic | `ProviderConfig` |
| azure | `ProviderConfig` |
| bedrock | `ProviderConfig` |
| google | `ProviderConfig` |
| groq | `ProviderConfig` |
| minimax | `ProviderConfig` |
| mistral | `ProviderConfig` |
| moonshot | `ProviderConfig` |
| ollama | `ProviderConfig` |
| openai | `ProviderConfig` |
| openrouter | `ProviderConfig` |
| perplexity | `ProviderConfig` |
| togetherai | `ProviderConfig` |
| zeroone | `ProviderConfig` |
| zhipu | `ProviderConfig` |
- Type `ProviderConfig`
| Property name | Type | Description |
| ------------------- | -------- | ------------------------------------------- | ------------------------------ |
| autoFetchModelLists | boolean | Whether to automatically fetch model lists. |
| enabled | boolean | Whether the model provider is enabled. |
| enabledModels | string[] | null | The IDs of the enabled models. |
| fetchOnClient | boolean | Whether to fetch on the client. |
@@ -1,10 +1,25 @@
---
title: URL 分享设置参数 - LobeChat 配置快速设置
description: 了解如何从外部 URL 导入和导出 LobeChat 的设置参数,包括 keyVaults 和 languageModel,以及参数格式和类型。
tags:
- URL 分享
- 设置参数
- LobeChat
- keyVaults
- languageModel
- JSON 格式
- URL 导入
- URL 导出
---
# URL 分享设置参数
LobeChat 支持从外部 URL 导入设置参数,以便于快速设置 LobeChat 的配置。
目前支持的设置项有:
- `languageModel`:语言模型设置
- `keyVaults`: 模型供应商相关秘钥设置
- `languageModel`:语言模型设置
## 从 URL 中导入
@@ -12,18 +27,18 @@ LobeChat 支持从外部 URL 导入设置参数,以便于快速设置 LobeChat
```plaintext
https://lobehub.com/?settings=<JSON格式的设置对象>
https://lobehub.com/?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
https://lobehub.com/?settings={"keyVaults":{"openai":{"apiKey":"user-key","baseURL":"https://your-proxy.com/v1"}}}
```
JSON格式的设置示例:
```json
{
"languageModel": {
"openai": {
"apiKey": "user-key"
}
"keyVaults": {
"openai": {
"apiKey": "user-key"
}
}
}
```
@@ -32,69 +47,99 @@ JSON格式的设置示例:
```ts
// 生成要导出到 URL 的设置
const settings = {
languageModel: {
keyVaults: {
openai: {
apiKey: 'user-key',
endpoint: 'https://lobehub.com/v1'
apiKey: 'user-key',
baseURL: 'https://your-proxy.com/v1',
},
}};
// 将设置转为 JSON 格式的字符串
},
};
// Convert settings to a JSON formatted string
const url = `/?settings=${JSON.stringify(settings)}`;
console.log(url);
// /?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
console.log(url);
// /?settings={"keyVaults":{"openai":{"apiKey":"user-key","baseURL":"https://your-proxy.com/v1"}}}
```
<Callout type={'warning'}>
LobeChat 不对 URL 中的设置参数进行正确性校验,也不提供加密、解密方法,请谨慎使用。
LobeChat 不对 URL 中的设置参数进行正确性校验,也不提供 URL 的加密、解密方法,请谨慎使用。
</Callout>
## 参数格式
### languageModel
### keyVaults
- 参数及其类型
| 参数名称 | 类型 |
|---------------|--------------------------------|
| anthropic | GeneralModelProviderConfig |
| azure | AzureOpenAIConfig |
| bedrock | AWSBedrockConfig |
| google | GeneralModelProviderConfig |
| groq | GeneralModelProviderConfig |
| minimax | GeneralModelProviderConfig |
| mistral | GeneralModelProviderConfig |
| moonshot | GeneralModelProviderConfig |
| ollama | GeneralModelProviderConfig |
| openai | GeneralModelProviderConfig |
| openrouter | GeneralModelProviderConfig |
| perplexity | GeneralModelProviderConfig |
| togetherai | GeneralModelProviderConfig |
| zeroone | GeneralModelProviderConfig |
| zhipu | GeneralModelProviderConfig |
| 参数名称 | 类型 |
| ---------- | -------------------------- |
| anthropic | `OpenAICompatibleKeyVault` |
| azure | `AzureOpenAIKeyVault` |
| bedrock | `AWSBedrockKeyVault` |
| google | `OpenAICompatibleKeyVault` |
| groq | `OpenAICompatibleKeyVault` |
| minimax | `OpenAICompatibleKeyVault` |
| mistral | `OpenAICompatibleKeyVault` |
| moonshot | `OpenAICompatibleKeyVault` |
| ollama | `OpenAICompatibleKeyVault` |
| openai | `OpenAICompatibleKeyVault` |
| openrouter | `OpenAICompatibleKeyVault` |
| perplexity | `OpenAICompatibleKeyVault` |
| togetherai | `OpenAICompatibleKeyVault` |
| zeroone | `OpenAICompatibleKeyVault` |
| zhipu | `OpenAICompatibleKeyVault` |
- 类型 `GeneralModelProviderConfig`
- Type `OpenAICompatibleKeyVault`
| 参数 | TS 类型 | 描述 |
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
| apiKey | string | 模型的 API 密钥。 |
| autoFetchModelLists | boolean | 是否自动获取模型列表。 |
| enabled | boolean | 是否启用该模型。 |
| enabledModels | string[] | 启用的模型的 ID。 |
| endpoint | string | 模型API端点。 |
| fetchOnClient | boolean | 是否在客户端发起请求,默认在服务端发起请求。 |
| 参数 | 类型 | 描述 |
| ------- | ------ | ----------------- |
| apiKey | string | 模型的 API 密钥。 |
| baseURL | string | 模型API端点。 |
- 类型 `AzureOpenAIConfig`
> 继承 `GeneralModelProviderConfig` 中的字段
- Type `AzureOpenAIKeyVault`
| 参数 | TS 类型 | 描述 |
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
| 参数 | 类型 | 描述 |
| ---------- | ------ | -------------------------- |
| apiVersion | string | Azure OpenAI 的 API 版本。 |
| apiKey | string | 模型的 API 密钥。 |
| baseURL | string | 模型API端点。 |
- 类型 `AWSBedrockConfig`
> 继承 `GeneralModelProviderConfig` 中除 `apiKey, endpoint` 外的所有字段
- Type `AWSBedrockKeyVault`
| 参数 | TS 类型 | 描述 |
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
| accessKeyId | string | AWS Bedrock 的访问密钥 ID。 |
| region | string | AWS Bedrock 的区域。 |
| secretAccessKey | string | AWS Bedrock 的访问密钥。 |
| 参数 | 类型 | 描述 |
| --------------- | ------ | --------------------------- |
| accessKeyId | string | AWS Bedrock 的访问密钥 ID。 |
| region | string | AWS Bedrock 的区域。 |
| secretAccessKey | string | AWS Bedrock 的访问密钥。 |
### languageModel
```ts
export type UserModelProviderConfig = Record<string, ProviderConfig>;
```
| 参数名称 | 类型 |
| ---------- | ---------------- |
| anthropic | `ProviderConfig` |
| azure | `ProviderConfig` |
| bedrock | `ProviderConfig` |
| google | `ProviderConfig` |
| groq | `ProviderConfig` |
| minimax | `ProviderConfig` |
| mistral | `ProviderConfig` |
| moonshot | `ProviderConfig` |
| ollama | `ProviderConfig` |
| openai | `ProviderConfig` |
| openrouter | `ProviderConfig` |
| perplexity | `ProviderConfig` |
| togetherai | `ProviderConfig` |
| zeroone | `ProviderConfig` |
| zhipu | `ProviderConfig` |
- 类型 `ProviderConfig`
| 参数 | TS 类型 | 描述 |
| ------------------- | -------- | -------------------------------------------- |
| autoFetchModelLists | boolean | 是否自动获取模型列表。 |
| enabled | boolean | 是否启用该模型。 |
| enabledModels | string[] | 启用的模型的 ID。 |
| fetchOnClient | boolean | 是否在客户端发起请求,默认在服务端发起请求。 |
+17 -5
View File
@@ -40,6 +40,18 @@ After forking the project, due to Github's limitations, you need to manually ena
src="https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/266985177-7677b4ce-c348-4145-9f60-829d448d5be6.png"
/>
If you encounter a sync failure, you need to manually click "Update Branch" once.
<Image
alt="GitHub Action Sync Failure"
src="https://github.com/user-attachments/assets/9baacac6-5af4-460b-862d-682b76c18459"
/>
<Image
alt="Manually Sync 'Update Branch'"
src="https://github.com/user-attachments/assets/d524c20d-306a-45bc-971b-96920b87fab4"
/>
## `B` Docker Deployment
Upgrading the Docker deployment version is very simple, you just need to redeploy the latest LobeChat image. Here are the commands required to perform these steps:
@@ -126,20 +138,20 @@ if [ $? -eq 0 ]; then
exit 0
fi
echo "Detected Lobe-Chat update"
echo "Detected lobe-chat update"
# Remove the old container
echo "Removed: $(docker rm -f Lobe-Chat)"
echo "Removed: $(docker rm -f lobe-chat)"
# Run the new container
echo "Started: $(docker run -d --network=host --env-file /path/to/lobe.env --name=Lobe-Chat --restart=always lobehub/lobe-chat)"
# Run the new container(Please change the path to the env file)
echo "Started: $(docker run -d --network=host --env-file /path/to/lobe.env --name=lobe-chat --restart=always lobehub/lobe-chat)"
# Print the update time and version
echo "Update time: $(date)"
echo "Version: $(docker inspect lobehub/lobe-chat:latest | grep 'org.opencontainers.image.version' | awk -F'"' '{print $4}')"
# Clean up unused images
docker images | grep 'lobehub/lobe-chat' | grep -v 'latest' | awk '{print $3}' | xargs -r docker rmi > /dev/null 2>&1
docker images | grep 'lobehub/lobe-chat' | grep -v 'lobehub/lobe-chat-database' | grep -v 'latest' | awk '{print $3}' | xargs -r docker rmi > /dev/null 2>&1
echo "Removed old images."
```
@@ -35,6 +35,18 @@ tags:
src="https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/266985177-7677b4ce-c348-4145-9f60-829d448d5be6.png"
/>
如果你遇到了同步失败的情况,你需要手动重新点一次 「Update Branch」。
<Image
alt="GitHub Action 同步失败"
src="https://github.com/user-attachments/assets/9baacac6-5af4-460b-862d-682b76c18459"
/>
<Image
alt="手动同步 「Update Branch」"
src="https://github.com/user-attachments/assets/d524c20d-306a-45bc-971b-96920b87fab4"
/>
## `B` Docker 部署
Docker 部署版本的升级非常简单,只需要重新部署 LobeChat 的最新镜像即可。 以下是执行这些步骤所需的指令:
@@ -103,7 +115,7 @@ OPENAI_MODEL_LIST=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.
# auto-update-lobe-chat.sh
# 设置代理(可选)
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
# export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
# 拉取最新的镜像并将输出存储在变量中
output=$(docker pull lobehub/lobe-chat:latest 2>&1)
@@ -121,20 +133,20 @@ if [ $? -eq 0 ]; then
exit 0
fi
echo "Detected Lobe-Chat update"
echo "Detected lobe-chat update"
# 删除旧的容器
echo "Removed: $(docker rm -f Lobe-Chat)"
echo "Removed: $(docker rm -f lobe-chat)"
# 运行新的容器
echo "Started: $(docker run -d --network=host --env-file /path/to/lobe.env --name=Lobe-Chat --restart=always lobehub/lobe-chat)"
# 运行新的容器(请将env配置文件地址改为你的实际地址)
echo "Started: $(docker run -d --network=host --env-file path/to/lobe.env --name=lobe-chat --restart=always lobehub/lobe-chat)"
# 打印更新的时间和版本
echo "Update time: $(date)"
echo "Version: $(docker inspect lobehub/lobe-chat:latest | grep 'org.opencontainers.image.version' | awk -F'"' '{print $4}')"
# 清理不再使用的镜像
docker images | grep 'lobehub/lobe-chat' | grep -v 'latest' | awk '{print $3}' | xargs -r docker rmi > /dev/null 2>&1
docker images | grep 'lobehub/lobe-chat' | grep -v 'lobehub/lobe-chat-database' | grep -v 'latest' | awk '{print $3}' | xargs -r docker rmi > /dev/null 2>&1
echo "Removed old images."
```
+92
View File
@@ -0,0 +1,92 @@
---
title: LobeChat WebRTC Sync - Real-Time Data Sharing
description: >-
Explore LobeChat's WebRTC sync for real-time data sharing and privacy without
servers.
tags:
- WebRTC
- LobeChat
- Data Synchronization
- Real-Time Communication
- Peer-to-Peer
---
# LobeChat WebRTC Sync
## Introduction to WebRTC
WebRTC (Web Real-Time Communication) is a technology that enables peer-to-peer communication between browsers. In LobeChat, we experimentally implemented real-time data synchronization between devices based on WebRTC and YJS, without relying on traditional server databases. This solution offers high privacy, zero conflicts, and provides a real-time session synchronization experience.
## Configuring WebRTC for Synchronization
To use the WebRTC synchronization feature in LobeChat, you need to complete the following steps:
<Steps>
### Deploy Signaling Server
Deploy a WebRTC signaling server with one click using the Zeabur platform:
[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/MY0JZG?referralCode=arvinxx)
Alternatively, you can view the [source code](https://github.com/lobehub/y-webrtc-signaling) and deploy it on your own.
After deployment, you will receive a URL, for example: `https://my-signaling-server.zeabur.app`.
### Enable WebRTC Sync in the Deployment Instance
The WebRTC sync feature in LobeChat is hidden by default and needs to be enabled by adding the environment variable `FEATURE_FLAGS=+webrtc_sync`.
### Configure WebRTC Sync Settings in LobeChat
1. Open LobeChat settings -> Data Sync
2. Enter the signaling server address in the WebRTC sync section;
3. Set the sync channel name and password
<Image
alt={'LobeChat Data Sync Settings Page'}
height={356}
inStep
src={'https://github.com/lobehub/lobe-chat/assets/28616219/bf86bf1e-87fb-4015-8587-15ff28bb9c24'}
/>
### Repeat the Above Configuration on Devices that Need to Sync
Ensure all devices use the same signaling server, channel name, and password. Once configured, the devices should automatically start syncing data.
</Steps>
## Limitations and Known Issues
Although WebRTC has the advantages of no database and flexibility, after extensive community testing, the following limitations and known issues have been identified:
### Requirement for Devices to be Online Simultaneously
WebRTC requires devices to be online simultaneously to synchronize, meaning changes cannot be made on one device while offline and then synced later on another device.
This limitation is due to the communication nature of WebRTC. In a pure frontend, serverless scenario, data synchronization between two devices can only be achieved through peer-to-peer communication. When one device is online and the other is offline, it is impossible to determine where the data should come from. Only when both devices are online can data communication occur. This mode is more like an online chat room where everyone needs to be online to see each other's data and achieve synchronization.
Therefore, in certain situations, WebRTC's pure peer-to-peer approach may not fully meet users' needs (e.g., one device is a work computer, and the other is a home computer), and there are also some issues with data synchronization.
### Network Issues Leading to Sync Failures
Due to the implementation mechanism of WebRTC, its peer-to-peer communication has strict network requirements. Many of our users have reported:
- Syncing between PCs is possible, but syncing between a mobile device with a SIM card and a PC is not, although syncing is possible when using the same WIFI as the PC;
- Syncing fails when switching networks.
### Stability and Performance Issues
- Some users have reported ICE connection failures on the Firefox browser: [WebRTC Data Sync Feedback](https://github.com/lobehub/lobe-chat/issues/1683#issuecomment-2094745907)
- For extremely long text or large amounts of conversation records, the synchronization process may slow down or become unstable: [When the model outputs a very long conversation, the end of the conversation will contain synchronization-related content tags, leading to sync failures](https://github.com/lobehub/lobe-chat/issues/1962)
## Our Recommendations
Considering the above reasons, we recommend users treat the WebRTC sync feature as experimental and regularly back up important data.
We have already released a more stable and user-friendly server database synchronization solution ([deployment guide](/docs/self-hosting/advanced/server-database)). We recommend users prioritize using the server database synchronization solution.
<Callout type={'warning'}>
Please note that we have officially announced the archiving of this sync feature in [PR
3182](https://github.com/lobehub/lobe-chat/pull/3182), and the above issues will no longer be
considered for fixes.
</Callout>
@@ -0,0 +1,87 @@
---
title: LobeChat WebRTC 同步配置指南
description: 在 LobeChat 中实现基于 WebRTC 和 YJS 的设备间实时数据同步。了解如何配置 WebRTC 并开启同步功能,以及使用局限性和已知问题。
tags:
- YJS
- 信令服务器
---
# LobeChat WebRTC 同步
## WebRTC 简介
WebRTC (Web Real-Time Communication) 是一项实现浏览器之间点对点通信的技术。在 LobeChat 中,我们实验性地基于 WebRTC 和 YJS 实现了设备间的实时数据同步,无需依赖传统的服务器数据库。这种方案具有高度隐私性、零冲突性,并能提供实时会话同步体验。
## 配置 WebRTC 并实现同步
要使用 LobeChat 的 WebRTC 同步功能,需要完成以下步骤:
<Steps>
### 部署信令服务器
使用 Zeabur 平台一键部署 WebRTC 信令服务器:
[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/MY0JZG?referralCode=arvinxx)
或者查看 [源码](https://github.com/lobehub/y-webrtc-signaling) 自行部署。
部署完成后,可以得到一个 URL,例如:`https://my-signaling-server.zeabur.app`。
### 在部署实例中开启 WebRTC 同步
LobeChat 默认隐藏了 WebRTC 同步功能,需要通过添加环境变量 `FEATURE_FLAGS=+webrtc_sync` 来开启 WebRTC 同步特性。
### 配置 LobeChat 的 WebRTC 同步设置
1. 打开 LobeChat 设置 -> 数据同步
2. 在 WebRTC 同步中填写信令服务器地址;
3. 设置同步频道名称和密码
<Image
alt={'LobeChat 数据同步设置页'}
height={356}
inStep
src={'https://github.com/lobehub/lobe-chat/assets/28616219/bf86bf1e-87fb-4015-8587-15ff28bb9c24'}
/>
### 在需要同步的设备上重复以上配置
确保所有设备使用相同的信令服务器、频道名称和密码,完成配置后,设备间应该可以开始自动同步数据。
</Steps>
## 使用局限性和已知问题
虽然 WebRTC 具有无数据库、比较灵活的特性,但目前该功能经过大范围社区测试,存在以下局限性和已知问题:
### 设备同时在线要求
WebRTC 要求设备同时在线才能进行同步,这意味着无法在一台设备离线时在另一台设备上进行更改并稍后同步。
这是 WebRTC 本身的通信特性有关系,由于在纯前端、无服务端的情况下,两个设备的数据同步只能通过点对点通信的形式达成。当一个设备在线,一个设备离线的情况下,我们无从感知数据到底应该从哪来,只有当两台设备都在线的时候,双发数据才能通信。其实这种模式更像是一个在线聊天室,大家都在线时才能看到对方的数据,然后达成同步。
因此 WebRTC 这种纯点对点的方式在某些情况下并无法完全满足用户的诉求(例如一个是公司电脑,一个是家里电脑),同时也存在一些数据同步层面的问题。
### 网络问题可能导致同步失败
由于 WebRTC 的实现机制,其点对点通信对于网络要求非常苛刻,我们的很多用户反馈:
- 在 PC 上可以互相同步、 手机 sim 卡无法和 PC 同步、但是换成和PC一样的WIFI可以和 PC 同步;
- 任何切换网络都无法同步;
### 稳定性与性能问题
- 部分用户报告在 Firefox 浏览器上遇到 ICE 连接失败的问题:[WebRTC Data Sync Feedback](https://github.com/lobehub/lobe-chat/issues/1683#issuecomment-2094745907)
- 对于超长文本或大量对话记录,同步过程可能变慢或不稳定:[当模型输出超长对话时,对话末尾会出现同步相关的内容标签,导致同步失败](https://github.com/lobehub/lobe-chat/issues/1962)
## 我们的建议
鉴于以上原因,我们建议用户将 WebRTC 同步功能视为实验性功能,并定期备份重要数据。
目前我们已经发布了更稳定、更用户友好的服务端数据库同步方案([部署指南](/zh/docs/self-hosting/advanced/server-database)),我们建议用户优先考虑使用服务端数据库同步方案。
<Callout type={'warning'}>
请注意,我们已经在 [PR 3182](https://github.com/lobehub/lobe-chat/pull/3182)
中正式宣布归档该同步特性,上述问题将不再考虑进行修复。
</Callout>
@@ -18,5 +18,77 @@ LobeChat provides some additional configuration options when deployed, which can
<Card href={'environment-variables/basic'} title={'Basic Environment Variables'} />
<Card href={'environment-variables/model-provider'} title={'Model Service Providers'} />
<Cards href={'environment-variables/auth'} title={'Authentication'} />
<Cards href={'environment-variables/s3'} title={'S3 Storage Service'} />
<Cards href={'environment-variables/analytics'} title={'Data Analytics'} />
</Cards>
## Building a Custom Image with Overridden NEXT_PUBLIC Variables
If you need to override NEXT_PUBLIC environment variables, you can build a custom Docker image using GitHub Actions
without forking the entire LobeChat repository. Here's a guide on how to do this:
1. Create a new GitHub repository for your custom build.
2. In your new repository, create a `.github/workflows` directory.
3. Inside the `.github/workflows` directory, create a file named `build-custom-lobe.yml`:
```yaml
name: Build Custom Image
on:
workflow_dispatch: # Manual trigger
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/lobe-chat-database # Name of your image
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: lobehub/lobe-chat
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.database # Change dockerfile if needed
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# List all variables you need to overwrite
build-args: |
NEXT_PUBLIC_BASE_PATH=${{ secrets.NEXT_PUBLIC_BASE_PATH }}
NEXT_PUBLIC_SERVICE_MODE=${{ secrets.NEXT_PUBLIC_SERVICE_MODE }}
```
4. In your GitHub Repository settings > Secrets and variables > Actions > Repository secrets,
add any NEXT_PUBLIC variables you want to override
5. Set "Read and write" permissions for workflows in Repository settings > Actions > General > Workflow permissions.
6. To build your custom image, go to the "Actions" tab in your GitHub repository and manually trigger the
"Build Custom LobeChat Image" workflow.
This approach allows you to create a custom build with your desired NEXT_PUBLIC variables without maintaining
a full fork of the LobeChat repository. You can trigger a new build whenever you need to update your custom image.
@@ -16,5 +16,6 @@ LobeChat 在部署时提供了一些额外的配置项,你可以使用环境
<Cards href={'environment-variables/basic'} title={'基础环境变量'} />
<Cards href={'environment-variables/model-provider'} title={'模型服务商'} />
<Cards href={'environment-variables/auth'} title={'身份验证'} />
<Cards href={'environment-variables/s3'} title={'S3 存储服务'} />
<Cards href={'environment-variables/analytics'} title={'数据统计'} />
</Cards>
@@ -1,7 +1,5 @@
---
title: >-
Integrating Data Analytics Services in LobeChat: Environment Variables and
Configuration
title: Integrating Analytics in LobeChat
description: >-
Learn how to configure environment variables for Vercel Analytics, Google
Analytics, PostHog Analytics, and Umami Analytics in LobeChat for data
@@ -36,44 +34,30 @@ We have integrated several free/open-source data analytics services in LobeChat
## Google Analytics
### `ENABLE_GOOGLE_ANALYTICS`
- Type: Optional
- Description: Used to configure the environment variable for Google Analytics. Set to `1` to enable Google Analytics.
- Default: `-`
- Example: `1`
### `GOOGLE_ANALYTICS_MEASUREMENT_ID`
- Type: Required
- Description: Google Analytics Measurement IDyou can get it from the Google Analytics dashboard.
- Description: Google Analytics Measurement IDyou can get it from the Google Analytics dashboard. Add it will auto enable Google Analytics.
- Default: `-`
- Example: `G-63LP2TV03T`
## Posthog Analytics
### `NEXT_PUBLIC_ANALYTICS_POSTHOG`
### `POSTHOG_KEY`
- Type: Optional
- Description: Used to enable the environment variable for [PostHog Analytics][posthog-analytics-url]. Set to `1` to enable PostHog Analytics.
- Default: `-`
- Example: `1`
### `NEXT_PUBLIC_POSTHOG_KEY`
- Type: Optional
- Description: Set the PostHog project Key.
- Type: Required
- Description: Set the PostHog project Key. Add it will auto enable PostHog Analytics.
- Default: `-`
- Example: `phc_xxxxxxxx`
### `NEXT_PUBLIC_POSTHOG_HOST`
### `POSTHOG_HOST`
- Type: Optional
- Description: Set the deployment address of the PostHog service, defaulting to the official SAAS address.
- Default: `https://app.posthog.com`
- Example: `https://example.com`
### `NEXT_PUBLIC_POSTHOG_DEBUG`
### `DEBUG_POSTHOG_ANALYTICS`
- Type: Optional
- Description: Enable the debug mode for PostHog.
@@ -82,26 +66,19 @@ We have integrated several free/open-source data analytics services in LobeChat
## Umami Analytics
### `NEXT_PUBLIC_ANALYTICS_UMAMI`
### `UMAMI_WEBSITE_ID`
- Type: Optional
- Description: Used to enable the environment variable for [Umami Analytics][umami-analytics-url]. Set to `1` to enable Umami Analytics.
- Type: Required
- Description: Your Umami Website ID. Add it will auto enable Umami Analytics.
- Default: `-`
- Example: `1`
- Example: `E738D82A-EE9E-4806-A81F-0CA3CAE57F65`
### `NEXT_PUBLIC_UMAMI_SCRIPT_URL`
### `UMAMI_SCRIPT_URL`
- Type: Optional
- Description: The URL of the Umami script, defaulting to the script URL provided by Umami Cloud.
- Default: `https://analytics.umami.is/script.js`
- Example: `https://umami.your-site.com/script.js`
### `NEXT_PUBLIC_UMAMI_WEBSITE_ID`
- Type: Required
- Description: Your Umami Website ID.
- Default: `-`
- Example: `E738D82A-EE9E-4806-A81F-0CA3CAE57F65`
[posthog-analytics-url]: https://posthog.com
[umami-analytics-url]: https://umami.is
@@ -32,44 +32,30 @@ tags:
## Google Analytics
### `ENABLE_GOOGLE_ANALYTICS`
- 类型:必选
- 描述:用于配置 Google Analytics 的环境变量,当设为 `1` 时开启 Google Analytics
- 默认值: `-`
- 示例:`1`
### `GOOGLE_ANALYTICS_MEASUREMENT_ID`
- 类型:必选
- 描述:Google Analytics 的 Measurement ID如果开启 Google Analytics,此项必填
- 描述:Google Analytics 的 Measurement ID填写此项后将自动开启 Google Analytics
- 默认值: `-`
- 示例:`G-63LP2TV03T`
## Posthog Analytics
### `NEXT_PUBLIC_ANALYTICS_POSTHOG`
### `POSTHOG_KEY`
- 类型:
- 描述:用于开启 [PostHog Analytics][posthog-analytics-url] 的环境变量,设为 `1` 时开启 PostHog Analytics
- 默认值: `-`
- 示例:`1`
### `NEXT_PUBLIC_POSTHOG_KEY`
- 类型:可选
- 描述:设置 PostHog 项目 Key
- 类型:
- 描述:设置 PostHog 项目 Key,设置此项后将自动开启 PostHog Analytics
- 默认值: `-`
- 示例:`phc_xxxxxxxx`
### `NEXT_PUBLIC_POSTHOG_HOST`
### `POSTHOG_HOST`
- 类型:可选
- 描述:设置 PostHog 服务的部署地址,默认为官方的 SAAS 地址
- 描述:设置 PostHog 服务的部署地址,默认为官方的 SaaS 地址
- 默认值:`https://app.posthog.com`
- 示例:`https://example.com`
### `NEXT_PUBLIC_POSTHOG_DEBUG`
### `POSTHOG_DEBUG`
- 类型:可选
- 描述:开启 PostHog 的调试模式
@@ -78,26 +64,19 @@ tags:
## Umami Analytics
### `NEXT_PUBLIC_ANALYTICS_UMAMI`
### `UMAMI_WEBSITE_ID`
- 类型:
- 描述:用于开启 [Umami Analytics][umami-analytics-url] 的环境变量,设为 `1` 时开启 Umami Analytics
- 默认值: `-`
- 示例:`1`
- 类型:
- 描述:你的 Umami 的 Website ID,填写此项后将自动开启 Umami Analytics
- 默认值:`-`
- 示例:`E738D82A-EE9E-4806-A81F-0CA3CAE57F65`
### `NEXT_PUBLIC_UMAMI_SCRIPT_URL`
### `UMAMI_SCRIPT_URL`
- 类型:可选
- 描述:Umami 脚本的网址,默认为 Umami Cloud 提供的脚本网址
- 默认值:`https://analytics.umami.is/script.js`
- 示例:`https://umami.your-site.com/script.js`
### `NEXT_PUBLIC_UMAMI_WEBSITE_ID`
- 类型:必选
- 描述:你的 Umami 的 Website ID
- 默认值:`-`
- 示例:`E738D82A-EE9E-4806-A81F-0CA3CAE57F65`
[posthog-analytics-url]: https://posthog.com
[umami-analytics-url]: https://umami.is
+170 -46
View File
@@ -5,158 +5,282 @@ description: >-
services in LobeChat, including OAuth SSO, NextAuth settings, and
provider-specific details.
tags:
- LobeChat
- Authentication Service
- Environment Variables
- OAuth SSO
- Clerk
- NextAuth
- Provider Details
---
## Authentication Service
# Authentication Service
LobeChat provides a complete authentication service capability when deployed. The following are the relevant environment variables. You can use these environment variables to easily define the identity verification services that need to be enabled in LobeChat.
## General Settings
## Next Auth
### `ENABLE_OAUTH_SSO`
### General Settings
- Type: Required
- Description: Enable single sign-on (SSO) for LobeChat. Set to `1` to enable single sign-on.
- Default: `-`
- Example: `1`
### `SSO_PROVIDERS`
- Type: Required
- Description: Select the single sign-on provider for LoboChat. For multiple SSO Providers separating them with commas, for example, `auth0,azure-ad,authentik`.
- Default: `auth0`
- Example: `auth0,azure-ad,authentik`
### `NEXTAUTH_SECRET`
#### `NEXT_AUTH_SECRET`
- Type: Required
- Description: Key used to encrypt the session tokens in Auth.js. You can generate the key using the following command: `openssl rand -base64 32`.
- Default: `-`
- Example: `Tfhi2t2pelSMEA8eaV61KaqPNEndFFdMIxDaJnS1CUI=`
### `NEXTAUTH_URL`
#### `NEXT_AUTH_SSO_PROVIDERS`
- Type: Optional
- Description: Select the single sign-on provider for LoboChat. For multiple SSO Providers separating them with commas, for example, `auth0,microsoft-entra-id,authentik`.
- Default: `auth0`
- Example: `auth0,microsoft-entra-id,authentik`
#### `NEXTAUTH_URL`
- Type: Optional
- Description: This URL is used to specify the callback address for Auth.js during OAuth authentication. It does not need to be set when deploying on Vercel.
- Default: `-`
- Example: `https://example.com/api/auth`
## Auth0
### Auth0
### `AUTH0_CLIENT_ID`
#### `AUTH_AUTH0_ID`
- Type: Required
- Description: Client ID of the Auth0 application. You can access it [here](https://manage.auth0.com/dashboard) and navigate to the application settings to view.
- Default: `-`
- Example: `evCnOJP1UX8FMnXR9Xkj5t0NyFn5p70P`
### `AUTH0_CLIENT_SECRET`
#### `AUTH_AUTH0_SECRET`
- Type: Required
- Description: Client Secret of the Auth0 application.
- Default: `-`
- Example: `wnX7UbZg85ZUzF6ioxPLnJVEQa1Elbs7aqBUSF16xleBS5AdkVfASS49-fQIC8Rm`
### `AUTH0_ISSUER`
#### `AUTH_AUTH0_ISSUER`
- Type: Required
- Description: Issuer/domain of the Auth0 application.
- Default: `-`
- Example: `https://example.auth0.com`
## Microsoft Entra ID
### Authelia
### `AZURE_AD_CLIENT_ID`
#### `AUTH_AUTHELIA_ID`
- Type: Required
- Description: Client ID of the Microsoft Entra ID application.
- Description: Client ID of the Authelia provider application.
- Default: `-`
- Example: `be8f6da1-58c3-4f16-ff1b-78f5148e10df`
- Example: `lobe-chat`
### `AZURE_AD_CLIENT_SECRET`
#### `AUTH_AUTHELIA_SECRET`
- Type: Required
- Description: Client Secret of the Microsoft Entra ID application.
- Description: The plaintext of the Client Secret for the Authelia provider
- Default: `-`
- Example: `~gI8Q.pTiN1vwB6Gl.E1yFT1ojcXABkdACfJXaNj`
- Example: `insecure_secret`
### `AZURE_AD_TENANT_ID`
#### `AUTH_AUTHELIA_ISSUER`
- Type: Required
- Description: Tenant ID of the Microsoft Entra ID application.
- Description: Issuer of the Authelia provider application.
- Default: `-`
- Example: `c8ae2f36-edf6-4cda-96b9-d3e198a47cba`
- Example: `https://sso.example.com`
## Authentik
### Authentik
### `AUTHENTIK_CLIENT_ID`
#### `AUTH_AUTHENTIK_ID`
- Type: Required
- Description: Client ID of the Authentik provider application. You can access it [here][auth0-client-page] and navigate to the application settings to view.
- Description: Client ID of the Authentik provider application.
- Default: `-`
- Example: `evCnOJP1UX8FMnXR9Xkj5t0NyFn5p70P`
### `AUTHENTIK_CLIENT_SECRET`
#### `AUTH_AUTHENTIK_SECRET`
- Type: Required
- Description: Client Secret of the Authentik provider application.
- Default: `-`
- Example: `wnX7UbZg85ZUzF6ioxPLnJVEQa1Elbs7aqBUSF16xleBS5AdkVfASS49-fQIC8Rm`
### `AUTHENTIK_ISSUER`
#### `AUTH_AUTHENTIK_ISSUER`
- Type: Required
- Description: Issuer/domain of the Authentik provider application.
- Default: `-`
- Example: `https://your-authentik-domain.com/application/o/slug/`
## Github
### Casdoor
### `GITHUB_CLIENT_ID`
#### `AUTH_CASDOOR_ID`
- Type: Required
- Description: Client ID provided by Casdoor
- Default: `-`
- Example: `570bfa85a21800a25198`
#### `AUTH_CASDOOR_SECRET`
- Type: Required
- Description: Plaintext Client Secret provided by Casdoor
- Default: `-`
- Example: `233a623a15eac2db2e43bb8a323eda729552c405`
#### `AUTH_CASDOOR_ISSUER`
- Type: Required
- Description: OpenID Connect issuer provided by Casdoor
- Default: `-`
- Example: `https://lobe-auth-api.example.com/`
### Cloudflare Zero Trust
#### `AUTH_CLOUDFLARE_ZERO_TRUST_ID`
- Type: Required
- Description: Client ID of the Cloudflare Zero Trust provider application.
- Default: `-`
- Example: `711963a58df8c943cfd6c487cac99ce9f6ee0c88c0b7bf94584b8ff052fcb09c`
#### `AUTH_CLOUDFLARE_ZERO_TRUST_SECRET`
- Type: Required
- Description: The plaintext of the Client Secret for the Cloudflare Zero Trust provider
- Default: `-`
- Example: `8f26d4ef834a828045b401e032ae128dbb00471bca53f0d25332323f525dfa30`
#### `AUTH_CLOUDFLARE_ZERO_TRUST_ISSUER`
- Type: Required
- Description: Issuer of the Cloudflare Zero Trust provider application.
- Default: `-`
- Example: `https://example.cloudflareaccess.com/cdn-cgi/access/sso/oidc/711963a58df8c943cfd6c487cac99ce9f6ee0c88c0b7bf94584b8ff052fcb09c`
### Github
#### `AUTH_GITHUB_ID`
- Type: Required
- Description: Client ID of the Github application. You can access it [here](https://github.com/settings/apps) and navigate to the application settings to view.
- Default: `-`
- Example: `abd94200333283550508`
### `GITHUB_CLIENT_SECRET`
#### `AUTH_GITHUB_SECRET`
- Type: Required
- Description: Client Secret of the Github application.
- Default: `-`
- Example: `dd262976ac0931d947e104891586a053f3d3750b`
## ZITADEL
### Logto
### `ZITADEL_CLIENT_ID`
#### `AUTH_LOGTO_ID`
- Type: Required
- Description: The Client ID of the Logto application. You can find it in the Logto console for private deployment or [Logto Cloud](http://cloud.logto.io/) depending on the deployment mode.
- Default value: `-`
- Example: `123456789012345678@your-project`
#### `AUTH_LOGTO_SECRET`
- Type: Required
- Description: The Client Secret of the Logto application.
- Default value: `-`
- Example: `9QF1n5ATzU7Z3mHp2Iw4gKX8kY6oR7uW1DnKcV3LqX2jF6iG3fBmJ1kV7nS5zE6A`
#### `AUTH_LOGTO_ISSUER`
- Type: Required
- Description: The OpenID Connect issuer of the Logto application. You can find it in the Logto console for private deployment or [Logto Cloud](http://cloud.logto.io/) depending on the deployment mode.
- Default value: `-`
- Example: `https://lobe-auth-api.example.com/oidc`
### Microsoft Entra ID
#### `AUTH_AZURE_AD_ID`
- Type: Required
- Description: Client ID of the Microsoft Entra ID application.
- Default: `-`
- Example: `be8f6da1-58c3-4f16-ff1b-78f5148e10df`
#### `AUTH_AZURE_AD_SECRET`
- Type: Required
- Description: Client Secret of the Microsoft Entra ID application.
- Default: `-`
- Example: `~gI8Q.pTiN1vwB6Gl.E1yFT1ojcXABkdACfJXaNj`
#### `AUTH_AZURE_AD_TENANT_ID`
- Type: Required
- Description: Tenant ID of the Microsoft Entra ID application.
- Default: `-`
- Example: `c8ae2f36-edf6-4cda-96b9-d3e198a47cba`
### ZITADEL
#### `AUTH_ZITADEL_ID`
- Type: Required
- Description: Client ID of the ZITADEL application. This can be found under your application in the ZITADEL console.
- Default: `-`
- Example: `123456789012345678@your-project`
### `ZITADEL_CLIENT_SECRET`
#### `AUTH_ZITADEL_SECRET`
- Type: Required
- Description: Client Secret of the ZITADEL application.
- Default: `-`
- Example: `9QF1n5ATzU7Z3mHp2Iw4gKX8kY6oR7uW1DnKcV3LqX2jF6iG3fBmJ1kV7nS5zE6A`
### `ZITADEL_ISSUER`
#### `AUTH_ZITADEL_ISSUER`
- Type: Required
- Description: Issuer of the ZITADEL application. This is usually the URL of the ZITADEL instance, and can be found in `URLs` tab of your application in the console.
- Default: `-`
- Example: `https://your-instance-abc123.zitadel.cloud`
### Generic OIDC
#### `AUTH_GENERIC_OIDC_ID`
- Type: Required
- Description: Client ID of the Generic OIDC provider application.
- Default: `-`
- Example: `_client_id_for_lobe_chat_`
#### `AUTH_GENERIC_OIDC_SECRET`
- Type: Required
- Description: The plaintext of the Client Secret for the Generic OIDC provider
- Default: `-`
- Example: `_client_secret_for_lobe_chat_`
#### `AUTH_GENERIC_OIDC_ISSUER`
- Type: Required
- Description: Issuer of the Generic OIDC provider application.
- Default: `-`
- Example: `https://sso.example.com`
<Callout>
Currently, we only support providers above. If you need to use other identity verification service
providers, you can submit a [feature
request](https://github.com/lobehub/lobe-chat/issues/new/choose) or Pull Request.
</Callout>
## Clerk
### `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY`
- Type: Required
- Description: Publishable key of the Clerk application. You can access it [here](https://dashboard.clerk.com) and navigate to the API Keys to view.
- Default: `-`
- Example: `pk_test_Zmxvd4luZy1wdW1hLTIyLmNsXXJrTmFjY291bnRzLmRldiQ` in dev / `pk_live_Y2xlcdsubG9iZWh1Yi1cbmMuY24k` in production
### `CLERK_SECRET_KEY`
- Type: Required
- Description: Secret key of the Clerk application.
- Default: `-`
- Example: `sk_test_513Ma0P7IAWM1XMv4waxZjRYRajWTaCfJLjpEO3SD2` in dev / `sk_live_eMMlHjwJvZFUfczFljSKqZdwQtLvmczmsJSNmdrpeZ` in production
@@ -1,162 +1,283 @@
---
title: LobeChat 身份验证服务设置
description: >-
了解如何配置 LobeChat 的身份验证服务环境变量,包括单点登录 (SSO)、Auth0、Microsoft Entra
ID、Authentik、Github 和 ZITADEL。
description: 了解如何配置 LobeChat 的身份验证服务环境变量。
tags:
- LobeChat
- 身份验证服务
- 单点登录
- Auth0
- Microsoft Entra ID
- Authentik
- Github
- ZITADEL
- Next Auth
- Clerk
---
# 身份验证服务
LobeChat 在部署时提供了完善的身份验证服务能力,以下是相关的环境变量,你可以使用这些环境变量轻松定义需要在 LobeChat 中开启的身份验证服务。
## 通用设置
## Next Auth
### `ENABLE_OAUTH_SSO`
### 通用设置
- 类型:必选
- 描述:为 LobeChat 启用单点登录 (SSO)。设置为 `1` 以启用单点登录。
- 默认值: `-`
- 示例: `1`
### `SSO_PROVIDERS`
- Type: 必需
- 描述:选择 LoboChat 的单点登录提供商。如果有多个单点登录提供商,请用逗号分隔,例如 `auth0,azure-ad,authentik`
- 默认值: `auth0`
- 示例: `auth0,azure-ad,authentik`
### `NEXTAUTH_SECRET`
#### `NEXT_AUTH_SECRET`
- 类型:必选
- 描述:用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32`.
- 默认值: `-`
- 示例: `Tfhi2t2pelSMEA8eaV61KaqPNEndFFdMIxDaJnS1CUI=`
### `NEXTAUTH_URL`
#### `NEXT_AUTH_SSO_PROVIDERS`
- 类型:可选
- 描述:选择 LoboChat 的单点登录提供商。如果有多个单点登录提供商,请用逗号分隔,例如 `auth0,microsoft-entra-id,authentik`
- 默认值: `auth0`
- 示例: `auth0,microsoft-entra-id,authentik`
#### `NEXTAUTH_URL`
- 类型:可选
- 描述:该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,在 Vercel 上部署时无需设置。
- 默认值:`-`
- 示例:`https://example.com/api/auth`
## Auth0
### Auth0
### `AUTH0_CLIENT_ID`
#### `AUTH_AUTH0_ID`
- 类型:必选
- 描述: Auth0 应用程序的 Client ID,您可以访问[这里](https://manage.auth0.com/dashboard)并导航至应用程序设置来查看
- 默认值: `-`
- 示例: `evCnOJP1UX8FMnXR9Xkj5t0NyFn5p70P`
### `AUTH0_CLIENT_SECRET`
#### \`AUTH_AUTH_SECRET
- 类型:必选
- 描述: Auth0 应用程序的 Client Secret
- 默认值: `-`
- 示例: `wnX7UbZg85ZUzF6ioxPLnJVEQa1Elbs7aqBUSF16xleBS5AdkVfASS49-fQIC8Rm`
### `AUTH0_ISSUER`
#### `AUTH_AUTH0_ISSUER`
- 类型:必选
- 描述: Auth0 应用程序的签发人 / 域
- 默认值: `-`
- 示例: `https://example.auth0.com`
## Microsoft Entra ID
### Authelia
### `AZURE_AD_CLIENT_ID`
#### `AUTH_AUTHELIA_ID`
- 类型:必
- 描述Microsoft Entra ID 应用程序的客户端 ID
- 默认值`-`
- 示例`be8f6da1-58c3-4f16-ff1b-78f5148e10df`
- 类型:必
- 描述: Authelia 提供程序的 Client ID
- 默认值: `-`
- 示例: `lobe-chat`
### `AZURE_AD_CLIENT_SECRET`
#### `AUTH_AUTHELIA_SECRET`
- 类型:必
- 描述Microsoft Entra ID 应用程序的客户端密钥。
- 默认值`-`
- 示例`~gI8Q.pTiN1vwB6Gl.E1yFT1ojcXABkdACfJXaNj`
- 类型:必
- 描述: Authelia 提供程序的 Client Secret 的明文
- 默认值: `-`
- 示例: `insecure_secret`
### `AZURE_AD_TENANT_ID`
#### `AUTH_AUTHELIA_ISSUER`
- 类型:必
- 描述Microsoft Entra ID 应用程序的租户 ID。
- 默认值`-`
- 示例`c8ae2f36-edf6-4cda-96b9-d3e198a47cba`
- 类型:必
- 描述: Authentik 提供程序的 OpenID Connect 颁发者
- 默认值: `-`
- 示例: `https://sso.example.com`
## Authentik
### Authentik
### `AUTHENTIK_CLIENT_ID`
#### `AUTH_AUTHENTIK_ID`
- 类型:必选
- 描述: Authentik 提供程序的 Client ID
- 默认值: `-`
- 示例: `YNtbIRlYF8Kj66mTLue59nsGLlb7HNyx1qjPH6VS`
### `AUTHENTIK_CLIENT_SECRET`
#### `AUTH_AUTHENTIK_SECRET`
- 类型:必选
- 描述: Authentik 提供程序的 Client Secret
- 默认值: `-`
- 示例: `h3lMI1vPUzqyqqeIDUbH5UNNOxyQLXk35h89yETeaAwHk7qVXBG3sJQWeqHBU5pyggwhP9u0eaZ1eq6DHUddVPLoS4gncqD37yuCr8jI8dY66WAt45MStDsDcQm0Ygze`
### `AUTHENTIK_ISSUER`
#### `AUTH_AUTHENTIK_ISSUER`
- 类型:必选
- 描述: Authentik 提供程序的 OpenID Connect 颁发者
- 默认值: `-`
- 示例: `https://your-authentik-domain.com/application/o/slug/`
## Github
### Casdoor
### `GITHUB_CLIENT_ID`
#### `AUTH_CASDOOR_ID`
- Type: Required
- Description: Github应用的客户端ID。您可以在[这里](https://github.com/settings/apps)访问,并导航到应用程序设置以查看。
- Default: `-`
- Example: `abd94200333283550508`
- 类型:必选
- 描述: Casdoor 提供程序的 Client ID
- 默认值: `-`
- 示例: `570bfa85a21800a25198`
### `GITHUB_CLIENT_SECRET`
#### `AUTH_CASDOOR_SECRET`
- Type: Required
- Description: Github应用的客户端密钥。
- Default: `-`
- Example: `dd262976ac0931d947e104891586a053f3d3750b`
- 类型:必选
- 描述: Casdoor 提供程序的 Client Secret 的明文
- 默认值: `-`
- 示例: `233a623a15eac2db2e43bb8a323eda729552c405`
## ZITADEL
#### `AUTH_CASDOOR_ISSUER`
### `ZITADEL_CLIENT_ID`
- 类型:必选
- 描述: Casdoor 提供程序的 OpenID Connect 颁发者
- 默认值: `-`
- 示例: `https://lobe-auth-api.example.com/`
### Cloudflare Zero Trust
#### `AUTH_CLOUDFLARE_ZERO_TRUST_ID`
- 类型:必选
- 描述: Cloudflare Zero Trust 提供程序的 Client ID
- 默认值: `-`
- 示例: `711963a58df8c943cfd6c487cac99ce9f6ee0c88c0b7bf94584b8ff052fcb09c`
#### `AUTH_CLOUDFLARE_ZERO_TRUST_SECRET`
- 类型:必选
- 描述: Cloudflare Zero Trust 提供程序的 Client Secret 的明文
- 默认值: `-`
- 示例: `8f26d4ef834a828045b401e032ae128dbb00471bca53f0d25332323f525dfa30`
#### `AUTH_CLOUDFLARE_ZERO_TRUST_ISSUER`
- 类型:必选
- 描述: Cloudflare Zero Trust 提供程序的 OpenID Connect 颁发者
- 默认值: `-`
- 示例: `https://example.cloudflareaccess.com/cdn-cgi/access/sso/oidc/711963a58df8c943cfd6c487cac99ce9f6ee0c88c0b7bf94584b8ff052fcb09c`
### Github
#### `AUTH_GITHUB_ID`
- 类型:必选
- 描述: Github 应用的客户端 ID。您可以在[这里](https://github.com/settings/apps)访问,并导航到应用程序设置以查看。
- 默认值: `-`
- 示例: `abd94200333283550508`
#### `AUTH_GITHUB_SECRET`
- 类型:必选
- 描述: Github 应用的客户端密钥。
- 默认值: `-`
- 示例: `dd262976ac0931d947e104891586a053f3d3750b`
### Logto
#### `AUTH_LOGTO_ID`
- 类型:必选
- 描述:Logto 应用程序的 Client ID。您可以在根据部署模式,在私有部署的 Logto 控制台或 [Logto Cloud](http://cloud.logto.io/) 中找到。
- 默认值:`-`
- 示例:`123456789012345678@your-project`
#### `AUTH_LOGTO_SECRET`
- 类型:必选
- 描述:Logto 应用程序的 Client Secret。
- 默认值:`-`
- 示例:`9QF1n5ATzU7Z3mHp2Iw4gKX8kY6oR7uW1DnKcV3LqX2jF6iG3fBmJ1kV7nS5zE6A`
#### `AUTH_LOGTO_ISSUER`
- 类型:必选
- 描述:Logto 应用程序的 OpenID Connect 颁发者(issuer)。根据部署模式,您可以在私有部署的 Logto 控制台或 [Logto Cloud](http://cloud.logto.io/) 中找到。
- 默认值:`-`
- 示例:`https://lobe-auth-api.example.com/oidc`
### Microsoft Entra ID
#### `AUTH_AZURE_AD_ID`
- 类型:必选
- 描述:Microsoft Entra ID 应用程序的客户端 ID。
- 默认值:`-`
- 示例:`be8f6da1-58c3-4f16-ff1b-78f5148e10df`
#### `AUTH_AZURE_AD_SECRET`
- 类型:必选
- 描述:Microsoft Entra ID 应用程序的客户端密钥。
- 默认值:`-`
- 示例:`~gI8Q.pTiN1vwB6Gl.E1yFT1ojcXABkdACfJXaNj`
#### `AUTH_AZURE_AD_TENANT_ID`
- 类型:必选
- 描述:Microsoft Entra ID 应用程序的租户 ID。
- 默认值:`-`
- 示例:`c8ae2f36-edf6-4cda-96b9-d3e198a47cba`
### ZITADEL
#### `AUTH_ZITADEL_ID`
- 类型:必选
- 描述:ZITADEL 应用的 Client ID。您可以在 ZITADEL 控制台应用设置中找到 Client ID。
- 默认值:`-`
- 示例:`123456789012345678@your-project`
### `ZITADEL_CLIENT_SECRET`
#### `AUTH_ZITADEL_SECRET`
- 类型:必选
- 描述:ZITADEL 应用的 Client Secret。
- 默认值:`-`
- 示例:`9QF1n5ATzU7Z3mHp2Iw4gKX8kY6oR7uW1DnKcV3LqX2jF6iG3fBmJ1kV7nS5zE6A`
### `ZITADEL_ISSUER`
#### `AUTH_ZITADEL_ISSUER`
- 类型:必选
- 描述:ZITADEL 应用的 OpenID Connect 颁发者(issuer),通常为 ZITADEL 实例的 URL。您可以在 ZITADEL 控制台应用设置中的 `URLs` 选项卡中找到 issuer。
- 默认值:`-`
- 示例:`https://your-instance-abc123.zitadel.cloud`
### Generic OIDC
#### `AUTH_GENERIC_OIDC_ID`
- 类型:必选
- 描述: Generic OIDC 提供程序的 Client ID
- 默认值: `-`
- 示例: `_client_id_for_lobe_chat_`
#### `AUTH_GENERIC_OIDC_SECRET`
- 类型:必选
- 描述: Generic OIDC 提供程序的 Client Secret 的明文
- 默认值: `-`
- 示例: `_client_secret_for_lobe_chat_`
#### `AUTH_GENERIC_OIDC_ISSUER`
- 类型:必选
- 描述: Generic OIDC 提供程序的 OpenID Connect 颁发者
- 默认值: `-`
- 示例: `https://sso.example.com`
<Callout>
如果您需要使用其他身份验证服务提供商,可以提交
[功能请求](https://github.com/lobehub/lobe-chat/issues/new/choose) 或 Pull Request。
</Callout>
## Clerk
### `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY`
- 类型:必选
- 描述: Clerk 应用程序的 Publishable key。您可以在[这里](https://dashboard.clerk.com)访问,并导航到 API Keys 以查看。
- 默认值:`-`
- 示例: `pk_test_Zmxvd4luZy1wdW1hLTIyLmNsXXJrTmFjY291bnRzLmRldiQ` (测试环境) / `pk_live_Y2xlcdsubG9iZWh1Yi1cbmMuY24k` (生产环境)
### `CLERK_SECRET_KEY`
- 类型:必选
- 描述: Clerk 应用程序的 Secret key。您可以在[这里](https://dashboard.clerk.com)访问,并导航到 API Keys 以查看。
- 默认值:`-`
- 示例: `sk_test_513Ma0P7IAWM1XMv4waxZjRYRajWTaCfJLjpEO3SD2` (测试环境) / `sk_live_eMMlHjwJvZFUfczFljSKqZdwQtLvmczmsJSNmdrpeZ`(生产环境)
@@ -36,14 +36,7 @@ LobeChat provides some additional configuration options during deployment, which
When using the `random` mode, a random API Key will be selected from the available multiple API Keys.
When using the `turn` mode, the API Keys will be retrieved in a round-robin manner according to the specified order.
### `ENABLE_OAUTH_SSO`
- Type: Optional
- Description: Enable Single Sign-On (SSO) for LobeChat. Set to `1` to enable SSO. For more information, see [Authentication Services](#authentication-services).
- Default: -
- Example: `1`
When using the `turn` mode, the API Keys will be retrieved in a polling manner according to the specified order.
### `NEXT_PUBLIC_BASE_PATH`
@@ -57,7 +50,7 @@ When using the `turn` mode, the API Keys will be retrieved in a round-robin mann
- Type: Optional
- Description: Used to configure the default settings for the LobeChat default agent. It supports various data types and structures, including key-value pairs, nested fields, array values, and more.
- Default: -
- Example: `'model=gpt-4-1106-preview;params.max_tokens=300;plugins=search-engine,lobe-image-designer`
- Example: `'model=gpt-4-1106-preview;params.max_tokens=300;plugins=search-engine,lobe-image-designer'`
The `DEFAULT_AGENT_CONFIG` is used to configure the default settings for the LobeChat default agent. It supports various data types and structures, including key-value pairs, nested fields, array values, and more. The table below provides detailed information on the configuration options, examples, and corresponding explanations for the `DEFAULT_AGENT_CONFIG` environment variable:
@@ -68,8 +61,8 @@ The `DEFAULT_AGENT_CONFIG` is used to configure the default settings for the Lob
| Array | `plugins=search-engine,lobe-image-designer` | Enable the `search-engine` and `lobe-image-designer` plugins. |
| Chinese Comma | `plugins=search-enginelobe-image-designer` | Same as above, demonstrating support for Chinese comma separation. |
| Multiple Configurations | `model=glm-4;provider=zhipu` | Set the model to `glm-4` and the model provider to `zhipu`. |
| Numeric Value | `params.max_tokens=300` | Set the maximum tokens to `300`. |
| Boolean Value | `enableAutoCreateTopic=true` | Enable automatic topic creation. |
| Numeric Value | `params.max_tokens=300`, `chatConfig.historyCount=5` | Set the maximum tokens to `300`, Set the number of historical messages to 5. |
| Boolean Value | `chatConfig.enableAutoCreateTopic=true`, `chatConfig.enableCompressThreshold=true`, `chatConfig.enableHistoryCount=true` | Enable automatic topic creation, History length compression threshold, number of historical records. |
| Special Characters | `inputTemplate="Hello; I am a bot;"` | Set the input template to `Hello; I am a bot;`. |
| Error Handling | `model=gpt-4;maxToken` | Ignore invalid entry `maxToken` and only parse `model=gpt-4`. |
| Value Override | `model=gpt-4;model=gpt-4-1106-preview` | If a key is repeated, use the value that appears last; in this case, the value of `model` is `gpt-4-1106-preview`. |
@@ -78,6 +71,28 @@ Further reading:
- [[RFC] 022 - Default Assistant Parameters Configuration via Environment Variables](https://github.com/lobehub/lobe-chat/discussions/913)
### `FEATURE_FLAGS`
- Type: Optional
- Description: Used to control LobeChat's feature functionalities. Supports multiple feature flags, using `+` to add a feature and `-` to disable a feature. Separate multiple feature flags with a comma `,` and enclose the entire value in quotes `"` to avoid parsing errors.
- Default: `-`
- Example: `"-welcome_suggest"`
For specific content, please refer to the [Feature Flags](/docs/self-hosting/advanced/feature-flags) documentation.
### `PROXY_URL`
- Type: Optional
- Description: Used to specify the proxy URL for connecting to external services. The value of this variable should be different in different deployment environments.
- Default: -
- Example: `http://127.0.0.1:7890` or `socks5://localhost:7891`
<Callout type="info">
If you're using Docker Desktop on Windows or macOS, it relies on a virtual machine. In this setup,
`localhost` / `127.0.0.1` refers to the localhost of the container itself. In such cases, please
try using `host.docker.internal` instead of `localhost`.
</Callout>
## Plugin Service
### `PLUGINS_INDEX_URL`

Some files were not shown because too many files have changed in this diff Show More