Compare commits

...

980 Commits

Author SHA1 Message Date
arvinxx 3ed61d87da refactor claude code 2025-07-11 17:11:26 +08:00
arvinxx 45919e6db8 refactor claude code 2025-07-11 10:57:29 +08:00
arvinxx 01b411cbc3 init claude code 2025-07-10 22:35:19 +08:00
lobehubbot 72d6287b70 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 12:23:52 +00:00
semantic-release-bot 04cad62627 🔖 chore(release): v1.97.9 [skip ci]
### [Version 1.97.9](https://github.com/lobehub/lobe-chat/compare/v1.97.8...v1.97.9)
<sup>Released on **2025-07-10**</sup>

#### 💄 Styles

- **misc**: Integrate Amazon Cognito for user authentication.

<br/>

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

#### Styles

* **misc**: Integrate Amazon Cognito for user authentication, closes [#7472](https://github.com/lobehub/lobe-chat/issues/7472) ([56f4e98](https://github.com/lobehub/lobe-chat/commit/56f4e98))

</details>

<div align="right">

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

</div>
2025-07-10 12:22:58 +00:00
Ethan Liu 56f4e98b97 💄 style: integrate Amazon Cognito for user authentication (#7472)
* feat: integrate Amazon Cognito for user authentication

* fix

---------

Co-authored-by: Liu, Yijun <liuyijun@amazon.com>
2025-07-10 20:08:18 +08:00
renovate[bot] 7ddf3a0040 Update dependency drizzle-kit to ^0.31.0 (#7482)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 19:55:56 +08:00
lobehubbot 9c4c91019d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 11:35:29 +00:00
semantic-release-bot 91022bfa04 🔖 chore(release): v1.97.8 [skip ci]
### [Version&nbsp;1.97.8](https://github.com/lobehub/lobe-chat/compare/v1.97.7...v1.97.8)
<sup>Released on **2025-07-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>
2025-07-10 11:34:36 +00:00
Arvin Xu 8dc2aef559 ️ perf: make most pages static to improve performance (#8383)
* perf settings

* fix settings

* try to make settings provider static

* ️ perf: make repos static

* fix lint

* fix issue

* repos and settings provider/id static

* fix style

* fix content

* test force static

* test force static
2025-07-10 19:19:55 +08:00
lobehubbot 02932330c3 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 10:38:13 +00:00
semantic-release-bot fc99fc3fa9 🔖 chore(release): v1.97.7 [skip ci]
### [Version&nbsp;1.97.7](https://github.com/lobehub/lobe-chat/compare/v1.97.6...v1.97.7)
<sup>Released on **2025-07-10**</sup>

#### 💄 Styles

- **misc**: Add google search grounding for Vertex AI.

<br/>

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

#### Styles

* **misc**: Add google search grounding for Vertex AI, closes [#8313](https://github.com/lobehub/lobe-chat/issues/8313) ([afd5900](https://github.com/lobehub/lobe-chat/commit/afd5900))

</details>

<div align="right">

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

</div>
2025-07-10 10:37:19 +00:00
Arvin Xu 34f061b51a Revert " 🔨 chore: Add Codecov Bundle Analysis (#6698)" (#8384)
This reverts commit b2e6777c81.
2025-07-10 18:22:55 +08:00
Katia b2e6777c81 🔨 chore: Add Codecov Bundle Analysis (#6698)
* Add Codecov Bundle Analysis integration

- Add @codecov/webpack-plugin for bundle size tracking
- Configure bundle analysis settings in codecov.yml
- Update CI workflow to include bundle analysis step
- Set bundle change threshold to 10KB

* Use nextjs-webpack-plugin

* Seperate workflow

Move the Build with Bundle Analysis step to its own GitHub Actions workflow file.

* Revert line additon change

---------

Co-authored-by: katia-sentry <katia.al-amir@sentry.com>
2025-07-10 18:18:15 +08:00
afon afd59004f9 💄 style: add google search grounding for Vertex AI (#8313)
* add google search grounding for Vertex AI

* fix test for google search grounding

---------
2025-07-10 18:07:40 +08:00
lobehubbot 390d0b807f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 10:04:43 +00:00
semantic-release-bot f3fa286f25 🔖 chore(release): v1.97.6 [skip ci]
### [Version&nbsp;1.97.6](https://github.com/lobehub/lobe-chat/compare/v1.97.5...v1.97.6)
<sup>Released on **2025-07-10**</sup>

#### ♻ Code Refactoring

- **misc**: Replace `utility-types` with `type-fest`.

<br/>

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

#### Code refactoring

* **misc**: Replace `utility-types` with `type-fest`, closes [#8370](https://github.com/lobehub/lobe-chat/issues/8370) ([a072b53](https://github.com/lobehub/lobe-chat/commit/a072b53))

</details>

<div align="right">

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

</div>
2025-07-10 10:03:56 +00:00
YuTengjing a072b53311 ♻️ refactor: replace utility-types with type-fest (#8370) 2025-07-10 17:50:01 +08:00
lobehubbot fa8f4ff83a 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 09:39:30 +00:00
semantic-release-bot eaf7f1b9c1 🔖 chore(release): v1.97.5 [skip ci]
### [Version&nbsp;1.97.5](https://github.com/lobehub/lobe-chat/compare/v1.97.4...v1.97.5)
<sup>Released on **2025-07-10**</sup>

#### 💄 Styles

- **misc**: Fix: solve the loading was strange spin when switch show.

<br/>

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

#### Styles

* **misc**: Fix: solve the loading was strange spin when switch show, closes [#8333](https://github.com/lobehub/lobe-chat/issues/8333) ([07197e7](https://github.com/lobehub/lobe-chat/commit/07197e7))

</details>

<div align="right">

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

</div>
2025-07-10 09:38:37 +00:00
Shinji-Li 07197e7a51 💄 style: fix: solve the loading was strange spin when switch show (#8333)
* fix: solve when switch show,the loading was strange spin

* fix: delete switch disable way
2025-07-10 17:24:29 +08:00
小钟 bf032dde07 📝 docs: fix two missing sentences translation in the README.zh-CN.md (#8382) 2025-07-10 17:23:38 +08:00
lobehubbot 7f37f29411 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 08:02:56 +00:00
semantic-release-bot eb45ed8647 🔖 chore(release): v1.97.4 [skip ci]
### [Version&nbsp;1.97.4](https://github.com/lobehub/lobe-chat/compare/v1.97.3...v1.97.4)
<sup>Released on **2025-07-10**</sup>

#### 💄 Styles

- **misc**: Add `grok-4-0709` model from xAI, fix theme issue in desktop.

<br/>

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

#### Styles

* **misc**: Add `grok-4-0709` model from xAI, closes [#8379](https://github.com/lobehub/lobe-chat/issues/8379) ([b7ca447](https://github.com/lobehub/lobe-chat/commit/b7ca447))
* **misc**: Fix theme issue in desktop, closes [#8380](https://github.com/lobehub/lobe-chat/issues/8380) ([c7ae78b](https://github.com/lobehub/lobe-chat/commit/c7ae78b))

</details>

<div align="right">

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

</div>
2025-07-10 08:02:03 +00:00
Arvin Xu c7ae78bfb7 💄 style: fix theme issue in desktop (#8380)
* 💄 style: fix theme issue

* fix

* fix
2025-07-10 15:47:53 +08:00
Zhijie He b7ca447946 💄 style: add grok-4-0709 model from xAI (#8379)
* 💄 style: add `grok-4-0709` model from xAI

* 🐛 fix: fix model calling

* 🐛 fix: remove `reasoning_effort` support for Grok 4
2025-07-10 15:40:50 +08:00
lobehubbot e11bf29d0f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 04:41:55 +00:00
semantic-release-bot 53f9c3b279 🔖 chore(release): v1.97.3 [skip ci]
### [Version&nbsp;1.97.3](https://github.com/lobehub/lobe-chat/compare/v1.97.2...v1.97.3)
<sup>Released on **2025-07-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>
2025-07-10 04:41:05 +00:00
Maple Gao 9e980cbf28 👷 build: pin minio version (#8378)
* 🔨  chore: fix MiniO image version
* fix: MiniO disabled web admin panel in latest version

* 🔨  chore: fix Relay Mode mis-report
* fix: Relay mode should check localhost under network_mode: service:network-service itself, but if failed, should notice user check relay URL

* 🔨  chore: fix Relay Mode mis-report
* fix: Relay mode should check localhost under network_mode: service:network-service itself, but if failed, should notice user check relay URL

* 🔨  chore: fix Relay Mode mis-report
* fix: Relay mode should check localhost under network_mode: service:network-service itself, but if failed, should notice user check relay URL

* 🔨  chore: fix Relay Mode mis-report
* fix: Relay mode should check localhost under network_mode: service:network-service itself, but if failed, should notice user check relay URL

* Revert "🔨  chore: fix MiniO image version"

This reverts commit 1d6c2cd334.

* Revert "🔨  chore: fix Relay Mode mis-report * fix: Relay mode should check localhost under network_mode: service:network-service itself, but if failed, should notice user check relay URL"

This reverts commit 7bc8a47b

* 🔨  chore: fix MiniO Version
* fix: MiniO new version do not have web admin panel
2025-07-10 12:26:41 +08:00
lobehubbot 7d718b2fe3 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 03:48:42 +00:00
semantic-release-bot ed716c27f2 🔖 chore(release): v1.97.2 [skip ci]
### [Version&nbsp;1.97.2](https://github.com/lobehub/lobe-chat/compare/v1.97.1...v1.97.2)
<sup>Released on **2025-07-10**</sup>

#### 💄 Styles

- **misc**: Implement data analytics event tracking framework.

<br/>

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

#### Styles

* **misc**: Implement data analytics event tracking framework, closes [#8352](https://github.com/lobehub/lobe-chat/issues/8352) ([f433aca](https://github.com/lobehub/lobe-chat/commit/f433aca))

</details>

<div align="right">

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

</div>
2025-07-10 03:47:53 +00:00
Tsuki f433aca05f 💄 style: implement data analytics event tracking framework (#8352) 2025-07-10 11:33:35 +08:00
lobehubbot 13e1cafb62 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 02:01:45 +00:00
semantic-release-bot e02e74c9a4 🔖 chore(release): v1.97.1 [skip ci]
### [Version&nbsp;1.97.1](https://github.com/lobehub/lobe-chat/compare/v1.97.0...v1.97.1)
<sup>Released on **2025-07-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix locale hydration error in SSR.

<br/>

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

#### What's fixed

* **misc**: Fix locale hydration error in SSR, closes [#8365](https://github.com/lobehub/lobe-chat/issues/8365) ([63f482a](https://github.com/lobehub/lobe-chat/commit/63f482a))

</details>

<div align="right">

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

</div>
2025-07-10 02:00:50 +00:00
Arvin Xu 63f482a132 🐛 fix: fix locale hydration error in SSR (#8365)
* fix locale

* update readme

* Update README.zh-CN.md

* update readme

* update README

* fix locales

* add docs
2025-07-10 09:46:30 +08:00
YuTengjing 160678e7e0 🔨 chore: remove async router max duration limit (#8374)
* fix: disable async router trpc batch feature

* fix: remove async router max duration limit
2025-07-09 15:37:26 +08:00
YuTengjing a89c2ec1bc 🔨 chore(database): add missing junction table relations for Drizzle Studio (#8368)
- Add filesToSessionsRelations for files-sessions relationship
- Add agentsFilesRelations for agents-files relationship
- Add messagesFilesRelations for messages-files relationship
- Add fileChunksRelations for files-chunks relationship

Resolves Drizzle Studio relation inference errors
2025-07-09 10:26:16 +08:00
lobehubbot 1225f12e1a 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-08 12:06:19 +00:00
semantic-release-bot e1481e60fb 🔖 chore(release): v1.97.0 [skip ci]
## [Version&nbsp;1.97.0](https://github.com/lobehub/lobe-chat/compare/v1.96.20...v1.97.0)
<sup>Released on **2025-07-08**</sup>

####  Features

- **misc**: Add MCP marketplace and mcp plugin one-click installation in desktop.

<br/>

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

#### What's improved

* **misc**: Add MCP marketplace and mcp plugin one-click installation in desktop, closes [#8334](https://github.com/lobehub/lobe-chat/issues/8334) ([416a4b1](https://github.com/lobehub/lobe-chat/commit/416a4b1))

</details>

<div align="right">

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

</div>
2025-07-08 12:05:32 +00:00
Arvin Xu 416a4b1212 feat: Add MCP marketplace and mcp plugin one-click installation in desktop (#8334)
* move plugin Component

*  feat(wip): Add MCP Discover Market

*  test: Fix test

*  test: Fix test

* 🐛 fix: Fix build

* 🐛 fix: Fix build

* 💄 style: update plugin store

* 💄 style: Update plugin store

*  feat: Update cache control headers and optimize Next.js config for performance

* 💄 style: Update discover markdown

* 💄 style: Update scroes step

* 优化 list 细节

* 优化 list 细节

* 优化 list 细节

* 完成基础 mcp 安装实现

* 完成安装上报

* 新增安装过程

* fix

* 优化插件设置页面配置

* 💄 style: update official icon

* 完善安装错误状态

* 支持取消安装

* fix types

* fix types

* 完成系统依赖检查流程

* 完成系统依赖安装流程上报

* try to fix suspense

* try to fix suspense

* try to fix suspense

* try to fix tests

* upgrade electron

* fix suspense

* fix tool name issue

* fix test

* add i18n

* fix tool call

*  test: fix tests

* move

* fix tests

* refactor plugin install store

* improve old plugin install

* fix

* fix header link

* fix plugin detail

* fix oldPlugin detail

* fix tests

* update i18n

* fix i18n

* 💄 style: improve style

* add debug log

* fix link

* improve

* fix link

* 🚚 refactor: refactor the market runtime to nodejs

* 移除 props.searchParams 调用

*  test: fix tests

* 尝试静态化 discover page

* ♻️ refactor: refactor config to nodejs runtime

* fix min width

* 修正自定义插件的编辑展示区域

* fix i18n

* 调整部分组件目录结构

* 完善 MCP 市场安装流程

* 完善安装上报事件

* test: fix test

*  feat: 实现 m2m oauth 请求

*  feat: 完善 m2m 注册链路

*  feat: 完善 m2m 注册链路

* 🐛 fix: 优化 debug 日志输出问题

*  feat: 支持 call 上报

* 💄 style: 使用更大的版本

* 🐛 fix: tools calling report

* 🐛 fix: try to fix call report

* 🐛 fix: try to use expires cookies

* 🐛 fix: fix cookies expires issue

* test: fix customPluginInfo report

* 🐛 fix: fix connection issue

* 🐛 fix: fix platform report

* 🐛 fix: fix version issue

---------

Co-authored-by: canisminor1990 <i@canisminor.cc>
2025-07-08 19:51:22 +08:00
lobehubbot 580961e6e4 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-08 05:03:08 +00:00
semantic-release-bot 35d3577af7 🔖 chore(release): v1.96.20 [skip ci]
### [Version&nbsp;1.96.20](https://github.com/lobehub/lobe-chat/compare/v1.96.19...v1.96.20)
<sup>Released on **2025-07-08**</sup>

#### 💄 Styles

- **misc**: Add `MCP_TOOL_TIMEOUT` env and improve debug usage guide.

<br/>

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

#### Styles

* **misc**: Add `MCP_TOOL_TIMEOUT` env and improve debug usage guide, closes [#8357](https://github.com/lobehub/lobe-chat/issues/8357) ([d4baae5](https://github.com/lobehub/lobe-chat/commit/d4baae5))

</details>

<div align="right">

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

</div>
2025-07-08 05:02:21 +00:00
wangjifeng d4baae5df0 💄 style: add MCP_TOOL_TIMEOUT env and improve debug usage guide (#8357)
* feat: add MCP_TOOL_TIMEOUT config and doc, and improve debug usage guide

* feat: add MCP_TOOL_TIMEOUT config and doc, remove connect timeout

* feat: add MCP_TOOL_TIMEOUT config and doc, remove connect timeout

* docs: update .env.example, comment out MCP_TOOL_TIMEOUT and improve env parsing in client

* docs: update .env.example MCP_TOOL_TIMEOUT default value to 60000 to match code
2025-07-08 12:48:31 +08:00
lobehubbot be476a5b29 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-07 06:37:28 +00:00
semantic-release-bot 4ed67f39f7 🔖 chore(release): v1.96.19 [skip ci]
### [Version&nbsp;1.96.19](https://github.com/lobehub/lobe-chat/compare/v1.96.18...v1.96.19)
<sup>Released on **2025-07-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Pin `officeparser@5.1.1` to fix server error.

<br/>

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

#### What's fixed

* **misc**: Pin `officeparser@5.1.1` to fix server error, closes [#8354](https://github.com/lobehub/lobe-chat/issues/8354) ([3f4e935](https://github.com/lobehub/lobe-chat/commit/3f4e935))

</details>

<div align="right">

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

</div>
2025-07-07 06:36:41 +00:00
Arvin Xu 3f4e935301 🐛 fix: pin officeparser@5.1.1 to fix server error (#8354)
* test: fix test

* test: fix test
2025-07-07 14:22:20 +08:00
lobehubbot 7eb4a7f173 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-06 18:41:25 +00:00
semantic-release-bot 9d0bb1f230 🔖 chore(release): v1.96.18 [skip ci]
### [Version&nbsp;1.96.18](https://github.com/lobehub/lobe-chat/compare/v1.96.17...v1.96.18)
<sup>Released on **2025-07-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Change the wrong github checkmodel name.

#### 💄 Styles

- **misc**: Files hello pages should scroll.

<br/>

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

#### What's fixed

* **misc**: Change the wrong github checkmodel name, closes [#8339](https://github.com/lobehub/lobe-chat/issues/8339) ([f07d912](https://github.com/lobehub/lobe-chat/commit/f07d912))

#### Styles

* **misc**: Files hello pages should scroll, closes [#8340](https://github.com/lobehub/lobe-chat/issues/8340) ([df9b7df](https://github.com/lobehub/lobe-chat/commit/df9b7df))

</details>

<div align="right">

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

</div>
2025-07-06 18:40:31 +00:00
Shinji-Li f07d9122c5 🐛 fix: change the wrong github checkmodel name (#8339) 2025-07-07 02:26:28 +08:00
Shinji-Li df9b7df385 💄 style: files hello pages should scroll (#8340) 2025-07-07 02:25:11 +08:00
Arvin Xu 987b633336 📝 docs: add some cursor rules (#8338) 2025-07-04 19:07:16 +08:00
lobehubbot b7042b6542 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-03 17:15:55 +00:00
semantic-release-bot b346d4bcbf 🔖 chore(release): v1.96.17 [skip ci]
### [Version&nbsp;1.96.17](https://github.com/lobehub/lobe-chat/compare/v1.96.16...v1.96.17)
<sup>Released on **2025-07-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>
2025-07-03 17:15:08 +00:00
YuTengjing 780ee82b12 ️ build: integrate tsgo to validate ts (#8331)
* ️ build: integrate tsgo to validate ts

* 📝 docs: add code comment to @ts-ignore

* Update package.json

* Update apps/desktop/package.json

* Update package.json

* Update package.json
2025-07-04 01:01:11 +08:00
lobehubbot 31c6a51d7f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-03 00:36:14 +00:00
semantic-release-bot dfe4699769 🔖 chore(release): v1.96.16 [skip ci]
### [Version&nbsp;1.96.16](https://github.com/lobehub/lobe-chat/compare/v1.96.15...v1.96.16)
<sup>Released on **2025-07-03**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

* **misc**: Update i18n, closes [#8322](https://github.com/lobehub/lobe-chat/issues/8322) ([0c6b885](https://github.com/lobehub/lobe-chat/commit/0c6b885))

</details>

<div align="right">

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

</div>
2025-07-03 00:35:07 +00:00
LobeHub Bot 0c6b8858eb 💄 style: update i18n (#8322)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-03 08:20:59 +08:00
lobehubbot 24ae38aae4 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-02 07:14:16 +00:00
semantic-release-bot d40d7e0c00 🔖 chore(release): v1.96.15 [skip ci]
### [Version&nbsp;1.96.15](https://github.com/lobehub/lobe-chat/compare/v1.96.14...v1.96.15)
<sup>Released on **2025-07-02**</sup>

#### 🐛 Bug Fixes

- **misc**: Wrong Gemini 2.5 Pro thinkbudget.

<br/>

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

#### What's fixed

* **misc**: Wrong Gemini 2.5 Pro thinkbudget, closes [#8296](https://github.com/lobehub/lobe-chat/issues/8296) ([18920c5](https://github.com/lobehub/lobe-chat/commit/18920c5))

</details>

<div align="right">

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

</div>
2025-07-02 07:13:04 +00:00
sxjeru 18920c579b 🐛 fix: Wrong Gemini 2.5 Pro thinkbudget (#8296)
* Update index.ts

* 添加新的 AI 聊天模型到 novita 和 siliconcloud 配置

* 添加 Hunyuan A13B Instruct 聊天模型到 siliconcloud 配置

* Update novita.ts
2025-07-02 14:58:01 +08:00
lobehubbot 155d5804b9 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-01 16:58:59 +00:00
semantic-release-bot 82d11b45a6 🔖 chore(release): v1.96.14 [skip ci]
### [Version&nbsp;1.96.14](https://github.com/lobehub/lobe-chat/compare/v1.96.13...v1.96.14)
<sup>Released on **2025-07-01**</sup>

#### ♻ Code Refactoring

- **misc**: Migrate to `@google/genai` SDK for Google Gemini API and Vertex AI.

<br/>

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

#### Code refactoring

* **misc**: Migrate to `@google/genai` SDK for Google Gemini API and Vertex AI, closes [#7884](https://github.com/lobehub/lobe-chat/issues/7884) ([fef3e5f](https://github.com/lobehub/lobe-chat/commit/fef3e5f))

</details>

<div align="right">

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

</div>
2025-07-01 16:57:42 +00:00
afon fef3e5f9f3 ♻️ refactor: Migrate to @google/genai SDK for Google Gemini API and Vertex AI (#7884)
* ♻️ refactor: Migrate to `@google/genai` SDK for Google Gemini API and Vertex AI

* fix google-ai test

* fix google model-runtime test
2025-07-02 00:43:13 +08:00
lobehubbot 0fe7319b6a 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-01 02:59:51 +00:00
semantic-release-bot c3cb37498a 🔖 chore(release): v1.96.13 [skip ci]
### [Version&nbsp;1.96.13](https://github.com/lobehub/lobe-chat/compare/v1.96.12...v1.96.13)
<sup>Released on **2025-07-01**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

* **misc**: Update i18n, closes [#8306](https://github.com/lobehub/lobe-chat/issues/8306) ([80aad1d](https://github.com/lobehub/lobe-chat/commit/80aad1d))

</details>

<div align="right">

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

</div>
2025-07-01 02:58:43 +00:00
LobeHub Bot 80aad1de42 💄 style: update i18n (#8306)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-01 10:44:23 +08:00
lobehubbot 86f7e8b64e 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-30 15:05:19 +00:00
semantic-release-bot c215384cb3 🔖 chore(release): v1.96.12 [skip ci]
### [Version&nbsp;1.96.12](https://github.com/lobehub/lobe-chat/compare/v1.96.11...v1.96.12)
<sup>Released on **2025-06-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Pin `antd@5.26.2` to fix build error.

#### 💄 Styles

- **misc**: Add DeepResearch models from OpenAI.

<br/>

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

#### What's fixed

* **misc**: Pin `antd@5.26.2` to fix build error, closes [#8303](https://github.com/lobehub/lobe-chat/issues/8303) ([44b6b01](https://github.com/lobehub/lobe-chat/commit/44b6b01))

#### Styles

* **misc**: Add DeepResearch models from OpenAI, closes [#8291](https://github.com/lobehub/lobe-chat/issues/8291) ([87a5cbc](https://github.com/lobehub/lobe-chat/commit/87a5cbc))

</details>

<div align="right">

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

</div>
2025-06-30 15:04:04 +00:00
Zhijie He 87a5cbc5c9 💄 style: add DeepResearch models from OpenAI (#8291)
* 💄 style: add web search support from o3 & o4 series

* 💄 style: add DeepResearch models from oAI

* 💄 style: sort models, disable as default

* 🐛 fix: fix model calling

* 🐛 fix: reasoning model calling

* 🐛 fix: fix deepresearch model calling

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-06-30 22:49:48 +08:00
Arvin Xu 44b6b01ca5 🐛 fix: pin antd@5.26.2 to fix build error (#8303) 2025-06-30 21:10:59 +08:00
lobehubbot c8a8c7be3d 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-28 05:32:16 +00:00
semantic-release-bot f5e5465981 🔖 chore(release): v1.96.11 [skip ci]
### [Version&nbsp;1.96.11](https://github.com/lobehub/lobe-chat/compare/v1.96.10...v1.96.11)
<sup>Released on **2025-06-28**</sup>

#### 🐛 Bug Fixes

- **mermaid**: Firefox mermaid show error.

<br/>

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

#### What's fixed

* **mermaid**: Firefox mermaid show error, closes [#8270](https://github.com/lobehub/lobe-chat/issues/8270) ([d9c5e7b](https://github.com/lobehub/lobe-chat/commit/d9c5e7b))

</details>

<div align="right">

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

</div>
2025-06-28 05:31:02 +00:00
Kingsword d9c5e7b142 🐛 fix(mermaid): firefox mermaid show error (#8270) 2025-06-28 13:16:45 +08:00
lobehubbot 2d6b9ae6b3 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-28 03:42:30 +00:00
semantic-release-bot 35fd5ce705 🔖 chore(release): v1.96.10 [skip ci]
### [Version&nbsp;1.96.10](https://github.com/lobehub/lobe-chat/compare/v1.96.9...v1.96.10)
<sup>Released on **2025-06-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop chunk issue.

<br/>

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

#### What's fixed

* **misc**: Fix desktop chunk issue, closes [#8280](https://github.com/lobehub/lobe-chat/issues/8280) ([c193e65](https://github.com/lobehub/lobe-chat/commit/c193e65))

</details>

<div align="right">

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

</div>
2025-06-28 03:41:20 +00:00
YuTengjing c193e657fb 🐛 fix: fix desktop chunk issue (#8280)
* 🐛 fix: desktop version can't chunk

* docs: add some comments

* chore: try fix provider page 500
2025-06-28 11:27:08 +08:00
lobehubbot 176e49ab6a 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-23 15:40:32 +00:00
semantic-release-bot 07e2b063e2 🔖 chore(release): v1.96.9 [skip ci]
### [Version&nbsp;1.96.9](https://github.com/lobehub/lobe-chat/compare/v1.96.8...v1.96.9)
<sup>Released on **2025-06-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Google Gemini tools declarations.

<br/>

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

#### What's fixed

* **misc**: Google Gemini tools declarations, closes [#8256](https://github.com/lobehub/lobe-chat/issues/8256) ([08f5d73](https://github.com/lobehub/lobe-chat/commit/08f5d73))

</details>

<div align="right">

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

</div>
2025-06-23 15:39:13 +00:00
afon 08f5d733cd 🐛 fix: Google Gemini tools declarations (#8256)
* fix: Include 'tools' with 'tool_calls' to fix "MALFORMED_FUNCTION_CALL" error

* feat: Convert OpenAI tool responses to Google GenAI function responses

* Ensure unique tool call IDs by adding random suffix

* use nanoid; fix tests
2025-06-23 23:24:12 +08:00
lobehubbot 2d8338b044 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-23 11:31:18 +00:00
semantic-release-bot 5c90905fbb 🔖 chore(release): v1.96.8 [skip ci]
### [Version&nbsp;1.96.8](https://github.com/lobehub/lobe-chat/compare/v1.96.7...v1.96.8)
<sup>Released on **2025-06-23**</sup>

#### 💄 Styles

- **misc**: Optimized Gemini thinkingBudget configuration.

<br/>

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

#### Styles

* **misc**: Optimized Gemini thinkingBudget configuration, closes [#8224](https://github.com/lobehub/lobe-chat/issues/8224) ([03625e8](https://github.com/lobehub/lobe-chat/commit/03625e8))

</details>

<div align="right">

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

</div>
2025-06-23 11:30:10 +00:00
sxjeru 03625e8c29 💄 style: Optimized Gemini thinkingBudget configuration (#8224) 2025-06-23 19:16:00 +08:00
lobehubbot b1c72fd476 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-23 07:10:55 +00:00
semantic-release-bot e971ff3110 🔖 chore(release): v1.96.7 [skip ci]
### [Version&nbsp;1.96.7](https://github.com/lobehub/lobe-chat/compare/v1.96.6...v1.96.7)
<sup>Released on **2025-06-23**</sup>

#### 💄 Styles

- **misc**: Add `blockAds` & `stealth` params for Browserless.

<br/>

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

#### Styles

* **misc**: Add `blockAds` & `stealth` params for Browserless, closes [#8255](https://github.com/lobehub/lobe-chat/issues/8255) ([2ff3efa](https://github.com/lobehub/lobe-chat/commit/2ff3efa))

</details>

<div align="right">

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

</div>
2025-06-23 07:09:45 +00:00
Zhijie He 2ff3efa630 💄 style: add blockAds & stealth params for Browserless (#8255)
*  feat: add blockAds & stealth params for Browserless

* Apply `sourcery-ai` suggestion

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

* 📝 docs: add docs for `BROWSERLESS_BLOCK_ADS` & `BROWSERLESS_STEALTH_MODE`

---------

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-06-23 14:55:17 +08:00
lobehubbot f63b137428 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-23 02:27:23 +00:00
semantic-release-bot 0c5c975c6f 🔖 chore(release): v1.96.6 [skip ci]
### [Version&nbsp;1.96.6](https://github.com/lobehub/lobe-chat/compare/v1.96.5...v1.96.6)
<sup>Released on **2025-06-23**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

* **misc**: Update i18n, closes [#8253](https://github.com/lobehub/lobe-chat/issues/8253) ([b86dc9b](https://github.com/lobehub/lobe-chat/commit/b86dc9b))

</details>

<div align="right">

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

</div>
2025-06-23 02:26:11 +00:00
LobeHub Bot b86dc9bbf9 💄 style: update i18n (#8253)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-06-23 10:11:45 +08:00
lobehubbot 01db0b634c 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-22 12:58:30 +00:00
semantic-release-bot b064fe3f98 🔖 chore(release): v1.96.5 [skip ci]
### [Version&nbsp;1.96.5](https://github.com/lobehub/lobe-chat/compare/v1.96.4...v1.96.5)
<sup>Released on **2025-06-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Remove unsupported parameters of Hunyuan.

<br/>

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

#### What's fixed

* **misc**: Remove unsupported parameters of Hunyuan, closes [#8247](https://github.com/lobehub/lobe-chat/issues/8247) ([826d724](https://github.com/lobehub/lobe-chat/commit/826d724))

</details>

<div align="right">

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

</div>
2025-06-22 12:57:12 +00:00
sxjeru 826d724ce7 🐛 fix: Remove unsupported parameters of Hunyuan (#8247)
* 🐛 fix: 去除 hunyuan 频率和存在惩罚参数

* 去除重复的 ESLint no-unused-vars

* Revert "去除重复的 ESLint no-unused-vars"

This reverts commit e6edece8b9.
2025-06-22 20:42:37 +08:00
lobehubbot f016058af5 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-22 07:10:44 +00:00
semantic-release-bot 5babf02460 🔖 chore(release): v1.96.4 [skip ci]
### [Version&nbsp;1.96.4](https://github.com/lobehub/lobe-chat/compare/v1.96.3...v1.96.4)
<sup>Released on **2025-06-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>
2025-06-22 07:09:35 +00:00
Arvin Xu ca417f86d5 ️ perf: refactor Typography to Text (#8250) 2025-06-22 14:55:26 +08:00
lobehubbot ec094d06d9 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-22 06:21:51 +00:00
semantic-release-bot 6a9e4f6f45 🔖 chore(release): v1.96.3 [skip ci]
### [Version&nbsp;1.96.3](https://github.com/lobehub/lobe-chat/compare/v1.96.2...v1.96.3)
<sup>Released on **2025-06-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>
2025-06-22 06:20:40 +00:00
Arvin Xu 4514081f3a ️ perf: refactor Typography to Text (#8249) 2025-06-22 14:06:37 +08:00
Arvin Xu 8bf3eedacf 📝 docs: add Vercel OSS Program Badge (#8248)
* Update README.md

* Update README.md
2025-06-22 13:58:36 +08:00
lobehubbot f948631edf 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-22 04:01:21 +00:00
semantic-release-bot 3feebb4827 🔖 chore(release): v1.96.2 [skip ci]
### [Version&nbsp;1.96.2](https://github.com/lobehub/lobe-chat/compare/v1.96.1...v1.96.2)
<sup>Released on **2025-06-22**</sup>

#### 💄 Styles

- **openrouter**: Add stable versions of Gemini 2.5 models.
- **misc**: Update i18n.

<br/>

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

#### Styles

* **openrouter**: Add stable versions of Gemini 2.5 models, closes [#8239](https://github.com/lobehub/lobe-chat/issues/8239) ([d34ecab](https://github.com/lobehub/lobe-chat/commit/d34ecab))
* **misc**: Update i18n, closes [#8242](https://github.com/lobehub/lobe-chat/issues/8242) ([2d1babc](https://github.com/lobehub/lobe-chat/commit/2d1babc))

</details>

<div align="right">

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

</div>
2025-06-22 04:00:05 +00:00
LobeHub Bot 2d1babc11e 💄 style: update i18n (#8242)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-06-22 11:45:38 +08:00
Max Brauer d34ecab318 💄 style(openrouter): add stable versions of Gemini 2.5 models (#8239)
Signed-off-by: Max Brauer <mbrauer@vmware.com>
2025-06-22 11:45:19 +08:00
renovate[bot] c7d4399949 Update dependency lucide-react to ^0.522.0 (#8245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-22 11:44:53 +08:00
lobehubbot fab795e549 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-21 17:55:33 +00:00
semantic-release-bot a1e1681321 🔖 chore(release): v1.96.1 [skip ci]
### [Version&nbsp;1.96.1](https://github.com/lobehub/lobe-chat/compare/v1.96.0...v1.96.1)
<sup>Released on **2025-06-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `MiniMax-M1` reasoning tag missing.

<br/>

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

#### What's fixed

* **misc**: Fix `MiniMax-M1` reasoning tag missing, closes [#8240](https://github.com/lobehub/lobe-chat/issues/8240) ([ea76c11](https://github.com/lobehub/lobe-chat/commit/ea76c11))

</details>

<div align="right">

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

</div>
2025-06-21 17:54:24 +00:00
Zhijie He ea76c1170d 🐛 fix: fix MiniMax-M1 reasoning tag missing (#8240) 2025-06-22 01:39:58 +08:00
lobehubbot 89f9df7199 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-20 16:42:39 +00:00
semantic-release-bot d49e442dee 🔖 chore(release): v1.96.0 [skip ci]
## [Version&nbsp;1.96.0](https://github.com/lobehub/lobe-chat/compare/v1.95.0...v1.96.0)
<sup>Released on **2025-06-20**</sup>

####  Features

- **misc**: Add v0 (Vercel) provider support.

#### 🐛 Bug Fixes

- **misc**: Fix inputTemplate behavior.

<br/>

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

#### What's improved

* **misc**: Add v0 (Vercel) provider support, closes [#8235](https://github.com/lobehub/lobe-chat/issues/8235) ([5842a18](https://github.com/lobehub/lobe-chat/commit/5842a18))

#### What's fixed

* **misc**: Fix inputTemplate behavior, closes [#8204](https://github.com/lobehub/lobe-chat/issues/8204) ([61c2c3c](https://github.com/lobehub/lobe-chat/commit/61c2c3c))

</details>

<div align="right">

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

</div>
2025-06-20 16:41:25 +00:00
Zhijie He 5842a1858e feat: add v0 (Vercel) provider support (#8235)
*  feat: add v0 (Vercel) provider support

* ♻️ refactor: rebrand to `v0`

* 🔨 chore: update Dockerfile ENV

* 🔨 chore: fix desc

* 💄 style: support model fetch

* 💄 style: fix reasoning tag

* 🐛 fix: fix build error

* 💄 style: better branding
2025-06-21 00:27:11 +08:00
Zhijie He 61c2c3c361 🐛 fix: fix inputTemplate behavior (#8204) 2025-06-21 00:20:49 +08:00
lobehubbot 64fe6d9dc6 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-20 16:12:05 +00:00
semantic-release-bot 7f77a5ca0e 🔖 chore(release): v1.95.0 [skip ci]
## [Version&nbsp;1.95.0](https://github.com/lobehub/lobe-chat/compare/v1.94.17...v1.95.0)
<sup>Released on **2025-06-20**</sup>

####  Features

- **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider.

<br/>

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

#### What's improved

* **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider, closes [#8172](https://github.com/lobehub/lobe-chat/issues/8172) ([16ae521](https://github.com/lobehub/lobe-chat/commit/16ae521))

</details>

<div align="right">

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

</div>
2025-06-20 16:10:52 +00:00
Zhijie He 16ae521659 feat: add Brave & Google PSE & Kagi as build-in Search Provider (#8172)
*  feat: add Brave Search as build-in Search Provider

* 🐛 fix: fix build error

*  feat: add Kagi as build-in Search Provider

* 🐛 fix: fix build error

*  feat: add Google PSE as build-in Search Provider

*  feat: add Anspire (安思派) as build-in Search Provider

* 🐛 fix: fix build error

* 📝 docs: update `online-search` docs
2025-06-20 23:56:05 +08:00
lobehubbot ad47d4d553 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-20 03:49:25 +00:00
semantic-release-bot cb9bf10562 🔖 chore(release): v1.94.17 [skip ci]
### [Version&nbsp;1.94.17](https://github.com/lobehub/lobe-chat/compare/v1.94.16...v1.94.17)
<sup>Released on **2025-06-20**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

* **misc**: Update i18n, closes [#8233](https://github.com/lobehub/lobe-chat/issues/8233) ([88c4362](https://github.com/lobehub/lobe-chat/commit/88c4362))

</details>

<div align="right">

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

</div>
2025-06-20 03:48:15 +00:00
LobeHub Bot 88c4362768 💄 style: update i18n (#8233)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-06-20 11:33:57 +08:00
lobehubbot 4f6eb27b3d 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-19 18:05:13 +00:00
semantic-release-bot a0c062fa99 🔖 chore(release): v1.94.16 [skip ci]
### [Version&nbsp;1.94.16](https://github.com/lobehub/lobe-chat/compare/v1.94.15...v1.94.16)
<sup>Released on **2025-06-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Correctly pass `reasoning.summary`.

<br/>

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

#### What's fixed

* **misc**: Correctly pass `reasoning.summary`, closes [#8221](https://github.com/lobehub/lobe-chat/issues/8221) ([da79815](https://github.com/lobehub/lobe-chat/commit/da79815))

</details>

<div align="right">

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

</div>
2025-06-19 18:03:58 +00:00
sxjeru da79815faa 🐛 fix: Correctly pass reasoning.summary (#8221)
* Update index.ts

* 📝 refactor: Update reasoning handling in OpenAI model runtime

* groq

* update models

* Update index.ts
2025-06-20 01:49:50 +08:00
lobehubbot 7ebf981567 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-19 11:51:49 +00:00
Arvin Xu accbc7c5a1 🔨 chore: improve dev speed (#8228) 2025-06-19 19:37:58 +08:00
lobehubbot 935343e11e 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-19 10:20:32 +00:00
semantic-release-bot 6bd13d890f 🔖 chore(release): v1.94.15 [skip ci]
### [Version&nbsp;1.94.15](https://github.com/lobehub/lobe-chat/compare/v1.94.14...v1.94.15)
<sup>Released on **2025-06-19**</sup>

#### 💄 Styles

- **misc**: Update model card for Gemini 2.5 Pro via OpenRouter.

<br/>

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

#### Styles

* **misc**: Update model card for Gemini 2.5 Pro via OpenRouter, closes [#8129](https://github.com/lobehub/lobe-chat/issues/8129) ([c96d9ef](https://github.com/lobehub/lobe-chat/commit/c96d9ef))

</details>

<div align="right">

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

</div>
2025-06-19 10:19:24 +00:00
Max Brauer c96d9effeb 💄 style: update model card for Gemini 2.5 Pro via OpenRouter (#8129)
Signed-off-by: Max Brauer <mbrauer@vmware.com>
2025-06-19 18:05:05 +08:00
lobehubbot 55a1a49dc0 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-19 03:23:44 +00:00
semantic-release-bot c05ba4ff9e 🔖 chore(release): v1.94.14 [skip ci]
### [Version&nbsp;1.94.14](https://github.com/lobehub/lobe-chat/compare/v1.94.13...v1.94.14)
<sup>Released on **2025-06-19**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

* **misc**: Update i18n, closes [#8225](https://github.com/lobehub/lobe-chat/issues/8225) ([53e1784](https://github.com/lobehub/lobe-chat/commit/53e1784))

</details>

<div align="right">

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

</div>
2025-06-19 03:22:36 +00:00
LobeHub Bot 53e17841fa 💄 style: update i18n (#8225)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-06-19 11:08:26 +08:00
lobehubbot ee96f02130 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-18 12:32:59 +00:00
semantic-release-bot b39df20840 🔖 chore(release): v1.94.13 [skip ci]
### [Version&nbsp;1.94.13](https://github.com/lobehub/lobe-chat/compare/v1.94.12...v1.94.13)
<sup>Released on **2025-06-18**</sup>

#### 💄 Styles

- **misc**: Update Gemini 2.5 Pro, Flash GA models. Add Gemini 2.5 Flash-Lite Preview model.

<br/>

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

#### Styles

* **misc**: Update Gemini 2.5 Pro, Flash GA models. Add Gemini 2.5 Flash-Lite Preview model, closes [#8213](https://github.com/lobehub/lobe-chat/issues/8213) ([39ef8be](https://github.com/lobehub/lobe-chat/commit/39ef8be))

</details>

<div align="right">

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

</div>
2025-06-18 12:31:50 +00:00
afon 39ef8be0c7 💄 style: Update Gemini 2.5 Pro, Flash GA models. Add Gemini 2.5 Flash-Lite Preview model (#8213) 2025-06-18 20:17:25 +08:00
lobehubbot 6a55be3ed8 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-18 11:24:12 +00:00
semantic-release-bot 0545de3cb5 🔖 chore(release): v1.94.12 [skip ci]
### [Version&nbsp;1.94.12](https://github.com/lobehub/lobe-chat/compare/v1.94.11...v1.94.12)
<sup>Released on **2025-06-18**</sup>

#### 💄 Styles

- **misc**: Add MiniMax-M1 model.

<br/>

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

#### Styles

* **misc**: Add MiniMax-M1 model, closes [#8209](https://github.com/lobehub/lobe-chat/issues/8209) ([41a0178](https://github.com/lobehub/lobe-chat/commit/41a0178))

</details>

<div align="right">

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

</div>
2025-06-18 11:23:01 +00:00
sxjeru 41a017808d 💄 style: Add MiniMax-M1 model (#8209)
* Update minimax.ts

* Update minimax.ts

* Update siliconcloud.ts

* Update novita.ts

* Update novita.ts
2025-06-18 19:08:56 +08:00
Arvin Xu 01d6bcf99f 📝 docs: improve README.md (#8212)
* Update README.md

* Update README.md

* Update README.md
2025-06-18 10:35:03 +08:00
lobehubbot e45e31c810 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-17 02:38:45 +00:00
semantic-release-bot 84af825d24 🔖 chore(release): v1.94.11 [skip ci]
### [Version&nbsp;1.94.11](https://github.com/lobehub/lobe-chat/compare/v1.94.10...v1.94.11)
<sup>Released on **2025-06-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Enhance the multi-display window opening experience.

<br/>

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

#### What's fixed

* **misc**: Enhance the multi-display window opening experience, closes [#8176](https://github.com/lobehub/lobe-chat/issues/8176) ([b132e66](https://github.com/lobehub/lobe-chat/commit/b132e66))

</details>

<div align="right">

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

</div>
2025-06-17 02:37:30 +00:00
𝑾𝒖𝒙𝒉 b132e66248 🐛 fix: enhance the multi-display window opening experience (#8176) 2025-06-17 10:23:10 +08:00
CanisMinor 9c4e2c08a4 🔨 chore(ci): improve i18n workflow (#8199) (#8200)
* 🔨 chore(ci): improve i18n workflow (#8199)

* 🔧 chore: Fix i18n workflow

* 🔧 chore: Fix i18n workflow

* 💄 style: update i18n (#8201)

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>

---------

Co-authored-by: 𝑾𝒖𝒙𝒉 <wxh1220@gmail.com>
Co-authored-by: LobeHub Bot <i@lobehub.com>
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-06-16 16:53:20 +08:00
lobehubbot 3e35924313 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-15 18:01:16 +00:00
semantic-release-bot 60f649d4f2 🔖 chore(release): v1.94.10 [skip ci]
### [Version&nbsp;1.94.10](https://github.com/lobehub/lobe-chat/compare/v1.94.9...v1.94.10)
<sup>Released on **2025-06-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve chat selectors and enhance topic handling logic.

<br/>

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

#### What's fixed

* **misc**: Improve chat selectors and enhance topic handling logic, closes [#8133](https://github.com/lobehub/lobe-chat/issues/8133) [#8117](https://github.com/lobehub/lobe-chat/issues/8117) ([15b24f1](https://github.com/lobehub/lobe-chat/commit/15b24f1))

</details>

<div align="right">

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

</div>
2025-06-15 18:00:04 +00:00
𝑾𝒖𝒙𝒉 15b24f1f34 🐛 fix: improve chat selectors and enhance topic handling logic (#8133)
* ♻️ refactor: improve chat selectors and enhance topic handling logic

fix #8117

* chore: update

* chore: update
2025-06-16 01:46:03 +08:00
lobehubbot f4b8561cee 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-15 17:37:32 +00:00
semantic-release-bot 366337f4ac 🔖 chore(release): v1.94.9 [skip ci]
### [Version&nbsp;1.94.9](https://github.com/lobehub/lobe-chat/compare/v1.94.8...v1.94.9)
<sup>Released on **2025-06-15**</sup>

#### 💄 Styles

- **misc**: Add `kimi-thinking-preview` model from Moonshot.

<br/>

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

#### Styles

* **misc**: Add `kimi-thinking-preview` model from Moonshot, closes [#8171](https://github.com/lobehub/lobe-chat/issues/8171) ([93d677c](https://github.com/lobehub/lobe-chat/commit/93d677c))

</details>

<div align="right">

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

</div>
2025-06-15 17:36:24 +00:00
Zhijie He 93d677c925 💄 style: add kimi-thinking-preview model from Moonshot (#8171)
* 💄 style: add `kimi-thinking-preview` model from Moonshot

* ♻️ refactor: support model fetch reasoning tag
2025-06-16 01:22:16 +08:00
lobehubbot 7a061084cb 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-15 11:07:02 +00:00
semantic-release-bot bf85be2f68 🔖 chore(release): v1.94.8 [skip ci]
### [Version&nbsp;1.94.8](https://github.com/lobehub/lobe-chat/compare/v1.94.7...v1.94.8)
<sup>Released on **2025-06-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Correctly handle `reasoning_effort`.

<br/>

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

#### What's fixed

* **misc**: Correctly handle `reasoning_effort`, closes [#8180](https://github.com/lobehub/lobe-chat/issues/8180) ([1c04736](https://github.com/lobehub/lobe-chat/commit/1c04736))

</details>

<div align="right">

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

</div>
2025-06-15 11:05:46 +00:00
sxjeru 1c04736225 🐛 fix: Correctly handle reasoning_effort (#8180) 2025-06-15 18:51:27 +08:00
renovate[bot] 619ce9fc8b Update dependency @anthropic-ai/sdk to ^0.54.0 (#8186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-15 14:55:11 +08:00
lobehubbot a7d254dece 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-12 17:19:32 +00:00
semantic-release-bot 4c083e6768 🔖 chore(release): v1.94.7 [skip ci]
### [Version&nbsp;1.94.7](https://github.com/lobehub/lobe-chat/compare/v1.94.6...v1.94.7)
<sup>Released on **2025-06-12**</sup>

#### 💄 Styles

- **misc**: Add Doubao Seed 1.6 model.

<br/>

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

#### Styles

* **misc**: Add Doubao Seed 1.6 model, closes [#8167](https://github.com/lobehub/lobe-chat/issues/8167) ([bdfa44b](https://github.com/lobehub/lobe-chat/commit/bdfa44b))

</details>

<div align="right">

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

</div>
2025-06-12 17:18:22 +00:00
hedeqiang bdfa44bb56 💄 style: add Doubao Seed 1.6 model (#8167) 2025-06-13 01:03:57 +08:00
lobehubbot 747ea363a7 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-12 16:41:31 +00:00
semantic-release-bot 8df955888c 🔖 chore(release): v1.94.6 [skip ci]
### [Version&nbsp;1.94.6](https://github.com/lobehub/lobe-chat/compare/v1.94.5...v1.94.6)
<sup>Released on **2025-06-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Abort the Gemini request correctly & Add openai o3-pro.

<br/>

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

#### What's fixed

* **misc**: Abort the Gemini request correctly & Add openai o3-pro, closes [#8135](https://github.com/lobehub/lobe-chat/issues/8135) ([c79f1b9](https://github.com/lobehub/lobe-chat/commit/c79f1b9))

</details>

<div align="right">

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

</div>
2025-06-12 16:40:18 +00:00
sxjeru c79f1b989d 🐛 fix: Abort the Gemini request correctly & Add openai o3-pro (#8135)
* add AbortSignal

* 处理输出流截断

* opti

* add models

* Update openai.ts

* Update openai.ts
2025-06-13 00:25:47 +08:00
lobehubbot c786e41a6c 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-12 13:18:41 +00:00
semantic-release-bot 828dcdf842 🔖 chore(release): v1.94.5 [skip ci]
### [Version&nbsp;1.94.5](https://github.com/lobehub/lobe-chat/compare/v1.94.4...v1.94.5)
<sup>Released on **2025-06-12**</sup>

#### 🐛 Bug Fixes

- **chat**: Improve response animation merging logic.

#### 💄 Styles

- **misc**: Support `web_search_preview` & fix some bug form OpenAI Response API.

<br/>

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

#### What's fixed

* **chat**: Improve response animation merging logic, closes [#8160](https://github.com/lobehub/lobe-chat/issues/8160) ([9d81cdc](https://github.com/lobehub/lobe-chat/commit/9d81cdc))

#### Styles

* **misc**: Support `web_search_preview` & fix some bug form OpenAI Response API, closes [#8131](https://github.com/lobehub/lobe-chat/issues/8131) ([b2983f0](https://github.com/lobehub/lobe-chat/commit/b2983f0))

</details>

<div align="right">

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

</div>
2025-06-12 13:17:18 +00:00
Zhijie He b2983f062e 💄 style: support web_search_preview & fix some bug form OpenAI Response API (#8131)
* 💄 style: support `web_search_preview` for OpenAI Response API

* ♻️ refactor: refactor annotation handling

* 🐛 fix: fix `reasoning_effort` error in response api

* 🐛 fix: fix `o` series calling in Response API

* 🐛 fix: fix ci test

* 💄 style: update `gpt-4o` ability tags

* 💄 style: update `gpt-4o-mini` ability tags

* ♻️ refactor: add `responsesAPIModels` to store responses api only

* 🐛 fix: fix `computer-use-preview` calling

* 🐛 fix: fix ci error

* 🐛 fix: fix citations

* 💄 style: add `o3-pro` rules, disable Stream & use Responses API

* 🔨 chore: comment `o3-pro` from `disableStreamModels`
2025-06-12 21:03:05 +08:00
𝑾𝒖𝒙𝒉 9d81cdca36 🐛 fix(chat): Improve response animation merging logic (#8160)
* 🔧 chore: Refactor responseAnimation handling in ChatService

* ​
Co-authored-by: sxjeru <sxjeru@users.noreply.github.com>
2025-06-12 21:01:09 +08:00
lobehubbot af37bf7a9a 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-12 07:08:06 +00:00
𝑾𝒖𝒙𝒉 8953523575 🔧 chore: improve i18n workflow diff script (#8153)
* 🔧 chore: Add writeJSONWithPrettier utility and update locale generation scripts

* 🔧 chore: Implement genRemoveDiff utility for locale diff analysis and update workflow

* chore: update script

* chore: revert

* 🔧 chore: Refactor genDiff to improve diff analysis and streamline locale processing
2025-06-12 14:54:05 +08:00
lobehubbot ac4b61af91 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-11 15:31:25 +00:00
semantic-release-bot 8106426980 🔖 chore(release): v1.94.4 [skip ci]
### [Version&nbsp;1.94.4](https://github.com/lobehub/lobe-chat/compare/v1.94.3...v1.94.4)
<sup>Released on **2025-06-11**</sup>

#### 💄 Styles

- **misc**: Transition animation switch.

<br/>

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

#### Styles

* **misc**: Transition animation switch, closes [#7981](https://github.com/lobehub/lobe-chat/issues/7981) ([dd4ab3f](https://github.com/lobehub/lobe-chat/commit/dd4ab3f))

</details>

<div align="right">

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

</div>
2025-06-11 15:29:56 +00:00
𝑾𝒖𝒙𝒉 dd4ab3fc88 💄 style: Transition animation switch (#7981)
*  feat: Transition animation switch

* chore: update schema

(cherry picked from commit 4e364817c835f87d7e26487e99a6953d7e93b309)

# Conflicts:
#	src/types/aiProvider.ts

* 🌐 chore: Translation
2025-06-11 23:15:30 +08:00
CanisMinor b52a94ae01 🔧 chore: Fix Check Pull Request Status (#8149) 2025-06-11 14:06:10 +08:00
CanisMinor 066f11a8b4 🔧 chore: Fix no actual differences left (#8147) 2025-06-11 14:01:35 +08:00
CanisMinor 0996be513a 🔧 chore: Fix deprecation deps (#8144) 2025-06-11 12:42:34 +08:00
CanisMinor 9b671d0698 🔧 chore: Update i18n actions (#8143)
* 🔧 chore: Update i18n actions

* 🔧 chore: Update i18n workflow
2025-06-11 12:39:00 +08:00
CanisMinor a26499f0bf 🔧 chore: Update i18n actions (#8142) 2025-06-11 12:33:41 +08:00
CanisMinor 17431106bb 🔧 chore: Add auto i18n github action (#4226) 2025-06-11 12:17:55 +08:00
lobehubbot 8ead7c5437 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-11 04:09:37 +00:00
semantic-release-bot c931c5218b 🔖 chore(release): v1.94.3 [skip ci]
### [Version&nbsp;1.94.3](https://github.com/lobehub/lobe-chat/compare/v1.94.2...v1.94.3)
<sup>Released on **2025-06-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>
2025-06-11 04:08:29 +00:00
Arvin Xu 602e10faca 👷 build: pin tsx@4.19.x to fix build (#8141) 2025-06-11 11:54:31 +08:00
lobehubbot c751f932a9 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-11 03:02:24 +00:00
semantic-release-bot edb62cecc5 🔖 chore(release): v1.94.2 [skip ci]
### [Version&nbsp;1.94.2](https://github.com/lobehub/lobe-chat/compare/v1.94.1...v1.94.2)
<sup>Released on **2025-06-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Update Gemini range of thinkingBudget.

<br/>

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

#### What's fixed

* **misc**: Update Gemini range of thinkingBudget, closes [#8122](https://github.com/lobehub/lobe-chat/issues/8122) ([7331e8a](https://github.com/lobehub/lobe-chat/commit/7331e8a))

</details>

<div align="right">

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

</div>
2025-06-11 03:01:15 +00:00
sxjeru 7331e8a70e 🐛 fix: Update Gemini range of thinkingBudget (#8122) 2025-06-11 10:47:06 +08:00
lobehubbot 261e2ca0bf 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-10 17:34:37 +00:00
semantic-release-bot 61dc847589 🔖 chore(release): v1.94.1 [skip ci]
### [Version&nbsp;1.94.1](https://github.com/lobehub/lobe-chat/compare/v1.94.0...v1.94.1)
<sup>Released on **2025-06-10**</sup>

#### 💄 Styles

- **ModelSelect**: Improve mobile layout and text overflow handling.
- **misc**: Update pplx abilities tags, support `vision`.

<br/>

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

#### Styles

* **ModelSelect**: Improve mobile layout and text overflow handling, closes [#8118](https://github.com/lobehub/lobe-chat/issues/8118) ([d97aa49](https://github.com/lobehub/lobe-chat/commit/d97aa49))
* **misc**: Update pplx abilities tags, support `vision`, closes [#8119](https://github.com/lobehub/lobe-chat/issues/8119) ([5c2e5f7](https://github.com/lobehub/lobe-chat/commit/5c2e5f7))

</details>

<div align="right">

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

</div>
2025-06-10 17:33:22 +00:00
Kingsword d97aa49ddd 💄 style(ModelSelect): improve mobile layout and text overflow handling (#8118) 2025-06-11 01:19:11 +08:00
Zhijie He 5c2e5f7288 💄 style: update pplx abilities tags, support vision (#8119)
* 💄 style: update pplx abilities tags, support `vision` & `reasoningEffort`

* 💄 style: add vision tag for `r1-1776`
2025-06-11 01:18:46 +08:00
lobehubbot 2d82fccf3f 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-10 09:06:03 +00:00
semantic-release-bot f91db428ed 🔖 chore(release): v1.94.0 [skip ci]
## [Version&nbsp;1.94.0](https://github.com/lobehub/lobe-chat/compare/v1.93.3...v1.94.0)
<sup>Released on **2025-06-10**</sup>

####  Features

- **misc**: Support google sso as auth provider.

#### 🐛 Bug Fixes

- **misc**: Restore reasoningEffort in setting.

<br/>

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

#### What's improved

* **misc**: Support google sso as auth provider, closes [#8074](https://github.com/lobehub/lobe-chat/issues/8074) ([43ab03a](https://github.com/lobehub/lobe-chat/commit/43ab03a))

#### What's fixed

* **misc**: Restore reasoningEffort in setting, closes [#8123](https://github.com/lobehub/lobe-chat/issues/8123) ([3be609c](https://github.com/lobehub/lobe-chat/commit/3be609c))

</details>

<div align="right">

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

</div>
2025-06-10 09:04:47 +00:00
beliven-daniele-sarnari 43ab03a261 feat: support google sso as auth provider (#8074)
* feat: add google sso

* chore: remove authEnv reference

* chore: remove AUTH_GOOGLE secrets in auth.ts as not needed anymore

* chore: removed not used authEnv reference
2025-06-10 16:50:36 +08:00
sxjeru 3be609c3aa 🐛 fix: Restore reasoningEffort in setting (#8123)
* restore reasoningEffort setting

*  feat: update reasoning effort handling in AgentModal

* i18n

* i18n
2025-06-10 13:38:53 +08:00
lobehubbot f405b03fa4 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-10 04:02:46 +00:00
semantic-release-bot 2a56269c4d 🔖 chore(release): v1.93.3 [skip ci]
### [Version&nbsp;1.93.3](https://github.com/lobehub/lobe-chat/compare/v1.93.2...v1.93.3)
<sup>Released on **2025-06-10**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor branding info.

<br/>

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

#### Code refactoring

* **misc**: Refactor branding info, closes [#8134](https://github.com/lobehub/lobe-chat/issues/8134) ([3baa966](https://github.com/lobehub/lobe-chat/commit/3baa966))

</details>

<div align="right">

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

</div>
2025-06-10 04:01:35 +00:00
Arvin Xu 3baa966235 ♻️ refactor: refactor branding info (#8134) 2025-06-10 11:47:12 +08:00
lobehubbot 7b9d8a1db0 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-09 13:50:22 +00:00
semantic-release-bot b835c84d79 🔖 chore(release): v1.93.2 [skip ci]
### [Version&nbsp;1.93.2](https://github.com/lobehub/lobe-chat/compare/v1.93.1...v1.93.2)
<sup>Released on **2025-06-09**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor `<think>` & `</think>` handling.

<br/>

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

#### Code refactoring

* **misc**: Refactor `<think>` & `</think>` handling, closes [#8121](https://github.com/lobehub/lobe-chat/issues/8121) ([04ac353](https://github.com/lobehub/lobe-chat/commit/04ac353))

</details>

<div align="right">

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

</div>
2025-06-09 13:49:01 +00:00
Zhijie He 04ac3535e0 ♻️ refactor: refactor <think> & </think> handling (#8121) 2025-06-09 21:34:32 +08:00
lobehubbot 04ca9f4672 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-08 17:08:40 +00:00
semantic-release-bot 97a90f5b43 🔖 chore(release): v1.93.1 [skip ci]
### [Version&nbsp;1.93.1](https://github.com/lobehub/lobe-chat/compare/v1.93.0...v1.93.1)
<sup>Released on **2025-06-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix openai default Responses API issue.

<br/>

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

#### What's fixed

* **misc**: Fix openai default Responses API issue, closes [#8124](https://github.com/lobehub/lobe-chat/issues/8124) ([7f6ccf2](https://github.com/lobehub/lobe-chat/commit/7f6ccf2))

</details>

<div align="right">

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

</div>
2025-06-08 17:07:32 +00:00
Arvin Xu 7f6ccf2922 🐛 fix: fix openai default Responses API issue (#8124)
* fix issue

* fix tests
2025-06-09 00:53:16 +08:00
lobehubbot d5b94eaf8f 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-08 09:08:59 +00:00
semantic-release-bot 7c001eb91e 🔖 chore(release): v1.93.0 [skip ci]
## [Version&nbsp;1.93.0](https://github.com/lobehub/lobe-chat/compare/v1.92.3...v1.93.0)
<sup>Released on **2025-06-08**</sup>

####  Features

- **misc**: Support OpenAI Responses API mode.

<br/>

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

#### What's improved

* **misc**: Support OpenAI Responses API mode, closes [#8048](https://github.com/lobehub/lobe-chat/issues/8048) ([5bf0921](https://github.com/lobehub/lobe-chat/commit/5bf0921))

</details>

<div align="right">

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

</div>
2025-06-08 09:07:51 +00:00
Arvin Xu 5bf0921246 feat: support OpenAI Responses API mode (#8048)
*  feat: support response api mode

* update

* support openai stream o series thinking

* add ui config for response api mode

* improve ui config for responses api mode

* update locale

* fix tests

* fix update issue

* update db schema

* fix openai Response Inputs

* fix tests
2025-06-08 16:53:46 +08:00
lobehubbot fc7c579e55 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-08 07:28:46 +00:00
semantic-release-bot 6cb41eb888 🔖 chore(release): v1.92.3 [skip ci]
### [Version&nbsp;1.92.3](https://github.com/lobehub/lobe-chat/compare/v1.92.2...v1.92.3)
<sup>Released on **2025-06-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix client s3 getObject throw error.

#### 💄 Styles

- **misc**: Support OpenRouter Claude 4 reasoning.

<br/>

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

#### What's fixed

* **misc**: Fix client s3 getObject throw error, closes [#8009](https://github.com/lobehub/lobe-chat/issues/8009) ([b91ca8c](https://github.com/lobehub/lobe-chat/commit/b91ca8c))

#### Styles

* **misc**: Support OpenRouter Claude 4 reasoning, closes [#8087](https://github.com/lobehub/lobe-chat/issues/8087) ([039be1d](https://github.com/lobehub/lobe-chat/commit/039be1d))

</details>

<div align="right">

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

</div>
2025-06-08 07:27:33 +00:00
renovate[bot] 4b11e5ae33 Update dependency @anthropic-ai/sdk to ^0.53.0 (#8112)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-08 15:13:09 +08:00
Koell 039be1d1b6 💄 style: Support OpenRouter Claude 4 reasoning (#8087)
* Add Claude Sonnet 4 and Claude Opus 4 to OpenRouter provider

* Calculate budget_token count
2025-06-08 15:12:30 +08:00
vual b91ca8c903 🐛 fix: fix client s3 getObject throw error (#8009)
* 修改client s3 getObject 方法,去掉抛出错误,改成直接打印报错,返回undefined,因为该方法调用的地方都没有捕获报错,只是判断是否获取到文件。

* 修改client s3 getObject 方法,去掉抛出错误,改成直接打印报错,返回undefined,因为该方法调用的地方都没有捕获报错,只是判断是否获取到文件。
2025-06-08 10:40:24 +08:00
lobehubbot 2331492e63 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-07 15:41:06 +00:00
semantic-release-bot 26512d7edb 🔖 chore(release): v1.92.2 [skip ci]
### [Version&nbsp;1.92.2](https://github.com/lobehub/lobe-chat/compare/v1.92.1...v1.92.2)
<sup>Released on **2025-06-07**</sup>

#### 💄 Styles

- **misc**: Add support to azureopenai embedding.

<br/>

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

#### Styles

* **misc**: Add support to azureopenai embedding, closes [#8075](https://github.com/lobehub/lobe-chat/issues/8075) ([0725f94](https://github.com/lobehub/lobe-chat/commit/0725f94))

</details>

<div align="right">

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

</div>
2025-06-07 15:39:55 +00:00
beliven-daniele-sarnari 0725f94443 💄 style: add support to azureopenai embedding (#8075) 2025-06-07 23:25:21 +08:00
Zephyr 36cc29b3fa 👷 build: init rbac system table scheme and data structure (#8101)
*  feat: 添加RBAC(角色-权限-用户)相关数据库表和结构

- 新增表:rbac_permissions、rbac_roles、rbac_role_permissions、rbac_user_roles,用于管理角色和权限。
- 更新数据库迁移文件,记录新表的创建和约束。
- 新增RBAC相关的TypeScript结构定义,支持角色和权限的管理。

* feat: Update Permissions table column name

* chore: update rbac tables name

* feat: update rbac roles & permissions table primary key

* feat: update rbac relation tables column and index structure
2025-06-07 23:15:05 +08:00
lobehubbot d20e7a3f61 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-07 14:27:27 +00:00
semantic-release-bot 792a9b6b8c 🔖 chore(release): v1.92.1 [skip ci]
### [Version&nbsp;1.92.1](https://github.com/lobehub/lobe-chat/compare/v1.92.0...v1.92.1)
<sup>Released on **2025-06-07**</sup>

#### 💄 Styles

- **ModelSelect**: Add responsive layout for mobile devices.
- **misc**: Improve `{{username}}` placeholder variable, Update Gemini & Qwen models.

<br/>

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

#### Styles

* **ModelSelect**: Add responsive layout for mobile devices, closes [#7960](https://github.com/lobehub/lobe-chat/issues/7960) ([cb84c3e](https://github.com/lobehub/lobe-chat/commit/cb84c3e))
* **misc**: Improve `{{username}}` placeholder variable, closes [#8100](https://github.com/lobehub/lobe-chat/issues/8100) ([95fd588](https://github.com/lobehub/lobe-chat/commit/95fd588))
* **misc**: Update Gemini & Qwen models, closes [#8083](https://github.com/lobehub/lobe-chat/issues/8083) ([6308237](https://github.com/lobehub/lobe-chat/commit/6308237))

</details>

<div align="right">

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

</div>
2025-06-07 14:26:09 +00:00
Kingsword cb84c3e16c 💄 style(ModelSelect): add responsive layout for mobile devices (#7960) 2025-06-07 22:11:53 +08:00
Zhijie He 95fd588d43 💄 style: improve {{username}} placeholder variable (#8100) 2025-06-07 17:47:20 +08:00
sxjeru 63082377dc 💄 style: Update Gemini & Qwen models (#8083)
*  feat: 添加 Google Gemini 2.5 Pro 模型,更新 Novita 和 Qwen 模型配置,增强关键词排除逻辑

* revert

* 🔨 chore: 移除不再使用的聊天模型配置

* 🔧 feat: 为多个聊天模型添加 functionCall 能力

* 🔧 feat: 添加 Hunyuan T1 和 Hunyuan TurboS 聊天模型,提升文本创作和代码能力

* Update novita.ts
2025-06-07 01:36:35 +08:00
lobehubbot 8701fa61b4 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-06 13:02:07 +00:00
semantic-release-bot decf04922a 🔖 chore(release): v1.92.0 [skip ci]
## [Version&nbsp;1.92.0](https://github.com/lobehub/lobe-chat/compare/v1.91.3...v1.92.0)
<sup>Released on **2025-06-06**</sup>

####  Features

- **misc**: Support placeholder variables in prompts and input.

#### 🐛 Bug Fixes

- **misc**: Some web search bugs.

#### 💄 Styles

- **misc**: Support Vertex AI thought summaries.

<br/>

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

#### What's improved

* **misc**: Support placeholder variables in prompts and input, closes [#8060](https://github.com/lobehub/lobe-chat/issues/8060) ([3752739](https://github.com/lobehub/lobe-chat/commit/3752739))

#### What's fixed

* **misc**: Some web search bugs, closes [#8068](https://github.com/lobehub/lobe-chat/issues/8068) ([bebe7a3](https://github.com/lobehub/lobe-chat/commit/bebe7a3))

#### Styles

* **misc**: Support Vertex AI thought summaries, closes [#8090](https://github.com/lobehub/lobe-chat/issues/8090) ([1355a2e](https://github.com/lobehub/lobe-chat/commit/1355a2e))

</details>

<div align="right">

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

</div>
2025-06-06 13:00:43 +00:00
Zhijie He 3752739248 feat: support placeholder variables in prompts and input (#8060)
*  feat: support placeholder variables in prompt

* ♻️ refactor: refactor `parsePlaceholderVariablesMessages`

* ♻️ refactor: refactor `parsePlaceholderVariablesMessages` to `src/utils/placeholderParser.ts`

* 🔨 chore: support `username` & `nickname`

* ♻️ refactor: migrate to `lodash-es`

* 🐛 fix: fix build error

* ♻️ refactor: split `getTemplateVariables` to small part

* 🔨 chore: support more placeholder

* 🐛 fix: fix build error

* 🐛 fix: fix build error

* ♻️ refactor: enhance performance

* 🐛 fix: fix build error

* 🐛 fix: fix `username` fetch

* 🐛 fix: fix `inputTemplate` will overwrite build-in variable

* 🔨 chore: update i18n

* 🐛 fix: fix variables in `input_template`

* ♻️ refactor: move to `utils/client`

* 🔨 chore: add unit test

* 🔨 chore: add unit test

* 🐛 fix: fix ci test
2025-06-06 20:45:59 +08:00
Koell 1355a2e6a4 💄 style: Support Vertex AI thought summaries (#8090) 2025-06-06 20:09:14 +08:00
YuTengjing bebe7a3675 🐛 fix: some web search bugs (#8068)
* fix: shouldn't use FCModel search if builtin support search

* fix: open router support toogle builtin search

* fix: max tokens slider not show after toggle enable it
2025-06-06 19:54:44 +08:00
lobehubbot b19b4fa53c 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-05 16:42:30 +00:00
semantic-release-bot 52ed73d5aa 🔖 chore(release): v1.91.3 [skip ci]
### [Version&nbsp;1.91.3](https://github.com/lobehub/lobe-chat/compare/v1.91.2...v1.91.3)
<sup>Released on **2025-06-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Correct deepseek R1 fc support display.

#### 💄 Styles

- **misc**: Add openAI websearch and claude 4 to modelproviders.

<br/>

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

#### What's fixed

* **misc**: Correct deepseek R1 fc support display, closes [#8069](https://github.com/lobehub/lobe-chat/issues/8069) ([ed5bb5f](https://github.com/lobehub/lobe-chat/commit/ed5bb5f))

#### Styles

* **misc**: Add openAI websearch and claude 4 to modelproviders, closes [#7988](https://github.com/lobehub/lobe-chat/issues/7988) ([95994f4](https://github.com/lobehub/lobe-chat/commit/95994f4))

</details>

<div align="right">

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

</div>
2025-06-05 16:41:00 +00:00
Liav Arnon 95994f4596 💄 style: Add openAI websearch and claude 4 to modelproviders (#7988)
* Add openAI websearch and claude 4 to modelproviders

* remove old sonnet3.7

* remove enable from websearch model

* remove gpt-4o-mini-search-preview enable flag
2025-06-06 00:26:07 +08:00
YuTengjing ed5bb5f15d 🐛 fix: correct deepseek R1 fc support display (#8069)
* fix: correct deepseek R1 fc support display

* 🚨 chore: fix eslint errors
2025-06-06 00:19:00 +08:00
lobehubbot 332f25301c 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-05 08:16:04 +00:00
semantic-release-bot dc25c7d202 🔖 chore(release): v1.91.2 [skip ci]
### [Version&nbsp;1.91.2](https://github.com/lobehub/lobe-chat/compare/v1.91.1...v1.91.2)
<sup>Released on **2025-06-05**</sup>

#### 💄 Styles

- **misc**: Add Volcengine & OpenAI-like Provider (e.g. oneapi) model fetch support.

<br/>

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

#### Styles

* **misc**: Add Volcengine & OpenAI-like Provider (e.g. oneapi) model fetch support, closes [#8064](https://github.com/lobehub/lobe-chat/issues/8064) ([d3dafe1](https://github.com/lobehub/lobe-chat/commit/d3dafe1))

</details>

<div align="right">

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

</div>
2025-06-05 08:14:48 +00:00
Arvin Xu 66118cc9cf 🔨 chore: fix lint (#8078) 2025-06-05 16:00:46 +08:00
sxjeru d3dafe1911 💄 style: Add Volcengine & OpenAI-like Provider (e.g. oneapi) model fetch support (#8064)
* Update index.ts

* 重构 modelParse

* 继续重构

* fix

* fix test & zeroone

* support openrouter

* support Gemini

* support Qwen

* add tests

* optm

* support more providers

* update snaps

* fix

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-06-05 09:16:25 +08:00
lobehubbot 0cae8151d0 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-04 17:31:39 +00:00
semantic-release-bot 2c85a30c9d 🔖 chore(release): v1.91.1 [skip ci]
### [Version&nbsp;1.91.1](https://github.com/lobehub/lobe-chat/compare/v1.91.0...v1.91.1)
<sup>Released on **2025-06-04**</sup>

#### 💄 Styles

- **misc**: Improve loading state.

<br/>

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

#### Styles

* **misc**: Improve loading state, closes [#8072](https://github.com/lobehub/lobe-chat/issues/8072) ([f0a7193](https://github.com/lobehub/lobe-chat/commit/f0a7193))

</details>

<div align="right">

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

</div>
2025-06-04 17:30:24 +00:00
Arvin Xu f0a7193879 💄 style: improve loading state (#8072)
* improve loading state

* fix issue

* fix
2025-06-05 01:16:22 +08:00
sxjeru 2a811d0a85 🔨 chore: Prettier & Add proxyUrl for all providers (#8061)
* migration: 添加移除 reasoning_effort 参数和删除 doubao 的迁移脚本

* Refactor code structure for improved readability and maintainability

* npx prettier --write "src/**/*"

* add proxyUrl for all providers

* npx prettier --write "docs/**/*"

* Revert

* Revert

* revert
2025-06-04 21:39:39 +08:00
lobehubbot 215a96e1b6 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-03 13:54:42 +00:00
semantic-release-bot 65b06de485 🔖 chore(release): v1.91.0 [skip ci]
## [Version&nbsp;1.91.0](https://github.com/lobehub/lobe-chat/compare/v1.90.4...v1.91.0)
<sup>Released on **2025-06-03**</sup>

####  Features

- **misc**: Add more provider support for search & crawl.

#### 💄 Styles

- **misc**: Update modelscope models.

<br/>

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

#### What's improved

* **misc**: Add more provider support for search & crawl, closes [#8033](https://github.com/lobehub/lobe-chat/issues/8033) ([23fade3](https://github.com/lobehub/lobe-chat/commit/23fade3))

#### Styles

* **misc**: Update modelscope models, closes [#8057](https://github.com/lobehub/lobe-chat/issues/8057) ([3e02c25](https://github.com/lobehub/lobe-chat/commit/3e02c25))

</details>

<div align="right">

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

</div>
2025-06-03 13:52:58 +00:00
Zhijie He 23fade3cf8 feat: add more provider support for search & crawl (#8033)
*  feat: support tavily as search provider

*  feat: support tavily as crawl provider

* 🐛 fix: fix category mapping

*  feat: support firecrwal as crawl provider

*  feat: support firecrawl as search provider

* 🔨 chore: support firecrawl baseUrl for self-host

* 🐛 fix: fix build error

*  feat: support jina as search provider

* 🐛 fix: fix build error

*  feat: support BoChaAI & Exa as search & crawl provider

* 🐛 fix: fix build error

* 🔨 chore: rename to bocha

* 🐛 fix: fix typo in bocha impl

* ♻️ refactor: add `category` & `time_range` support for Exa

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-06-03 21:38:36 +08:00
hedeqiang 3e02c2502e 💄 style: update modelscope models (#8057)
* style: update modelscope

* style: update modelscope
2025-06-03 19:00:05 +08:00
sxjeru 6c11726dc9 🐛 fix (migration): Remove abandoned reasoning_effort & doubao (#8055)
* migration: 添加移除 reasoning_effort 参数和删除 doubao 的迁移脚本

* Refactor code structure for improved readability and maintainability
2025-06-03 16:35:55 +08:00
lobehubbot 3866090478 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-02 16:52:58 +00:00
semantic-release-bot 5054d41f4f 🔖 chore(release): v1.90.4 [skip ci]
### [Version&nbsp;1.90.4](https://github.com/lobehub/lobe-chat/compare/v1.90.3...v1.90.4)
<sup>Released on **2025-06-02**</sup>

#### ♻ Code Refactoring

- **misc**: Rename the createOpenAICompatibleRuntime.

#### 🐛 Bug Fixes

- **misc**: Update the clerk middleware to support route protection.

<br/>

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

#### Code refactoring

* **misc**: Rename the createOpenAICompatibleRuntime, closes [#8049](https://github.com/lobehub/lobe-chat/issues/8049) ([ee660d6](https://github.com/lobehub/lobe-chat/commit/ee660d6))

#### What's fixed

* **misc**: Update the clerk middleware to support route protection, closes [#8044](https://github.com/lobehub/lobe-chat/issues/8044) ([309f973](https://github.com/lobehub/lobe-chat/commit/309f973))

</details>

<div align="right">

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

</div>
2025-06-02 16:51:36 +00:00
Arvin Xu ee660d64a6 ♻️ refactor: rename the createOpenAICompatibleRuntime (#8049)
* refactor model runtime createOpenAICompatibleRuntime

* upgrade version and fix tests

* fix tests

* fix tests
2025-06-03 00:22:14 +08:00
bbbugg 6160b9eeeb 📝 docs: update Qwen model provider in documentation (#8041)
* 📝 docs: update Qwen model providers in documentation

* 📝 docs: update example for model list customization in documentation
2025-06-02 22:26:27 +08:00
bbbugg 309f97322c 🐛 fix: Update the clerk middleware to support route protection (#8044) 2025-06-02 22:10:59 +08:00
YuTengjing c94e97c45a 📝 docs: add more cursor rules (#8047)
* 📝 docs: add some more cursor rules

* 📝 docs: fix greptile reported issue
2025-06-02 22:08:37 +08:00
lobehubbot 2778eca8ac 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-01 14:49:33 +00:00
semantic-release-bot 308103a3ea 🔖 chore(release): v1.90.3 [skip ci]
### [Version&nbsp;1.90.3](https://github.com/lobehub/lobe-chat/compare/v1.90.2...v1.90.3)
<sup>Released on **2025-06-01**</sup>

#### 💄 Styles

- **misc**: Enable deploymentName for Aliyun Bailian.

<br/>

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

#### Styles

* **misc**: Enable deploymentName for Aliyun Bailian, closes [#7576](https://github.com/lobehub/lobe-chat/issues/7576) ([169e598](https://github.com/lobehub/lobe-chat/commit/169e598))

</details>

<div align="right">

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

</div>
2025-06-01 14:48:23 +00:00
sxjeru 169e59869a 💄 style: Enable deploymentName for Aliyun Bailian (#7576)
* Adds Qwen deployment name support

Enables deploymentName flag for Qwen in global config
Includes Qwen in chat service’s deployment-name providers

* update

* Update qwen.ts

* Update qwen.ts

* Update qwen.ts

* Update xai.ts

* Update qwen.ts

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-06-01 22:34:13 +08:00
lobehubbot 5237b34ca7 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-01 13:11:29 +00:00
semantic-release-bot e0d46bb751 🔖 chore(release): v1.90.2 [skip ci]
### [Version&nbsp;1.90.2](https://github.com/lobehub/lobe-chat/compare/v1.90.1...v1.90.2)
<sup>Released on **2025-06-01**</sup>

#### 💄 Styles

- **misc**: Support `web_search` tool for MiniMax & Zhipu.

<br/>

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

#### Styles

* **misc**: Support `web_search` tool for MiniMax & Zhipu, closes [#7980](https://github.com/lobehub/lobe-chat/issues/7980) ([28cdafb](https://github.com/lobehub/lobe-chat/commit/28cdafb))

</details>

<div align="right">

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

</div>
2025-06-01 13:10:22 +00:00
Zhijie He 28cdafb388 💄 style: support web_search tool for MiniMax & Zhipu (#7980)
* 💄 style: support web_search for MiniMax

* ♻️ refactor: refactor zhipu `web_search` tools

* 🐛 fix: fix live search citations

* ♻️ refactor: refactor Minimax citations

* 🐛 fix: fix ci error

* 🐛 fix: fix ci error

* 💄 style: support OpenAI Search model citations

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-06-01 20:56:12 +08:00
lobehubbot 4fc885cc90 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-01 08:47:46 +00:00
semantic-release-bot a85520dc9c 🔖 chore(release): v1.90.1 [skip ci]
### [Version&nbsp;1.90.1](https://github.com/lobehub/lobe-chat/compare/v1.90.0...v1.90.1)
<sup>Released on **2025-06-01**</sup>

#### 🐛 Bug Fixes

- **misc**: Disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics, fix DeepSeek new R1 Search error.

#### 💄 Styles

- **misc**: Use default deployment name when parseModelString doesn't contain deployment name.

<br/>

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

#### What's fixed

* **misc**: Disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics, closes [#8034](https://github.com/lobehub/lobe-chat/issues/8034) ([5b42ee2](https://github.com/lobehub/lobe-chat/commit/5b42ee2))
* **misc**: Fix DeepSeek new R1 Search error, closes [#8035](https://github.com/lobehub/lobe-chat/issues/8035) ([cf58628](https://github.com/lobehub/lobe-chat/commit/cf58628))

#### Styles

* **misc**: Use default deployment name when parseModelString doesn't contain deployment name, closes [#7719](https://github.com/lobehub/lobe-chat/issues/7719) ([aef19f4](https://github.com/lobehub/lobe-chat/commit/aef19f4))

</details>

<div align="right">

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

</div>
2025-06-01 08:46:32 +00:00
bbbugg aef19f46c1 💄 style: use default deployment name when parseModelString doesn't contain deployment name (#7719)
* ♻️ refactor: use default deployment name when parseModelString doesn't contain deployment name

*  test: add test case for parseModelString without deployment name

* 添加测试用例

* 📝 docs: clarify default deployment name behavior in model list documentation

* 📝 docs: update deployment name description for clarity in model list documentation

* 📝 docs: update deployment name description for clarity in model list documentation
2025-06-01 16:32:42 +08:00
Purelind 58d356c477 🔨 chore(setup.sh): Replace SED_COMMAND with SED_INPLACE_ARGS for improved compatibility across platforms on macOS (#7639) 2025-06-01 16:28:04 +08:00
Arvin Xu cf58628995 🐛 fix: fix DeepSeek new R1 Search error (#8035)
* fix DeepSeek R1 Search issue

* fix tests
2025-06-01 16:20:49 +08:00
PP Kun 5b42ee2499 🐛 fix: disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics (#8034) 2025-06-01 16:20:28 +08:00
lobehubbot 1ec8defec9 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-01 07:27:57 +00:00
semantic-release-bot 907c9ef9b0 🔖 chore(release): v1.90.0 [skip ci]
## [Version&nbsp;1.90.0](https://github.com/lobehub/lobe-chat/compare/v1.89.0...v1.90.0)
<sup>Released on **2025-06-01**</sup>

####  Features

- **misc**: Support protect page.

<br/>

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

#### What's improved

* **misc**: Support protect page, closes [#8024](https://github.com/lobehub/lobe-chat/issues/8024) ([d61a9f5](https://github.com/lobehub/lobe-chat/commit/d61a9f5))

</details>

<div align="right">

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

</div>
2025-06-01 07:26:50 +00:00
Arvin Xu d61a9f5998 feat: support protect page (#8024)
* 🚚 refactor: move config/app to env/app

*  feat: support protect route

* 📝 docs: add protect support

* fix callbackUrl

* fix tests
2025-06-01 15:12:57 +08:00
lobehubbot 62de6f0020 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-01 07:09:52 +00:00
semantic-release-bot b15933cbf9 🔖 chore(release): v1.89.0 [skip ci]
## [Version&nbsp;1.89.0](https://github.com/lobehub/lobe-chat/compare/v1.88.23...v1.89.0)
<sup>Released on **2025-06-01**</sup>

####  Features

- **misc**:  Support ModelScope Provider.

<br/>

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

#### What's improved

* **misc**:  Support ModelScope Provider, closes [#8026](https://github.com/lobehub/lobe-chat/issues/8026) ([7b91dfd](https://github.com/lobehub/lobe-chat/commit/7b91dfd))

</details>

<div align="right">

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

</div>
2025-06-01 07:08:45 +00:00
hedeqiang 7b91dfddd5 feat: Support ModelScope Provider (#8026)
* feat: support modelscop

* feat: support modelscop

* style: update llm.ts

* style: update modelscope
2025-06-01 14:54:32 +08:00
lobehubbot 2f28a93d89 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-31 18:21:36 +00:00
semantic-release-bot eedeb75346 🔖 chore(release): v1.88.23 [skip ci]
### [Version&nbsp;1.88.23](https://github.com/lobehub/lobe-chat/compare/v1.88.22...v1.88.23)
<sup>Released on **2025-05-31**</sup>

#### 💄 Styles

- **misc**:  `+` in the welcome message can be clicked to create an assistant.

<br/>

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

#### Styles

* **misc**:  `+` in the welcome message can be clicked to create an assistant, closes [#7984](https://github.com/lobehub/lobe-chat/issues/7984) ([9f07e4c](https://github.com/lobehub/lobe-chat/commit/9f07e4c))

</details>

<div align="right">

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

</div>
2025-05-31 18:20:22 +00:00
Kingsword 9f07e4c975 💄 style: + in the welcome message can be clicked to create an assistant (#7984) 2025-06-01 02:05:39 +08:00
lobehubbot c3f76ccc7e 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-31 17:14:43 +00:00
semantic-release-bot 7385eb911a 🔖 chore(release): v1.88.22 [skip ci]
### [Version&nbsp;1.88.22](https://github.com/lobehub/lobe-chat/compare/v1.88.21...v1.88.22)
<sup>Released on **2025-05-31**</sup>

#### 💄 Styles

- **misc**: Support 01.ai proxy url.

<br/>

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

#### Styles

* **misc**: Support 01.ai proxy url, closes [#8025](https://github.com/lobehub/lobe-chat/issues/8025) ([e0442b8](https://github.com/lobehub/lobe-chat/commit/e0442b8))

</details>

<div align="right">

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

</div>
2025-05-31 17:13:35 +00:00
Arvin Xu e0442b83a1 💄 style: support 01.ai proxy url (#8025) 2025-06-01 00:59:35 +08:00
lobehubbot ca2292b538 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-31 15:22:55 +00:00
semantic-release-bot e64085f7d3 🔖 chore(release): v1.88.21 [skip ci]
### [Version&nbsp;1.88.21](https://github.com/lobehub/lobe-chat/compare/v1.88.20...v1.88.21)
<sup>Released on **2025-05-31**</sup>

#### 💄 Styles

- **misc**: Enhanced reasoning_effort Slider Component, Update Hunyuan models & deepseek-r1-0528.

<br/>

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

#### Styles

* **misc**: Enhanced reasoning_effort Slider Component, closes [#7998](https://github.com/lobehub/lobe-chat/issues/7998) ([750b26a](https://github.com/lobehub/lobe-chat/commit/750b26a))
* **misc**: Update Hunyuan models & deepseek-r1-0528, closes [#7993](https://github.com/lobehub/lobe-chat/issues/7993) ([2eb198c](https://github.com/lobehub/lobe-chat/commit/2eb198c))

</details>

<div align="right">

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

</div>
2025-05-31 15:21:42 +00:00
sxjeru 2eb198c687 💄 style: Update Hunyuan models & deepseek-r1-0528 (#7993)
* Update hunyuan.ts

* Update novita.ts

* Update siliconcloud.ts

* Update deepseek.ts

* Update deepseek.ts

* Update novita.ts

* Update openrouter.ts

* Update novita.ts

* Update siliconcloud.ts

* Update volcengine.ts

* Update volcengine.ts

* Update novita.ts

* Update siliconcloud.ts

* update snap

* Update novita.ts

* Update siliconcloud.ts

* Update siliconcloud.ts

* Update groq.ts
2025-05-31 22:45:36 +08:00
sxjeru 750b26acea 💄 style: Enhanced reasoning_effort Slider Component (#7998)
*  feat: 添加推理强度设置和滑块组件

*  feat: support openai & grok xai

* i18n

* fix mobile
2025-05-31 22:45:24 +08:00
lobehubbot 6521243f07 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-31 04:06:27 +00:00
semantic-release-bot 321a2e809d 🔖 chore(release): v1.88.20 [skip ci]
### [Version&nbsp;1.88.20](https://github.com/lobehub/lobe-chat/compare/v1.88.19...v1.88.20)
<sup>Released on **2025-05-31**</sup>

#### 🐛 Bug Fixes

- **misc**: Agent automatic completion meta not working error.

<br/>

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

#### What's fixed

* **misc**: Agent automatic completion meta not working error, closes [#8003](https://github.com/lobehub/lobe-chat/issues/8003) ([c5307bf](https://github.com/lobehub/lobe-chat/commit/c5307bf))

</details>

<div align="right">

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

</div>
2025-05-31 04:05:21 +00:00
𝑾𝒖𝒙𝒉 c5307bf969 🐛 fix: Agent automatic completion meta not working error (#8003)
* 🐛fix:Agent automatic completion meta not working error

* chore: fix lint
2025-05-31 11:51:36 +08:00
lobehubbot 2ae0e9ed56 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-30 05:40:23 +00:00
semantic-release-bot a7f2347f1b 🔖 chore(release): v1.88.19 [skip ci]
### [Version&nbsp;1.88.19](https://github.com/lobehub/lobe-chat/compare/v1.88.18...v1.88.19)
<sup>Released on **2025-05-30**</sup>

#### 💄 Styles

- **misc**: Support Web Search Tools and Beta Header from Anthropic.

<br/>

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

#### Styles

* **misc**: Support Web Search Tools and Beta Header from Anthropic, closes [#7964](https://github.com/lobehub/lobe-chat/issues/7964) ([a47ddc5](https://github.com/lobehub/lobe-chat/commit/a47ddc5))

</details>

<div align="right">

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

</div>
2025-05-30 05:39:08 +00:00
Zhijie He a47ddc5159 💄 style: support Web Search Tools and Beta Header from Anthropic (#7964)
* 💄 style: support web search tools from Anthropic

* 💄 style: support beta headers

* ♻️ refactor: add basic stream support for web search tool

* ♻️ refactor: improve `max_uses` handle

* ♻️ refactor: handle negative or zero values

* ♻️ refactor: rename type name

* 🔨 chore: add unit test

* ♻️ refactor: support citations from web_search_tools

* ♻️ refactor: better citations handling

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-30 13:25:33 +08:00
lobehubbot 09621b3a91 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-29 18:02:31 +00:00
semantic-release-bot 4522c93d1d 🔖 chore(release): v1.88.18 [skip ci]
### [Version&nbsp;1.88.18](https://github.com/lobehub/lobe-chat/compare/v1.88.17...v1.88.18)
<sup>Released on **2025-05-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Close historySummary correctly, Enable thinking output only for supported Gemini thinking models.

<br/>

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

#### What's fixed

* **misc**: Close historySummary correctly, closes [#7010](https://github.com/lobehub/lobe-chat/issues/7010) ([90a6f68](https://github.com/lobehub/lobe-chat/commit/90a6f68))
* **misc**: Enable thinking output only for supported Gemini thinking models, closes [#7987](https://github.com/lobehub/lobe-chat/issues/7987) ([f503c53](https://github.com/lobehub/lobe-chat/commit/f503c53))

</details>

<div align="right">

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

</div>
2025-05-29 18:01:12 +00:00
sxjeru f503c53dda 🐛 fix: Enable thinking output only for supported Gemini thinking models (#7987)
* Update index.ts

* Update index.ts

* style: update reasoning budget handling in ChatService

* fix

* fix learnlm
2025-05-30 01:46:43 +08:00
sxjeru 90a6f686d6 🐛 fix: Close historySummary correctly (#7010)
* update

* Update index.tsx
2025-05-30 01:32:01 +08:00
lobehubbot d4e974e11b 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-29 17:24:51 +00:00
semantic-release-bot 7cfe0377ce 🔖 chore(release): v1.88.17 [skip ci]
### [Version&nbsp;1.88.17](https://github.com/lobehub/lobe-chat/compare/v1.88.16...v1.88.17)
<sup>Released on **2025-05-29**</sup>

#### 💄 Styles

- **misc**: Increase the history limit.

<br/>

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

#### Styles

* **misc**: Increase the history limit, closes [#8007](https://github.com/lobehub/lobe-chat/issues/8007) ([5ec7c8d](https://github.com/lobehub/lobe-chat/commit/5ec7c8d))

</details>

<div align="right">

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

</div>
2025-05-29 17:23:42 +00:00
Arvin Xu 5ec7c8d8ec 💄 style: increase the history limit (#8007)
* add fc to reasoner model

* add history count to 20

* update snapshot

* update snapshot
2025-05-30 01:09:52 +08:00
lobehubbot d0bfe6d709 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-29 16:01:39 +00:00
semantic-release-bot 0bd952e3fb 🔖 chore(release): v1.88.16 [skip ci]
### [Version&nbsp;1.88.16](https://github.com/lobehub/lobe-chat/compare/v1.88.15...v1.88.16)
<sup>Released on **2025-05-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Cmd + click chat tab not open new tab.

#### 💄 Styles

- **misc**: Update GitHub models.

<br/>

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

#### What's fixed

* **misc**: Cmd + click chat tab not open new tab, closes [#8001](https://github.com/lobehub/lobe-chat/issues/8001) ([d6d2129](https://github.com/lobehub/lobe-chat/commit/d6d2129))

#### Styles

* **misc**: Update GitHub models, closes [#8002](https://github.com/lobehub/lobe-chat/issues/8002) ([7b8f533](https://github.com/lobehub/lobe-chat/commit/7b8f533))

</details>

<div align="right">

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

</div>
2025-05-29 16:00:31 +00:00
柴米油盐的梦想 7b8f5339e0 💄 style: Update GitHub models (#8002)
* 💄 style: Update GitHub models

* 🐛 fix: fix grok-3-mini calling

* fix: lint fail and possible test error

* Update src/config/aiModels/github.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-29 23:46:52 +08:00
YuTengjing d6d2129737 🐛 fix: cmd + click chat tab not open new tab (#8001)
* 📝 docs: add some cursor rules & optimize codebase indexing

* 📝 docs: some code reviews issue by greptile

*  chore: cmd + click chat tab not open new tab

*  chore: support Ctrl + click chat tab on windows/linux

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-29 23:46:10 +08:00
lobehubbot 48a30566a9 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-29 15:32:26 +00:00
semantic-release-bot 99e72bbe3b 🔖 chore(release): v1.88.15 [skip ci]
### [Version&nbsp;1.88.15](https://github.com/lobehub/lobe-chat/compare/v1.88.14...v1.88.15)
<sup>Released on **2025-05-29**</sup>

#### 💄 Styles

- **misc**: Add fc ability to deepseek-reasoner model.

<br/>

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

#### Styles

* **misc**: Add fc ability to deepseek-reasoner model, closes [#8006](https://github.com/lobehub/lobe-chat/issues/8006) ([1511c75](https://github.com/lobehub/lobe-chat/commit/1511c75))

</details>

<div align="right">

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

</div>
2025-05-29 15:31:18 +00:00
Arvin Xu 1511c7531d 💄 style: add fc ability to deepseek-reasoner model (#8006) 2025-05-29 23:17:29 +08:00
YuTengjing ed2ce8d32f 📝 docs: add some cursor rules & optimize codebase indexing (#7999)
* 📝 docs: add some cursor rules & optimize codebase indexing

* 📝 docs: some code reviews issue by greptile
2025-05-29 15:46:27 +08:00
lobehubbot 2acd21e949 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-28 02:39:30 +00:00
semantic-release-bot f45d4a651f 🔖 chore(release): v1.88.14 [skip ci]
### [Version&nbsp;1.88.14](https://github.com/lobehub/lobe-chat/compare/v1.88.13...v1.88.14)
<sup>Released on **2025-05-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Cant invoke the application after OIDC authorization in Windows 11.

<br/>

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

#### What's fixed

* **misc**: Cant invoke the application after OIDC authorization in Windows 11, closes [#7900](https://github.com/lobehub/lobe-chat/issues/7900) ([585e386](https://github.com/lobehub/lobe-chat/commit/585e386))

</details>

<div align="right">

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

</div>
2025-05-28 02:38:20 +00:00
huangkairan 585e386074 🐛 fix: cant invoke the application after OIDC authorization in Windows 11 (#7900) 2025-05-28 10:24:15 +08:00
lobehubbot dcd4b31178 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-27 15:29:19 +00:00
semantic-release-bot fb70932fe8 🔖 chore(release): v1.88.13 [skip ci]
### [Version&nbsp;1.88.13](https://github.com/lobehub/lobe-chat/compare/v1.88.12...v1.88.13)
<sup>Released on **2025-05-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>
2025-05-27 15:28:12 +00:00
Arvin Xu e68da28110 ️ perf: use approximate way with tokenizer (#7989) 2025-05-27 23:14:30 +08:00
lobehubbot f0cce15aae 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-27 10:46:15 +00:00
semantic-release-bot 68b38379b8 🔖 chore(release): v1.88.12 [skip ci]
### [Version&nbsp;1.88.12](https://github.com/lobehub/lobe-chat/compare/v1.88.11...v1.88.12)
<sup>Released on **2025-05-27**</sup>

#### 💄 Styles

- **misc**: Support adjust thinkingBudget in gemini 2.5 flash.

<br/>

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

#### Styles

* **misc**: Support adjust thinkingBudget in gemini 2.5 flash, closes [#7947](https://github.com/lobehub/lobe-chat/issues/7947) ([a9db548](https://github.com/lobehub/lobe-chat/commit/a9db548))

</details>

<div align="right">

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

</div>
2025-05-27 10:45:01 +00:00
Alex Lin a9db54810a 💄 style: support adjust thinkingBudget in gemini 2.5 flash (#7947)
* 💄 style: support adjust thinkingBudget in gemini 2.5 flash

* 💄 style: support adjust thinkingBudget in gemini 2.5 flash

* 💄 style: support adjust thinkingBudget in gemini 2.5 flash
2025-05-27 18:31:08 +08:00
lobehubbot 7f2f30feb9 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-26 17:31:02 +00:00
semantic-release-bot 9c9f1c3c16 🔖 chore(release): v1.88.11 [skip ci]
### [Version&nbsp;1.88.11](https://github.com/lobehub/lobe-chat/compare/v1.88.10...v1.88.11)
<sup>Released on **2025-05-26**</sup>

#### 💄 Styles

- **misc**: Correct model name `SenseChat-5-1202`.

<br/>

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

#### Styles

* **misc**: Correct model name `SenseChat-5-1202`, closes [#7979](https://github.com/lobehub/lobe-chat/issues/7979) ([d9e1336](https://github.com/lobehub/lobe-chat/commit/d9e1336))

</details>

<div align="right">

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

</div>
2025-05-26 17:29:57 +00:00
Zhijie He d9e1336c07 💄 style: correct model name SenseChat-5-1202 (#7979) 2025-05-27 01:16:11 +08:00
lobehubbot 58cedfaa5d 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-26 16:25:19 +00:00
semantic-release-bot 26e9584f5f 🔖 chore(release): v1.88.10 [skip ci]
### [Version&nbsp;1.88.10](https://github.com/lobehub/lobe-chat/compare/v1.88.9...v1.88.10)
<sup>Released on **2025-05-26**</sup>

#### 💄 Styles

- **DevPanel**: Improve json display.

<br/>

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

#### Styles

* **DevPanel**: Improve json display, closes [#7978](https://github.com/lobehub/lobe-chat/issues/7978) ([db800d2](https://github.com/lobehub/lobe-chat/commit/db800d2))

</details>

<div align="right">

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

</div>
2025-05-26 16:24:11 +00:00
Kingsword db800d2b63 💄 style(DevPanel): improve json display (#7978) 2025-05-27 00:10:15 +08:00
semantic-release-bot 286f96ad37 🔖 chore(release): v1.88.9 [skip ci]
### [Version&nbsp;1.88.9](https://github.com/lobehub/lobe-chat/compare/v1.88.8...v1.88.9)
<sup>Released on **2025-05-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Auto sync theme mode in desktop.

<br/>

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

#### What's fixed

* **misc**: Auto sync theme mode in desktop, closes [#7970](https://github.com/lobehub/lobe-chat/issues/7970) ([a16fa02](https://github.com/lobehub/lobe-chat/commit/a16fa02))

</details>

<div align="right">

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

</div>
2025-05-26 07:06:42 +00:00
Arvin Xu a16fa0265b 🐛 fix: auto sync theme mode in desktop (#7970)
* auto sync theme

* improve style

* improve code
2025-05-26 14:53:02 +08:00
lobehubbot a4d7a47569 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-26 03:07:26 +00:00
semantic-release-bot 678608fc8b 🔖 chore(release): v1.88.8 [skip ci]
### [Version&nbsp;1.88.8](https://github.com/lobehub/lobe-chat/compare/v1.88.7...v1.88.8)
<sup>Released on **2025-05-26**</sup>

#### 💄 Styles

- **misc**: Allow `SliderWithInput` to have no input limit.

<br/>

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

#### Styles

* **misc**: Allow `SliderWithInput` to have no input limit, closes [#7708](https://github.com/lobehub/lobe-chat/issues/7708) ([bdb02b2](https://github.com/lobehub/lobe-chat/commit/bdb02b2))

</details>

<div align="right">

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

</div>
2025-05-26 03:06:09 +00:00
sxjeru bdb02b2058 💄 style: Allow SliderWithInput to have no input limit (#7708)
* 💄 style: Enhance QwenAIStream with input timing and usage tracking

* Update index.ts

* Update index.ts

* fix

* fix

* fix test

* Update qwen.ts

* fix

* fix

*  style: Add unlimited input support to SliderWithInput in AgentChat, AgentModal, and Controls components

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-26 10:51:59 +08:00
lobehubbot f177fd0982 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-26 02:31:31 +00:00
semantic-release-bot 5ec717244f 🔖 chore(release): v1.88.7 [skip ci]
### [Version&nbsp;1.88.7](https://github.com/lobehub/lobe-chat/compare/v1.88.6...v1.88.7)
<sup>Released on **2025-05-26**</sup>

#### 🐛 Bug Fixes

- **DragUpload**: Resolve issue with pasting clipboard images in Safari.
- **misc**: Fix chat header in the desktop.

<br/>

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

#### What's fixed

* **DragUpload**: Resolve issue with pasting clipboard images in Safari, closes [#7961](https://github.com/lobehub/lobe-chat/issues/7961) ([3c3cc75](https://github.com/lobehub/lobe-chat/commit/3c3cc75))
* **misc**: Fix chat header in the desktop, closes [#7973](https://github.com/lobehub/lobe-chat/issues/7973) ([63c3a71](https://github.com/lobehub/lobe-chat/commit/63c3a71))

</details>

<div align="right">

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

</div>
2025-05-26 02:30:15 +00:00
Arvin Xu 63c3a7188e 🐛 fix: fix chat header in the desktop (#7973) 2025-05-26 10:16:35 +08:00
Kingsword 3c3cc7513e 🐛 fix(DragUpload): resolve issue with pasting clipboard images in Safari (#7961) 2025-05-26 02:31:21 +08:00
lobehubbot 5b223200fb 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-25 17:46:04 +00:00
semantic-release-bot 98f2dba5f0 🔖 chore(release): v1.88.6 [skip ci]
### [Version&nbsp;1.88.6](https://github.com/lobehub/lobe-chat/compare/v1.88.5...v1.88.6)
<sup>Released on **2025-05-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix draggable issue with agent header.

#### 💄 Styles

- **misc**: Fix a few typos in the model tooltips.

<br/>

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

#### What's fixed

* **misc**: Fix draggable issue with agent header, closes [#7968](https://github.com/lobehub/lobe-chat/issues/7968) ([cd84241](https://github.com/lobehub/lobe-chat/commit/cd84241))

#### Styles

* **misc**: Fix a few typos in the model tooltips, closes [#7952](https://github.com/lobehub/lobe-chat/issues/7952) ([8416fec](https://github.com/lobehub/lobe-chat/commit/8416fec))

</details>

<div align="right">

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

</div>
2025-05-25 17:44:56 +00:00
Arvin Xu cd84241709 🐛 fix: fix draggable issue with agent header (#7968) 2025-05-26 01:31:25 +08:00
Daniel Tedesco 8416feca99 💄 style: fix a few typos in the model tooltips (#7952) 2025-05-26 00:26:11 +08:00
lobehubbot 324dbc548d 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-25 14:56:48 +00:00
semantic-release-bot 9d89b97b23 🔖 chore(release): v1.88.5 [skip ci]
### [Version&nbsp;1.88.5](https://github.com/lobehub/lobe-chat/compare/v1.88.4...v1.88.5)
<sup>Released on **2025-05-25**</sup>

#### 💄 Styles

- **misc**: Support share single message.

<br/>

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

#### Styles

* **misc**: Support share single message, closes [#7967](https://github.com/lobehub/lobe-chat/issues/7967) ([660a5ad](https://github.com/lobehub/lobe-chat/commit/660a5ad))

</details>

<div align="right">

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

</div>
2025-05-25 14:55:38 +00:00
Arvin Xu 660a5ad167 💄 style: support share single message (#7967)
* support share single message

* Revert "support share single message"

This reverts commit 91fd96a96e.

* support share single message
2025-05-25 22:41:56 +08:00
lobehubbot 2e1b37dcce 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-25 09:26:51 +00:00
semantic-release-bot a11ebff552 🔖 chore(release): v1.88.4 [skip ci]
### [Version&nbsp;1.88.4](https://github.com/lobehub/lobe-chat/compare/v1.88.3...v1.88.4)
<sup>Released on **2025-05-25**</sup>

#### 🐛 Bug Fixes

- **docs**: Rename and update Google Gemini documentation.

#### 💄 Styles

- **misc**: Improve thread flicker when first-time loading.

<br/>

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

#### What's fixed

* **docs**: Rename and update Google Gemini documentation, closes [#7957](https://github.com/lobehub/lobe-chat/issues/7957) ([432c28d](https://github.com/lobehub/lobe-chat/commit/432c28d))

#### Styles

* **misc**: Improve thread flicker when first-time loading, closes [#7963](https://github.com/lobehub/lobe-chat/issues/7963) ([4cacacd](https://github.com/lobehub/lobe-chat/commit/4cacacd))

</details>

<div align="right">

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

</div>
2025-05-25 09:25:39 +00:00
Kingsword 432c28d193 🐛 fix(docs): rename and update Google Gemini documentation (#7957) 2025-05-25 17:12:02 +08:00
Arvin Xu 4cacacda67 💄 style: improve thread flicker when first-time loading (#7963) 2025-05-25 17:08:55 +08:00
lobehubbot f1d59864c1 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-25 05:55:10 +00:00
semantic-release-bot 01eaf8d903 🔖 chore(release): v1.88.3 [skip ci]
### [Version&nbsp;1.88.3](https://github.com/lobehub/lobe-chat/compare/v1.88.2...v1.88.3)
<sup>Released on **2025-05-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix message refresh 401 on desktop.

#### 💄 Styles

- **misc**: Add gemini & hunyuan & Claude models.

<br/>

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

#### What's fixed

* **misc**: Fix message refresh 401 on desktop, closes [#7958](https://github.com/lobehub/lobe-chat/issues/7958) ([b4b426f](https://github.com/lobehub/lobe-chat/commit/b4b426f))

#### Styles

* **misc**: Add gemini & hunyuan & Claude models, closes [#7908](https://github.com/lobehub/lobe-chat/issues/7908) ([5244f22](https://github.com/lobehub/lobe-chat/commit/5244f22))

</details>

<div align="right">

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

</div>
2025-05-25 05:53:43 +00:00
sxjeru 5244f22bfb 💄 style: Add gemini & hunyuan & Claude models (#7908)
* Update google.ts

* Update google.ts

* Update hunyuan.ts

* Update google.ts

* Update google.ts

* Update novita.ts

* Update index.ts

* Update anthropic.ts

* Update anthropic.ts

* Update index.ts

* Update anthropic.ts

* Update index.ts

* fix test

* feat: 更新最大令牌配置逻辑,支持从模型配置中获取默认值

* Update anthropic.ts

* Update novita.ts
2025-05-25 12:41:29 +08:00
Arvin Xu b4b426f842 🐛 fix: fix message refresh 401 on desktop (#7958)
* update AccessToken

* update
2025-05-25 10:42:45 +08:00
YuTengjing fca25e1a12 📝 docs: i18n for crawlMultiPages and claude4 desc (#7942) 2025-05-24 09:22:24 +08:00
Kingsword b7a700c562 🐛 fix(chat): handle mobile query param in settings URL (#7948)
Ensure the settings URL correctly includes the mobile query parameter when applicable, improving consistency across devices.
2025-05-24 09:21:24 +08:00
lobehubbot a216cf38b5 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-24 00:59:53 +00:00
semantic-release-bot 81241d8e11 🔖 chore(release): v1.88.2 [skip ci]
### [Version&nbsp;1.88.2](https://github.com/lobehub/lobe-chat/compare/v1.88.1...v1.88.2)
<sup>Released on **2025-05-24**</sup>

#### 💄 Styles

- **misc**: Add live search support for xAI.

<br/>

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

#### Styles

* **misc**: Add live search support for xAI, closes [#7907](https://github.com/lobehub/lobe-chat/issues/7907) ([dff4b7b](https://github.com/lobehub/lobe-chat/commit/dff4b7b))

</details>

<div align="right">

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

</div>
2025-05-24 00:58:45 +00:00
Zhijie He dff4b7bd17 💄 style: add live search support for xAI (#7907)
* 💄 style: add live search support for xAI

* 🔨 chore: rollback mode changes, change back to `auto`
2025-05-24 08:44:34 +08:00
lobehubbot dfdb904fcb 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-24 00:25:13 +00:00
semantic-release-bot f58c6e127c 🔖 chore(release): v1.88.1 [skip ci]
### [Version&nbsp;1.88.1](https://github.com/lobehub/lobe-chat/compare/v1.88.0...v1.88.1)
<sup>Released on **2025-05-24**</sup>

#### 🐛 Bug Fixes

- **misc**: User nickName & username selector in desktop.

#### 💄 Styles

- **misc**: Support Gemini 2.5 thought reasoning.

<br/>

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

#### What's fixed

* **misc**: User nickName & username selector in desktop, closes [#7899](https://github.com/lobehub/lobe-chat/issues/7899) ([bf51746](https://github.com/lobehub/lobe-chat/commit/bf51746))

#### Styles

* **misc**: Support Gemini 2.5 thought reasoning, closes [#7686](https://github.com/lobehub/lobe-chat/issues/7686) ([f34c4de](https://github.com/lobehub/lobe-chat/commit/f34c4de))

</details>

<div align="right">

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

</div>
2025-05-24 00:23:57 +00:00
huangkairan bf5174635c 🐛 fix: user nickName & username selector in desktop (#7899) 2025-05-24 08:10:17 +08:00
sxjeru f34c4de11f 💄 style: Support Gemini 2.5 thought reasoning (#7686) 2025-05-24 08:09:25 +08:00
lobehubbot 6ec26ebd80 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-23 12:04:43 +00:00
semantic-release-bot 38f9cb3ed6 🔖 chore(release): v1.88.0 [skip ci]
## [Version&nbsp;1.88.0](https://github.com/lobehub/lobe-chat/compare/v1.87.9...v1.88.0)
<sup>Released on **2025-05-23**</sup>

####  Features

- **misc**: Add claude 4 series.

#### 🐛 Bug Fixes

- **misc**: Fix missing email field to user, update agent config of client db will override old config.

<br/>

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

#### What's improved

* **misc**: Add claude 4 series, closes [#7939](https://github.com/lobehub/lobe-chat/issues/7939) ([9b4f950](https://github.com/lobehub/lobe-chat/commit/9b4f950))

#### What's fixed

* **misc**: Fix missing email field to user, closes [#7913](https://github.com/lobehub/lobe-chat/issues/7913) ([d314130](https://github.com/lobehub/lobe-chat/commit/d314130))
* **misc**: Update agent config of client db will override old config, closes [#7918](https://github.com/lobehub/lobe-chat/issues/7918) ([f7cda68](https://github.com/lobehub/lobe-chat/commit/f7cda68))

</details>

<div align="right">

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

</div>
2025-05-23 12:03:30 +00:00
huangkairan d3141302dd 🐛 fix: fix missing email field to user (#7913)
* fix: pass email to user

* add test
2025-05-23 14:20:45 +08:00
YuTengjing f7cda68d6b 🐛 fix: update agent config of client db will override old config (#7918)
*  fix: update client db version override old config

*  refactor: use getServerDefaultAgentConfig for default agent configuration in createInbox method

*  build: fix session update config tests

* fix: missing getAppConfig export from @/config/app
2025-05-23 14:20:00 +08:00
Arvin Xu 9b4f950a03 feat: add claude 4 series (#7939) 2025-05-23 14:15:59 +08:00
lobehubbot 081088cb36 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-23 01:27:35 +00:00
semantic-release-bot 353e729c74 🔖 chore(release): v1.87.9 [skip ci]
### [Version&nbsp;1.87.9](https://github.com/lobehub/lobe-chat/compare/v1.87.8...v1.87.9)
<sup>Released on **2025-05-23**</sup>

#### 💄 Styles

- **misc**: Resolve InputNumber display overlap issue.

<br/>

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

#### Styles

* **misc**: Resolve InputNumber display overlap issue, closes [#7892](https://github.com/lobehub/lobe-chat/issues/7892) ([5486663](https://github.com/lobehub/lobe-chat/commit/5486663))

</details>

<div align="right">

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

</div>
2025-05-23 01:26:21 +00:00
Kingsword 5486663541 💄 style: resolve InputNumber display overlap issue (#7892)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-23 09:12:10 +08:00
lobehubbot 2916e4f568 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-22 23:24:08 +00:00
semantic-release-bot 10d38e032c 🔖 chore(release): v1.87.8 [skip ci]
### [Version&nbsp;1.87.8](https://github.com/lobehub/lobe-chat/compare/v1.87.7...v1.87.8)
<sup>Released on **2025-05-22**</sup>

#### 🐛 Bug Fixes

- **misc**: 'top_p' is not supported with o4-mini, pin zustand version to avoid type error.

<br/>

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

#### What's fixed

* **misc**: 'top_p' is not supported with o4-mini, closes [#7747](https://github.com/lobehub/lobe-chat/issues/7747) ([4e04399](https://github.com/lobehub/lobe-chat/commit/4e04399))
* **misc**: Pin zustand version to avoid type error, closes [#7929](https://github.com/lobehub/lobe-chat/issues/7929) ([4f6e286](https://github.com/lobehub/lobe-chat/commit/4f6e286))

</details>

<div align="right">

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

</div>
2025-05-22 23:22:54 +00:00
huangkairan 4f6e2862bc 🐛 fix: pin zustand version to avoid type error (#7929) 2025-05-22 23:12:09 +08:00
sxjeru 4e04399e39 🐛 fix: 'top_p' is not supported with o4-mini (#7747)
* Update index.ts

* Update index.ts

* Update index.ts

* Update index.test.ts.snap

* Update openai.ts

*  feat: update snap

* Update index.ts

* Update novita.ts

* Update siliconcloud.ts

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-22 10:05:23 +08:00
lobehubbot 2d369bfbb6 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-21 08:25:58 +00:00
semantic-release-bot 3fd7fe2d5e 🔖 chore(release): v1.87.7 [skip ci]
### [Version&nbsp;1.87.7](https://github.com/lobehub/lobe-chat/compare/v1.87.6...v1.87.7)
<sup>Released on **2025-05-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Bump  @lobehub/ui to 2.1.7.

<br/>

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

#### What's fixed

* **misc**: Bump  @lobehub/ui to 2.1.7, closes [#7912](https://github.com/lobehub/lobe-chat/issues/7912) ([457b645](https://github.com/lobehub/lobe-chat/commit/457b645))

</details>

<div align="right">

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

</div>
2025-05-21 08:24:50 +00:00
𝑾𝒖𝒙𝒉 457b645a7e 🐛 fix: bump @lobehub/ui to 2.1.7 (#7912) 2025-05-21 16:10:40 +08:00
lobehubbot 292e63e270 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-21 05:19:53 +00:00
semantic-release-bot 28c3c61b20 🔖 chore(release): v1.87.6 [skip ci]
### [Version&nbsp;1.87.6](https://github.com/lobehub/lobe-chat/compare/v1.87.5...v1.87.6)
<sup>Released on **2025-05-21**</sup>

#### 💄 Styles

- **misc**: Improve tools display.

<br/>

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

#### Styles

* **misc**: Improve tools display, closes [#7906](https://github.com/lobehub/lobe-chat/issues/7906) ([af8a05b](https://github.com/lobehub/lobe-chat/commit/af8a05b))

</details>

<div align="right">

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

</div>
2025-05-21 05:18:46 +00:00
Arvin Xu af8a05b3dc 💄 style: improve tools display (#7906)
* update

* improve i18n for tools display

* Update src/tools/local-system/systemRole.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* fix tests

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-05-21 13:04:31 +08:00
lobehubbot 92598c00e5 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-20 05:04:22 +00:00
semantic-release-bot 9f9026fb13 🔖 chore(release): v1.87.5 [skip ci]
### [Version&nbsp;1.87.5](https://github.com/lobehub/lobe-chat/compare/v1.87.4...v1.87.5)
<sup>Released on **2025-05-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop open issue on linux like Fedora42.

<br/>

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

#### What's fixed

* **misc**: Fix desktop open issue on linux like Fedora42, closes [#7883](https://github.com/lobehub/lobe-chat/issues/7883) ([5b0154f](https://github.com/lobehub/lobe-chat/commit/5b0154f))

</details>

<div align="right">

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

</div>
2025-05-20 05:03:09 +00:00
Arvin Xu 5b0154f3d1 🐛 fix: fix desktop open issue on linux like Fedora42 (#7883)
* fix gtk version

* fix gtk version

* fix lint
2025-05-20 12:49:14 +08:00
littleLice 4ebd143bcf 📝 docs: Update docs/usage/providers/vllm.zh-CN.mdx (#7874) 2025-05-19 11:51:38 +08:00
renovate[bot] 8deb00cfd3 Update dependency @anthropic-ai/sdk to ^0.51.0 (#7877)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-19 11:50:14 +08:00
lobehubbot a2e10a09fe 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-18 09:34:31 +00:00
semantic-release-bot fb5fdb2971 🔖 chore(release): v1.87.4 [skip ci]
### [Version&nbsp;1.87.4](https://github.com/lobehub/lobe-chat/compare/v1.87.3...v1.87.4)
<sup>Released on **2025-05-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Supported SenseNova v6 models correctly & update Gemini models.

<br/>

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

#### What's fixed

* **misc**: Supported SenseNova v6 models correctly & update Gemini models, closes [#7778](https://github.com/lobehub/lobe-chat/issues/7778) ([e2b5ed3](https://github.com/lobehub/lobe-chat/commit/e2b5ed3))

</details>

<div align="right">

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

</div>
2025-05-18 09:33:21 +00:00
sxjeru e2b5ed3de7 🐛 fix: supported SenseNova v6 models correctly & update Gemini models (#7778)
*  feat: update sensenove models info

* 🐛 fix: handle model validation in message processing

* fix

* 🐛 fix: 修复带图片内容的处理逻辑

* fix

* Update google.ts

* Update index.ts

* Update google.ts

* Update google.ts

* Update google.ts

* Update google.ts

* Update novita.ts
2025-05-18 17:19:34 +08:00
lobehubbot b96947fe6d 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-17 09:47:35 +00:00
semantic-release-bot 13c9a4c5bc 🔖 chore(release): v1.87.3 [skip ci]
### [Version&nbsp;1.87.3](https://github.com/lobehub/lobe-chat/compare/v1.87.2...v1.87.3)
<sup>Released on **2025-05-17**</sup>

#### ♻ Code Refactoring

- **misc**: Clean code with new antd api.

<br/>

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

#### Code refactoring

* **misc**: Clean code with new antd api, closes [#7870](https://github.com/lobehub/lobe-chat/issues/7870) ([c543884](https://github.com/lobehub/lobe-chat/commit/c543884))

</details>

<div align="right">

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

</div>
2025-05-17 09:46:27 +00:00
Arvin Xu c543884dd6 ♻️ refactor: clean code with new antd api (#7870) 2025-05-17 17:05:54 +08:00
huangkairan d6e3fbf98b 🔨 chore: update desktop env (#7860)
Co-authored-by: GH Action - Upstream Sync <action@github.com>
2025-05-17 00:07:17 +08:00
lobehubbot 59a0057572 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-16 14:39:41 +00:00
semantic-release-bot 4747b9a29c 🔖 chore(release): v1.87.2 [skip ci]
### [Version&nbsp;1.87.2](https://github.com/lobehub/lobe-chat/compare/v1.87.1...v1.87.2)
<sup>Released on **2025-05-16**</sup>

#### 💄 Styles

- **misc**: Support Doubao 1.5 Thinking Vision Pro model.

<br/>

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

#### Styles

* **misc**: Support Doubao 1.5 Thinking Vision Pro model, closes [#7784](https://github.com/lobehub/lobe-chat/issues/7784) ([9cf0d6f](https://github.com/lobehub/lobe-chat/commit/9cf0d6f))

</details>

<div align="right">

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

</div>
2025-05-16 14:38:35 +00:00
sxjeru 9cf0d6fbca 💄 style: Support Doubao 1.5 Thinking Vision Pro model (#7784)
*  feat: 添加 Doubao 1.5 Thinking Vision Pro 模型并更新 Volcengine AI 聊天完成处理逻辑

*  feat: 启用 Doubao 1.5 Thinking Vision Pro 模型并更新思考处理逻辑

* fix
2025-05-16 22:24:19 +08:00
lobehubbot 44d17c8ae4 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-16 08:57:24 +00:00
semantic-release-bot fc69ff87c5 🔖 chore(release): v1.87.1 [skip ci]
### [Version&nbsp;1.87.1](https://github.com/lobehub/lobe-chat/compare/v1.87.0...v1.87.1)
<sup>Released on **2025-05-16**</sup>

#### 💄 Styles

- **misc**: Update internlm model list, add  series, update Spark X1 model list & fix build-in search params.

<br/>

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

#### Styles

* **misc**: Update internlm model list, add  series, closes [#7566](https://github.com/lobehub/lobe-chat/issues/7566) ([4eaddf4](https://github.com/lobehub/lobe-chat/commit/4eaddf4))
* **misc**: Update Spark X1 model list & fix build-in search params, closes [#7480](https://github.com/lobehub/lobe-chat/issues/7480) ([7050c81](https://github.com/lobehub/lobe-chat/commit/7050c81))

</details>

<div align="right">

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

</div>
2025-05-16 08:56:10 +00:00
Zhijie He 7050c81497 💄 style: update Spark X1 model list & fix build-in search params (#7480)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-16 16:42:01 +08:00
Zhijie He 4eaddf4296 💄 style: update internlm model list, add series (#7566)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-05-16 16:41:18 +08:00
lobehubbot 879a777861 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-16 07:27:54 +00:00
semantic-release-bot 5ef2753f73 🔖 chore(release): v1.87.0 [skip ci]
## [Version&nbsp;1.87.0](https://github.com/lobehub/lobe-chat/compare/v1.86.1...v1.87.0)
<sup>Released on **2025-05-16**</sup>

####  Features

- **misc**: Support custom language and Mermaid Appearance.

#### 🐛 Bug Fixes

- **misc**: Fix oidc redirect url.

<br/>

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

#### What's improved

* **misc**: Support custom language and Mermaid Appearance, closes [#7850](https://github.com/lobehub/lobe-chat/issues/7850) ([bee2b2d](https://github.com/lobehub/lobe-chat/commit/bee2b2d))

#### What's fixed

* **misc**: Fix oidc redirect url, closes [#7855](https://github.com/lobehub/lobe-chat/issues/7855) ([3156538](https://github.com/lobehub/lobe-chat/commit/3156538))

</details>

<div align="right">

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

</div>
2025-05-16 07:26:38 +00:00
CanisMinor bee2b2d598 feat: support custom language and Mermaid Appearance (#7850)
*  feat: Add Appearance setting

* 🔧 chore: Update i18n

* 🐛 fix: Fix some issues
2025-05-16 15:12:15 +08:00
huangkairan 31565382b0 🐛 fix: fix oidc redirect url (#7855) 2025-05-16 15:01:11 +08:00
Arvin Xu 56468dd2a2 test: fix tests (#7856) 2025-05-16 15:00:51 +08:00
gru-agent[bot] 1dc9a6d917 test: Add unit tests for desktopStateSelectors to validate userPath retrieval and handling of undefined cases. (#7690)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-15 17:39:46 +08:00
lobehubbot 64242c628c 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-15 06:25:12 +00:00
semantic-release-bot 857cc6d9ee 🔖 chore(release): v1.86.1 [skip ci]
### [Version&nbsp;1.86.1](https://github.com/lobehub/lobe-chat/compare/v1.86.0...v1.86.1)
<sup>Released on **2025-05-15**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor agent runtime to model runtime.

<br/>

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

#### Code refactoring

* **misc**: Refactor agent runtime to model runtime, closes [#7846](https://github.com/lobehub/lobe-chat/issues/7846) ([a3b9448](https://github.com/lobehub/lobe-chat/commit/a3b9448))

</details>

<div align="right">

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

</div>
2025-05-15 06:24:04 +00:00
Arvin Xu a3b94488f8 ♻️ refactor: refactor agent runtime to model runtime (#7846) 2025-05-15 14:10:12 +08:00
lobehubbot 5e61929ede 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-15 03:23:24 +00:00
semantic-release-bot 62731712c1 🔖 chore(release): v1.86.0 [skip ci]
## [Version&nbsp;1.86.0](https://github.com/lobehub/lobe-chat/compare/v1.85.10...v1.86.0)
<sup>Released on **2025-05-15**</sup>

####  Features

- **misc**: Add Qiniu Provider.

<br/>

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

#### What's improved

* **misc**: Add Qiniu Provider, closes [#7649](https://github.com/lobehub/lobe-chat/issues/7649) ([c9b8e9f](https://github.com/lobehub/lobe-chat/commit/c9b8e9f))

</details>

<div align="right">

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

</div>
2025-05-15 03:22:19 +00:00
Zhifeng Li c9b8e9f655 feat: add Qiniu Provider (#7649)
*  feat: Add Qiniu

*  feat: Add Qiniu Image
2025-05-15 11:08:49 +08:00
lobehubbot a5c2b687c5 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-14 15:21:31 +00:00
semantic-release-bot c77a28cc72 🔖 chore(release): v1.85.10 [skip ci]
### [Version&nbsp;1.85.10](https://github.com/lobehub/lobe-chat/compare/v1.85.9...v1.85.10)
<sup>Released on **2025-05-14**</sup>

#### 💄 Styles

- **misc**: Update electron style on windows.

<br/>

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

#### Styles

* **misc**: Update electron style on windows, closes [#7839](https://github.com/lobehub/lobe-chat/issues/7839) ([474de56](https://github.com/lobehub/lobe-chat/commit/474de56))

</details>

<div align="right">

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

</div>
2025-05-14 15:20:20 +00:00
CanisMinor 474de56a93 💄 style: update electron style on windows (#7839)
* 💄 style: add chrome flags to electron, update scrollbar style on win

* 💄 style: Update win11 backgroundMaterial

* 💄 style: Update title bar style

* 💄 style: Update WinControl

* 💄 style: Add nsis image
2025-05-14 23:06:30 +08:00
lobehubbot 6f0de05602 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-14 09:45:41 +00:00
semantic-release-bot 58dddc9e51 🔖 chore(release): v1.85.9 [skip ci]
### [Version&nbsp;1.85.9](https://github.com/lobehub/lobe-chat/compare/v1.85.8...v1.85.9)
<sup>Released on **2025-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Redirect unauthorized next-auth user to signin page.

#### 💄 Styles

- **misc**: Improve smoothing on completion.

<br/>

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

#### What's fixed

* **misc**: Redirect unauthorized next-auth user to signin page, closes [#7813](https://github.com/lobehub/lobe-chat/issues/7813) ([6160784](https://github.com/lobehub/lobe-chat/commit/6160784))

#### Styles

* **misc**: Improve smoothing on completion, closes [#7833](https://github.com/lobehub/lobe-chat/issues/7833) ([6434686](https://github.com/lobehub/lobe-chat/commit/6434686))

</details>

<div align="right">

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

</div>
2025-05-14 09:44:26 +00:00
Arvin Xu 64346864ef 💄 style: improve smoothing on completion (#7833)
* test smoothing

* try to fix animation

* fix tests

* 💄 style: Fix Portal scroll

* 💄 style: Fix actionbar max height

* 💄 style: Update Thinking style

* 💄 style: Update scroll smooth

* 🔧 chore(revert): 暂时还原 scrollToIndex smooth,输出时容易丢失滚动到底部的行为

---------

Co-authored-by: canisminor1990 <i@canisminor.cc>
2025-05-14 17:30:42 +08:00
Max Brauer a988632e77 🔨 chore: disable signups for the default lobechat org in Casdoor (#7830)
Otherwise, anyone can signup with the lobechat organization and it is
very likely that's not wanted. We should be closed and secure by
default.

Signed-off-by: Max Brauer <mbrauer@vmware.com>
2025-05-14 10:08:23 +08:00
Rylan Cai 6160784047 🐛 fix: Redirect unauthorized next-auth user to signin page (#7813) 2025-05-14 10:07:09 +08:00
lobehubbot f97e778cc6 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-11 15:59:33 +00:00
semantic-release-bot 68610acffc 🔖 chore(release): v1.85.8 [skip ci]
### [Version&nbsp;1.85.8](https://github.com/lobehub/lobe-chat/compare/v1.85.7...v1.85.8)
<sup>Released on **2025-05-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix config import issue in the desktop version.

<br/>

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

#### What's fixed

* **misc**: Fix config import issue in the desktop version, closes [#7800](https://github.com/lobehub/lobe-chat/issues/7800) ([2cb8635](https://github.com/lobehub/lobe-chat/commit/2cb8635))

</details>

<div align="right">

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

</div>
2025-05-11 15:58:28 +00:00
Arvin Xu 2cb863524d 🐛 fix: fix config import issue in the desktop version (#7800)
* refactor upload feature

* fix import file upload with desktop

* fix tests

* fix tests
2025-05-11 23:45:03 +08:00
lobehubbot a28edad521 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-11 04:04:53 +00:00
semantic-release-bot db225fc44b 🔖 chore(release): v1.85.7 [skip ci]
### [Version&nbsp;1.85.7](https://github.com/lobehub/lobe-chat/compare/v1.85.6...v1.85.7)
<sup>Released on **2025-05-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix streamable http url valid and refactor local files to local system.

<br/>

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

#### What's fixed

* **misc**: Fix streamable http url valid and refactor local files to local system, closes [#7794](https://github.com/lobehub/lobe-chat/issues/7794) ([37fd5fe](https://github.com/lobehub/lobe-chat/commit/37fd5fe))

</details>

<div align="right">

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

</div>
2025-05-11 04:03:39 +00:00
Arvin Xu 37fd5fea90 🐛 fix: fix streamable http url valid and refactor local files to local system (#7794)
* refactor local files to local system

* update i18n
2025-05-11 11:49:39 +08:00
renovate[bot] 9b59dd8a76 Update dependency lucide-react to ^0.509.0 (#7789)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 11:15:53 +08:00
Arvin Xu ef3089049a 🐛 fix: fix macOS fisrt time open issue (#7788)
* fix

* try to fix again
2025-05-11 10:57:31 +08:00
lobehubbot 944394cf2e 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-10 14:16:26 +00:00
semantic-release-bot 1ffd37320f 🔖 chore(release): v1.85.6 [skip ci]
### [Version&nbsp;1.85.6](https://github.com/lobehub/lobe-chat/compare/v1.85.5...v1.85.6)
<sup>Released on **2025-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>
2025-05-10 14:15:19 +00:00
Arvin Xu a0713c98ba 👷 build: update build workflow (#7786)
* try to fix mac sign

* update beta env
2025-05-10 22:01:32 +08:00
lobehubbot 3f5bd5dddd 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-10 12:30:36 +00:00
semantic-release-bot 5e091d2bb9 🔖 chore(release): v1.85.5 [skip ci]
### [Version&nbsp;1.85.5](https://github.com/lobehub/lobe-chat/compare/v1.85.4...v1.85.5)
<sup>Released on **2025-05-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix window close issue and release Window/Linux beta.

<br/>

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

#### What's fixed

* **misc**: Fix window close issue and release Window/Linux beta, closes [#7780](https://github.com/lobehub/lobe-chat/issues/7780) ([82c48b9](https://github.com/lobehub/lobe-chat/commit/82c48b9))

</details>

<div align="right">

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

</div>
2025-05-10 12:29:28 +00:00
Arvin Xu 82c48b916f 🐛 fix: fix window close issue and release Window/Linux beta (#7780)
* fix window close issue

* try to fix win loading

* try to fix win build

* try to fix win build

* fix win build issue

* fix win build issue
2025-05-10 20:15:41 +08:00
lobehubbot 294790bef7 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-10 12:13:21 +00:00
semantic-release-bot 25d19ff9fa 🔖 chore(release): v1.85.4 [skip ci]
### [Version&nbsp;1.85.4](https://github.com/lobehub/lobe-chat/compare/v1.85.3...v1.85.4)
<sup>Released on **2025-05-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix nothing return when reset the client db.

<br/>

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

#### What's fixed

* **misc**: Fix nothing return when reset the client db, closes [#7738](https://github.com/lobehub/lobe-chat/issues/7738) ([90efb13](https://github.com/lobehub/lobe-chat/commit/90efb13))

</details>

<div align="right">

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

</div>
2025-05-10 12:12:16 +00:00
vual 90efb13fca 🐛 fix: fix nothing return when reset the client db (#7738) 2025-05-10 19:58:44 +08:00
lobehubbot ceaf7bbb25 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-10 11:55:30 +00:00
semantic-release-bot 7169ae0d40 🔖 chore(release): v1.85.3 [skip ci]
### [Version&nbsp;1.85.3](https://github.com/lobehub/lobe-chat/compare/v1.85.2...v1.85.3)
<sup>Released on **2025-05-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Remove mcp client cache.

#### 💄 Styles

- **misc**: Improve pdf and xlsx file content parser.

<br/>

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

#### What's fixed

* **misc**: Remove mcp client cache, closes [#7776](https://github.com/lobehub/lobe-chat/issues/7776) ([0582134](https://github.com/lobehub/lobe-chat/commit/0582134))

#### Styles

* **misc**: Improve pdf and xlsx file content parser, closes [#7783](https://github.com/lobehub/lobe-chat/issues/7783) ([0376870](https://github.com/lobehub/lobe-chat/commit/0376870))

</details>

<div align="right">

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

</div>
2025-05-10 11:54:16 +00:00
Arvin Xu 0376870211 💄 style: improve pdf and xlsx file content parser (#7783)
* remove cache

* improve caching
2025-05-10 19:40:45 +08:00
gru-agent[bot] 5f26f042e3 test: Add unit tests for importerRouter functionality in importer.test.ts (#7754)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-10 16:25:28 +08:00
Arvin Xu 0582134f1c 🐛 fix: remove mcp client cache (#7776) 2025-05-10 16:18:09 +08:00
lobehubbot 35d9ac4962 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-10 06:43:55 +00:00
semantic-release-bot d692ce0303 🔖 chore(release): v1.85.2 [skip ci]
### [Version&nbsp;1.85.2](https://github.com/lobehub/lobe-chat/compare/v1.85.1...v1.85.2)
<sup>Released on **2025-05-10**</sup>

#### ♻ Code Refactoring

- **misc**: Upgrade anthropic sdk.

<br/>

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

#### Code refactoring

* **misc**: Upgrade anthropic sdk, closes [#7773](https://github.com/lobehub/lobe-chat/issues/7773) ([39e871f](https://github.com/lobehub/lobe-chat/commit/39e871f))

</details>

<div align="right">

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

</div>
2025-05-10 06:42:49 +00:00
Arvin Xu 39e871fc50 ♻️ refactor: upgrade anthropic sdk (#7773) 2025-05-10 14:29:22 +08:00
lobehubbot 1c0bac0f75 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-10 03:51:02 +00:00
semantic-release-bot 48e16b1399 🔖 chore(release): v1.85.1 [skip ci]
### [Version&nbsp;1.85.1](https://github.com/lobehub/lobe-chat/compare/v1.85.0...v1.85.1)
<sup>Released on **2025-05-10**</sup>

#### 💄 Styles

- **misc**: Add Qwen3 models for infiniai.

<br/>

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

#### Styles

* **misc**: Add Qwen3 models for infiniai, closes [#7657](https://github.com/lobehub/lobe-chat/issues/7657) ([edd1732](https://github.com/lobehub/lobe-chat/commit/edd1732))

</details>

<div align="right">

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

</div>
2025-05-10 03:49:44 +00:00
WangYK edd173287f 💄 style: add Qwen3 models for infiniai (#7657) 2025-05-10 11:36:11 +08:00
Arvin Xu 73bf2cc07b 👷 build: fix docker build (#7772)
* update pnpm version

* update eslint

* 恢复eslint版本

Co-authored-by: vual <25891219+vual@users.noreply.github.com>
2025-05-10 11:27:29 +08:00
gru-agent[bot] bc5498a212 test: Add unit tests for TempFileManager using Vitest (#7755)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-10 11:24:23 +08:00
gru-agent[bot] e1435b0e35 test: Add unit tests for the FileService downloadFileToLocal method. (#7758)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-10 11:23:37 +08:00
gru-agent[bot] 800a3fc6ee test: Add unit tests for messageRouter functionality in message.test.ts (#7761)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-10 11:22:47 +08:00
lobehubbot 4f626ff9cf 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-09 17:13:44 +00:00
semantic-release-bot 3d6f6f701a 🔖 chore(release): v1.85.0 [skip ci]
## [Version&nbsp;1.85.0](https://github.com/lobehub/lobe-chat/compare/v1.84.27...v1.85.0)
<sup>Released on **2025-05-09**</sup>

####  Features

- **misc**: Support upload files direct into chat context.

<br/>

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

#### What's improved

* **misc**: Support upload files direct into chat context, closes [#7751](https://github.com/lobehub/lobe-chat/issues/7751) ([39b790e](https://github.com/lobehub/lobe-chat/commit/39b790e))

</details>

<div align="right">

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

</div>
2025-05-09 17:12:34 +00:00
Arvin Xu 39b790ec37 feat: support upload files direct into chat context (#7751)
* add document service

* add file item

* add file content for direct upload file

* fix tests

* fix tests

* fix tests

* add debug log for file-loaders

* add debug log and test

* improve loading

* update tests

* fix pdf parser

* fix pdf version

* fix pdf worker url

* fix pdf worker url

* fix test
2025-05-10 00:58:39 +08:00
lobehubbot 2beee680bb 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-09 01:26:47 +00:00
semantic-release-bot 31b1d66e0d 🔖 chore(release): v1.84.27 [skip ci]
### [Version&nbsp;1.84.27](https://github.com/lobehub/lobe-chat/compare/v1.84.26...v1.84.27)
<sup>Released on **2025-05-09**</sup>

#### 💄 Styles

- **misc**: Add reasoning tokens and token usage statistics for Google Gemini.

<br/>

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

#### Styles

* **misc**: Add reasoning tokens and token usage statistics for Google Gemini, closes [#7501](https://github.com/lobehub/lobe-chat/issues/7501) ([b466b42](https://github.com/lobehub/lobe-chat/commit/b466b42))

</details>

<div align="right">

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

</div>
2025-05-09 01:25:34 +00:00
renovate[bot] 31bec5324d Update dependency @anthropic-ai/sdk to ^0.41.0 (#7568)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-09 09:11:51 +08:00
gru-agent[bot] 33c2146047 test: Add unit tests for fileRouter in the lambda module. (#7760)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-09 09:10:11 +08:00
afon b466b42d17 💄 style: add reasoning tokens and token usage statistics for Google Gemini (#7501) 2025-05-09 08:31:00 +08:00
lobehubbot db967ffbad 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-08 18:46:14 +00:00
semantic-release-bot 95466ae3c1 🔖 chore(release): v1.84.26 [skip ci]
### [Version&nbsp;1.84.26](https://github.com/lobehub/lobe-chat/compare/v1.84.25...v1.84.26)
<sup>Released on **2025-05-08**</sup>

#### 💄 Styles

- **misc**: Add qwen3 for ollama.

<br/>

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

#### Styles

* **misc**: Add qwen3 for ollama, closes [#7746](https://github.com/lobehub/lobe-chat/issues/7746) ([806d905](https://github.com/lobehub/lobe-chat/commit/806d905))

</details>

<div align="right">

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

</div>
2025-05-08 18:45:01 +00:00
Arvin Xu 6f42f0f26e 🔨 chore: fix tests (#7757) 2025-05-09 02:31:17 +08:00
Arvin Xu 806d9051f8 💄 style: add qwen3 for ollama (#7746)
* make qwen3 default

* refactor TempFileManager

* refactor file service

* clean
2025-05-09 01:36:57 +08:00
renovate[bot] f8568170b5 Update dependency lucide-react to ^0.508.0 (#7698)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-09 01:00:51 +08:00
lobehubbot d964af26a9 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-08 16:23:37 +00:00
semantic-release-bot ecdf51bc82 🔖 chore(release): v1.84.25 [skip ci]
### [Version&nbsp;1.84.25](https://github.com/lobehub/lobe-chat/compare/v1.84.24...v1.84.25)
<sup>Released on **2025-05-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop upload image on macOS.

<br/>

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

#### What's fixed

* **misc**: Fix desktop upload image on macOS, closes [#7741](https://github.com/lobehub/lobe-chat/issues/7741) ([07d5374](https://github.com/lobehub/lobe-chat/commit/07d5374))

</details>

<div align="right">

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

</div>
2025-05-08 16:22:25 +00:00
Arvin Xu 07d5374ab8 🐛 fix: fix desktop upload image on macOS (#7741)
* fix image

* fix

* fix lint

* fix

* add tests

* update testss

* remove tests

* try to fix

* try to fix desktop image issue

* Revert "try to fix desktop image issue"

This reverts commit 8dad8f3937.
2025-05-09 00:08:32 +08:00
lobehubbot 0cda0829e7 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-08 15:20:18 +00:00
semantic-release-bot e5469b6c5c 🔖 chore(release): v1.84.24 [skip ci]
### [Version&nbsp;1.84.24](https://github.com/lobehub/lobe-chat/compare/v1.84.23...v1.84.24)
<sup>Released on **2025-05-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix changelog issue on desktop app.

<br/>

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

#### What's fixed

* **misc**: Fix changelog issue on desktop app, closes [#7740](https://github.com/lobehub/lobe-chat/issues/7740) ([f0a12af](https://github.com/lobehub/lobe-chat/commit/f0a12af))

</details>

<div align="right">

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

</div>
2025-05-08 15:19:06 +00:00
gru-agent[bot] c6e81371b3 test: Add unit tests for API_ENDPOINTS in _url module. (#7700)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-08 16:45:58 +08:00
Arvin Xu f0a12afd23 🐛 fix: fix changelog issue on desktop app (#7740)
* update

* update
2025-05-08 16:38:29 +08:00
lobehubbot 313c03ae30 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-08 03:15:25 +00:00
semantic-release-bot 22af8147e5 🔖 chore(release): v1.84.23 [skip ci]
### [Version&nbsp;1.84.23](https://github.com/lobehub/lobe-chat/compare/v1.84.22...v1.84.23)
<sup>Released on **2025-05-08**</sup>

#### 💄 Styles

- **misc**: Add new gemini & Mistral models.

<br/>

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

#### Styles

* **misc**: Add new gemini & Mistral models, closes [#7730](https://github.com/lobehub/lobe-chat/issues/7730) ([b7753e2](https://github.com/lobehub/lobe-chat/commit/b7753e2))

</details>

<div align="right">

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

</div>
2025-05-08 03:14:10 +00:00
𝑾𝒖𝒙𝒉 ecfc79da07 💄style: Improve the shortcut key prompt panel (#7723) 2025-05-08 11:00:29 +08:00
sxjeru b7753e253e 💄 style: Add new gemini & Mistral models (#7730)
* Update google.ts

* Update google.ts

* Update google.ts

* Update vertexai.ts

* Update vertexai.ts

* Update mistral.ts
2025-05-08 11:00:14 +08:00
Max Brauer 7469c10a9a 🔨 chore: fix typo in docker compose (#7718)
Signed-off-by: Max Brauer <mbrauer@vmware.com>
2025-05-08 10:22:24 +08:00
Lumia 655f7f02d6 📝 docs: Update Dokploy Deplyment Documents (#7737)
* Update dokploy.mdx

* Update dokploy.zh-CN.mdx
2025-05-08 10:21:06 +08:00
lobehubbot 792bb59514 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-07 01:16:07 +00:00
semantic-release-bot cb518acfd3 🔖 chore(release): v1.84.22 [skip ci]
### [Version&nbsp;1.84.22](https://github.com/lobehub/lobe-chat/compare/v1.84.21...v1.84.22)
<sup>Released on **2025-05-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix electron state init on window.

#### 💄 Styles

- **misc**: Add Xiaohongshu crawler rules.

<br/>

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

#### What's fixed

* **misc**: Fix electron state init on window, closes [#7707](https://github.com/lobehub/lobe-chat/issues/7707) ([ef05b49](https://github.com/lobehub/lobe-chat/commit/ef05b49))

#### Styles

* **misc**: Add Xiaohongshu crawler rules, closes [#7717](https://github.com/lobehub/lobe-chat/issues/7717) ([cc3724d](https://github.com/lobehub/lobe-chat/commit/cc3724d))

</details>

<div align="right">

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

</div>
2025-05-07 01:14:58 +00:00
Zhijie He cc3724d968 💄 style: add Xiaohongshu crawler rules (#7717) 2025-05-07 09:01:34 +08:00
Arvin Xu ef05b497ef 🐛 fix: fix electron state init on window (#7707) 2025-05-07 09:01:14 +08:00
lobehubbot 4fe666a866 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-04 12:02:17 +00:00
semantic-release-bot 7668437641 🔖 chore(release): v1.84.21 [skip ci]
### [Version&nbsp;1.84.21](https://github.com/lobehub/lobe-chat/compare/v1.84.20...v1.84.21)
<sup>Released on **2025-05-04**</sup>

#### ♻ Code Refactoring

- **misc**: Remove doubao Provider.

<br/>

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

#### Code refactoring

* **misc**: Remove doubao Provider, closes [#7573](https://github.com/lobehub/lobe-chat/issues/7573) ([0cf3bcc](https://github.com/lobehub/lobe-chat/commit/0cf3bcc))

</details>

<div align="right">

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

</div>
2025-05-04 12:01:06 +00:00
sxjeru 0cf3bcc19c ♻️ refactor: Remove doubao Provider (#7573)
* 🗑️ refactor: 移除 Doubao 相关模型和配置

* Update siliconcloud.ts

* del

* fix
2025-05-04 19:47:47 +08:00
gru-agent[bot] 75b639b1e7 test: Refactor AssistantStore tests to improve structure and clarity, including EdgeConfig mocking and fetch error handling. (#7704)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-04 19:46:47 +08:00
lobehubbot 14d8f51c62 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-04 08:23:50 +00:00
semantic-release-bot 6c575917bf 🔖 chore(release): v1.84.20 [skip ci]
### [Version&nbsp;1.84.20](https://github.com/lobehub/lobe-chat/compare/v1.84.19...v1.84.20)
<sup>Released on **2025-05-04**</sup>

#### 💄 Styles

- **misc**: Show Aliyun Bailian tokens usage tracking.

<br/>

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

#### Styles

* **misc**: Show Aliyun Bailian tokens usage tracking, closes [#7660](https://github.com/lobehub/lobe-chat/issues/7660) ([3ef0542](https://github.com/lobehub/lobe-chat/commit/3ef0542))

</details>

<div align="right">

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

</div>
2025-05-04 08:22:44 +00:00
sxjeru 3ef05421a3 💄 style: Show Aliyun Bailian tokens usage tracking (#7660) 2025-05-04 16:09:06 +08:00
lobehubbot 1ece6f6a69 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-04 00:49:25 +00:00
semantic-release-bot 53a83842e0 🔖 chore(release): v1.84.19 [skip ci]
### [Version&nbsp;1.84.19](https://github.com/lobehub/lobe-chat/compare/v1.84.18...v1.84.19)
<sup>Released on **2025-05-04**</sup>

#### 💄 Styles

- **misc**: Fix init state of loading.

<br/>

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

#### Styles

* **misc**: Fix init state of loading, closes [#7694](https://github.com/lobehub/lobe-chat/issues/7694) ([1d97a68](https://github.com/lobehub/lobe-chat/commit/1d97a68))

</details>

<div align="right">

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

</div>
2025-05-04 00:48:19 +00:00
Arvin Xu 1d97a6834d 💄 style: fix init state of loading (#7694) 2025-05-04 08:34:13 +08:00
lobehubbot 80558b27a2 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-03 16:26:53 +00:00
semantic-release-bot d46e72f407 🔖 chore(release): v1.84.18 [skip ci]
### [Version&nbsp;1.84.18](https://github.com/lobehub/lobe-chat/compare/v1.84.17...v1.84.18)
<sup>Released on **2025-05-03**</sup>

#### ♻ Code Refactoring

- **misc**: Add perf stat support for openai factory.

<br/>

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

#### Code refactoring

* **misc**: Add perf stat support for openai factory, closes [#7677](https://github.com/lobehub/lobe-chat/issues/7677) ([40464d1](https://github.com/lobehub/lobe-chat/commit/40464d1))

</details>

<div align="right">

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

</div>
2025-05-03 16:25:44 +00:00
gru-agent[bot] 0b25a64315 test: Add unit tests for localFileSlice actions in the chat store. (#7691)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-05-04 00:12:12 +08:00
Rylan Cai 40464d108c ♻️ refactor: add perf stat support for openai factory (#7677) 2025-05-03 16:23:13 +08:00
lobehubbot ceb22c06d6 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-03 02:15:33 +00:00
semantic-release-bot ae80489e07 🔖 chore(release): v1.84.17 [skip ci]
### [Version&nbsp;1.84.17](https://github.com/lobehub/lobe-chat/compare/v1.84.16...v1.84.17)
<sup>Released on **2025-05-03**</sup>

#### 💄 Styles

- **misc**: Add write file tool to local-file plugin.

<br/>

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

#### Styles

* **misc**: Add write file tool to local-file plugin, closes [#7684](https://github.com/lobehub/lobe-chat/issues/7684) ([e22e932](https://github.com/lobehub/lobe-chat/commit/e22e932))

</details>

<div align="right">

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

</div>
2025-05-03 02:14:27 +00:00
Arvin Xu e22e93262a 💄 style: add write file tool to local-file plugin (#7684) 2025-05-03 10:01:01 +08:00
lobehubbot ab40a8541a 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-02 00:09:06 +00:00
semantic-release-bot aaca997084 🔖 chore(release): v1.84.16 [skip ci]
### [Version&nbsp;1.84.16](https://github.com/lobehub/lobe-chat/compare/v1.84.15...v1.84.16)
<sup>Released on **2025-05-02**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop quiting with reopen window.

<br/>

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

#### What's fixed

* **misc**: Fix desktop quiting with reopen window, closes [#7675](https://github.com/lobehub/lobe-chat/issues/7675) ([edeabcf](https://github.com/lobehub/lobe-chat/commit/edeabcf))

</details>

<div align="right">

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

</div>
2025-05-02 00:07:53 +00:00
Arvin Xu c9af692da6 test: fix tests (#7680) 2025-05-02 07:54:33 +08:00
Arvin Xu edeabcfafb 🐛 fix: fix desktop quiting with reopen window (#7675)
* add rename renderer

* fix close issue
2025-05-02 05:53:14 +08:00
lobehubbot c2004e9b24 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-01 12:44:08 +00:00
semantic-release-bot 5301ddfd7a 🔖 chore(release): v1.84.15 [skip ci]
### [Version&nbsp;1.84.15](https://github.com/lobehub/lobe-chat/compare/v1.84.14...v1.84.15)
<sup>Released on **2025-05-01**</sup>

#### 🐛 Bug Fixes

- **misc**: Siliconflow requests with tools no longer force non-streaming.

<br/>

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

#### What's fixed

* **misc**: Siliconflow requests with tools no longer force non-streaming, closes [#7663](https://github.com/lobehub/lobe-chat/issues/7663) ([77777b2](https://github.com/lobehub/lobe-chat/commit/77777b2))

</details>

<div align="right">

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

</div>
2025-05-01 12:43:03 +00:00
sxjeru 77777b2de0 🐛 fix: Siliconflow requests with tools no longer force non-streaming (#7663) 2025-05-01 20:29:47 +08:00
lobehubbot 9b7d0d96bb 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-01 08:56:57 +00:00
semantic-release-bot 7402d1a880 🔖 chore(release): v1.84.14 [skip ci]
### [Version&nbsp;1.84.14](https://github.com/lobehub/lobe-chat/compare/v1.84.13...v1.84.14)
<sup>Released on **2025-05-01**</sup>

#### 💄 Styles

- **misc**: Add windows control and tray.

<br/>

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

#### Styles

* **misc**: Add windows control and tray, closes [#7665](https://github.com/lobehub/lobe-chat/issues/7665) ([c5f3d13](https://github.com/lobehub/lobe-chat/commit/c5f3d13))

</details>

<div align="right">

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

</div>
2025-05-01 08:55:52 +00:00
Arvin Xu c5f3d13c14 💄 style: add windows control and tray (#7665)
* add windows support

* add windows close support

* improve

* fix

* FIX

* improve builder

* improve windows icon
2025-05-01 16:42:26 +08:00
lobehubbot 6d8ca6ab76 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-01 06:41:55 +00:00
semantic-release-bot fc417fd5db 🔖 chore(release): v1.84.13 [skip ci]
### [Version&nbsp;1.84.13](https://github.com/lobehub/lobe-chat/compare/v1.84.12...v1.84.13)
<sup>Released on **2025-05-01**</sup>

#### 💄 Styles

- **misc**: Fix style issues.

<br/>

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

#### Styles

* **misc**: Fix style issues, closes [#7659](https://github.com/lobehub/lobe-chat/issues/7659) ([3da871b](https://github.com/lobehub/lobe-chat/commit/3da871b))

</details>

<div align="right">

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

</div>
2025-05-01 06:40:50 +00:00
CanisMinor 3da871b4d7 💄 style: Fix style issues (#7659) 2025-05-01 14:27:21 +08:00
lobehubbot d94e94d12d 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-30 17:13:56 +00:00
semantic-release-bot 1caae85ced 🔖 chore(release): v1.84.12 [skip ci]
### [Version&nbsp;1.84.12](https://github.com/lobehub/lobe-chat/compare/v1.84.11...v1.84.12)
<sup>Released on **2025-04-30**</sup>

#### 💄 Styles

- **misc**: Support Qwen3 `thinking_budget` param.

<br/>

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

#### Styles

* **misc**: Support Qwen3 `thinking_budget` param, closes [#7643](https://github.com/lobehub/lobe-chat/issues/7643) ([4570ceb](https://github.com/lobehub/lobe-chat/commit/4570ceb))

</details>

<div align="right">

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

</div>
2025-04-30 17:12:49 +00:00
sxjeru 4570ceb49e 💄 style: Support Qwen3 thinking_budget param (#7643)
*  feat(qwen): 更新Qwen模型定价和参数,添加思考预算支持

* Update qwen.ts

* Update index.ts
2025-05-01 00:59:18 +08:00
lobehubbot 2b94eff5c0 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-30 16:14:29 +00:00
semantic-release-bot ba76cd18a0 🔖 chore(release): v1.84.11 [skip ci]
### [Version&nbsp;1.84.11](https://github.com/lobehub/lobe-chat/compare/v1.84.10...v1.84.11)
<sup>Released on **2025-04-30**</sup>

#### 💄 Styles

- **misc**: Allow copy/edit when generate error.

<br/>

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

#### Styles

* **misc**: Allow copy/edit when generate error, closes [#7664](https://github.com/lobehub/lobe-chat/issues/7664) ([f518650](https://github.com/lobehub/lobe-chat/commit/f518650))

</details>

<div align="right">

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

</div>
2025-04-30 16:13:22 +00:00
Arthals f51865013e 💄 style: Allow copy/edit when generate error (#7664)
*  feat: Allow copy/edit when error

*  feat: Allow edit when error
2025-04-30 23:59:39 +08:00
lobehubbot 43822aaa8d 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-30 09:04:02 +00:00
semantic-release-bot 0d61ce0ef9 🔖 chore(release): v1.84.10 [skip ci]
### [Version&nbsp;1.84.10](https://github.com/lobehub/lobe-chat/compare/v1.84.9...v1.84.10)
<sup>Released on **2025-04-30**</sup>

#### 💄 Styles

- **misc**: Add Gemini 2.5 Pro Experimental model, Add siliconflow Qwen3 & support thinking params, Arrange model tags neatly, Update mobile style and fix issues problem, update ollama checker.

<br/>

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

#### Styles

* **misc**: Add Gemini 2.5 Pro Experimental model, closes [#7631](https://github.com/lobehub/lobe-chat/issues/7631) ([d318c82](https://github.com/lobehub/lobe-chat/commit/d318c82))
* **misc**: Add siliconflow Qwen3 & support thinking params, closes [#7647](https://github.com/lobehub/lobe-chat/issues/7647) ([ba83871](https://github.com/lobehub/lobe-chat/commit/ba83871))
* **misc**: Arrange model tags neatly, closes [#7651](https://github.com/lobehub/lobe-chat/issues/7651) ([44132ff](https://github.com/lobehub/lobe-chat/commit/44132ff))
* **misc**: Update mobile style and fix issues problem, closes [#7636](https://github.com/lobehub/lobe-chat/issues/7636) ([436a735](https://github.com/lobehub/lobe-chat/commit/436a735))
* **misc**: Update ollama checker, closes [#7650](https://github.com/lobehub/lobe-chat/issues/7650) ([321fd2b](https://github.com/lobehub/lobe-chat/commit/321fd2b))

</details>

<div align="right">

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

</div>
2025-04-30 09:02:45 +00:00
WangYang d318c8271f 💄 style: Add Gemini 2.5 Pro Experimental model (#7631) 2025-04-30 16:49:35 +08:00
sxjeru ba83871693 💄 style: Add siliconflow Qwen3 & support thinking params (#7647)
* Update siliconcloud.ts

* 💄 style: 添加思考参数

* 💄 style: 调整 thinking_budget 和 max_tokens 的处理逻辑
2025-04-30 16:47:55 +08:00
sxjeru 44132ff637 💄 style: Arrange model tags neatly (#7651) 2025-04-30 16:47:18 +08:00
Arvin Xu 321fd2b979 💄 style: update ollama checker (#7650)
* update ollama

* fix file page
2025-04-30 16:45:03 +08:00
CanisMinor 436a7351eb 💄 style: Update mobile style and fix issues problem (#7636)
* 💄 style: Update mobile actionbar and fix agent setting

* 🐛 fix: Fix share

* 🔧 chore: Update i18n

* 🐛 fix: Fix review problem

* 💄 style: Update mobile actionbar

* 💄 style: Fix processing tag

* 🔧 chore: Update depes
2025-04-30 16:43:07 +08:00
lobehubbot da871df36b 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-30 04:02:50 +00:00
semantic-release-bot 90ac9145f3 🔖 chore(release): v1.84.9 [skip ci]
### [Version&nbsp;1.84.9](https://github.com/lobehub/lobe-chat/compare/v1.84.8...v1.84.9)
<sup>Released on **2025-04-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Embeddings Format Issue with OpenAI API when using Ollama.

<br/>

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

#### What's fixed

* **misc**: Embeddings Format Issue with OpenAI API when using Ollama, closes [#7641](https://github.com/lobehub/lobe-chat/issues/7641) ([649fd82](https://github.com/lobehub/lobe-chat/commit/649fd82))

</details>

<div align="right">

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

</div>
2025-04-30 04:01:38 +00:00
loster-nimmer 649fd824b4 🐛 fix: Embeddings Format Issue with OpenAI API when using Ollama (#7641)
* added fix to src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts to get ollama vector embeddings working

* added fix to src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts to get ollama vector embeddings working

---------

Co-authored-by: Dan <loster-nimmer@thingsandstuff.xyz>
2025-04-30 11:48:03 +08:00
lobehubbot d5b4d0702c 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-29 19:18:04 +00:00
semantic-release-bot 8888f074fb 🔖 chore(release): v1.84.8 [skip ci]
### [Version&nbsp;1.84.8](https://github.com/lobehub/lobe-chat/compare/v1.84.7...v1.84.8)
<sup>Released on **2025-04-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix stdio mcp server env issue.

<br/>

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

#### What's fixed

* **misc**: Fix stdio mcp server env issue, closes [#7648](https://github.com/lobehub/lobe-chat/issues/7648) ([bad222a](https://github.com/lobehub/lobe-chat/commit/bad222a))

</details>

<div align="right">

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

</div>
2025-04-29 19:16:56 +00:00
Arvin Xu bad222a29c 🐛 fix: fix stdio mcp server env issue (#7648) 2025-04-30 03:03:20 +08:00
lobehubbot f30a99c839 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-29 17:39:26 +00:00
semantic-release-bot a29aac8cf7 🔖 chore(release): v1.84.7 [skip ci]
### [Version&nbsp;1.84.7](https://github.com/lobehub/lobe-chat/compare/v1.84.6...v1.84.7)
<sup>Released on **2025-04-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix custom provider and knowledge base crash.

<br/>

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

#### What's fixed

* **misc**: Fix custom provider and knowledge base crash, closes [#7645](https://github.com/lobehub/lobe-chat/issues/7645) ([2cbc179](https://github.com/lobehub/lobe-chat/commit/2cbc179))

</details>

<div align="right">

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

</div>
2025-04-29 17:38:19 +00:00
Arvin Xu 2cbc1790e5 🐛 fix: fix custom provider and knowledge base crash (#7645)
* fix provider issue

* fix knowledge base crash issue

* fix type
2025-04-30 01:24:40 +08:00
lobehubbot 07eda61f26 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-29 16:07:52 +00:00
semantic-release-bot 0ddf670d33 🔖 chore(release): v1.84.6 [skip ci]
### [Version&nbsp;1.84.6](https://github.com/lobehub/lobe-chat/compare/v1.84.5...v1.84.6)
<sup>Released on **2025-04-29**</sup>

#### 💄 Styles

- **misc**: Fix OpenRouter models config, improve mcp stdio custom field.

<br/>

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

#### Styles

* **misc**: Fix OpenRouter models config, closes [#7638](https://github.com/lobehub/lobe-chat/issues/7638) ([15171dd](https://github.com/lobehub/lobe-chat/commit/15171dd))
* **misc**: Improve mcp stdio custom field, closes [#7632](https://github.com/lobehub/lobe-chat/issues/7632) ([71683b7](https://github.com/lobehub/lobe-chat/commit/71683b7))

</details>

<div align="right">

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

</div>
2025-04-29 16:06:39 +00:00
sxjeru 15171dde56 💄 style: Fix OpenRouter models config (#7638)
* fix

* add models
2025-04-29 23:53:08 +08:00
Arvin Xu 71683b77be 💄 style: improve mcp stdio custom field (#7632)
* add i18n

* update
2025-04-29 16:20:42 +08:00
lobehubbot fadf15e084 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-29 07:19:16 +00:00
semantic-release-bot 6cdf966936 🔖 chore(release): v1.84.5 [skip ci]
### [Version&nbsp;1.84.5](https://github.com/lobehub/lobe-chat/compare/v1.84.4...v1.84.5)
<sup>Released on **2025-04-29**</sup>

#### 💄 Styles

- **misc**: Add Qwen3 models.

<br/>

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

#### Styles

* **misc**: Add Qwen3 models, closes [#7628](https://github.com/lobehub/lobe-chat/issues/7628) ([da05f51](https://github.com/lobehub/lobe-chat/commit/da05f51))

</details>

<div align="right">

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

</div>
2025-04-29 07:18:07 +00:00
sxjeru da05f51b8a 💄 style: Add Qwen3 models (#7628)
*  feat(qwen): 添加多个Qwen3模型配置

*  feat(qwen): 更新Qwen模型配置,添加functionCall能力并调整发布日期

*  feat(qwen): 为Qwen模型添加enableReasoning设置并更新payload处理逻辑

*  feat(qwen): support enable_thinking

* Update openrouter.ts
2025-04-29 15:04:29 +08:00
lobehubbot e9362a250a 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-28 16:44:03 +00:00
semantic-release-bot 1a2605bd87 🔖 chore(release): v1.84.4 [skip ci]
### [Version&nbsp;1.84.4](https://github.com/lobehub/lobe-chat/compare/v1.84.3...v1.84.4)
<sup>Released on **2025-04-28**</sup>

#### 💄 Styles

- **misc**: Improve stdio mcp server install experience.

<br/>

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

#### Styles

* **misc**: Improve stdio mcp server install experience, closes [#7621](https://github.com/lobehub/lobe-chat/issues/7621) ([177f7c2](https://github.com/lobehub/lobe-chat/commit/177f7c2))

</details>

<div align="right">

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

</div>
2025-04-28 16:42:56 +00:00
Arvin Xu 177f7c2938 💄 style: improve stdio mcp server install experience (#7621)
* fix mcp server

* fix mcp server

* fix

* add mcp drawer

* improve empty state

* add i18n

* improve
2025-04-29 00:29:17 +08:00
lobehubbot 8fbdaab14a 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-28 15:33:43 +00:00
semantic-release-bot 8fa258d0ff 🔖 chore(release): v1.84.3 [skip ci]
### [Version&nbsp;1.84.3](https://github.com/lobehub/lobe-chat/compare/v1.84.2...v1.84.3)
<sup>Released on **2025-04-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix mcp server stdio spawn ENOENT in electron bundle, Fix mobile agent settings and textarea scroll, Remove `gpt-4o-search-preview` unsupported parameters.

<br/>

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

#### What's fixed

* **misc**: Fix mcp server stdio spawn ENOENT in electron bundle, closes [#7616](https://github.com/lobehub/lobe-chat/issues/7616) ([e85d59b](https://github.com/lobehub/lobe-chat/commit/e85d59b))
* **misc**: Fix mobile agent settings and textarea scroll, closes [#7618](https://github.com/lobehub/lobe-chat/issues/7618) ([c45f2b0](https://github.com/lobehub/lobe-chat/commit/c45f2b0))
* **misc**: Remove `gpt-4o-search-preview` unsupported parameters, closes [#7586](https://github.com/lobehub/lobe-chat/issues/7586) ([d2060ca](https://github.com/lobehub/lobe-chat/commit/d2060ca))

</details>

<div align="right">

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

</div>
2025-04-28 15:32:27 +00:00
CanisMinor c45f2b0293 🐛 fix: Fix mobile agent settings and textarea scroll (#7618)
* 🐛 fix: Fix mobile agent settings and textarea scroll

* 🐛 fix: Fix mobile agent setting

* 💄 style: Update settings style

* 💄 style: Fix provider header title on mobile
2025-04-28 23:18:48 +08:00
Arvin Xu e85d59b62e 🐛 fix: fix mcp server stdio spawn ENOENT in electron bundle (#7616)
* fix mcp server

* fix mcp server

* fix
2025-04-28 22:01:41 +08:00
sxjeru d2060caf14 🐛 fix: Remove gpt-4o-search-preview unsupported parameters (#7586)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-04-28 21:53:46 +08:00
lobehubbot f4192d48ae 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-28 11:45:00 +00:00
semantic-release-bot e1f3525474 🔖 chore(release): v1.84.2 [skip ci]
### [Version&nbsp;1.84.2](https://github.com/lobehub/lobe-chat/compare/v1.84.1...v1.84.2)
<sup>Released on **2025-04-28**</sup>

#### 💄 Styles

- **mcp**: Support stdio env params.

<br/>

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

#### Styles

* **mcp**: Support stdio env params, closes [#7613](https://github.com/lobehub/lobe-chat/issues/7613) ([14ce360](https://github.com/lobehub/lobe-chat/commit/14ce360))

</details>

<div align="right">

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

</div>
2025-04-28 11:43:55 +00:00
Arvin Xu 14ce360da0 💄 style(mcp): support stdio env params (#7613)
* support config env

* fix lm studio

* fix height
2025-04-28 19:30:14 +08:00
lobehubbot c04a534166 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-28 10:46:50 +00:00
semantic-release-bot 13030acebe 🔖 chore(release): v1.84.1 [skip ci]
### [Version&nbsp;1.84.1](https://github.com/lobehub/lobe-chat/compare/v1.84.0...v1.84.1)
<sup>Released on **2025-04-28**</sup>

#### 💄 Styles

- **misc**: Improve hotkey for delete messages.

<br/>

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

#### Styles

* **misc**: Improve hotkey for delete messages, closes [#7599](https://github.com/lobehub/lobe-chat/issues/7599) ([af848fc](https://github.com/lobehub/lobe-chat/commit/af848fc))

</details>

<div align="right">

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

</div>
2025-04-28 10:45:34 +00:00
Tardis af848fc47c 💄 style: improve hotkey for delete messages (#7599) 2025-04-28 18:32:01 +08:00
lobehubbot 5cb3539fb8 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-28 08:44:20 +00:00
semantic-release-bot 2efbe7214f 🔖 chore(release): v1.84.0 [skip ci]
## [Version&nbsp;1.84.0](https://github.com/lobehub/lobe-chat/compare/v1.83.8...v1.84.0)
<sup>Released on **2025-04-28**</sup>

####  Features

- **misc**: Upgrade to lobe ui v2 with better design style.

<br/>

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

#### What's improved

* **misc**: Upgrade to lobe ui v2 with better design style, closes [#7238](https://github.com/lobehub/lobe-chat/issues/7238) ([6913f70](https://github.com/lobehub/lobe-chat/commit/6913f70))

</details>

<div align="right">

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

</div>
2025-04-28 08:43:14 +00:00
CanisMinor 6913f70633 feat: upgrade to lobe ui v2 with better design style (#7238)
* ♻️ refactor: migrate to @lobehub/ui v2

* 🐛 fix: Fix form

* 💄 style: Update style

* 💄 style: Update form style

*  test: Fix test

* 💄 style: Update actionbar style

* upgrade

* 💄 style: Update discover style

* 💄 style: Update ui

* 💄 style: Update darkmod

* 💄 style: Update style

* 🐛 fix: Fix review problem

* 💄 style: Fix mobile style

* 💄 style: Update modal style

* 💄 style: Update form

* 🔧 chore: Update i18n

* 💄 style: Fix preview style problem

* 🔧 chore: Update pkg
2025-04-28 16:29:41 +08:00
lobehubbot 64ef5e0407 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-28 03:21:28 +00:00
semantic-release-bot 013f3a7efa 🔖 chore(release): v1.83.8 [skip ci]
### [Version&nbsp;1.83.8](https://github.com/lobehub/lobe-chat/compare/v1.83.7...v1.83.8)
<sup>Released on **2025-04-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix cloud data sync.

<br/>

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

#### What's fixed

* **misc**: Fix cloud data sync, closes [#7600](https://github.com/lobehub/lobe-chat/issues/7600) ([1214544](https://github.com/lobehub/lobe-chat/commit/1214544))

</details>

<div align="right">

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

</div>
2025-04-28 03:20:21 +00:00
Arvin Xu 1214544a77 🐛 fix: fix cloud data sync (#7600)
* fix data sync not correctly

* try nightly build

* clean

* fix data refresh Interval throttle for desktop

* fix data refresh Interval throttle for desktop
2025-04-28 11:07:04 +08:00
lobehubbot 22944cab12 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 17:05:02 +00:00
semantic-release-bot 6a75a25e77 🔖 chore(release): v1.83.7 [skip ci]
### [Version&nbsp;1.83.7](https://github.com/lobehub/lobe-chat/compare/v1.83.6...v1.83.7)
<sup>Released on **2025-04-27**</sup>

#### 💄 Styles

- **misc**: Fix `doubao-1-5-thinking-pro-vision` endpoint calling.

<br/>

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

#### Styles

* **misc**: Fix `doubao-1-5-thinking-pro-vision` endpoint calling, closes [#7478](https://github.com/lobehub/lobe-chat/issues/7478) ([a52f7d6](https://github.com/lobehub/lobe-chat/commit/a52f7d6))

</details>

<div align="right">

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

</div>
2025-04-27 17:03:54 +00:00
Zhijie He a52f7d62b2 💄 style: fix doubao-1-5-thinking-pro-vision endpoint calling (#7478)
* 💄 style: fix `doubao-1-5-thinking-pro-vision` endpoint calling

* 🐛 fix: fix model id caps
2025-04-28 00:50:54 +08:00
Arvin Xu 48c79ad024 📝 docs: add desktop docs (#7593)
* add docs

* update docs

* add i18n
2025-04-27 21:44:18 +08:00
lobehubbot 660c0ec67e 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 12:11:41 +00:00
semantic-release-bot bcf39df51e 🔖 chore(release): v1.83.6 [skip ci]
### [Version&nbsp;1.83.6](https://github.com/lobehub/lobe-chat/compare/v1.83.5...v1.83.6)
<sup>Released on **2025-04-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop cloud sync issue.

<br/>

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

#### What's fixed

* **misc**: Fix desktop cloud sync issue, closes [#7591](https://github.com/lobehub/lobe-chat/issues/7591) ([1e68777](https://github.com/lobehub/lobe-chat/commit/1e68777))

</details>

<div align="right">

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

</div>
2025-04-27 12:10:39 +00:00
Arvin Xu 1e68777067 🐛 fix: fix desktop cloud sync issue (#7591)
* fix cloud sync

* try to fix auto updater
2025-04-27 19:58:00 +08:00
lobehubbot d719b26ef4 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 09:08:02 +00:00
semantic-release-bot 32d57a00ad 🔖 chore(release): v1.83.5 [skip ci]
### [Version&nbsp;1.83.5](https://github.com/lobehub/lobe-chat/compare/v1.83.4...v1.83.5)
<sup>Released on **2025-04-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop beta redirect uris.

<br/>

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

#### What's fixed

* **misc**: Fix desktop beta redirect uris, closes [#7589](https://github.com/lobehub/lobe-chat/issues/7589) ([9efdbf3](https://github.com/lobehub/lobe-chat/commit/9efdbf3))

</details>

<div align="right">

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

</div>
2025-04-27 09:06:56 +00:00
Arvin Xu 9efdbf36ec 🐛 fix: fix desktop beta redirect uris (#7589) 2025-04-27 16:53:53 +08:00
lobehubbot b6efc2990c 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 08:40:38 +00:00
semantic-release-bot ed5b0afb25 🔖 chore(release): v1.83.4 [skip ci]
### [Version&nbsp;1.83.4](https://github.com/lobehub/lobe-chat/compare/v1.83.3...v1.83.4)
<sup>Released on **2025-04-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix cloud connection issue.

<br/>

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

#### What's fixed

* **misc**: Fix cloud connection issue, closes [#7588](https://github.com/lobehub/lobe-chat/issues/7588) ([f572f57](https://github.com/lobehub/lobe-chat/commit/f572f57))

</details>

<div align="right">

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

</div>
2025-04-27 08:39:34 +00:00
Arvin Xu f572f57175 🐛 fix: fix cloud connection issue (#7588) 2025-04-27 16:26:41 +08:00
lobehubbot 40ef135236 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 08:01:54 +00:00
semantic-release-bot 92fb2b8acf 🔖 chore(release): v1.83.3 [skip ci]
### [Version&nbsp;1.83.3](https://github.com/lobehub/lobe-chat/compare/v1.83.2...v1.83.3)
<sup>Released on **2025-04-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>
2025-04-27 08:00:51 +00:00
Arvin Xu 9c0d87e817 👷 build: fix desktop beta release issue (#7585)
* try to fix publish

* fix

* fix release

* update

* fix build
2025-04-27 15:48:04 +08:00
lobehubbot b665411810 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 06:46:46 +00:00
semantic-release-bot 48412b0194 🔖 chore(release): v1.83.2 [skip ci]
### [Version&nbsp;1.83.2](https://github.com/lobehub/lobe-chat/compare/v1.83.1...v1.83.2)
<sup>Released on **2025-04-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>
2025-04-27 06:45:39 +00:00
Arvin Xu f3530613c0 👷 build: fix beta release (#7582)
* try to fix publish

* fix
2025-04-27 14:32:37 +08:00
lobehubbot e84c9103be 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 05:34:12 +00:00
semantic-release-bot a79bdf9c4b 🔖 chore(release): v1.83.1 [skip ci]
### [Version&nbsp;1.83.1](https://github.com/lobehub/lobe-chat/compare/v1.83.0...v1.83.1)
<sup>Released on **2025-04-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>
2025-04-27 05:33:03 +00:00
Arvin Xu b22eb31e5e 👷 build: fix beta publish (#7577) 2025-04-27 13:19:34 +08:00
lobehubbot aba9246d17 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-27 04:11:26 +00:00
semantic-release-bot df7dd904c6 🔖 chore(release): v1.83.0 [skip ci]
## [Version&nbsp;1.83.0](https://github.com/lobehub/lobe-chat/compare/v1.82.10...v1.83.0)
<sup>Released on **2025-04-27**</sup>

####  Features

- **misc**: Support desktop release framework and workflow.

<br/>

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

#### What's improved

* **misc**: Support desktop release framework and workflow, closes [#6474](https://github.com/lobehub/lobe-chat/issues/6474) ([ed97363](https://github.com/lobehub/lobe-chat/commit/ed97363))

</details>

<div align="right">

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

</div>
2025-04-27 04:10:15 +00:00
Arvin Xu ed97363255 feat: support desktop release framework and workflow (#6474)
* add desktop

fix build

update release desktop ci

improve desktop build for pr workflow

update desktop build workflow

test auto updater

fix

fix release nightly channel

support shortcut framework

improve nightly version rule

add zip release

only add mac publish

fix static file relative issue

support delete files

fix lint

enable asar

add setting open in editor in menu

add electron store framework and locale update flow

fix default searchFCModel

refactor the electron server ipc to stable mode

improve electron dev workflow

improve electron build workflow

make qwen2.5b default

improve comment workflow

fix types

refactor code

improve window size of settings/provider

路由拦截器v3.5

fix RouteIntercept issue

improve log

use productName in package.json

update

add pin list for feature flag

update

sure settings update

make ollama as default provider in desktop

fix desktop close page issue

fix desktop default variants

improve to reduce bundle

improve to reduce bundle again

improve set desktop version workflow

add nightly icons

add prebuild scripts to reduce package size

add to test prebuild

fix workflow

try to add sign and notarize for mac in workflow

try to add sign and notarize

add i18n for menu and main

update menu i18n

add i18n framework

add menu implement and setting

improve layout design for desktop

update Author

fix failed register protocol

fix prod building

fix tests

fix open error of mac and windows
improve lint

update pr comment

add service framework

add fileSearchService

improve

fix release workflow

add header

improve pr workflow fetch

improve client fetch

add linux upload workflow

improve workflow and implement

fix build electron in ci

build the desktop framework

fix build electron in ci

update tsconfig

fix desktop build workflow

finish desktop build workflow

fix workflow build steps

update workflow

test release workflow

refactor

update

update

improve loading state

refactor the 404 error

* 重构存储路径,统一到一个 lobehub-storage 下,方便未来用户自定义存储路径

* fix lint

* update

* try to fix windows open issue

* rename

* fix storage

* refactor the remote server sync

* refactor the request method

* 完成服务端同步实现逻辑

* fix lint

* save size

* refactor to make sure different instance of ipc channel

* clean log

* fix refresh

* fix tools calling

* fix auth callback issue

* update workflow

* add window ico

* push

* update

* add beta release

* fix update issue

* 完成官方实例链接

* fix

* fix stdio
2025-04-27 11:57:06 +08:00
lobehubbot 99b45f3245 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-26 17:48:57 +00:00
semantic-release-bot 3da95338d6 🔖 chore(release): v1.82.10 [skip ci]
### [Version&nbsp;1.82.10](https://github.com/lobehub/lobe-chat/compare/v1.82.9...v1.82.10)
<sup>Released on **2025-04-26**</sup>

#### 💄 Styles

- **misc**: Support `ernie-x1` & `ernie-4.5` series from Wenxin.

<br/>

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

#### Styles

* **misc**: Support `ernie-x1` & `ernie-4.5` series from Wenxin, closes [#7504](https://github.com/lobehub/lobe-chat/issues/7504) ([9a4150c](https://github.com/lobehub/lobe-chat/commit/9a4150c))

</details>

<div align="right">

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

</div>
2025-04-26 17:47:54 +00:00
Zhijie He 9a4150c789 💄 style: support ernie-x1 & ernie-4.5 series from Wenxin (#7504)
* 💄 style: support `ernie-x1-32k` model from Wenxin

* 💄 style: update model list
2025-04-27 01:35:05 +08:00
lobehubbot f29e326a84 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-26 17:14:55 +00:00
semantic-release-bot d6bd328a53 🔖 chore(release): v1.82.9 [skip ci]
### [Version&nbsp;1.82.9](https://github.com/lobehub/lobe-chat/compare/v1.82.8...v1.82.9)
<sup>Released on **2025-04-26**</sup>

#### 💄 Styles

- **misc**: Improve oidc OAuth workflow.

<br/>

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

#### Styles

* **misc**: Improve oidc OAuth workflow, closes [#7563](https://github.com/lobehub/lobe-chat/issues/7563) ([ccbe0af](https://github.com/lobehub/lobe-chat/commit/ccbe0af))

</details>

<div align="right">

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

</div>
2025-04-26 17:13:50 +00:00
Arvin Xu ccbe0afb6c 💄 style: improve oidc OAuth workflow (#7563)
* improve oidc OAuth workflow

* fix suspense

* update i18n
2025-04-27 01:00:38 +08:00
lobehubbot f6843e7d08 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-26 06:56:33 +00:00
semantic-release-bot d75a3830be 🔖 chore(release): v1.82.8 [skip ci]
### [Version&nbsp;1.82.8](https://github.com/lobehub/lobe-chat/compare/v1.82.7...v1.82.8)
<sup>Released on **2025-04-26**</sup>

#### ♻ Code Refactoring

- **misc**: Improve categories selection via SearXNG.

#### 🐛 Bug Fixes

- **http-adapter**: Extract protocol from base URL and add headers.
- **misc**: Fix oidc redirect urls.

<br/>

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

#### Code refactoring

* **misc**: Improve categories selection via SearXNG, closes [#7550](https://github.com/lobehub/lobe-chat/issues/7550) ([ac0dcd9](https://github.com/lobehub/lobe-chat/commit/ac0dcd9))

#### What's fixed

* **http-adapter**: Extract protocol from base URL and add headers, closes [#7545](https://github.com/lobehub/lobe-chat/issues/7545) ([327fd9e](https://github.com/lobehub/lobe-chat/commit/327fd9e))
* **misc**: Fix oidc redirect urls, closes [#7558](https://github.com/lobehub/lobe-chat/issues/7558) ([3013a00](https://github.com/lobehub/lobe-chat/commit/3013a00))

</details>

<div align="right">

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

</div>
2025-04-26 06:55:21 +00:00
Pollo3470 327fd9ed6b 🐛 fix(http-adapter): extract protocol from base URL and add headers (#7545) 2025-04-26 14:42:17 +08:00
Zhijie He ac0dcd9338 ♻️ refactor: improve categories selection via SearXNG (#7550) 2025-04-26 14:35:39 +08:00
Arvin Xu 3013a00832 🐛 fix: fix oidc redirect urls (#7558) 2025-04-26 14:34:17 +08:00
lobehubbot 961b9fc396 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-25 02:25:54 +00:00
semantic-release-bot cbdd65874a 🔖 chore(release): v1.82.7 [skip ci]
### [Version&nbsp;1.82.7](https://github.com/lobehub/lobe-chat/compare/v1.82.6...v1.82.7)
<sup>Released on **2025-04-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Pwa-install cause mobile infinity scroll.

<br/>

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

#### What's fixed

* **misc**: Pwa-install cause mobile infinity scroll, closes [#7521](https://github.com/lobehub/lobe-chat/issues/7521) [#7408](https://github.com/lobehub/lobe-chat/issues/7408) ([39f5bc7](https://github.com/lobehub/lobe-chat/commit/39f5bc7))

</details>

<div align="right">

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

</div>
2025-04-25 02:24:48 +00:00
YuTengjing 39f5bc7aba 🐛 fix: pwa-install cause mobile infinity scroll (#7521)
* 🐛 fix: pwa-install cause mobile infinity scroll #7408

* 🐛 fix: use dismiss install pws still render pws-install
2025-04-25 10:11:59 +08:00
lobehubbot 52ad86629e 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-24 18:23:26 +00:00
semantic-release-bot b3b3d946b3 🔖 chore(release): v1.82.6 [skip ci]
### [Version&nbsp;1.82.6](https://github.com/lobehub/lobe-chat/compare/v1.82.5...v1.82.6)
<sup>Released on **2025-04-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve stability of Cloudflare Workers AI.

<br/>

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

#### What's fixed

* **misc**: Improve stability of Cloudflare Workers AI, closes [#7450](https://github.com/lobehub/lobe-chat/issues/7450) ([3e81e56](https://github.com/lobehub/lobe-chat/commit/3e81e56))

</details>

<div align="right">

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

</div>
2025-04-24 18:22:20 +00:00
BrandonStudio 3e81e562f2 🐛 fix: Improve stability of Cloudflare Workers AI (#7450) 2025-04-25 02:09:12 +08:00
lobehubbot 728c9c0ffb 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-24 17:50:44 +00:00
semantic-release-bot d7d5e6d4ea 🔖 chore(release): v1.82.5 [skip ci]
### [Version&nbsp;1.82.5](https://github.com/lobehub/lobe-chat/compare/v1.82.4...v1.82.5)
<sup>Released on **2025-04-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Countries-and-timezones return invalid timezone.

#### 💄 Styles

- **misc**: Add avatar for server database upload to S3, removing SSO dependency for avatar management.

<br/>

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

#### What's fixed

* **misc**: Countries-and-timezones return invalid timezone, closes [#7539](https://github.com/lobehub/lobe-chat/issues/7539) [#7518](https://github.com/lobehub/lobe-chat/issues/7518) [#7542](https://github.com/lobehub/lobe-chat/issues/7542) ([bdb44a8](https://github.com/lobehub/lobe-chat/commit/bdb44a8))

#### Styles

* **misc**: Add avatar for server database upload to S3, removing SSO dependency for avatar management, closes [#7152](https://github.com/lobehub/lobe-chat/issues/7152) ([f15200d](https://github.com/lobehub/lobe-chat/commit/f15200d))

</details>

<div align="right">

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

</div>
2025-04-24 17:49:26 +00:00
Arvin Xu 99fc76b135 🔨 chore: fix tests (#7546) 2025-04-25 01:34:17 +08:00
renovate[bot] 8f9b221b34 Update dependency lucide-react to ^0.503.0 (#7484)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 01:14:54 +08:00
YuTengjing bdb44a83a7 🐛 fix: countries-and-timezones return invalid timezone (#7539)
* 🐛 fix: countries-and-timezones return invalid timezone #7518

*  test: add unit test for src/utils/server/geo.ts (#7542)

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>

---------

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-04-24 23:45:19 +08:00
RICHQAQ f15200d348 💄 style: Add avatar for server database upload to S3, removing SSO dependency for avatar management (#7152)
*  feat: 添加服务端头像上传功能,支持从 Base64 数据上传至 S3,并更新用户头像状态

* 🐛 fix: 修复更新头像后依旧有可能显示旧头像

* Undo changes of package.json and Clerk

* change message of loading to ui of loading in avatar-update

* Using the getFullFileUrl function

* fix file service

* Modify the user avatar upload and retrieval functions to support a private S3 bucket, use UUID to generate unique file names, and delete the old avatar.

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-04-24 23:45:01 +08:00
lobehubbot 86dbd974cb 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-24 03:49:12 +00:00
semantic-release-bot 7f304df75c 🔖 chore(release): v1.82.4 [skip ci]
### [Version&nbsp;1.82.4](https://github.com/lobehub/lobe-chat/compare/v1.82.3...v1.82.4)
<sup>Released on **2025-04-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix hydration error.

<br/>

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

#### What's fixed

* **misc**: Fix hydration error, closes [#7535](https://github.com/lobehub/lobe-chat/issues/7535) ([e130855](https://github.com/lobehub/lobe-chat/commit/e130855))

</details>

<div align="right">

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

</div>
2025-04-24 03:48:08 +00:00
Arvin Xu e130855d45 🐛 fix: fix hydration error (#7535)
* fix

* fix mcp type

* fix lint
2025-04-24 11:35:04 +08:00
lobehubbot afe1f052aa 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-24 03:08:54 +00:00
semantic-release-bot dd40f819c1 🔖 chore(release): v1.82.3 [skip ci]
### [Version&nbsp;1.82.3](https://github.com/lobehub/lobe-chat/compare/v1.82.2...v1.82.3)
<sup>Released on **2025-04-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix openai tools calling.

<br/>

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

#### What's fixed

* **misc**: Fix openai tools calling, closes [#7523](https://github.com/lobehub/lobe-chat/issues/7523) ([f43bd24](https://github.com/lobehub/lobe-chat/commit/f43bd24))

</details>

<div align="right">

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

</div>
2025-04-24 03:07:50 +00:00
Arvin Xu f43bd244c7 🐛 fix: fix openai tools calling (#7523) 2025-04-24 10:53:48 +08:00
lobehubbot 54bca47a29 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-23 18:50:00 +00:00
semantic-release-bot eca2be67b3 🔖 chore(release): v1.82.2 [skip ci]
### [Version&nbsp;1.82.2](https://github.com/lobehub/lobe-chat/compare/v1.82.1...v1.82.2)
<sup>Released on **2025-04-23**</sup>

#### 💄 Styles

- **misc**: Improve stdio mcp form, Update the id of some OpenAI models in OpenRouter.

<br/>

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

#### Styles

* **misc**: Improve stdio mcp form, closes [#7529](https://github.com/lobehub/lobe-chat/issues/7529) ([832b7c3](https://github.com/lobehub/lobe-chat/commit/832b7c3))
* **misc**: Update the id of some OpenAI models in OpenRouter, closes [#7524](https://github.com/lobehub/lobe-chat/issues/7524) ([39a3f5b](https://github.com/lobehub/lobe-chat/commit/39a3f5b))

</details>

<div align="right">

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

</div>
2025-04-23 18:48:52 +00:00
Arvin Xu 832b7c3ee1 💄 style: improve stdio mcp form (#7529)
* improve stdio mcp form

* update

* update

* update i18n

* remove stdio paste with web mode

* remove stdio paste with web mode

* fix

* fix lint

* fix
2025-04-24 02:35:07 +08:00
Lumia 39a3f5b335 💄 style: Update the id of some OpenAI models in OpenRouter (#7524)
部分opanai的模型id前面缺少“openai/”
2025-04-24 00:26:36 +08:00
lobehubbot f18f24e653 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-23 01:23:09 +00:00
semantic-release-bot 66dabc8bba 🔖 chore(release): v1.82.1 [skip ci]
### [Version&nbsp;1.82.1](https://github.com/lobehub/lobe-chat/compare/v1.82.0...v1.82.1)
<sup>Released on **2025-04-23**</sup>

#### 💄 Styles

- **misc**: Improve mcp server type select and fix refresh mcp manifest issue.

<br/>

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

#### Styles

* **misc**: Improve mcp server type select and fix refresh mcp manifest issue, closes [#7517](https://github.com/lobehub/lobe-chat/issues/7517) ([53d8eac](https://github.com/lobehub/lobe-chat/commit/53d8eac))

</details>

<div align="right">

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

</div>
2025-04-23 01:21:59 +00:00
Arvin Xu 53d8eac3cf 💄 style: improve mcp server type select and fix refresh mcp manifest issue (#7517)
* improve experience

* fix mcp manifest refresh issue

* improve description

* improve style

* add stdio mcp plugin

* improve experience

* fix tests

* fix tests
2025-04-23 09:07:32 +08:00
Arvin Xu 5cdf0e2146 🔨 chore: pre-merge desktop implement (#7516)
* update locale

* update code
2025-04-23 00:54:22 +08:00
lobehubbot cc5525aab9 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-22 16:41:10 +00:00
semantic-release-bot 0d93365b8d 🔖 chore(release): v1.82.0 [skip ci]
## [Version&nbsp;1.82.0](https://github.com/lobehub/lobe-chat/compare/v1.81.9...v1.82.0)
<sup>Released on **2025-04-22**</sup>

####  Features

- **misc**: Support Streamable HTTP MCP server.

<br/>

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

#### What's improved

* **misc**: Support Streamable HTTP MCP server, closes [#7511](https://github.com/lobehub/lobe-chat/issues/7511) ([35129bb](https://github.com/lobehub/lobe-chat/commit/35129bb))

</details>

<div align="right">

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

</div>
2025-04-22 16:40:03 +00:00
Arvin Xu 35129bb7c6 feat: support Streamable HTTP MCP server (#7511)
* add mcp

* feat support streamable http

* revert

* update locale

* improve style

* improve experience
2025-04-23 00:26:33 +08:00
lobehubbot c1844933ac 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-21 16:32:29 +00:00
semantic-release-bot 0e1ae3d141 🔖 chore(release): v1.81.9 [skip ci]
### [Version&nbsp;1.81.9](https://github.com/lobehub/lobe-chat/compare/v1.81.8...v1.81.9)
<sup>Released on **2025-04-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix search prompt.

<br/>

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

#### What's fixed

* **misc**: Fix search prompt, closes [#7507](https://github.com/lobehub/lobe-chat/issues/7507) ([f55b7de](https://github.com/lobehub/lobe-chat/commit/f55b7de))

</details>

<div align="right">

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

</div>
2025-04-21 16:31:22 +00:00
Arvin Xu f55b7dea2b 🐛 fix: fix search prompt (#7507)
* fix

* pre-merge local-file

* improve prompts
2025-04-22 00:17:58 +08:00
lobehubbot 3ae9fc4f09 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-21 16:09:52 +00:00
semantic-release-bot 0ad8d3e538 🔖 chore(release): v1.81.8 [skip ci]
### [Version&nbsp;1.81.8](https://github.com/lobehub/lobe-chat/compare/v1.81.7...v1.81.8)
<sup>Released on **2025-04-21**</sup>

#### 💄 Styles

- **misc**: Show token generate performance.

<br/>

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

#### Styles

* **misc**: Show token generate performance, closes [#6959](https://github.com/lobehub/lobe-chat/issues/6959) ([33c3fe7](https://github.com/lobehub/lobe-chat/commit/33c3fe7))

</details>

<div align="right">

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

</div>
2025-04-21 16:08:49 +00:00
Rylan Cai 33c3fe76c7 💄 style: show token generate performance (#6959)
* 💄 style: show token generate performance

*  test: createTokenSpeedCalculator

*  feat: add token speed for anthropic

*  test: remove speed chunk in pplx

* ♻️ refactor: rename params

* 🎨 refactor: format codes

* ♻️ refactor: del log print

* 💄 style: add tooltips

* 🌐 i18n: tps, ttft

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-04-21 23:55:56 +08:00
lobehubbot 5b617889b7 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-21 04:27:22 +00:00
semantic-release-bot 1c4d1100a9 🔖 chore(release): v1.81.7 [skip ci]
### [Version&nbsp;1.81.7](https://github.com/lobehub/lobe-chat/compare/v1.81.6...v1.81.7)
<sup>Released on **2025-04-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Together.ai fetch model list.

<br/>

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

#### What's fixed

* **misc**: Together.ai fetch model list, closes [#7498](https://github.com/lobehub/lobe-chat/issues/7498) ([bd797b8](https://github.com/lobehub/lobe-chat/commit/bd797b8))

</details>

<div align="right">

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

</div>
2025-04-21 04:26:14 +00:00
YuTengjing bd797b8f91 🐛 fix: together.ai fetch model list (#7498) 2025-04-21 12:13:05 +08:00
lobehubbot 76efb6c5b7 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-21 04:07:06 +00:00
semantic-release-bot 6986db3c3d 🔖 chore(release): v1.81.6 [skip ci]
### [Version&nbsp;1.81.6](https://github.com/lobehub/lobe-chat/compare/v1.81.5...v1.81.6)
<sup>Released on **2025-04-21**</sup>

#### 💄 Styles

- **misc**: Add hotkey for clear chat messages.

<br/>

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

#### Styles

* **misc**: Add hotkey for clear chat messages, closes [#7457](https://github.com/lobehub/lobe-chat/issues/7457) [#7319](https://github.com/lobehub/lobe-chat/issues/7319) ([28d92e6](https://github.com/lobehub/lobe-chat/commit/28d92e6))

</details>

<div align="right">

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

</div>
2025-04-21 04:05:57 +00:00
YuTengjing 28d92e67cd 💄 style: add hotkey for clear chat messages (#7457)
* ⬆️ chore: upgrade @lobehub/ui to 1.171.0

*  feat: add hotkey for clear chat messages #7319

* 👷 build: format locales after lobe-i18n

* 📝 docs: lobe-i18n update locales

* ♻️ chore: change clear current messages shortcut to option + backspace
2025-04-21 11:05:03 +08:00
Arvin Xu 38b17cf0a6 🔨 chore: add mcp client modules (#7494)
* add mcp client implement

* fix tests
2025-04-21 00:54:23 +08:00
lobehubbot 077b68928e 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-20 08:36:43 +00:00
semantic-release-bot f0724389b2 🔖 chore(release): v1.81.5 [skip ci]
### [Version&nbsp;1.81.5](https://github.com/lobehub/lobe-chat/compare/v1.81.4...v1.81.5)
<sup>Released on **2025-04-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Lock nextauth to beta.25.

<br/>

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

#### What's fixed

* **misc**: Lock nextauth to beta.25, closes [#7491](https://github.com/lobehub/lobe-chat/issues/7491) ([d1fd40d](https://github.com/lobehub/lobe-chat/commit/d1fd40d))

</details>

<div align="right">

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

</div>
2025-04-20 08:35:37 +00:00
Rylan Cai d1fd40d3ef 📌 fix: lock nextauth to beta.25 (#7491) 2025-04-20 16:22:51 +08:00
Arvin Xu 769440662d 🔨 chore: add file-loaders modules (#7488)
* update i18n model

* add @file-loaders modules

* fix test

* fix test

* add test pdf

* fix tests
2025-04-20 14:08:32 +08:00
lobehubbot 1dfd1da63e 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-19 06:24:48 +00:00
semantic-release-bot 128de22d36 🔖 chore(release): v1.81.4 [skip ci]
### [Version&nbsp;1.81.4](https://github.com/lobehub/lobe-chat/compare/v1.81.3...v1.81.4)
<sup>Released on **2025-04-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Gemini error `Tool use with function calling is unsupported`.

#### 💄 Styles

- **misc**: Support update tool calling params and trigger again.

<br/>

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

#### What's fixed

* **misc**: Gemini error `Tool use with function calling is unsupported`, closes [#7463](https://github.com/lobehub/lobe-chat/issues/7463) ([0567095](https://github.com/lobehub/lobe-chat/commit/0567095))

#### Styles

* **misc**: Support update tool calling params and trigger again, closes [#7476](https://github.com/lobehub/lobe-chat/issues/7476) ([0085e63](https://github.com/lobehub/lobe-chat/commit/0085e63))

</details>

<div align="right">

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

</div>
2025-04-19 06:23:41 +00:00
sxjeru 0567095b5d 🐛 fix: Gemini error Tool use with function calling is unsupported (#7463)
* Update index.ts

* Update index.ts

* Update index.ts
2025-04-19 14:13:48 +08:00
Arvin Xu 0085e639b8 💄 style: support update tool calling params and trigger again (#7476)
* update client ipc

* test web prebuild

* update i18n

* support update tools calling params

* add local files tools

* fix docker build flow

* fix suspense
2025-04-19 14:13:09 +08:00
lobehubbot bf84acb233 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-19 06:00:29 +00:00
semantic-release-bot d6bc13b105 🔖 chore(release): v1.81.3 [skip ci]
### [Version&nbsp;1.81.3](https://github.com/lobehub/lobe-chat/compare/v1.81.2...v1.81.3)
<sup>Released on **2025-04-19**</sup>

#### 💄 Styles

- **misc**: Update GitHub & Cloudflare models, Update Google models.

<br/>

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

#### Styles

* **misc**: Update GitHub & Cloudflare models, closes [#7453](https://github.com/lobehub/lobe-chat/issues/7453) ([4f34a62](https://github.com/lobehub/lobe-chat/commit/4f34a62))
* **misc**: Update Google models, closes [#7456](https://github.com/lobehub/lobe-chat/issues/7456) ([3199f69](https://github.com/lobehub/lobe-chat/commit/3199f69))

</details>

<div align="right">

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

</div>
2025-04-19 05:59:21 +00:00
柴米油盐的梦想 4f34a62fc1 💄 style: Update GitHub & Cloudflare models (#7453)
* 💄 style: Add GitHub models

* 💄 style: Add Cloudflare models

* 💄 style: Add GitHub models

* 💄 style: Add MAI-DS-R1 for GitHub models

* 💄 style: Update Cloudflare models

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-04-19 13:49:34 +08:00
Lumia 3199f69fb4 💄 style: Update Google models (#7456)
* Update google.ts

新增Gemini 2.5 Flash 预览版 04-17模型

* Update price
2025-04-19 13:49:26 +08:00
lobehubbot 5484c0291a 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-18 05:44:10 +00:00
semantic-release-bot 6e74ee85e9 🔖 chore(release): v1.81.2 [skip ci]
### [Version&nbsp;1.81.2](https://github.com/lobehub/lobe-chat/compare/v1.81.1...v1.81.2)
<sup>Released on **2025-04-18**</sup>

#### 💄 Styles

- **misc**: Allow folding SystemRole box.

<br/>

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

#### Styles

* **misc**: Allow folding SystemRole box, closes [#7421](https://github.com/lobehub/lobe-chat/issues/7421) ([c147df7](https://github.com/lobehub/lobe-chat/commit/c147df7))

</details>

<div align="right">

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

</div>
2025-04-18 05:43:02 +00:00
sxjeru c147df768e 💄 style: Allow folding SystemRole box (#7421)
*  feat(SystemRole): add expandable feature and improve sidebar header interaction

*  feat(SystemRole): local persistence

*  feat(SystemRole): improve style handling and event typing in SystemRoleContent
2025-04-18 10:44:42 +08:00
lobehubbot 1009330a04 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-18 02:08:45 +00:00
semantic-release-bot b1c29bc10d 🔖 chore(release): v1.81.1 [skip ci]
### [Version&nbsp;1.81.1](https://github.com/lobehub/lobe-chat/compare/v1.81.0...v1.81.1)
<sup>Released on **2025-04-18**</sup>

#### 💄 Styles

- **misc**: Add `SenseNova-V6` series & `SenseChat-Vision` support.

<br/>

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

#### Styles

* **misc**: Add `SenseNova-V6` series & `SenseChat-Vision` support, closes [#7439](https://github.com/lobehub/lobe-chat/issues/7439) ([9c8597f](https://github.com/lobehub/lobe-chat/commit/9c8597f))

</details>

<div align="right">

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

</div>
2025-04-18 02:07:38 +00:00
Zhijie He 9c8597ffc0 💄 style: add SenseNova-V6 series & SenseChat-Vision support (#7439) 2025-04-18 09:57:36 +08:00
lobehubbot ced357570a 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-17 15:58:12 +00:00
semantic-release-bot 5d9ea3b389 🔖 chore(release): v1.81.0 [skip ci]
## [Version&nbsp;1.81.0](https://github.com/lobehub/lobe-chat/compare/v1.80.5...v1.81.0)
<sup>Released on **2025-04-17**</sup>

####  Features

- **misc**: Support search1api as search provider.

<br/>

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

#### What's improved

* **misc**: Support search1api as search provider, closes [#7449](https://github.com/lobehub/lobe-chat/issues/7449) ([2738cac](https://github.com/lobehub/lobe-chat/commit/2738cac))

</details>

<div align="right">

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

</div>
2025-04-17 15:57:07 +00:00
Arvin Xu 2738cacd46 feat: support search1api as search provider (#7449)
* refactor search service

* refactor search service

* improve url rules

* update packages

* refactor to uniform the search interface

* fix tests

* refactor the search params

* add plugin state

* improve

* fix test

* fix test

* fix test
2025-04-17 23:47:04 +08:00
lobehubbot 2ceb274458 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-17 15:12:14 +00:00
semantic-release-bot 801fab177b 🔖 chore(release): v1.80.5 [skip ci]
### [Version&nbsp;1.80.5](https://github.com/lobehub/lobe-chat/compare/v1.80.4...v1.80.5)
<sup>Released on **2025-04-17**</sup>

#### 💄 Styles

- **misc**: Update 360 AI & Taichu & AI21 model list.

<br/>

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

#### Styles

* **misc**: Update 360 AI & Taichu & AI21 model list, closes [#7443](https://github.com/lobehub/lobe-chat/issues/7443) ([60c9ae2](https://github.com/lobehub/lobe-chat/commit/60c9ae2))

</details>

<div align="right">

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

</div>
2025-04-17 15:11:06 +00:00
Zhijie He 60c9ae2be9 💄 style: update 360 AI & Taichu & AI21 model list (#7443)
* 💄 style: update 360 AI & Taichu model list

* 💄 style: update Github Models list

* 💄 style: update Ai21 model list & fix ci error

* 💄 style: update GitHub models

* 🔨 chore: rollback changes for GitHub
2025-04-17 23:00:58 +08:00
lobehubbot eb7e1ea57e 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-17 13:41:12 +00:00
semantic-release-bot 5289763e1a 🔖 chore(release): v1.80.4 [skip ci]
### [Version&nbsp;1.80.4](https://github.com/lobehub/lobe-chat/compare/v1.80.3...v1.80.4)
<sup>Released on **2025-04-17**</sup>

#### 💄 Styles

- **misc**: Add o3/o4-mini models.

<br/>

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

#### Styles

* **misc**: Add o3/o4-mini models, closes [#7448](https://github.com/lobehub/lobe-chat/issues/7448) ([3fdba72](https://github.com/lobehub/lobe-chat/commit/3fdba72))

</details>

<div align="right">

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

</div>
2025-04-17 13:40:06 +00:00
sxjeru 3fdba72f00 💄 style: Add o3/o4-mini models (#7448)
* Update openai.ts

* Update azure.ts

* Update azureai.ts

* Update openrouter.ts

* Update openrouter.ts

* Update openrouter.ts

* Update github.ts

* Update groq.ts

* Update cohere.ts

* Update volcengine.ts
2025-04-17 21:29:51 +08:00
lobehubbot b6d2c31e17 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-16 15:33:48 +00:00
semantic-release-bot 03c39997c1 🔖 chore(release): v1.80.3 [skip ci]
### [Version&nbsp;1.80.3](https://github.com/lobehub/lobe-chat/compare/v1.80.2...v1.80.3)
<sup>Released on **2025-04-16**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to get user info from api.

<br/>

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

#### Code refactoring

* **misc**: Refactor to get user info from api, closes [#7444](https://github.com/lobehub/lobe-chat/issues/7444) ([4c1fb4a](https://github.com/lobehub/lobe-chat/commit/4c1fb4a))

</details>

<div align="right">

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

</div>
2025-04-16 15:32:41 +00:00
Arvin Xu 4c1fb4a084 ♻️ refactor: refactor to get user info from api (#7444)
* support get user info from api

* fix

* Update client.ts
2025-04-16 23:21:55 +08:00
Arvin Xu 4006721bff 🔨 chore: fix oidc provider proxy issue with host deployment (#7430)
* set provider proxy to true

* try to fix

* fix
2025-04-16 15:41:00 +08:00
lobehubbot bb25d542bc 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-16 04:32:27 +00:00
semantic-release-bot 8fc7cad6a6 🔖 chore(release): v1.80.2 [skip ci]
### [Version&nbsp;1.80.2](https://github.com/lobehub/lobe-chat/compare/v1.80.1...v1.80.2)
<sup>Released on **2025-04-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Update default file embedding model info.

<br/>

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

#### What's fixed

* **misc**: Update default file embedding model info, closes [#7425](https://github.com/lobehub/lobe-chat/issues/7425) ([1c6faba](https://github.com/lobehub/lobe-chat/commit/1c6faba))

</details>

<div align="right">

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

</div>
2025-04-16 04:31:13 +00:00
huangkairan 1c6fabad72 🐛 fix: update default file embedding model info (#7425) 2025-04-16 12:21:05 +08:00
Arvin Xu f1e799df3b 🔨 chore: add oidc auth for lambda route (#7426)
* add extractBearerToken utils

* add oidc auth

* improve debug log

* fix tests

* fix tests

* improve first party oauth
2025-04-16 12:20:29 +08:00
sxjeru 81d9bf33ee 💄 style: Add Llama 4 & other latest models (#7345)
* Update Checker.tsx

* fix

* finally

* Update novita.ts

* Update groq.ts

* Update google.ts

* Update volcengine.ts

* Update azure.ts

* Update azureai.ts

* Update azureai.ts

* Update novita.ts

* Update azureai.ts

* Update moonshot.ts

* fix devcontainer.json

* fix test

* Update stepfun.ts

* Update novita.ts

* Update zhipu.ts

* Update tencentcloud.ts

* Update hunyuan.ts

* Update zhipu.ts

* Update azure.ts

* Update azureai.ts

* update devcontainer.json

* Update siliconcloud.ts
2025-04-16 11:36:37 +08:00
lobehubbot edc3d2aa83 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-16 02:52:23 +00:00
semantic-release-bot cbb7ff9d18 🔖 chore(release): v1.80.1 [skip ci]
### [Version&nbsp;1.80.1](https://github.com/lobehub/lobe-chat/compare/v1.80.0...v1.80.1)
<sup>Released on **2025-04-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix model support file and image logic.

#### 💄 Styles

- **misc**: Add `step-r1` & `glm-z1` model fetch support.

<br/>

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

#### What's fixed

* **misc**: Fix model support file and image logic, closes [#7387](https://github.com/lobehub/lobe-chat/issues/7387) ([4d26885](https://github.com/lobehub/lobe-chat/commit/4d26885))

#### Styles

* **misc**: Add `step-r1` & `glm-z1` model fetch support, closes [#7420](https://github.com/lobehub/lobe-chat/issues/7420) ([4055840](https://github.com/lobehub/lobe-chat/commit/4055840))

</details>

<div align="right">

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

</div>
2025-04-16 02:51:10 +00:00
vual 4d26885a43 🐛 fix: fix model support file and image logic (#7387) 2025-04-16 10:41:10 +08:00
Zhijie He 4055840659 💄 style: add step-r1 & glm-z1 model fetch support (#7420)
* 💄 style: support `step-r1` series reasoning tag

* 💄 style: support glm-z1 series reasoning tag

* 🐛 fix: fix model fetch error from Zhipu
2025-04-16 10:40:05 +08:00
YuTengjing 0bac348a29 🚚 docs: replace old development doc with new version (#7423) 2025-04-16 10:38:02 +08:00
lobehubbot 56952021de 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-16 02:14:52 +00:00
semantic-release-bot d58260fb01 🔖 chore(release): v1.80.0 [skip ci]
## [Version&nbsp;1.80.0](https://github.com/lobehub/lobe-chat/compare/v1.79.10...v1.80.0)
<sup>Released on **2025-04-16**</sup>

#### ♻ Code Refactoring

- **misc**: Rename new feature development doc to mdx, some code optimization.

####  Features

- **misc**: Opening settings copyright i18n, regenerate migrate sql for new agent opening settings.

#### 🐛 Bug Fixes

- **misc**: Opening questions should should be hidden when no setted, opening settings migration type error.

#### 💄 Styles

- **misc**: Opening message container add border.

<br/>

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

#### Code refactoring

* **misc**: Rename new feature development doc to mdx ([892a347](https://github.com/lobehub/lobe-chat/commit/892a347))
* **misc**: Some code optimization ([47e04fa](https://github.com/lobehub/lobe-chat/commit/47e04fa))

#### What's improved

* **misc**: Opening settings copyright i18n ([27c5b45](https://github.com/lobehub/lobe-chat/commit/27c5b45))
* **misc**: Regenerate migrate sql for new agent opening settings ([961d6a1](https://github.com/lobehub/lobe-chat/commit/961d6a1))

#### What's fixed

* **misc**: Opening questions should should be hidden when no setted ([211ee5e](https://github.com/lobehub/lobe-chat/commit/211ee5e))
* **misc**: Opening settings migration type error ([72cf00e](https://github.com/lobehub/lobe-chat/commit/72cf00e))

#### Styles

* **misc**: Opening message container add border ([63b96c7](https://github.com/lobehub/lobe-chat/commit/63b96c7))

</details>

<div align="right">

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

</div>
2025-04-16 02:13:46 +00:00
YuTengjing a64746a5a0 Merge pull request #7382 from lobehub/tj/feat/guide-message
 feat: agent opening settings
2025-04-16 10:03:58 +08:00
YuTengjing 892a347c79 🚚 refactor: rename new feature development doc to mdx 2025-04-15 17:49:04 +08:00
YuTengjing 9097aba9e3 📝 docs: add new feature development doc 2025-04-15 17:39:52 +08:00
lobehubbot 5f603be878 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-15 03:28:27 +00:00
semantic-release-bot ada7b23528 🔖 chore(release): v1.79.10 [skip ci]
### [Version&nbsp;1.79.10](https://github.com/lobehub/lobe-chat/compare/v1.79.9...v1.79.10)
<sup>Released on **2025-04-15**</sup>

#### 💄 Styles

- **misc**: Make gpt-4.1-mini default model.

<br/>

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

#### Styles

* **misc**: Make gpt-4.1-mini default model, closes [#7414](https://github.com/lobehub/lobe-chat/issues/7414) ([724fcee](https://github.com/lobehub/lobe-chat/commit/724fcee))

</details>

<div align="right">

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

</div>
2025-04-15 03:27:23 +00:00
Arvin Xu 724fcee10a 💄 style: make gpt-4.1-mini default model (#7414)
* update default model to gpt-4.1-mini

* fix test

* fix test
2025-04-15 11:17:14 +08:00
lobehubbot 0dc2e8f970 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-15 02:31:33 +00:00
semantic-release-bot ced3b5a1fb 🔖 chore(release): v1.79.9 [skip ci]
### [Version&nbsp;1.79.9](https://github.com/lobehub/lobe-chat/compare/v1.79.8...v1.79.9)
<sup>Released on **2025-04-15**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor trpc to have a clear obligation.

#### 💄 Styles

- **misc**: Add GPT-4.1 models.

<br/>

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

#### Code refactoring

* **misc**: Refactor trpc to have a clear obligation, closes [#7412](https://github.com/lobehub/lobe-chat/issues/7412) ([01c0120](https://github.com/lobehub/lobe-chat/commit/01c0120))

#### Styles

* **misc**: Add GPT-4.1 models, closes [#7410](https://github.com/lobehub/lobe-chat/issues/7410) ([3c4d7df](https://github.com/lobehub/lobe-chat/commit/3c4d7df))

</details>

<div align="right">

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

</div>
2025-04-15 02:30:25 +00:00
YuTengjing 47e04fa171 ♻️ refactor: some code optimization 2025-04-15 10:28:24 +08:00
sxjeru 3c4d7dff75 💄 style: Add GPT-4.1 models (#7410)
* Update openai.ts

* Update openai.ts

* Update openai.ts
2025-04-15 10:20:34 +08:00
Arvin Xu 01c0120ab2 ♻️ refactor: refactor trpc to have a clear obligation (#7412)
* refactor trpc

* refactor trpc folder

* improve test

* improve code

* improve code
2025-04-15 10:18:37 +08:00
Arvin Xu 5425068913 🔨 chore: improve OIDC code challenge workflow (#7397)
* improve code

* improve code

* fix auth route issue

* fix Interaction not find Session

* fix all flow

* fix error

* refactor

* fix oidc token flow

* fix oidc token flow

* update i18n

* improve auth page

* fix test

* fix test

* refactor components
2025-04-14 22:46:12 +08:00
YuTengjing 27c5b45a0e 🌐 feat: opening settings copyright i18n 2025-04-14 19:59:19 +08:00
YuTengjing 64d23f4c38 test: update snapshots 2025-04-14 16:11:58 +08:00
YuTengjing 63b96c7e43 💄 style: opening message container add border 2025-04-14 15:52:11 +08:00
YuTengjing 211ee5e1fe 🐛 fix: opening questions should should be hidden when no setted 2025-04-14 12:16:32 +08:00
YuTengjing 961d6a1673 feat: regenerate migrate sql for new agent opening settings 2025-04-14 12:02:10 +08:00
YuTengjing 6002e823e2 Merge branch 'main' of github.com:lobehub/lobe-chat into tj/feat/guide-message 2025-04-14 11:34:06 +08:00
YuTengjing 72cf00e52e 🐛 fix: opening settings migration type error 2025-04-14 11:24:29 +08:00
lobehubbot f3d5d40512 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-12 17:00:50 +00:00
semantic-release-bot 21f97c5f27 🔖 chore(release): v1.79.8 [skip ci]
### [Version&nbsp;1.79.8](https://github.com/lobehub/lobe-chat/compare/v1.79.7...v1.79.8)
<sup>Released on **2025-04-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix Azure OpenAI unable to process image messages in local s3.

<br/>

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

#### What's fixed

* **misc**: Fix Azure OpenAI unable to process image messages in local s3, closes [#7385](https://github.com/lobehub/lobe-chat/issues/7385) ([c98c0f8](https://github.com/lobehub/lobe-chat/commit/c98c0f8))

</details>

<div align="right">

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

</div>
2025-04-12 16:59:43 +00:00
Zwlin c98c0f8c08 🐛 fix: fix Azure OpenAI unable to process image messages in local s3 (#7385) 2025-04-13 00:49:45 +08:00
Arvin Xu b12b24018e 🔨 chore: add OAuth 2.0 and OIDC core implement (#7380)
* add oidc implement

* add oidc implement

* update

* update

* migration db

* improve

* improve scripts

* update

* 解决 auth 302 跳转的问题

* 完成 policy 实现调试

* improve middleware log

* 初步完成 auth 授权实现

* 初步完成 auth 授权实现

* fix adapter

* add adapter tests

* refactor with http adapter

* refactor for oidc service

* finish oauth 授权基础实现

* 区分 backend 入口与 client 页面入口

* add i18n

* update db schema

* fix lint

* improve

* fix tests and update i18n

* improve db adaptor

* fix tests

* fix tests

* fix tests
2025-04-13 00:49:31 +08:00
YuTengjing a614e3e53d feat: agent opening settings 2025-04-12 10:29:09 +08:00
lobehubbot 3014dfcc16 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-11 04:51:31 +00:00
semantic-release-bot a5694814e4 🔖 chore(release): v1.79.7 [skip ci]
### [Version&nbsp;1.79.7](https://github.com/lobehub/lobe-chat/compare/v1.79.6...v1.79.7)
<sup>Released on **2025-04-11**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor hotkey import to avoid db generate error.

<br/>

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

#### Code refactoring

* **misc**: Refactor hotkey import to avoid db generate error, closes [#7374](https://github.com/lobehub/lobe-chat/issues/7374) ([b91e4c2](https://github.com/lobehub/lobe-chat/commit/b91e4c2))

</details>

<div align="right">

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

</div>
2025-04-11 04:50:26 +00:00
Arvin Xu b91e4c23c8 ♻️ refactor: refactor hotkey import to avoid db generate error (#7374) 2025-04-11 12:40:33 +08:00
Arvin Xu e233416b38 🔨 chore: improve summary history tracing (#7372)
* 优化 summary History 性能

* fix

* add online search document
2025-04-11 11:50:59 +08:00
lobehubbot b0c2e2f222 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-11 03:48:31 +00:00
semantic-release-bot 5d15e3f321 🔖 chore(release): v1.79.6 [skip ci]
### [Version&nbsp;1.79.6](https://github.com/lobehub/lobe-chat/compare/v1.79.5...v1.79.6)
<sup>Released on **2025-04-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix `grok-3-mini` series calling.

<br/>

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

#### What's fixed

* **misc**: Fix `grok-3-mini` series calling, closes [#7371](https://github.com/lobehub/lobe-chat/issues/7371) ([523c605](https://github.com/lobehub/lobe-chat/commit/523c605))

</details>

<div align="right">

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

</div>
2025-04-11 03:47:16 +00:00
Zhijie He 523c605a3b 🐛 fix: fix grok-3-mini series calling (#7371) 2025-04-11 11:36:21 +08:00
TianLun Song 871b205bab 📝 docs: add online-search documents (#7365)
* Create searx.mdx

* ass searxng json output

* Update searx.mdx

* Rename searx.mdx to online-search.zh-CN.mdx
2025-04-11 10:17:00 +08:00
lobehubbot 75577ef629 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-10 17:22:10 +00:00
semantic-release-bot bd58658d6e 🔖 chore(release): v1.79.5 [skip ci]
### [Version&nbsp;1.79.5](https://github.com/lobehub/lobe-chat/compare/v1.79.4...v1.79.5)
<sup>Released on **2025-04-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix langfuse intergation.

<br/>

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

#### What's fixed

* **misc**: Fix langfuse intergation, closes [#7367](https://github.com/lobehub/lobe-chat/issues/7367) ([22b5236](https://github.com/lobehub/lobe-chat/commit/22b5236))

</details>

<div align="right">

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

</div>
2025-04-10 17:21:06 +00:00
Arvin Xu 22b52362b2 🐛 fix: fix langfuse intergation (#7367)
* improve test

* refactor langfuse integration

* improve langfuse integration

* fix tests
2025-04-11 01:11:01 +08:00
lobehubbot e5054d03eb 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-10 04:52:47 +00:00
semantic-release-bot 5c2e347e30 🔖 chore(release): v1.79.4 [skip ci]
### [Version&nbsp;1.79.4](https://github.com/lobehub/lobe-chat/compare/v1.79.3...v1.79.4)
<sup>Released on **2025-04-10**</sup>

#### 💄 Styles

- **misc**: Update Grok 3 models.

<br/>

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

#### Styles

* **misc**: Update Grok 3 models, closes [#7360](https://github.com/lobehub/lobe-chat/issues/7360) ([d2b9120](https://github.com/lobehub/lobe-chat/commit/d2b9120))

</details>

<div align="right">

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

</div>
2025-04-10 04:51:41 +00:00
sxjeru d2b91206f3 💄 style: Update Grok 3 models (#7360) 2025-04-10 12:41:44 +08:00
lobehubbot 50b93c8386 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-10 03:16:27 +00:00
semantic-release-bot ebdd2280dd 🔖 chore(release): v1.79.3 [skip ci]
### [Version&nbsp;1.79.3](https://github.com/lobehub/lobe-chat/compare/v1.79.2...v1.79.3)
<sup>Released on **2025-04-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Remove Azure AI o3-mini unsupported parameters.

<br/>

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

#### What's fixed

* **misc**: Remove Azure AI o3-mini unsupported parameters, closes [#7355](https://github.com/lobehub/lobe-chat/issues/7355) ([fe0711f](https://github.com/lobehub/lobe-chat/commit/fe0711f))

</details>

<div align="right">

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

</div>
2025-04-10 03:15:20 +00:00
sxjeru fe0711fe24 🐛 fix: Remove Azure AI o3-mini unsupported parameters (#7355)
* Update index.ts

* Update index.ts

* Update index.ts
2025-04-10 11:05:28 +08:00
Arvin Xu f57f7af1b8 👷 build: add desktop workflow and pre-merge desktop code (#7361)
* add desktop workflow code

* add desktop relative code

* Update pr-release-body.js
2025-04-10 10:47:05 +08:00
Arvin Xu 88a7149a58 🔨 chore: upgrade nextjs@15.3.0 (#7359)
* upgrade nextjs

* just remove turbopack
2025-04-10 10:43:56 +08:00
lobehubbot 042f7a4bef 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-09 14:46:19 +00:00
semantic-release-bot ae2580c6c8 🔖 chore(release): v1.79.2 [skip ci]
### [Version&nbsp;1.79.2](https://github.com/lobehub/lobe-chat/compare/v1.79.1...v1.79.2)
<sup>Released on **2025-04-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix env for Tencent Cloud & remove `deepseek-v3` series fc tag.

<br/>

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

#### What's fixed

* **misc**: Fix env for Tencent Cloud & remove `deepseek-v3` series fc tag, closes [#7354](https://github.com/lobehub/lobe-chat/issues/7354) ([fe26d76](https://github.com/lobehub/lobe-chat/commit/fe26d76))

</details>

<div align="right">

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

</div>
2025-04-09 14:45:11 +00:00
Zhijie He fe26d76ff0 🐛 fix: fix env for Tencent Cloud & remove deepseek-v3 series fc tag (#7354)
* 🐛 fix: fix env for Tencent Cloud & remove `deepseek-v3` series fc tag

* 🔨 chore: cleanup code
2025-04-09 22:34:58 +08:00
lobehubbot 0f541515e6 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-09 14:11:43 +00:00
semantic-release-bot b781cee82d 🔖 chore(release): v1.79.1 [skip ci]
### [Version&nbsp;1.79.1](https://github.com/lobehub/lobe-chat/compare/v1.79.0...v1.79.1)
<sup>Released on **2025-04-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix xAI API calling, not support `stream_options`.

<br/>

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

#### What's fixed

* **misc**: Fix xAI API calling, not support `stream_options`, closes [#7353](https://github.com/lobehub/lobe-chat/issues/7353) ([cc0680d](https://github.com/lobehub/lobe-chat/commit/cc0680d))

</details>

<div align="right">

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

</div>
2025-04-09 14:10:32 +00:00
Zhijie He cc0680d645 🐛 fix: fix xAI API calling, not support stream_options (#7353)
* 🐛 fix: fix xAI API calling, not support `stream_options`

* 🐛 fix: try to fix ci error
2025-04-09 21:59:16 +08:00
lobehubbot c9f451762c 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-09 12:39:45 +00:00
semantic-release-bot a04c39cc9a 🔖 chore(release): v1.79.0 [skip ci]
## [Version&nbsp;1.79.0](https://github.com/lobehub/lobe-chat/compare/v1.78.0...v1.79.0)
<sup>Released on **2025-04-09**</sup>

####  Features

- **misc**: Add wiki migrate instructions.

<br/>

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

#### What's improved

* **misc**: Add wiki migrate instructions ([8279340](https://github.com/lobehub/lobe-chat/commit/8279340))

</details>

<div align="right">

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

</div>
2025-04-09 12:38:38 +00:00
YuTengjing b6d6af80d9 Merge pull request #7352 from lobehub/tj/fix/development-docs
Some final work of contributing docs migration
2025-04-09 20:28:39 +08:00
YuTengjing 778912363e 📝 docs: some markdown format optimization 2025-04-09 20:26:39 +08:00
YuTengjing 6d22583d9c 📝 docs: remove table of contents from documentation files 2025-04-09 20:14:57 +08:00
YuTengjing 8279340f8a feat: add wiki migrate instructions 2025-04-09 20:14:57 +08:00
YuTengjing 2e763f808c ♻️ chore: update database schema docs path from developer to development 2025-04-09 20:14:57 +08:00
YuTengjing bab38e0bcc 📝 docs: move contributing docs to docs/development and deploy to lobehub (#7349)
* 🗑️ chore: remove unused helpers folder

* 📝 docs: Update Lobe Chat API to latest architecture

* 📝 docs: Update contributing guidelines to include style checking section and improve clarity

* 📝 docs: Update application description from "AI conversation" to "AI chat" for clarity in architecture documentation

* 📝 docs: Update State Management introduction to clarify merging process in useSessionStore hook

* 📝 docs: optimize content order

* ♻️ docs: move contributing folder to docs/development

* 📝 docs: unify TOC header format and fix relative links

* ♻️ docs: rename docs/development from md to mdx

* 📝 docs: remove useless .mdx extension in page link

* 📝 docs: fix relative links

*  chore: remove useless wiki-sync workflow
2025-04-09 19:17:12 +08:00
lobehubbot 0ba30476bd 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-09 08:38:29 +00:00
semantic-release-bot e0db5dfd82 🔖 chore(release): v1.78.0 [skip ci]
## [Version&nbsp;1.78.0](https://github.com/lobehub/lobe-chat/compare/v1.77.18...v1.78.0)
<sup>Released on **2025-04-09**</sup>

####  Features

- **misc**: Add Keycloak SSO provider support.

<br/>

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

#### What's improved

* **misc**: Add Keycloak SSO provider support, closes [#7342](https://github.com/lobehub/lobe-chat/issues/7342) ([f739425](https://github.com/lobehub/lobe-chat/commit/f739425))

</details>

<div align="right">

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

</div>
2025-04-09 08:37:25 +00:00
0xff26b9a8 f739425191 feat: Add Keycloak SSO provider support (#7342)
*  feat: Add Keycloak SSO provider support

- Implemented Keycloak authentication flow
- Added configuration options for Keycloak server

* 🔥 chore: remove unused environment variables

- Removed deprecated configuration options

* 📝 docs: add documentation for Keycloak SSO provider

- Added setup instructions for Keycloak integration
- Documented required environment variables
- Updated main SSO documentation to include Keycloak option

* 🔍 fix: correct documentation issues and remove redundant comments

- Fixed formatting in Keycloak SSO documentation
- Removed outdated comments in authentication code
2025-04-09 16:27:02 +08:00
lobehubbot d5539dee26 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-09 04:54:32 +00:00
semantic-release-bot 896c3f1df9 🔖 chore(release): v1.77.18 [skip ci]
### [Version&nbsp;1.77.18](https://github.com/lobehub/lobe-chat/compare/v1.77.17...v1.77.18)
<sup>Released on **2025-04-09**</sup>

#### 💄 Styles

- **misc**: Add `time_range` & `categories` support for SearXNG.

<br/>

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

#### Styles

* **misc**: Add `time_range` & `categories` support for SearXNG, closes [#6813](https://github.com/lobehub/lobe-chat/issues/6813) ([9e4cd8c](https://github.com/lobehub/lobe-chat/commit/9e4cd8c))

</details>

<div align="right">

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

</div>
2025-04-09 04:53:25 +00:00
Zhijie He 9e4cd8cbe5 💄 style: add time_range & categories support for SearXNG (#6813)
*  feat: add time_range support for SearXNG

* ♻️ refactor: refactor SearXNG params

* ♻️ refactor: refactor search retry logic

*  feat: add `categories` support for SearXNG

* 🔨 chore: update system prompt

* 🐛 fix: fix build error

* 💄 style: optimize CategoryAvatar display

* 💄 style: update CategoryAvatar style

* 🔨 chore: update system prompt

* 🔨 chore: add `img_src` to SearchContent

* 🔨 chore: support more details info, `publishedDate`, `thumbnail`

* 🐛 fix: fix ci error

* 🔨 chore: update system prompt

* 💄 style: improve mobile view, if engines is empty

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-04-09 10:22:08 +08:00
YuTengjing d60f7f531a 📝 docs: improve contributing docs (#7335)
* 🗑️ chore: remove unused helpers folder

* 📝 docs: Update Lobe Chat API to latest architecture

* 📝 docs: Update contributing guidelines to include style checking section and improve clarity

* 📝 docs: Update application description from "AI conversation" to "AI chat" for clarity in architecture documentation

* 📝 docs: Update State Management introduction to clarify merging process in useSessionStore hook

* 📝 docs: optimize content order
2025-04-08 22:23:16 +08:00
lobehubbot a1aa0547b2 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-08 05:45:53 +00:00
semantic-release-bot ce1f276d5c 🔖 chore(release): v1.77.17 [skip ci]
### [Version&nbsp;1.77.17](https://github.com/lobehub/lobe-chat/compare/v1.77.16...v1.77.17)
<sup>Released on **2025-04-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Refactor ollama pull flow and model service.

<br/>

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

#### What's fixed

* **misc**: Refactor ollama pull flow and model service, closes [#7330](https://github.com/lobehub/lobe-chat/issues/7330) ([44d63b8](https://github.com/lobehub/lobe-chat/commit/44d63b8))

</details>

<div align="right">

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

</div>
2025-04-08 05:44:39 +00:00
Arvin Xu 21bc0f88f1 💄 style: improve ollama desktop setup guide (#7332)
* add ollama desktop guide

* update i18n

* fix OpenRouter models fetch
2025-04-08 11:36:10 +08:00
Arvin Xu 44d63b87a6 🐛 fix: refactor ollama pull flow and model service (#7330)
* refactor ollama pull flow and model service

* fix key vaults error

* refactor ollama model fetcher

* improve auto refresh for models

* fix error detail

* fix model fetch

* fix model fetch

* fix model checker

* fix model client fetch issue
2025-04-08 10:10:08 +08:00
Rylan Cai 422f8f5aa8 📌 chore: lock casdoor to v1.843 (#7331)
* 📌 pin: lock casdoor to v1.843

* 📝 docs: link to pr
2025-04-08 00:42:18 +08:00
lobehubbot 0b04da6bec 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-06 17:52:39 +00:00
semantic-release-bot cb5118d615 🔖 chore(release): v1.77.16 [skip ci]
### [Version&nbsp;1.77.16](https://github.com/lobehub/lobe-chat/compare/v1.77.15...v1.77.16)
<sup>Released on **2025-04-06**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the file service.

<br/>

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

#### Code refactoring

* **misc**: Refactor the file service, closes [#7323](https://github.com/lobehub/lobe-chat/issues/7323) ([3721b88](https://github.com/lobehub/lobe-chat/commit/3721b88))

</details>

<div align="right">

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

</div>
2025-04-06 17:51:33 +00:00
Arvin Xu 3721b883d5 ♻️ refactor: refactor the file service (#7323)
* refactor the file service

* refactor to impls mode
2025-04-07 01:41:26 +08:00
gru-agent[bot] aeab079a23 Add unit tests for electronDevtoolsService to verify openDevtools functionality. (#7297) 2025-04-06 20:13:41 +08:00
lobehubbot 9c6a133dd9 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-06 07:55:22 +00:00
semantic-release-bot 2a11fd783e 🔖 chore(release): v1.77.15 [skip ci]
### [Version&nbsp;1.77.15](https://github.com/lobehub/lobe-chat/compare/v1.77.14...v1.77.15)
<sup>Released on **2025-04-06**</sup>

#### ♻ Code Refactoring

- **misc**: Improve public procedure implement.

<br/>

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

#### Code refactoring

* **misc**: Improve public procedure implement, closes [#7314](https://github.com/lobehub/lobe-chat/issues/7314) ([1b28230](https://github.com/lobehub/lobe-chat/commit/1b28230))

</details>

<div align="right">

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

</div>
2025-04-06 07:54:13 +00:00
Arvin Xu 1b28230823 ♻️ refactor: improve public procedure implement (#7314) 2025-04-06 15:44:03 +08:00
Rylan Cai 70f474a3bb 🔨 chore: Correcting the env example url (#7313) 2025-04-06 14:35:37 +08:00
lobehubbot 5137786410 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-06 06:24:48 +00:00
semantic-release-bot 775c30bdf9 🔖 chore(release): v1.77.14 [skip ci]
### [Version&nbsp;1.77.14](https://github.com/lobehub/lobe-chat/compare/v1.77.13...v1.77.14)
<sup>Released on **2025-04-06**</sup>

#### 💄 Styles

- **misc**: Add `ernie-x1-32k-preview` support for Wenxin.

<br/>

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

#### Styles

* **misc**: Add `ernie-x1-32k-preview` support for Wenxin, closes [#7302](https://github.com/lobehub/lobe-chat/issues/7302) ([8e8337c](https://github.com/lobehub/lobe-chat/commit/8e8337c))

</details>

<div align="right">

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

</div>
2025-04-06 06:23:40 +00:00
gru-agent[bot] 2e5d830740 Add unit tests for the toDbSessionId method in ServerService. (#6961) 2025-04-06 14:13:45 +08:00
Zhijie He 8e8337c4d1 💄 style: add ernie-x1-32k-preview support for Wenxin (#7302) 2025-04-06 14:12:19 +08:00
renovate[bot] cc3fb76972 Update dependency lucide-react to ^0.487.0 (#7305) 2025-04-06 14:11:42 +08:00
lobehubbot be7ec0146c 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-06 05:12:16 +00:00
semantic-release-bot 170b386526 🔖 chore(release): v1.77.13 [skip ci]
### [Version&nbsp;1.77.13](https://github.com/lobehub/lobe-chat/compare/v1.77.12...v1.77.13)
<sup>Released on **2025-04-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix data not show correctly in 1.77.11.

<br/>

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

#### What's fixed

* **misc**: Fix data not show correctly in 1.77.11, closes [#7311](https://github.com/lobehub/lobe-chat/issues/7311) ([d99ca04](https://github.com/lobehub/lobe-chat/commit/d99ca04))

</details>

<div align="right">

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

</div>
2025-04-06 05:11:13 +00:00
Arvin Xu d99ca04dba 🐛 fix: fix data not show correctly in 1.77.11 (#7311) 2025-04-06 13:01:05 +08:00
lobehubbot 15398554aa 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-06 04:21:15 +00:00
semantic-release-bot 5ecf1c3156 🔖 chore(release): v1.77.12 [skip ci]
### [Version&nbsp;1.77.12](https://github.com/lobehub/lobe-chat/compare/v1.77.11...v1.77.12)
<sup>Released on **2025-04-06**</sup>

#### 💄 Styles

- **misc**: Fix QVQ Max model, support default config for system agent and pre-merge some desktop code.

<br/>

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

#### Styles

* **misc**: Fix QVQ Max model, closes [#7289](https://github.com/lobehub/lobe-chat/issues/7289) ([540aaf6](https://github.com/lobehub/lobe-chat/commit/540aaf6))
* **misc**: Support default config for system agent and pre-merge some desktop code, closes [#7296](https://github.com/lobehub/lobe-chat/issues/7296) ([addea48](https://github.com/lobehub/lobe-chat/commit/addea48))

</details>

<div align="right">

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

</div>
2025-04-06 04:20:02 +00:00
Arvin Xu addea48b52 💄 style: support default config for system agent and pre-merge some desktop code (#7296)
* refactor

* update

* improve scripts

* fix changelog issue

* improve system agent config

* fix tests

* update scripts

* update ollama models

* Update ollama.ts
2025-04-06 12:09:57 +08:00
sxjeru 540aaf681f 💄 style: fix QVQ Max model (#7289)
* Update qwen.ts

* Update novita.ts

* Update novita.ts

* Update google.ts

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-04-06 12:03:59 +08:00
WindSpiritSR 459c2fa452 📝 docs: Update PROXY_URL and ENABLE_PROXY_DNS (#7304)
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2025-04-06 11:09:56 +08:00
Arvin Xu a63e1f0ab7 🔨 chore: pre-merge some desktop relative code to check stable (#7294)
* pre some electron update code

* update chat test

* update i18n

* update code

* fix desktop hotkey display

* fix test ahead
2025-04-04 22:33:48 +08:00
lobehubbot 05a05be81e 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-04 07:19:21 +00:00
semantic-release-bot 6eee6d1193 🔖 chore(release): v1.77.11 [skip ci]
### [Version&nbsp;1.77.11](https://github.com/lobehub/lobe-chat/compare/v1.77.10...v1.77.11)
<sup>Released on **2025-04-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix fetch issue in offline mode and make jina crawler first.

<br/>

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

#### What's fixed

* **misc**: Fix fetch issue in offline mode and make jina crawler first, closes [#7288](https://github.com/lobehub/lobe-chat/issues/7288) ([6bed7a3](https://github.com/lobehub/lobe-chat/commit/6bed7a3))

</details>

<div align="right">

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

</div>
2025-04-04 07:18:17 +00:00
Arvin Xu 6bed7a3fe4 🐛 fix: fix fetch issue in offline mode and make jina crawler first (#7288)
* fix Assistant and plugin loading in offline mode

* fix Assistant and plugin loading in offline mode

* improve ollama setup

* make jina as default impls
2025-04-04 15:08:15 +08:00
lobehubbot 4e89aebdef 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-03 16:19:55 +00:00
semantic-release-bot 7c1470b2d0 🔖 chore(release): v1.77.10 [skip ci]
### [Version&nbsp;1.77.10](https://github.com/lobehub/lobe-chat/compare/v1.77.9...v1.77.10)
<sup>Released on **2025-04-03**</sup>

#### 🐛 Bug Fixes

- **web-crawler**: Remove unnecessary urlTransform for YouTube links.

<br/>

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

#### What's fixed

* **web-crawler**: Remove unnecessary urlTransform for YouTube links, closes [#7285](https://github.com/lobehub/lobe-chat/issues/7285) ([220bca0](https://github.com/lobehub/lobe-chat/commit/220bca0))

</details>

<div align="right">

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

</div>
2025-04-03 16:18:47 +00:00
wang2 220bca0b1c 🐛 fix(web-crawler): remove unnecessary urlTransform for YouTube links (#7285) 2025-04-04 00:07:46 +08:00
lobehubbot 12c34b0e1f 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-03 07:10:18 +00:00
semantic-release-bot 9a623383d3 🔖 chore(release): v1.77.9 [skip ci]
### [Version&nbsp;1.77.9](https://github.com/lobehub/lobe-chat/compare/v1.77.8...v1.77.9)
<sup>Released on **2025-04-03**</sup>

#### 💄 Styles

- **web-crawler**: Add special support for YouTube,Reddit and WeChat links.
- **misc**: Add QVQ-Max model.

<br/>

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

#### Styles

* **web-crawler**: Add special support for YouTube,Reddit and WeChat links, closes [#7251](https://github.com/lobehub/lobe-chat/issues/7251) ([8f0da93](https://github.com/lobehub/lobe-chat/commit/8f0da93))
* **misc**: Add QVQ-Max model, closes [#7258](https://github.com/lobehub/lobe-chat/issues/7258) ([2be019c](https://github.com/lobehub/lobe-chat/commit/2be019c))

</details>

<div align="right">

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

</div>
2025-04-03 07:09:13 +00:00
sxjeru 2be019c38f 💄 style: Add QVQ-Max model (#7258)
* Update qwen.ts

* Update qwen.ts

* Update novita.ts

* update snaps

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-04-03 14:34:28 +08:00
wang2 8f0da93a75 💄 style(web-crawler): add special support for YouTube,Reddit and WeChat links (#7251)
* feat(web-crawler): add support for YouTube and Reddit links

* feat(web-crawler): use search1api for WeChat Official Account links

* feat(web-crawler): add jina for WeChat Official Account links
2025-04-03 14:33:30 +08:00
lobehubbot 8d80511868 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-03 03:54:55 +00:00
semantic-release-bot 3076cf3335 🔖 chore(release): v1.77.8 [skip ci]
### [Version&nbsp;1.77.8](https://github.com/lobehub/lobe-chat/compare/v1.77.7...v1.77.8)
<sup>Released on **2025-04-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Add `SEARCH1API_CRAWL_API_KEY` env.

#### 💄 Styles

- **misc**: Auto refresh TokenTag count.

<br/>

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

#### What's fixed

* **misc**: Add `SEARCH1API_CRAWL_API_KEY` env, closes [#7270](https://github.com/lobehub/lobe-chat/issues/7270) ([85e8ff1](https://github.com/lobehub/lobe-chat/commit/85e8ff1))

#### Styles

* **misc**: Auto refresh TokenTag count, closes [#7011](https://github.com/lobehub/lobe-chat/issues/7011) ([9d62451](https://github.com/lobehub/lobe-chat/commit/9d62451))

</details>

<div align="right">

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

</div>
2025-04-03 03:53:46 +00:00
sxjeru 9d624516c7 💄 style: auto refresh TokenTag count (#7011)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-04-03 11:43:49 +08:00
Arvin Xu 85e8ff1644 🐛 fix: add SEARCH1API_CRAWL_API_KEY env (#7270) 2025-04-03 11:41:19 +08:00
lobehubbot c89de786b5 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-03 03:03:47 +00:00
semantic-release-bot c3bb0abc59 🔖 chore(release): v1.77.7 [skip ci]
### [Version&nbsp;1.77.7](https://github.com/lobehub/lobe-chat/compare/v1.77.6...v1.77.7)
<sup>Released on **2025-04-03**</sup>

#### ♻ Code Refactoring

- **misc**: Add desktop-release workflow and improve code.

<br/>

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

#### Code refactoring

* **misc**: Add desktop-release workflow and improve code, closes [#7265](https://github.com/lobehub/lobe-chat/issues/7265) ([773d5dd](https://github.com/lobehub/lobe-chat/commit/773d5dd))

</details>

<div align="right">

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

</div>
2025-04-03 03:02:41 +00:00
Arvin Xu 773d5dd1f9 ♻️ refactor: add desktop-release workflow and improve code (#7265)
* update

* fix tests

* add Release Desktop workflow

* fix tests

* fix coverage config

* fix coverage config

* fix coverage server test config
2025-04-03 10:52:47 +08:00
Arvin Xu b40caee32c 🔨 chore: add desktop pre-code to validate build process (#7261)
* add code

* fix lint

* fix tests
2025-04-02 09:31:08 +08:00
lobehubbot 5897d9e106 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-01 13:04:17 +00:00
semantic-release-bot cbfb4660cc 🔖 chore(release): v1.77.6 [skip ci]
### [Version&nbsp;1.77.6](https://github.com/lobehub/lobe-chat/compare/v1.77.5...v1.77.6)
<sup>Released on **2025-04-01**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the db to context inject mode.

<br/>

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

#### Code refactoring

* **misc**: Refactor the db to context inject mode, closes [#7255](https://github.com/lobehub/lobe-chat/issues/7255) ([ffd0dbc](https://github.com/lobehub/lobe-chat/commit/ffd0dbc))

</details>

<div align="right">

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

</div>
2025-04-01 13:03:12 +00:00
Arvin Xu ffd0dbc7f5 ♻️ refactor: refactor the db to context inject mode (#7255)
* refactor with new db init mode

* fix tests

* fix tests

* move the separate index

* fix tests

* fix tests

* fix db issue

* fix db

* refactor to clean

* Update index.ts

* fix error

* fix the exist inbox slug session

* fix the tests
2025-04-01 20:53:03 +08:00
lobehubbot 3a52f5cf97 📝 docs(bot): Auto sync agents & plugin to readme 2025-04-01 08:10:38 +00:00
semantic-release-bot 253521883d 🔖 chore(release): v1.77.5 [skip ci]
### [Version&nbsp;1.77.5](https://github.com/lobehub/lobe-chat/compare/v1.77.4...v1.77.5)
<sup>Released on **2025-04-01**</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>
2025-04-01 08:09:33 +00:00
Arvin Xu 72734686e2 ️ perf: fix delete file chunk timeout (#7253)
* fix delete file chunk

* update branding loading

* fix tests
2025-04-01 15:59:20 +08:00
lobehubbot 8969716168 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-31 12:00:12 +00:00
semantic-release-bot 666b2b0f0c 🔖 chore(release): v1.77.4 [skip ci]
### [Version&nbsp;1.77.4](https://github.com/lobehub/lobe-chat/compare/v1.77.3...v1.77.4)
<sup>Released on **2025-03-31**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor db core.

#### 💄 Styles

- **misc**: Update branding.

<br/>

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

#### Code refactoring

* **misc**: Refactor db core, closes [#7245](https://github.com/lobehub/lobe-chat/issues/7245) ([5c71db6](https://github.com/lobehub/lobe-chat/commit/5c71db6))

#### Styles

* **misc**: Update branding, closes [#7224](https://github.com/lobehub/lobe-chat/issues/7224) ([481cab0](https://github.com/lobehub/lobe-chat/commit/481cab0))

</details>

<div align="right">

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

</div>
2025-03-31 11:58:55 +00:00
renovate[bot] 0f7af4b898 Update dependency lucide-react to ^0.485.0 (#7230)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 19:48:55 +08:00
renovate[bot] 11b6467f36 Update dependency @neondatabase/serverless to v1 (#7231)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 19:48:46 +08:00
Arvin Xu 5c71db6c4e ♻️ refactor: refactor db core (#7245)
* refactor db core

* fix tests
2025-03-31 19:39:57 +08:00
Arvin Xu 481cab0515 💄 style: update branding (#7224) 2025-03-31 19:39:37 +08:00
Arvin Xu 7ae17b62d3 🔨 chore: add electron server ipc (#7246) 2025-03-31 19:39:10 +08:00
bbbugg 4309730cc8 📝 docs: update example model names in documentation for clarity (#7237)
Co-authored-by: bbbugg <daming20120101@16.com>
2025-03-31 17:55:11 +08:00
lobehubbot eb5545bd7f 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-29 15:26:26 +00:00
semantic-release-bot 1d526c2f7c 🔖 chore(release): v1.77.3 [skip ci]
### [Version&nbsp;1.77.3](https://github.com/lobehub/lobe-chat/compare/v1.77.2...v1.77.3)
<sup>Released on **2025-03-29**</sup>

#### ♻ Code Refactoring

- **misc**: Move general db models to database folder.

<br/>

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

#### Code refactoring

* **misc**: Move general db models to database folder, closes [#7222](https://github.com/lobehub/lobe-chat/issues/7222) ([f831d86](https://github.com/lobehub/lobe-chat/commit/f831d86))

</details>

<div align="right">

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

</div>
2025-03-29 15:25:22 +00:00
Arvin Xu f831d8641c ♻️ refactor: move general db models to database folder (#7222)
* ♻️ refactor: decrypt error

* fix tests
2025-03-29 23:15:24 +08:00
lobehubbot 7c18071d21 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-29 12:45:09 +00:00
semantic-release-bot dd525adc1a 🔖 chore(release): v1.77.2 [skip ci]
### [Version&nbsp;1.77.2](https://github.com/lobehub/lobe-chat/compare/v1.77.1...v1.77.2)
<sup>Released on **2025-03-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix decrypt error with imported pg data.

<br/>

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

#### What's fixed

* **misc**: Fix decrypt error with imported pg data, closes [#7220](https://github.com/lobehub/lobe-chat/issues/7220) ([f8a0aa0](https://github.com/lobehub/lobe-chat/commit/f8a0aa0))

</details>

<div align="right">

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

</div>
2025-03-29 12:44:06 +00:00
Arvin Xu f8a0aa0840 🐛 fix: fix decrypt error with imported pg data (#7220) 2025-03-29 20:33:57 +08:00
lobehubbot ad336be74f 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-29 12:00:36 +00:00
semantic-release-bot 5b58e1b4b1 🔖 chore(release): v1.77.1 [skip ci]
### [Version&nbsp;1.77.1](https://github.com/lobehub/lobe-chat/compare/v1.77.0...v1.77.1)
<sup>Released on **2025-03-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix export button and clean orphan agent.

<br/>

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

#### What's fixed

* **misc**: Fix export button and clean orphan agent, closes [#7219](https://github.com/lobehub/lobe-chat/issues/7219) ([112282a](https://github.com/lobehub/lobe-chat/commit/112282a))

</details>

<div align="right">

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

</div>
2025-03-29 11:59:33 +00:00
Arvin Xu 112282a8fc 🐛 fix: fix export button and clean orphan agent (#7219)
* update

* clean agent when delete session
2025-03-29 19:49:26 +08:00
lobehubbot 5a63313e16 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-29 10:12:06 +00:00
semantic-release-bot 18898e0690 🔖 chore(release): v1.77.0 [skip ci]
## [Version&nbsp;1.77.0](https://github.com/lobehub/lobe-chat/compare/v1.76.1...v1.77.0)
<sup>Released on **2025-03-29**</sup>

####  Features

- **misc**: Support pglite and postgres data export.

<br/>

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

#### What's improved

* **misc**: Support pglite and postgres data export, closes [#5581](https://github.com/lobehub/lobe-chat/issues/5581) ([57f18ff](https://github.com/lobehub/lobe-chat/commit/57f18ff))

</details>

<div align="right">

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

</div>
2025-03-29 10:11:03 +00:00
Arvin Xu 57f18ff0c8 feat: support pglite and postgres data export (#5581)
* wip

* update

* fix server side import

* fix import

* fix test
2025-03-29 18:01:00 +08:00
lobehubbot d02986392b 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-29 06:34:17 +00:00
semantic-release-bot e8781e633c 🔖 chore(release): v1.76.1 [skip ci]
### [Version&nbsp;1.76.1](https://github.com/lobehub/lobe-chat/compare/v1.76.0...v1.76.1)
<sup>Released on **2025-03-29**</sup>

#### 💄 Styles

- **misc**: Supports OpenAI's latest voice model gpt-4o-mini-tts.

<br/>

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

#### Styles

* **misc**: Supports OpenAI's latest voice model gpt-4o-mini-tts, closes [#7213](https://github.com/lobehub/lobe-chat/issues/7213) ([f291e6f](https://github.com/lobehub/lobe-chat/commit/f291e6f))

</details>

<div align="right">

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

</div>
2025-03-29 06:33:13 +00:00
hedeqiang f291e6f970 💄 style: Supports OpenAI's latest voice model gpt-4o-mini-tts (#7213) 2025-03-29 14:23:37 +08:00
coder2z ff52a2c33c 🐛 fix: Add the FEATURE_FLAGS variable in the dockerfile (#7175)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-03-29 14:22:08 +08:00
lobehubbot e8439e85d3 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-28 14:08:42 +00:00
semantic-release-bot 62d33b0448 🔖 chore(release): v1.76.0 [skip ci]
## [Version&nbsp;1.76.0](https://github.com/lobehub/lobe-chat/compare/v1.75.5...v1.76.0)
<sup>Released on **2025-03-28**</sup>

####  Features

- **misc**: Add Hotkey Settings.

<br/>

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

#### What's improved

* **misc**: Add Hotkey Settings, closes [#7118](https://github.com/lobehub/lobe-chat/issues/7118) ([9773e74](https://github.com/lobehub/lobe-chat/commit/9773e74))

</details>

<div align="right">

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

</div>
2025-03-28 14:07:39 +00:00
CanisMinor 9773e74233 feat: add Hotkey Settings (#7118)
* 💄 style: Replace Hotkey components

*  feat(wip): Add Hotkey Setting

* 💄 style: Update Hotkey Setting

*  feat: Add HotkeyProvider

*  test: Fix test

* ♻️ refactor: Update hotkey register

* 🔧 chore: Update i18n

*  test: Update test

* 🔧 chore: Update i18n

* 🐛 fix: Fix lobe ui

*  feat: Add Hotkey Helper Panel

* 🐛 fix: Fix build

* 🔧 chore: Update migrations

* 🐛 fix: Try to fix build

* 🐛 fix: Try to fix build

* 🐛 fix: Fix some error

* 🔧 chore: Try to update nuqs

* 🐛 fix: Try to fix build

* 🐛 fix: Fix build

* 💄 style: Replace OpenHotkeyHelper hotkey

* 🐛 fix: Fix review problem

* 🐛 fix: Fix review problem

* 💄 style: Change TogglePanel Hotkey

* update

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-03-28 21:57:41 +08:00
lobehubbot 13e1607e4c 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-28 02:33:32 +00:00
semantic-release-bot b576e9d839 🔖 chore(release): v1.75.5 [skip ci]
### [Version&nbsp;1.75.5](https://github.com/lobehub/lobe-chat/compare/v1.75.4...v1.75.5)
<sup>Released on **2025-03-28**</sup>

#### 💄 Styles

- **misc**: Add tencentcloud deepseek-v3-0324, support for parsing `imageOutput`, update models for siliconcloud & infiniai.

<br/>

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

#### Styles

* **misc**: Add tencentcloud deepseek-v3-0324, closes [#7182](https://github.com/lobehub/lobe-chat/issues/7182) ([c67af99](https://github.com/lobehub/lobe-chat/commit/c67af99))
* **misc**: Support for parsing `imageOutput`, closes [#7140](https://github.com/lobehub/lobe-chat/issues/7140) ([05bae9d](https://github.com/lobehub/lobe-chat/commit/05bae9d))
* **misc**: Update models for siliconcloud & infiniai, closes [#7197](https://github.com/lobehub/lobe-chat/issues/7197) ([1c1f693](https://github.com/lobehub/lobe-chat/commit/1c1f693))

</details>

<div align="right">

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

</div>
2025-03-28 02:32:22 +00:00
WangYK 1c1f6933bd 💄 style: update models for siliconcloud & infiniai (#7197)
* 💄 style: update infiniai model list

* 💄 style: improve error handling for infiniai provider

* 💄 style: add qwen2.5 vl 32b in infiniai provider

* 💄 style: add qwen2.5-vl-32b to siliconcloud

* 🔧 chore: update i18n

* 🐛 fix: `formatPriceByCurrency` should display 0 if the price is 0

* 💄 style: disable outdated models for infiniai
2025-03-28 10:22:56 +08:00
wzdnzd 05bae9d3db 💄 style: support for parsing imageOutput (#7140)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-03-28 10:21:56 +08:00
hedeqiang c67af99b56 💄 style: Add tencentcloud deepseek-v3-0324 (#7182) 2025-03-28 10:21:40 +08:00
Shixian Sheng 56758df1bd 📝 docs: update copyright date (#7204)
* Update README.md

* Update README.zh-CN.md
2025-03-28 10:20:49 +08:00
lobehubbot 02b7af7eb9 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-27 11:38:07 +00:00
semantic-release-bot adfb12c47c 🔖 chore(release): v1.75.4 [skip ci]
### [Version&nbsp;1.75.4](https://github.com/lobehub/lobe-chat/compare/v1.75.3...v1.75.4)
<sup>Released on **2025-03-27**</sup>

#### 💄 Styles

- **misc**: Update models info.

<br/>

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

#### Styles

* **misc**: Update models info, closes [#7164](https://github.com/lobehub/lobe-chat/issues/7164) ([74aff9b](https://github.com/lobehub/lobe-chat/commit/74aff9b))

</details>

<div align="right">

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

</div>
2025-03-27 11:37:02 +00:00
sxjeru 74aff9bae0 💄 style: Update models info (#7164)
* Update google.ts

* Update siliconcloud.ts

* Update google.ts

* Update siliconcloud.ts

* Update vertexai.ts

* Update volcengine.ts

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-03-27 19:27:12 +08:00
lobehubbot c47a634354 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-26 13:23:15 +00:00
semantic-release-bot 19ea626f87 🔖 chore(release): v1.75.3 [skip ci]
### [Version&nbsp;1.75.3](https://github.com/lobehub/lobe-chat/compare/v1.75.2...v1.75.3)
<sup>Released on **2025-03-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix anthropic import issue.

<br/>

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

#### What's fixed

* **misc**: Fix anthropic import issue, closes [#7155](https://github.com/lobehub/lobe-chat/issues/7155) ([a9725b2](https://github.com/lobehub/lobe-chat/commit/a9725b2))

</details>

<div align="right">

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

</div>
2025-03-26 13:22:06 +00:00
Arvin Xu a9725b2c41 🐛 fix: fix anthropic import issue (#7155)
* fix

* Update package.json

* improve

* improve
2025-03-26 21:12:26 +08:00
lobehubbot 944e690230 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-26 04:00:03 +00:00
semantic-release-bot aa5e7d676c 🔖 chore(release): v1.75.2 [skip ci]
### [Version&nbsp;1.75.2](https://github.com/lobehub/lobe-chat/compare/v1.75.1...v1.75.2)
<sup>Released on **2025-03-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Update 'gemini-2.5-pro-exp-03-25' maxOutput and contextWindowTokens.

<br/>

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

#### What's fixed

* **misc**: Update 'gemini-2.5-pro-exp-03-25' maxOutput and contextWindowTokens, closes [#7156](https://github.com/lobehub/lobe-chat/issues/7156) ([a28b98e](https://github.com/lobehub/lobe-chat/commit/a28b98e))

</details>

<div align="right">

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

</div>
2025-03-26 03:59:01 +00:00
bbbugg a28b98ee92 🐛 fix: Update 'gemini-2.5-pro-exp-03-25' maxOutput and contextWindowTokens (#7156)
* Update gemini-2.5-pro-exp-03-25 maxOutput and contextWindowTokens

* Update 'gemini-2.5-pro-exp-03-25' maxOutput and contextWindowTokens
2025-03-26 11:49:04 +08:00
lobehubbot d21f1441a1 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-26 01:39:59 +00:00
semantic-release-bot 36ec36273a 🔖 chore(release): v1.75.1 [skip ci]
### [Version&nbsp;1.75.1](https://github.com/lobehub/lobe-chat/compare/v1.75.0...v1.75.1)
<sup>Released on **2025-03-26**</sup>

#### 💄 Styles

- **misc**: Update siliconcloud models.

<br/>

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

#### Styles

* **misc**: Update siliconcloud models, closes [#7072](https://github.com/lobehub/lobe-chat/issues/7072) ([8a524d4](https://github.com/lobehub/lobe-chat/commit/8a524d4))

</details>

<div align="right">

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

</div>
2025-03-26 01:38:57 +00:00
sxjeru 8a524d4a7b 💄 style: Update siliconcloud models (#7072) 2025-03-26 09:29:05 +08:00
lobehubbot a529da4e7a 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-26 00:47:19 +00:00
semantic-release-bot 168de63469 🔖 chore(release): v1.75.0 [skip ci]
## [Version&nbsp;1.75.0](https://github.com/lobehub/lobe-chat/compare/v1.74.11...v1.75.0)
<sup>Released on **2025-03-26**</sup>

####  Features

- **misc**: Add reasoning content selector and update AutoScroll component, add Xinference provider support.

#### 💄 Styles

- **misc**: Add Gemini 2.5 Pro Experimental model, improve editing scroll experience.

<br/>

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

#### What's improved

* **misc**: Add reasoning content selector and update AutoScroll component, closes [#7056](https://github.com/lobehub/lobe-chat/issues/7056) ([800d675](https://github.com/lobehub/lobe-chat/commit/800d675))
* **misc**: Add Xinference provider support, closes [#7081](https://github.com/lobehub/lobe-chat/issues/7081) ([e32c8e7](https://github.com/lobehub/lobe-chat/commit/e32c8e7))

#### Styles

* **misc**: Add Gemini 2.5 Pro Experimental model, closes [#7153](https://github.com/lobehub/lobe-chat/issues/7153) ([4213d20](https://github.com/lobehub/lobe-chat/commit/4213d20))
* **misc**: Improve editing scroll experience, closes [#7149](https://github.com/lobehub/lobe-chat/issues/7149) ([816331f](https://github.com/lobehub/lobe-chat/commit/816331f))

</details>

<div align="right">

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

</div>
2025-03-26 00:45:57 +00:00
afon 800d675e04 feat: add reasoning content selector and update AutoScroll component (#7056) 2025-03-26 08:36:04 +08:00
Arvin Xu 816331fd8d 💄 style: improve editing scroll experience (#7149) 2025-03-26 08:26:47 +08:00
Zhijie He e32c8e7fc3 feat: add Xinference provider support (#7081) 2025-03-26 08:23:40 +08:00
Koell 4213d20dcf 💄 style: Add Gemini 2.5 Pro Experimental model (#7153) 2025-03-26 08:20:04 +08:00
gru-agent[bot] c9732034c9 test: Add tests for request payload patterns and file type filtering in browserless functionality. (#7132)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-03-25 21:05:38 +08:00
huangkairan ed99c0a983 🔨 chore: fix eslint error (#7139)
Co-authored-by: GH Action - Upstream Sync <action@github.com>
2025-03-25 20:14:44 +08:00
lobehubbot d5d849f318 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-25 10:15:51 +00:00
semantic-release-bot bcf7ed0896 🔖 chore(release): v1.74.11 [skip ci]
### [Version&nbsp;1.74.11](https://github.com/lobehub/lobe-chat/compare/v1.74.10...v1.74.11)
<sup>Released on **2025-03-25**</sup>

#### ♻ Code Refactoring

- **misc**: Upgrade styles for Drawer.

<br/>

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

#### Code refactoring

* **misc**: Upgrade styles for Drawer, closes [#7141](https://github.com/lobehub/lobe-chat/issues/7141) ([bcbc8fc](https://github.com/lobehub/lobe-chat/commit/bcbc8fc))

</details>

<div align="right">

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

</div>
2025-03-25 10:14:48 +00:00
Arvin Xu bcbc8fc079 ♻️ refactor: upgrade styles for Drawer (#7141) 2025-03-25 17:18:45 +08:00
lobehubbot b245ce2653 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-25 04:43:43 +00:00
semantic-release-bot 8f2fc25ab8 🔖 chore(release): v1.74.10 [skip ci]
### [Version&nbsp;1.74.10](https://github.com/lobehub/lobe-chat/compare/v1.74.9...v1.74.10)
<sup>Released on **2025-03-25**</sup>

#### 💄 Styles

- **misc**: Add `hunyuan-t1-latest` from Hunyuan.

<br/>

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

#### Styles

* **misc**: Add `hunyuan-t1-latest` from Hunyuan, closes [#7123](https://github.com/lobehub/lobe-chat/issues/7123) ([8377c6b](https://github.com/lobehub/lobe-chat/commit/8377c6b))

</details>

<div align="right">

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

</div>
2025-03-25 04:42:41 +00:00
Zhijie He 8377c6b618 💄 style: add hunyuan-t1-latest from Hunyuan (#7123) 2025-03-25 12:33:03 +08:00
lobehubbot df5d45d136 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-25 03:51:05 +00:00
semantic-release-bot 6a3928b6b4 🔖 chore(release): v1.74.9 [skip ci]
### [Version&nbsp;1.74.9](https://github.com/lobehub/lobe-chat/compare/v1.74.8...v1.74.9)
<sup>Released on **2025-03-25**</sup>

#### ♻ Code Refactoring

- **misc**: Add reject pattern for browserless to boost crawl performance.

<br/>

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

#### Code refactoring

* **misc**: Add reject pattern for browserless to boost crawl performance, closes [#6996](https://github.com/lobehub/lobe-chat/issues/6996) ([184a1ba](https://github.com/lobehub/lobe-chat/commit/184a1ba))

</details>

<div align="right">

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

</div>
2025-03-25 03:49:57 +00:00
Rylan Cai 184a1ba4b8 ♻️ refactor: Add reject pattern for browserless to boost crawl performance (#6996)
* ♻️ refactor: support reject pattern

* ♻️ refactor: remove env & add whitelist
2025-03-25 11:40:00 +08:00
vual 19bff320d8 🔨 chore: upgrade antd version (#7124)
Property 'variant' does not exist on type 'IntrinsicAttributes & CardProps & RefAttributes<HTMLDivElement>'.
2025-03-24 19:23:12 +08:00
lobehubbot a1ee293bdf 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-24 11:09:57 +00:00
semantic-release-bot 2851a09244 🔖 chore(release): v1.74.8 [skip ci]
### [Version&nbsp;1.74.8](https://github.com/lobehub/lobe-chat/compare/v1.74.7...v1.74.8)
<sup>Released on **2025-03-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Update create message loading issue.

<br/>

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

#### What's fixed

* **misc**: Update create message loading issue, closes [#7116](https://github.com/lobehub/lobe-chat/issues/7116) ([a4558a4](https://github.com/lobehub/lobe-chat/commit/a4558a4))

</details>

<div align="right">

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

</div>
2025-03-24 11:08:53 +00:00
Arvin Xu a4558a44c4 🐛 fix: update create message loading issue (#7116) 2025-03-24 18:59:03 +08:00
lobehubbot bd0a797bdb 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-24 10:22:26 +00:00
semantic-release-bot c624b4db98 🔖 chore(release): v1.74.7 [skip ci]
### [Version&nbsp;1.74.7](https://github.com/lobehub/lobe-chat/compare/v1.74.6...v1.74.7)
<sup>Released on **2025-03-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Remove Tooltip component in Topic in mobile mode.

<br/>

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

#### What's fixed

* **misc**: Remove Tooltip component in Topic in mobile mode, closes [#7121](https://github.com/lobehub/lobe-chat/issues/7121) ([375f924](https://github.com/lobehub/lobe-chat/commit/375f924))

</details>

<div align="right">

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

</div>
2025-03-24 10:21:18 +00:00
bbbugg 375f924094 🐛 fix: remove Tooltip component in Topic in mobile mode (#7121)
* 🐛 fix: update 'title' missing in Tooltip component

* Update index.tsx
2025-03-24 18:11:03 +08:00
lobehubbot 51162f345e 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-24 05:12:10 +00:00
semantic-release-bot c4e273ee4e 🔖 chore(release): v1.74.6 [skip ci]
### [Version&nbsp;1.74.6](https://github.com/lobehub/lobe-chat/compare/v1.74.5...v1.74.6)
<sup>Released on **2025-03-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Set max_completion_tokens to undefined for Azure OpenAI.

<br/>

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

#### What's fixed

* **misc**: Set max_completion_tokens to undefined for Azure OpenAI, closes [#7114](https://github.com/lobehub/lobe-chat/issues/7114) ([30b66b9](https://github.com/lobehub/lobe-chat/commit/30b66b9))

</details>

<div align="right">

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

</div>
2025-03-24 05:11:10 +00:00
coder2z 30b66b9411 🐛 fix: set max_completion_tokens to undefined for Azure OpenAI (#7114) 2025-03-24 13:01:32 +08:00
lobehubbot 91f74b52c8 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-23 08:14:09 +00:00
semantic-release-bot 98b5f466c0 🔖 chore(release): v1.74.5 [skip ci]
### [Version&nbsp;1.74.5](https://github.com/lobehub/lobe-chat/compare/v1.74.4...v1.74.5)
<sup>Released on **2025-03-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix wechat login error with next-auth.

<br/>

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

#### What's fixed

* **misc**: Fix wechat login error with next-auth, closes [#6585](https://github.com/lobehub/lobe-chat/issues/6585) ([c58d77a](https://github.com/lobehub/lobe-chat/commit/c58d77a))

</details>

<div align="right">

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

</div>
2025-03-23 08:13:09 +00:00
xiangnan c58d77aa25 🐛 fix: fix wechat login error with next-auth (#6585) 2025-03-23 16:03:38 +08:00
lobehubbot 876292b08f 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-23 07:01:43 +00:00
semantic-release-bot cd7858fb05 🔖 chore(release): v1.74.4 [skip ci]
### [Version&nbsp;1.74.4](https://github.com/lobehub/lobe-chat/compare/v1.74.3...v1.74.4)
<sup>Released on **2025-03-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Upgrade next to 15.2.3 to fix CVE-2025-29927.

<br/>

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

#### What's fixed

* **misc**: Upgrade next to 15.2.3 to fix CVE-2025-29927, closes [#7105](https://github.com/lobehub/lobe-chat/issues/7105) ([187a655](https://github.com/lobehub/lobe-chat/commit/187a655))

</details>

<div align="right">

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

</div>
2025-03-23 07:00:33 +00:00
Arvin Xu 187a655625 🐛 fix: upgrade next to 15.2.3 to fix CVE-2025-29927 (#7105) 2025-03-23 14:51:02 +08:00
renovate[bot] 3388eb68d2 Update dependency drizzle-orm to ^0.41.0 (#7101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-23 11:37:41 +08:00
renovate[bot] 1f28dc9bd8 Update dependency react-scan to ^0.3.0 (#7103)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-23 11:31:43 +08:00
renovate[bot] 9b6dc12e96 Update dependency lucide-react to ^0.483.0 (#7102)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-23 11:31:33 +08:00
lobehubbot 05032ae225 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-22 17:47:57 +00:00
semantic-release-bot de6830764e 🔖 chore(release): v1.74.3 [skip ci]
### [Version&nbsp;1.74.3](https://github.com/lobehub/lobe-chat/compare/v1.74.2...v1.74.3)
<sup>Released on **2025-03-22**</sup>

#### ♻ Code Refactoring

- **misc**: Add client id for all core entities in database.

#### 💄 Styles

- **misc**: Clear previous model check result.

<br/>

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

#### Code refactoring

* **misc**: Add client id for all core entities in database, closes [#7089](https://github.com/lobehub/lobe-chat/issues/7089) ([6798f86](https://github.com/lobehub/lobe-chat/commit/6798f86))

#### Styles

* **misc**: Clear previous model check result, closes [#7087](https://github.com/lobehub/lobe-chat/issues/7087) ([e6c5d08](https://github.com/lobehub/lobe-chat/commit/e6c5d08))

</details>

<div align="right">

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

</div>
2025-03-22 17:46:48 +00:00
gru-agent[bot] c5655411f2 test: Add tests for general settings selectors in user settings slice. (#6905)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-03-23 01:37:08 +08:00
sxjeru e6c5d0833e 💄 style: Clear previous model check result (#7087)
* Update Checker.tsx

* Update Checker.tsx
2025-03-23 01:35:29 +08:00
Arvin Xu 6798f86eaa ♻️ refactor: add client id for all core entities in database (#7089)
* add client id for all entities

* add client db repair feature

* update i18n
2025-03-23 01:26:56 +08:00
lobehubbot 8b761a4c5a 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-22 16:45:12 +00:00
semantic-release-bot 43cf2226cd 🔖 chore(release): v1.74.2 [skip ci]
### [Version&nbsp;1.74.2](https://github.com/lobehub/lobe-chat/compare/v1.74.1...v1.74.2)
<sup>Released on **2025-03-22**</sup>

#### 🐛 Bug Fixes

- **misc**: CheckModel change clears other configs, update input and output prices.

<br/>

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

#### What's fixed

* **misc**: CheckModel change clears other configs, closes [#7083](https://github.com/lobehub/lobe-chat/issues/7083) ([a416c64](https://github.com/lobehub/lobe-chat/commit/a416c64))
* **misc**: Update input and output prices, closes [#7094](https://github.com/lobehub/lobe-chat/issues/7094) ([460c56f](https://github.com/lobehub/lobe-chat/commit/460c56f))

</details>

<div align="right">

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

</div>
2025-03-22 16:43:59 +00:00
sxjeru a416c6479f 🐛 fix: checkModel change clears other configs (#7083)
* Update Checker.tsx

* fix

* finally
2025-03-23 00:34:22 +08:00
bbbugg 460c56f5fc 🐛 fix: update input and output prices (#7094)
* 💰 fix(pricing): update input and output values of DeepSeek R1 for Volcengine API

* fix(pricing): update input and output prices for Qwen 'QwQ Plus' and 'QwQ 32B' models.

---------

Co-authored-by: bbbugg <daming20120101@16.com>
2025-03-23 00:31:44 +08:00
bbbugg 54a855c6a7 📝 docs: fix the display problem caused by merging (#7095)
* add proxy URL configurations for Moonshot and Volcengine APIs

* 📝 docs: fix the display problem caused by merging

* 📝 docs: fix the display problem caused by merging

---------

Co-authored-by: bbbugg <daming20120101@16.com>
2025-03-23 00:31:22 +08:00
lobehubbot 1bc908d45e 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-22 03:17:26 +00:00
semantic-release-bot bc7ed16297 🔖 chore(release): v1.74.1 [skip ci]
### [Version&nbsp;1.74.1](https://github.com/lobehub/lobe-chat/compare/v1.74.0...v1.74.1)
<sup>Released on **2025-03-22**</sup>

#### 💄 Styles

- **misc**: Fix `deepseek-r1-70b-online` search tag missing from Search1API.

<br/>

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

#### Styles

* **misc**: Fix `deepseek-r1-70b-online` search tag missing from Search1API, closes [#7085](https://github.com/lobehub/lobe-chat/issues/7085) ([0a06a7a](https://github.com/lobehub/lobe-chat/commit/0a06a7a))

</details>

<div align="right">

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

</div>
2025-03-22 03:16:23 +00:00
Zhijie He 0a06a7afeb 💄 style: fix deepseek-r1-70b-online search tag missing from Search1API (#7085) 2025-03-22 11:06:28 +08:00
lobehubbot 16c0cbf378 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-21 15:54:40 +00:00
semantic-release-bot 12762b78eb 🔖 chore(release): v1.74.0 [skip ci]
## [Version&nbsp;1.74.0](https://github.com/lobehub/lobe-chat/compare/v1.73.2...v1.74.0)
<sup>Released on **2025-03-21**</sup>

####  Features

- **misc**: Add infini-ai provider, add Search1API provider with web search DeepSeek models.

<br/>

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

#### What's improved

* **misc**: Add infini-ai provider, closes [#7012](https://github.com/lobehub/lobe-chat/issues/7012) ([72d76fe](https://github.com/lobehub/lobe-chat/commit/72d76fe))
* **misc**: Add Search1API provider with web search DeepSeek models, closes [#6376](https://github.com/lobehub/lobe-chat/issues/6376) ([3450714](https://github.com/lobehub/lobe-chat/commit/3450714))

</details>

<div align="right">

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

</div>
2025-03-21 15:53:32 +00:00
arvinxx e166d90d76 test: fix tests 2025-03-21 23:43:20 +08:00
Arvin Xu 30a23ece29 ️ perf: enable smoothing for all providers (#7062)
* update

* 尝试修正 tests

* fix tests config

* refactor agent-runtime tests

* refactor agent-runtime tests

* refactor agent-runtime tests

* fix tests

* fix tests
2025-03-21 23:30:13 +08:00
wang2 3450714544 feat: add Search1API provider with web search DeepSeek models (#6376)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-03-21 23:30:02 +08:00
WangYK 72d76feff6 feat: add infini-ai provider (#7012)
*  feat: support infini-ai provider

* 🐛 fix: correct typo `infinigenceai` -> `infiniai`
2025-03-21 17:45:59 +08:00
lobehubbot 07b44f378c 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-21 09:45:19 +00:00
semantic-release-bot db31245252 🔖 chore(release): v1.73.2 [skip ci]
### [Version&nbsp;1.73.2](https://github.com/lobehub/lobe-chat/compare/v1.73.1...v1.73.2)
<sup>Released on **2025-03-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix agent chatConfig override issue.

<br/>

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

#### What's fixed

* **misc**: Fix agent chatConfig override issue, closes [#7047](https://github.com/lobehub/lobe-chat/issues/7047) ([83aa931](https://github.com/lobehub/lobe-chat/commit/83aa931))

</details>

<div align="right">

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

</div>
2025-03-21 09:44:07 +00:00
towy 83aa931270 🐛 fix: fix agent chatConfig override issue (#7047)
Certain configuration updates may cause the loss of old configurations.
2025-03-21 17:34:30 +08:00
BrandonStudio ab5ff957cb Update devcontainer.json (#7064)
Refs:
- https://github.com/devcontainers/images/blob/main/src/typescript-node/README.md
- https://github.com/devcontainer-community/devcontainer-features/tree/main/src/bun.sh
2025-03-21 16:39:01 +08:00
lobehubbot 6957a20866 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-21 08:32:51 +00:00
semantic-release-bot 607718ab4b 🔖 chore(release): v1.73.1 [skip ci]
### [Version&nbsp;1.73.1](https://github.com/lobehub/lobe-chat/compare/v1.73.0...v1.73.1)
<sup>Released on **2025-03-21**</sup>

#### 💄 Styles

- **misc**: Update shiki to v3.

<br/>

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

#### Styles

* **misc**: Update shiki to v3, closes [#7069](https://github.com/lobehub/lobe-chat/issues/7069) ([03c95ab](https://github.com/lobehub/lobe-chat/commit/03c95ab))

</details>

<div align="right">

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

</div>
2025-03-21 08:31:43 +00:00
CanisMinor 03c95ab467 💄 style: Update shiki to v3 (#7069) 2025-03-21 16:21:53 +08:00
bbbugg bafb3a34ce 📝 docs: add proxy URL configurations for Moonshot and Volcengine APIs (#7050)
Co-authored-by: bbbugg <daming20120101@16.com>
2025-03-21 11:17:42 +08:00
gru-agent[bot] b91a062c60 Add unit tests for withTimeout utility function in web crawler package. (#7048)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-03-20 10:01:36 +08:00
lobehubbot 3b34bf5e3d 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-19 16:49:25 +00:00
semantic-release-bot ce03db6e60 🔖 chore(release): v1.73.0 [skip ci]
## [Version&nbsp;1.73.0](https://github.com/lobehub/lobe-chat/compare/v1.72.1...v1.73.0)
<sup>Released on **2025-03-19**</sup>

####  Features

- **misc**: Add Cohere provider support, add search1api crawler implementation for WeChat Sogou links.

<br/>

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

#### What's improved

* **misc**: Add Cohere provider support, closes [#7016](https://github.com/lobehub/lobe-chat/issues/7016) ([2a4e2ed](https://github.com/lobehub/lobe-chat/commit/2a4e2ed))
* **misc**: Add search1api crawler implementation for WeChat Sogou links, closes [#7036](https://github.com/lobehub/lobe-chat/issues/7036) ([7327138](https://github.com/lobehub/lobe-chat/commit/7327138))

</details>

<div align="right">

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

</div>
2025-03-19 16:48:06 +00:00
wang2 7327138367 feat: add search1api crawler implementation for WeChat Sogou links (#7036)
* feat: add search1api crawler implementation for Weixin Sogou links

* feat(web-crawler): add withTimeout utility and refactor crawler implementations

* feat(web-crawler): add support for sogou.com links

* docs(web-crawler): enhance error message for missing search1api key
2025-03-20 00:38:10 +08:00
Zhijie He 2a4e2ed118 feat: add Cohere provider support (#7016)
*  feat: add Cohere provider support

* 💄 style: update cohere model list

* 🐛 fix: fix cohere calling, exclude user and stream_options

* 💄 style: update model description

* 🐛 fix: fix cohere model list fetch

* 🐛 fix: fix cohere calling

* 💄 style: update provider desc

* 💄 style: update model name
2025-03-20 00:35:12 +08:00
lobehubbot 0e0b60e6ef 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-19 06:50:24 +00:00
cnJasonZ cd0828df94 📝 docs: fix usage doc for PPIO (#6717)
* feat: add new model provider PPIO

* feat: add usage docs; fix model configs

* fix: fix ppio runtime; fix model configs

* fix: fix default model list

* fix

* fix: fix locales providers.json

* fix: fix ppio usage docs

---------

Co-authored-by: Jason <ggbbddjm@gmail.com>
Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-03-19 14:41:03 +08:00
lobehubbot 833c94d9aa 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-19 06:02:27 +00:00
semantic-release-bot 7fb3f73a1d 🔖 chore(release): v1.72.1 [skip ci]
### [Version&nbsp;1.72.1](https://github.com/lobehub/lobe-chat/compare/v1.72.0...v1.72.1)
<sup>Released on **2025-03-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Allow historyCount to be set to 0.

<br/>

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

#### What's fixed

* **misc**: Allow historyCount to be set to 0, closes [#7007](https://github.com/lobehub/lobe-chat/issues/7007) ([e863470](https://github.com/lobehub/lobe-chat/commit/e863470))

</details>

<div align="right">

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

</div>
2025-03-19 06:01:19 +00:00
sxjeru e86347029d 🐛 fix: Allow historyCount to be set to 0 (#7007) 2025-03-19 13:52:01 +08:00
lobehubbot adfadff252 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-18 11:00:48 +00:00
semantic-release-bot af2c593d96 🔖 chore(release): v1.72.0 [skip ci]
## [Version&nbsp;1.72.0](https://github.com/lobehub/lobe-chat/compare/v1.71.5...v1.72.0)
<sup>Released on **2025-03-18**</sup>

####  Features

- **misc**: Update db schema to add `user_id` for data export.

<br/>

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

#### What's improved

* **misc**: Update db schema to add `user_id` for data export, closes [#7022](https://github.com/lobehub/lobe-chat/issues/7022) ([c35471a](https://github.com/lobehub/lobe-chat/commit/c35471a))

</details>

<div align="right">

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

</div>
2025-03-18 10:59:49 +00:00
Arvin Xu c35471ac13 🗃️ feat: update db schema to add user_id for data export (#7022) 2025-03-18 18:50:55 +08:00
lobehubbot de8df94e1b 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-17 05:58:49 +00:00
semantic-release-bot 7f3e67090a 🔖 chore(release): v1.71.5 [skip ci]
### [Version&nbsp;1.71.5](https://github.com/lobehub/lobe-chat/compare/v1.71.4...v1.71.5)
<sup>Released on **2025-03-17**</sup>

#### 💄 Styles

- **misc**: Support screenshot to clipboard when sharing.

<br/>

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

#### Styles

* **misc**: Support screenshot to clipboard when sharing, closes [#6275](https://github.com/lobehub/lobe-chat/issues/6275) ([45663c3](https://github.com/lobehub/lobe-chat/commit/45663c3))

</details>

<div align="right">

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

</div>
2025-03-17 05:57:47 +00:00
Zack Chang 45663c3724 💄 style: support screenshot to clipboard when sharing (#6275)
Co-authored-by: jrr997 <zackchangjx@foxmail.com>
2025-03-17 13:48:57 +08:00
lobehubbot e1c12604fd 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-17 04:39:43 +00:00
semantic-release-bot 8ad3d28258 🔖 chore(release): v1.71.4 [skip ci]
### [Version&nbsp;1.71.4](https://github.com/lobehub/lobe-chat/compare/v1.71.3...v1.71.4)
<sup>Released on **2025-03-17**</sup>

#### 💄 Styles

- **misc**: Update Wenxin & Hunyuan model list.

<br/>

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

#### Styles

* **misc**: Update Wenxin & Hunyuan model list, closes [#6995](https://github.com/lobehub/lobe-chat/issues/6995) ([d017f35](https://github.com/lobehub/lobe-chat/commit/d017f35))

</details>

<div align="right">

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

</div>
2025-03-17 04:38:28 +00:00
Zhijie He d017f3555a 💄 style: update Wenxin & Hunyuan model list (#6995) 2025-03-17 12:29:48 +08:00
gru-agent[bot] d9da1f9f64 Add unit tests for getUserAuth function to validate authentication methods. (#6932)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-03-17 10:52:59 +08:00
renovate[bot] c51886ad38 Update dependency lucide-react to ^0.482.0 (#6987)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 10:52:29 +08:00
Arvin Xu 19e3319e23 🔨 chore: Update github issue template (#7001)
* Update 1_bug_report_cn.yml

* Update 1_bug_report.yml

* Update 1_bug_report.yml

* Update 2_feature_request.yml

* Update 2_feature_request_cn.yml
2025-03-17 10:26:51 +08:00
renovate[bot] 2cc72f41f9 Update pnpm to v9.15.9 (#6986) 2025-03-16 11:59:17 +08:00
lobehubbot bdd77e6eb8 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-15 19:31:12 +00:00
semantic-release-bot 212dfca0ef 🔖 chore(release): v1.71.3 [skip ci]
### [Version&nbsp;1.71.3](https://github.com/lobehub/lobe-chat/compare/v1.71.2...v1.71.3)
<sup>Released on **2025-03-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix claude 3.5+ models context max output.

<br/>

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

#### What's fixed

* **misc**: Fix claude 3.5+ models context max output, closes [#6984](https://github.com/lobehub/lobe-chat/issues/6984) ([da342dd](https://github.com/lobehub/lobe-chat/commit/da342dd))

</details>

<div align="right">

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

</div>
2025-03-15 19:30:09 +00:00
Arvin Xu da342dd9a6 🐛 fix: fix claude 3.5+ models context max output (#6984) 2025-03-16 03:21:34 +08:00
Arvin Xu fe7e63120a ♻️ refactor: refactor the google ai return error (#6978) 2025-03-15 22:59:31 +08:00
lobehubbot 1810cf3d6f 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-15 09:56:53 +00:00
semantic-release-bot 6857d85043 🔖 chore(release): v1.71.2 [skip ci]
### [Version&nbsp;1.71.2](https://github.com/lobehub/lobe-chat/compare/v1.71.1...v1.71.2)
<sup>Released on **2025-03-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix knowledge base issue.

<br/>

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

#### What's fixed

* **misc**: Fix knowledge base issue, closes [#6973](https://github.com/lobehub/lobe-chat/issues/6973) ([15f39ef](https://github.com/lobehub/lobe-chat/commit/15f39ef))

</details>

<div align="right">

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

</div>
2025-03-15 09:55:43 +00:00
Arvin Xu 15f39efc19 🐛 fix: fix knowledge base issue (#6973)
* refactor agent runtime

* fix KnowledgeBase search issue

* fix tests
2025-03-15 17:45:38 +08:00
lobehubbot 829ebc7177 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-15 04:02:23 +00:00
semantic-release-bot 707b2eea5e 🔖 chore(release): v1.71.1 [skip ci]
### [Version&nbsp;1.71.1](https://github.com/lobehub/lobe-chat/compare/v1.71.0...v1.71.1)
<sup>Released on **2025-03-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix google gemini output relative issue.

#### 💄 Styles

- **misc**: Update Vertex AI models.

<br/>

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

#### What's fixed

* **misc**: Fix google gemini output relative issue, closes [#6970](https://github.com/lobehub/lobe-chat/issues/6970) ([fdcaaf3](https://github.com/lobehub/lobe-chat/commit/fdcaaf3))

#### Styles

* **misc**: Update Vertex AI models, closes [#6967](https://github.com/lobehub/lobe-chat/issues/6967) ([d4432f1](https://github.com/lobehub/lobe-chat/commit/d4432f1))

</details>

<div align="right">

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

</div>
2025-03-15 04:01:13 +00:00
Koell d4432f1f5e 💄 style: Update Vertex AI models (#6967)
* Add Gemini 2.0 Flash Lite model

* Update Vertex AI model prices
2025-03-15 11:52:33 +08:00
Arvin Xu fdcaaf34fa 🐛 fix: fix google gemini output relative issue (#6970)
* fix google streaming

* add ability

* fix instruction

* fix tests

* update i18n
2025-03-15 11:52:20 +08:00
lobehubbot 59cafa0bc3 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-14 13:17:45 +00:00
semantic-release-bot 1f08511ca6 🔖 chore(release): v1.71.0 [skip ci]
## [Version&nbsp;1.71.0](https://github.com/lobehub/lobe-chat/compare/v1.70.11...v1.71.0)
<sup>Released on **2025-03-14**</sup>

####  Features

- **misc**: Support gemini image output in chat.

<br/>

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

#### What's improved

* **misc**: Support gemini image output in chat, closes [#6931](https://github.com/lobehub/lobe-chat/issues/6931) ([d4c0d1f](https://github.com/lobehub/lobe-chat/commit/d4c0d1f))

</details>

<div align="right">

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

</div>
2025-03-14 13:16:36 +00:00
gru-agent[bot] d4c0d1f8fb feat: support gemini image output in chat (#6931)
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-03-14 21:08:02 +08:00
Arvin Xu af0243cc15 feat: support gemini image output in chat (#6956)
* support gemini image

* fix lint

* fix

* fix upload bug

* support google token count

* update credit

* update i18n
2025-03-14 20:52:37 +08:00
Arvin Xu 849584479a 🔨 chore: visualize db schema with dbdocs (#6950)
* test db schema

* Update sync-database-schema.yml

* Update sync-database-schema.yml

* Update sync-database-schema.yml

* Update package.json

* Update sync-database-schema.yml

* Delete docs/developer/database-schema.dbml

* update workflow

* Update sync-database-schema.yml
2025-03-14 14:24:39 +08:00
lobehubbot a7e92b3b5b 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-13 17:02:47 +00:00
semantic-release-bot 9f695332c8 🔖 chore(release): v1.70.11 [skip ci]
### [Version&nbsp;1.70.11](https://github.com/lobehub/lobe-chat/compare/v1.70.10...v1.70.11)
<sup>Released on **2025-03-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>
2025-03-13 17:01:43 +00:00
Arvin Xu c9a17fbff8 ️ perf: fix improve topic relative performance (#6937) 2025-03-14 00:53:14 +08:00
BrandonStudio 30b13088a3 🔨 chore: Add types for issue templates (#6940) 2025-03-13 18:06:46 +08:00
lobehubbot b7051a0ab7 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-12 18:06:10 +00:00
semantic-release-bot 0b871ecc89 🔖 chore(release): v1.70.10 [skip ci]
### [Version&nbsp;1.70.10](https://github.com/lobehub/lobe-chat/compare/v1.70.9...v1.70.10)
<sup>Released on **2025-03-12**</sup>

#### 🐛 Bug Fixes

- **misc**: The agent setting `-edit_agent` not work.

<br/>

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

#### What's fixed

* **misc**: The agent setting `-edit_agent` not work, closes [#4609](https://github.com/lobehub/lobe-chat/issues/4609) ([7af0ec6](https://github.com/lobehub/lobe-chat/commit/7af0ec6))

</details>

<div align="right">

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

</div>
2025-03-12 18:05:03 +00:00
mushan0x0 7af0ec6161 🐛 fix: the agent setting -edit_agent not work (#4609)
* 🐛 fix: the agent setting `-edit_agent` not work

* Update index.tsx
2025-03-13 01:56:19 +08:00
lobehubbot 64caf2ebd2 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-12 16:35:13 +00:00
semantic-release-bot a9e572b48e 🔖 chore(release): v1.70.9 [skip ci]
### [Version&nbsp;1.70.9](https://github.com/lobehub/lobe-chat/compare/v1.70.8...v1.70.9)
<sup>Released on **2025-03-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>
2025-03-12 16:34:08 +00:00
Arvin Xu f7d6021e4a ️ perf: fix topic search performance (#6912)
* update

* fix lint

* fix tests

* fix tests

* update locale
2025-03-13 00:25:17 +08:00
lobehubbot 9a9d98fdec 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-12 15:44:40 +00:00
semantic-release-bot b3894ba19d 🔖 chore(release): v1.70.8 [skip ci]
### [Version&nbsp;1.70.8](https://github.com/lobehub/lobe-chat/compare/v1.70.7...v1.70.8)
<sup>Released on **2025-03-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix theme flicking.

<br/>

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

#### What's fixed

* **misc**: Fix theme flicking, closes [#6926](https://github.com/lobehub/lobe-chat/issues/6926) ([103c3e3](https://github.com/lobehub/lobe-chat/commit/103c3e3))

</details>

<div align="right">

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

</div>
2025-03-12 15:43:37 +00:00
Arvin Xu 103c3e3696 🐛 fix: fix theme flicking (#6926) 2025-03-12 23:34:49 +08:00
lobehubbot 210920f4b6 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-12 11:28:53 +00:00
semantic-release-bot 2770a8b9a6 🔖 chore(release): v1.70.7 [skip ci]
### [Version&nbsp;1.70.7](https://github.com/lobehub/lobe-chat/compare/v1.70.6...v1.70.7)
<sup>Released on **2025-03-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix crawl result for short content.

<br/>

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

#### What's fixed

* **misc**: Fix crawl result for short content, closes [#6903](https://github.com/lobehub/lobe-chat/issues/6903) [#6904](https://github.com/lobehub/lobe-chat/issues/6904) ([d8fda65](https://github.com/lobehub/lobe-chat/commit/d8fda65))

</details>

<div align="right">

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

</div>
2025-03-12 11:27:51 +00:00
Arvin Xu d8fda65d33 🐛 fix: fix crawl result for short content (#6903)
* fix impl for short content

* Add test to skip results with content length less than or equal to 100 in crawler. (#6904)

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>

---------

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-03-12 19:19:06 +08:00
lobehubbot c7170c0e06 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-11 17:59:56 +00:00
semantic-release-bot dd6086a3a3 🔖 chore(release): v1.70.6 [skip ci]
### [Version&nbsp;1.70.6](https://github.com/lobehub/lobe-chat/compare/v1.70.5...v1.70.6)
<sup>Released on **2025-03-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Link jump in mobile terminal data statistics.

<br/>

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

#### What's fixed

* **misc**: Link jump in mobile terminal data statistics, closes [#6893](https://github.com/lobehub/lobe-chat/issues/6893) ([505d24d](https://github.com/lobehub/lobe-chat/commit/505d24d))

</details>

<div align="right">

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

</div>
2025-03-11 17:58:51 +00:00
XiaoBa 505d24d8d6 🐛 fix: Link jump in mobile terminal data statistics (#6893)
Co-authored-by: Xiaoba Yu <xb1823725853@gmail.com>
2025-03-12 01:50:06 +08:00
lobehubbot b6a9126506 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-11 15:49:14 +00:00
semantic-release-bot fff6c71f71 🔖 chore(release): v1.70.5 [skip ci]
### [Version&nbsp;1.70.5](https://github.com/lobehub/lobe-chat/compare/v1.70.4...v1.70.5)
<sup>Released on **2025-03-11**</sup>

#### 🐛 Bug Fixes

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

<br/>

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

#### What's fixed

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

</details>

<div align="right">

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

</div>
2025-03-11 15:48:12 +00:00
Arvin Xu e5c2161288 🐛 fix: refactor the theme implement (#6844)
* refactor theme

* Refactor systemStatus selectors tests to improve coverage and organization.

* improve cookie issue

* fix theme

* Add unit tests for global store actions in general.test.ts

---------

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
2025-03-11 23:39:31 +08:00
semantic-release-bot 41a1f2af2e 🔖 chore(release): v1.70.4 [skip ci]
### [Version&nbsp;1.70.4](https://github.com/lobehub/lobe-chat/compare/v1.70.3...v1.70.4)
<sup>Released on **2025-03-11**</sup>

#### 💄 Styles

- **misc**: Support OpenRouter custom BaseURL.

<br/>

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

#### Styles

* **misc**: Support OpenRouter custom BaseURL ([a8089ed](https://github.com/lobehub/lobe-chat/commit/a8089ed))

</details>

<div align="right">

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

</div>
2025-03-11 04:20:58 +00:00
Arvin Xu a3099cfdc6 Merge pull request #6732 from bbbugg/patch-1
🐛fix: customize logo not display in About page and update DOCS about "deploymentName"
2025-03-11 12:12:13 +08:00
Arvin Xu 6267b76153 Merge pull request #6864 from BrandonStudio/dev/openrouter-baseurl
💄 style: Support OpenRouter custom BaseURL
2025-03-11 12:10:48 +08:00
Arvin Xu 6f4d280481 Merge pull request #6886 from lobehub/refactor/code
♻️ refactor: refactor user plugins model name
2025-03-11 12:09:47 +08:00
Arvin Xu 5d7007f37b fix json issue 2025-03-11 03:29:48 +00:00
Arvin Xu 65102d60ec update 2025-03-11 03:26:51 +00:00
Arvin Xu 96a4c4a42f refactor code 2025-03-11 03:17:45 +00:00
lobehubbot a28165b2f5 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-11 02:46:06 +00:00
Arvin Xu 265e9b3c07 Merge pull request #6882 from lobehub/gru/src-store-aiInfra-slices-aiProvider-selectors-ts-1741658283737
 test: add unit test for src/store/aiInfra/slices/aiProvider/selectors.ts
2025-03-11 10:37:23 +08:00
gru-agent[bot] 8eb7a04fd4 Add unit tests for aiProvider selectors in selectors.test.ts file. 2025-03-11 01:58:11 +00:00
semantic-release-bot 08f8073580 🔖 chore(release): v1.70.3 [skip ci]
### [Version&nbsp;1.70.3](https://github.com/lobehub/lobe-chat/compare/v1.70.2...v1.70.3)
<sup>Released on **2025-03-11**</sup>

#### 💄 Styles

- **spelling**: Correct "broswer" to "browser" across codebase.

<br/>

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

#### Styles

* **spelling**: Correct "broswer" to "browser" across codebase, closes [#6876](https://github.com/lobehub/lobe-chat/issues/6876) ([8d677a2](https://github.com/lobehub/lobe-chat/commit/8d677a2))

</details>

<div align="right">

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

</div>
2025-03-11 01:47:09 +00:00
KurtisAsia 8d677a2feb 💄 style(spelling): correct "broswer" to "browser" across codebase (#6876)
fix(spelling): correct "broswer" to "browser" across codebase

- Fix typo in modelConfig.ts and modelConfig.test.ts
- Correct spelling in aiProvider/selectors.ts
- Fix spelling in localization files (setting.ts, setting.json)
- Update spelling in modelProviders/index.ts
- Corrected in multiple locales (zh-TW, zh-CN, fa-IR)
2025-03-11 09:38:31 +08:00
BrandonStudio a8089edc06 💄 style: Support OpenRouter custom BaseURL 2025-03-10 08:30:02 +00:00
lobehubbot 76e132722f 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-10 05:40:38 +00:00
semantic-release-bot c3a0dc0965 🔖 chore(release): v1.70.2 [skip ci]
### [Version&nbsp;1.70.2](https://github.com/lobehub/lobe-chat/compare/v1.70.1...v1.70.2)
<sup>Released on **2025-03-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Update cvpr cvf url rules.

<br/>

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

#### What's fixed

* **misc**: Update cvpr cvf url rules, closes [#6860](https://github.com/lobehub/lobe-chat/issues/6860) ([c299067](https://github.com/lobehub/lobe-chat/commit/c299067))

</details>

<div align="right">

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

</div>
2025-03-10 05:39:37 +00:00
Arvin Xu c299067cb6 🐛 fix: update cvpr cvf url rules (#6860) 2025-03-10 13:31:05 +08:00
lobehubbot 981bb08029 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-10 03:31:09 +00:00
semantic-release-bot bb21eb3efd 🔖 chore(release): v1.70.1 [skip ci]
### [Version&nbsp;1.70.1](https://github.com/lobehub/lobe-chat/compare/v1.70.0...v1.70.1)
<sup>Released on **2025-03-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix anthropic max tokens.

<br/>

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

#### What's fixed

* **misc**: Fix anthropic max tokens, closes [#6859](https://github.com/lobehub/lobe-chat/issues/6859) ([35fbc6c](https://github.com/lobehub/lobe-chat/commit/35fbc6c))

</details>

<div align="right">

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

</div>
2025-03-10 03:30:06 +00:00
Arvin Xu 35fbc6c0d5 🐛 fix: fix anthropic max tokens (#6859)
* fix anthropic

* update i18n
2025-03-10 11:21:32 +08:00
wzdnzd dfee9b2b13 🔨 chore: typo fixed for zh-CN (#6856) 2025-03-10 11:04:40 +08:00
Arvin Xu 1841fee733 Merge branch 'main' into patch-1 2025-03-10 02:52:49 +08:00
lobehubbot cc9f793ec3 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-09 18:45:41 +00:00
semantic-release-bot df0886ebf3 🔖 chore(release): v1.70.0 [skip ci]
## [Version&nbsp;1.70.0](https://github.com/lobehub/lobe-chat/compare/v1.69.6...v1.70.0)
<sup>Released on **2025-03-09**</sup>

####  Features

- **misc**: Support no-fc models like deepseek r1 with online search.

<br/>

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

#### What's improved

* **misc**: Support no-fc models like deepseek r1 with online search, closes [#6842](https://github.com/lobehub/lobe-chat/issues/6842) ([f284c25](https://github.com/lobehub/lobe-chat/commit/f284c25))

</details>

<div align="right">

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

</div>
2025-03-09 18:44:41 +00:00
Arvin Xu f284c25606 feat: support no-fc models like deepseek r1 with online search (#6842)
* update crawler rule

* feat: 完成联网集成

* update i18n

* update tests

* update tests

* fix tests

* improve performance

* fix error issue

* fix signal issue and improve implement

* fix pricing in CNY

* fix tests

* filter empty providers

* fix tests

* improve search crawler env

* fix search crawler env

* fix documents
2025-03-10 02:35:52 +08:00
bbbugg 0cf39c535d Merge branch 'lobehub:main' into patch-1 2025-03-09 22:21:06 +08:00
lobehubbot 23a26a9563 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-09 14:01:53 +00:00
semantic-release-bot 8039186493 🔖 chore(release): v1.69.6 [skip ci]
### [Version&nbsp;1.69.6](https://github.com/lobehub/lobe-chat/compare/v1.69.5...v1.69.6)
<sup>Released on **2025-03-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix context cache control and model builtin search switch.

<br/>

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

#### What's fixed

* **misc**: Fix context cache control and model builtin search switch, closes [#6831](https://github.com/lobehub/lobe-chat/issues/6831) ([5c6b8ea](https://github.com/lobehub/lobe-chat/commit/5c6b8ea))

</details>

<div align="right">

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

</div>
2025-03-09 14:00:43 +00:00
Arvin Xu 5c6b8eaf8a 🐛 fix: fix context cache control and model builtin search switch (#6831)
* upgrade readability

* improve openai performance

* improve model select

* upgrade pglite to 0.2.17

* fix google builtin search config

* fix tests

* fix claude max output tokens and context caching config

* fix context caching config

* update i18n

* fix tests
2025-03-09 21:52:12 +08:00
renovate[bot] dde299312e Update pnpm to v9.15.7 (#6819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-09 21:19:05 +08:00
lobehubbot 0aa47d024c 📝 docs(bot): Auto sync agents & plugin to readme 2025-03-09 11:18:04 +00:00
semantic-release-bot b86d86782a 🔖 chore(release): v1.69.5 [skip ci]
### [Version&nbsp;1.69.5](https://github.com/lobehub/lobe-chat/compare/v1.69.4...v1.69.5)
<sup>Released on **2025-03-09**</sup>

#### 💄 Styles

- **chat**: Auto send message from URL.
- **misc**: Support openrouter claude 3.7 sonnet reasoning.

<br/>

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

#### Styles

* **chat**: Auto send message from URL, closes [#6497](https://github.com/lobehub/lobe-chat/issues/6497) ([30b2639](https://github.com/lobehub/lobe-chat/commit/30b2639))
* **misc**: Support openrouter claude 3.7 sonnet reasoning, closes [#6806](https://github.com/lobehub/lobe-chat/issues/6806) ([f1ffc2c](https://github.com/lobehub/lobe-chat/commit/f1ffc2c))

</details>

<div align="right">

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

</div>
2025-03-09 11:16:40 +00:00
Eridanus Sora 6006175c5d ️ perf: improve performace of refreshModelProviderList (#6672) 2025-03-09 19:07:42 +08:00
bbbugg c0f1532ca4 新增 QWEN_PROXY_URL 配置项并更新 VOLCENGINE_MODEL_LIST 描述语法(加入了部署名) 2025-03-08 16:22:08 +08:00
bbbugg 9bad484252 DEEPSEEK_MODEL_LIST 移除 deploymentName描述 2025-03-08 16:04:41 +08:00
bbbugg 8c1412a5a1 修复:更新 logo 组件默认类型处理并移除type={'flat'} 2025-03-08 15:57:15 +08:00
bbbugg de12fcf896 Merge branch 'lobehub:main' into patch-1 2025-03-08 08:24:44 +08:00
bbbugg c2d0ee8c96 Merge branch 'main' into patch-1 2025-03-07 16:51:12 +08:00
bbbugg ebf5fb1ff9 fix previous "deplymentName" to "deploymentName" 2025-03-07 16:41:04 +08:00
bbbugg e0b554fbe5 Add the "deploymentName" parameter in the Model List environment variable 2025-03-07 16:36:21 +08:00
bbbugg 008c7b5f67 Add the "deploymentName" parameter in the Model List environment variable 2025-03-07 16:35:33 +08:00
bbbugg 05a384edb3 Add the description of "DEEPSEEK_MODEL_LIST" 2025-03-07 16:21:46 +08:00
bbbugg 2ec4f03b07 Add the description of "DEEPSEEK_MODEL_LIST" 2025-03-07 16:20:28 +08:00
bbbugg da04eef212 fix: customize logo not display in About page
Fix customize logo not display in About page. Previously, custom icons were not displayed.
2025-03-05 20:48:53 +08:00
2943 changed files with 200707 additions and 41109 deletions
+100
View File
@@ -0,0 +1,100 @@
---
description:
globs: src/services/**/*,src/database/**/*,src/server/**/*
alwaysApply: false
---
# LobeChat 后端技术架构指南
本指南旨在阐述 LobeChat 项目的后端分层架构,重点介绍各核心目录的职责以及它们之间的协作方式。
## 目录结构映射
```
src/
├── server/
│ ├── routers/ # tRPC API 路由定义
│ └── services/ # 业务逻辑服务层
│ └── */impls/ # 平台特定实现
├── database/
│ ├── models/ # 数据模型 (单表 CRUD)
│ ├── repositories/ # 仓库层 (复杂查询/聚合)
│ └── schemas/ # Drizzle ORM 表定义
└── services/ # 客户端服务 (调用 tRPC 或直接访问 Model)
```
## 核心架构分层
LobeChat 的后端设计注重模块化、可测试性和灵活性,以适应不同的运行环境(如浏览器端 PGLite、服务端远程 PostgreSQL 以及 Electron 桌面应用)。
其主要分层如下:
1. 客户端服务层 (`src/services`):
- 位于 src/services/。
- 这是客户端业务逻辑的核心层,负责封装各种业务操作和数据处理逻辑。
- 环境适配: 根据不同的运行环境,服务层会选择合适的数据访问方式:
- 本地数据库模式: 直接调用 `Model` 层进行数据操作,适用于浏览器 PGLite 和本地 Electron 应用。
- 远程数据库模式: 通过 `tRPC` 客户端调用服务端 API,适用于需要云同步的场景。
- 类型转换: 对于简单的数据类型转换,直接在此层进行类型断言,如 `this.pluginModel.query() as Promise<LobeTool[]>`
- 每个服务模块通常包含 `client.ts`(本地模式)、`server.ts`(远程模式)和 `type.ts`(接口定义)文件,在实现时应该确保本地模式和远程模式业务逻辑实现一致,只是数据库不同。
2. API 接口层 (`TRPC`):
- 位于 src/server/routers/
- 使用 `tRPC` 构建类型安全的 API。Router 根据运行时环境(如 Edge Functions, Node.js Lambda)进行组织。
- 负责接收客户端请求,并将其路由到相应的 `Service` 层进行处理。
- 新建 lambda 端点时可以参考 src/server/routers/lambda/\_template.ts
3. 仓库层 (`Repositories`):
- 位于 src/database/repositories/。
- 主要处理复杂的跨表查询和数据聚合逻辑,特别是当需要从多个 `Model` 获取数据并进行组合时。
- 与 `Model` 层不同,`Repository` 层专注于复杂的业务查询场景,而不涉及简单的领域模型转换。
- 当业务逻辑涉及多表关联、复杂的数据统计或需要事务处理时,会使用 `Repository` 层。
- 如果数据操作简单(仅涉及单个 `Model`),则通常直接在 `src/services` 层调用 `Model` 并进行简单的类型断言。
4. 模型层 (`Models`):
- 位于 src/database/models/ (例如 src/database/models/plugin.ts 和 src/database/models/document.ts)。
- 提供对数据库中各个表(由 src/database/schemas/ 中的 Drizzle ORM schema 定义)的基本 CRUD (创建、读取、更新、删除) 操作和简单的查询能力。
- `Model` 类专注于单个数据表的直接操作,不涉及复杂的领域模型转换,这些转换通常在上层的 `src/services` 中通过类型断言完成。
- model(例如 Topic 层接口经常需要从对应的 schema 层导入 NewTopic 和 TopicItem
- 创建新的 model 时可以参考 src/database/models/\_template.ts
5. 数据库 (`Database`):
- 客户端模式 (浏览器/PWA): 使用 PGLite (基于 WASM 的 PostgreSQL),数据存储在用户浏览器本地。
- 服务端模式 (云部署): 使用远程 PostgreSQL 数据库。
- Electron 桌面应用:
- Electron 客户端会启动一个本地 Node.js 服务。
- 本地服务通过 `tRPC` 与 Electron 的渲染进程通信。
- 数据库选择依赖于是否开启云同步功能:
- 云同步开启: 连接到远程 PostgreSQL 数据库。
- 云同步关闭: 使用 PGLite (通过 Node.js 的 WASM 实现) 在本地存储数据。
## 数据流向说明
### 浏览器/PWA 模式
```
UI (React) → Zustand action -> Client Service → Model Layer → PGLite (本地数据库)
```
### 服务端模式
```
UI (React) → Zustand action → Client Service -> TRPC Client → TRPC Routers → Repositories/Models → Remote PostgreSQL
```
### Electron 桌面应用模式
```
UI (Electron Renderer) → Zustand action → Client Service -> TRPC Client → 本地 Node.js 服务 → TRPC Routers → Repositories/Models → PGLite/Remote PostgreSQL (取决于云同步设置)
```
## 服务层 (Server Services)
- 位于 src/server/services/。
- 核心职责是封装独立的、可复用的业务逻辑单元。这些服务应易于测试。
- 平台差异抽象: 一个关键特性是通过其内部的 `impls` 子目录(例如 src/server/services/file/impls 包含 s3.ts 和 local.ts)来抹平不同运行环境带来的差异(例如云端使用 S3 存储,桌面版使用本地文件系统)。这使得上层(如 `tRPC` routers)无需关心底层具体实现。
- 目标是使 `tRPC` router 层的逻辑尽可能纯粹,专注于请求处理和业务流程编排。
- 服务可能会调用 `Repository` 层或直接调用 `Model` 层进行数据持久化和检索,也可能调用其他服务。
+69
View File
@@ -0,0 +1,69 @@
---
description: How to code review
globs:
alwaysApply: false
---
# Role Description
- You are a senior full-stack engineer skilled in performance optimization, security, and design systems.
- You excel at reviewing code and providing constructive feedback.
- Your task is to review submitted Git diffs **in Chinese** and return a structured review report.
- Review style: concise, direct, focused on what matters most, with actionable suggestions.
## Before the Review
Gather the modified code and context. Please strictly follow the process below:
1. Use `read_file` to read [package.json](mdc:package.json)
2. Use terminal to run command `git diff HEAD | cat` to obtain the diff and list the changed files. If you recieived empty result, run the same command once more.
3. Use `read_file` to open each changed file.
4. Use `read_file` to read [rules-attach.mdc](mdc:.cursor/rules/rules-attach.mdc). Even if you think it's unnecessary, you must read it.
5. combine changed files, step3 and `agent_requestable_workspace_rules`, list the rules which need to read
6. Use `read_file` to read the rules list in step 5
## Review
### Code Style
- Ensure JSDoc comments accurately reflect the implementation; update them when needed.
- Look for opportunities to simplify or modernize code with the latest JavaScript/TypeScript features.
- Prefer `async`/`await` over callbacks or chained `.then` promises.
- Use consistent, descriptive naming—avoid obscure abbreviations.
- Replace magic numbers or strings with well-named constants.
- Use semantically meaningful variable, function, and class names.
- Ignore purely formatting issues and other autofixable lint problems.
### Code Optimization
- Prefer `for…of` loops to index-based `for` loops when feasible.
- Decide whether callbacks should be **debounced** or **throttled**.
- Use components from `@lobehub/ui`, Ant Design, or the existing design system instead of raw HTML tags (e.g., `Button` vs. `button`).
- reuse npm packages already installed (e.g., `lodash/omit`) rather than reinventing the wheel.
- Design for dark mode and mobile responsiveness:
- Use the `antd-style` token system instead of hard-coded colors.
- Select the proper component variants.
- Performance considerations:
- Where safe, convert sequential async flows to concurrent ones with `Promise.all`, `Promise.race`, etc.
- Query only the required columns from a database rather than selecting entire rows.
### Obvious Bugs
- Do not silently swallow errors in `catch` blocks; at minimum, log them.
- Revert temporary code used only for testing (e.g., debug logs, temporary configs).
- Remove empty handlers (e.g., an empty `onClick`).
- Confirm the UI degrades gracefully for unauthenticated users.
## After the Review: output
1. Summary
- Start with a brief explanation of what the change set does.
- Summarize the changes for each modified file (or logical group).
2. Comments Issues
- List the most critical issues first.
- Use an ordered list, which will be convenient for me to reference later.
- For each issue:
- Mark severity tag (`❌ Must fix`, `⚠️ Should fix`, `💅 Nitpick`)
- Provode file path to the relevant file.
- Provide recommended fix
- End with a **git commit** command, instruct the author to run it.
- We use gitmoji to label commit messages, format: [emoji] <type>(<scope>): <subject>
+28
View File
@@ -0,0 +1,28 @@
---
description: cursor rules writing and optimization guide
globs:
alwaysApply: false
---
当你编写或修改 Cursor Rule 时,请遵循以下准则:
- 当你知道 rule 的文件名时,使用 `read_file` 而不是 `fetch_rules` 去读取它们,它们都在项目根目录的 `.cursor/rules/` 文件夹下
- 代码示例
- 示例应尽量精简,仅保留演示核心
- 删除与示例无关的导入/导出语句,但保留必要的导入
- 同一文件存在多个示例时,若前文已演示模块导入,后续示例可省略重复导入
- 无需书写 `export`
- 可省略与演示无关或重复的 props、配置对象属性、try/catch、CSS 等代码
- 删除无关注释,保留有助理解的注释
- 格式
- 修改前请先确认原始文档语言,并保持一致
- 无序列表统一使用 `-`
- 列表末尾的句号是多余的
- 非必要不使用加粗、行内代码等样式,Rule 主要供 LLM 阅读
- 避免中英文逐句对照。若括号内容为示例而非翻译,可保留
- Review
- 修正 Markdown 语法问题
- 纠正错别字
- 指出示例与说明不一致之处
+94
View File
@@ -0,0 +1,94 @@
---
description:
globs:
alwaysApply: true
---
# Guide to Optimize Output(Response) Rendering
## File Path and Code Symbol Rendering
- When rendering file paths, use backtick wrapping instead of markdown links so they can be parsed as clickable links in Cursor IDE.
- Good: `src/components/Button.tsx`
- Bad: [src/components/Button.tsx](mdc:src/components/Button.tsx)
- When rendering functions, variables, or other code symbols, use backtick wrapping so they can be parsed as navigable links in Cursor IDE
- Good: The `useState` hook in `MyComponent`
- Bad: The useState hook in MyComponent
## Markdown Render
- don't use br tag to wrap in table cell
## Terminal Command Output
- If terminal commands don't produce output, it's likely due to paging issues. Try piping the command to `cat` to ensure full output is displayed.
- Good: `git show commit_hash -- file.txt | cat`
- Good: `git log --oneline | cat`
- Reason: Some git commands use pagers by default, which may prevent output from being captured properly
## Mermaid Diagram Generation: Strict Syntax Validation Checklist
Before producing any Mermaid diagram, you **must** compare your final code line-by-line against every rule in the following checklist to ensure 100% compliance. **This is a hard requirement and takes precedence over other stylistic suggestions.** Please follow these action steps:
1. Plan the Mermaid diagram logic in your mind.
2. Write the Mermaid code.
3. **Carefully review your code line-by-line against the entire checklist below.**
4. Fix any aspect of your code that doesn't comply.
5. Use the `validateMermaid` tool to check your code for syntax errors. Only proceed if validation passes.
6. Output the final, compliant, and copy-ready Mermaid code block.
7. Immediately after the Mermaid code block, output:
I have checked that the Mermaid syntax fully complies with the validation checklist.
---
### Checklist Details
#### Rule 1: Edge Labels Must Be Plain Text Only
> **Essence:** Anything inside `|...|` must contain pure, unformatted text. Absolutely NO Markdown, list markers, or parentheses/brackets allowed—these often cause rendering failures.
- **✅ Do:** `A -->|Process plain text data| B`
- **❌ Don't:** `A -->|1. Ordered list item| B` (No numbered lists)
- **❌ Don't:** `CC --"1. fetch('/api/...')"--> API` (No square brackets)
- **❌ Don't:** `A -->|- Unordered list item| B` (No hyphen lists)
- **❌ Don't:** `A -->|Transform (important)| B` (No parentheses)
- **❌ Don't:** `A -->|Transform [important]| B` (No square brackets)
#### Rule 2: Node Definition Handle Special Characters with Care
> **Essence:** When node text or subgraph titles contain special characters like `()` or `[]`, wrap the text in quotes to avoid conflicts with Mermaid shape syntax.
- **When your node text includes parentheses (e.g., 'React (JSX)'):**
- **✅ Do:** `I_REACT["<b>React component (JSX)</b>"]` (Quotes wrap all text)
- **❌ Don't:** `I_REACT(<b>React component (JSX)</b>)` (Wrong, Mermaid parses this as a shape)
- **❌ Don't:** `subgraph Plugin Features (Plugins)` (Wrong, subgraph titles with parentheses must also be wrapped in quotes)
#### Rule 3: Double Quotes in Text Must Be Escaped
> **Essence:** Use `&quot;` for double quotes **inside node text**.
- **✅ Do:** `A[This node contains &quot;quotes&quot;]`
- **❌ Don't:** `A[This node contains "quotes"]`
#### Rule 4: All Formatting Must Use HTML Tags (NOT Markdown!)
> **Essence:** For newlines, bold, and other text formatting in nodes, use HTML tags only. Markdown is not supported.
- **✅ Do (robust):** `A["<b>Bold</b> and <code>code</code><br>This is a new line"]`
- **❌ Don't (not rendered):** `C["# This is a heading"]`
- **❌ Don't (not rendered):** ``C["`const` means constant"]``
- **⚠️ Warning (unreliable):** `B["Markdown **bold** might sometimes work but DON'T rely on it"]`
#### Rule 5: No HTML Tags for Participants and Message Labels (Sequence Diagrams)
> **Important Addition:**
> In Mermaid sequence diagrams, you MUST NOT use any HTML tags (such as `<b>`, `<code>`, etc.) in:
> - `participant` display names (`as` part)
> - Message labels (the text after `:` in diagram flows)
>
> These tags are generally not rendered—they may appear as-is or cause compatibility issues.
- **✅ Do:** `participant A as Client`
- **❌ Don't:** `participant A as <b>Client</b>`
- **✅ Do:** `A->>B: 1. Establish connection`
- **❌ Don't:** `A->>B: 1. <code>Establish connection</code>`
---
**Validate each Mermaid code block by running it through the `validateMermaid` tool before delivering your output!**
+84
View File
@@ -0,0 +1,84 @@
---
description: 包含添加 debug 日志请求时
globs:
alwaysApply: false
---
# Debug 包使用指南
本项目使用 [debug](mdc:https:/github.com/debug-js/debug) 包进行调试日志记录。使用此规则来确保团队成员统一调试日志格式。
## 基本用法
1. 导入 debug 包:
```typescript
import debug from 'debug';
```
2. 创建一个命名空间的日志记录器:
```typescript
// 格式: lobe:[模块]:[子模块]
const log = debug('lobe-[模块名]:[子模块名]');
```
3. 使用日志记录器:
```typescript
log('简单消息');
log('带变量的消息: %O', object);
log('格式化数字: %d', number);
```
## 命名空间约定
- 桌面应用相关: `lobe-desktop:[模块]`
- 服务端相关: `lobe-server:[模块]`
- 客户端相关: `lobe-client:[模块]`
- 路由相关: `lobe-[类型]-router:[模块]`
## 格式说明符
- `%O` - 对象展开(推荐用于复杂对象)
- `%o` - 对象
- `%s` - 字符串
- `%d` - 数字
## 示例
查看 [market/index.ts](mdc:src/server/routers/edge/market/index.ts) 中的使用示例:
```typescript
import debug from 'debug';
const log = debug('lobe-edge-router:market');
log('getAgent input: %O', input);
```
## 启用调试
要在开发时启用调试输出,需设置环境变量:
### 在浏览器中
在控制台执行:
```javascript
localStorage.debug = 'lobe-*'
```
### 在 Node.js 环境中
```bash
DEBUG=lobe-* npm run dev
# 或者
DEBUG=lobe-* pnpm dev
```
### 在 Electron 应用中
可以在主进程和渲染进程启动前设置环境变量:
```typescript
process.env.DEBUG = 'lobe-*';
```
+193
View File
@@ -0,0 +1,193 @@
---
description: Debug 调试指南
globs:
alwaysApply: false
---
# Debug 调试指南
## 💡 调试流程概览
当遇到问题时,请按照以下优先级进行处理:
1. **快速判断** - 对于熟悉的错误,直接提供解决方案
2. **信息收集** - 使用工具搜索相关代码和配置
3. **网络搜索** - 查找现有解决方案
4. **定位调试** - 添加日志进行问题定位
5. **临时方案** - 如果找不到根本解决方案,提供临时解决方案
6. **解决实施** - 提供可维护的最终解决方案
## 🔍 错误信息分析
### 错误来源识别
错误信息可能来自:
- **Terminal 输出** - 构建、运行时错误
- **浏览器控制台** - 前端 JavaScript 错误
- **开发工具** - ESLint、TypeScript、测试框架等
- **服务器日志** - API、数据库连接等后端错误
- **截图或文本** - 用户直接提供的错误信息
## 🛠️ 信息收集工具
### 代码搜索工具
使用以下工具收集相关信息,并根据场景选择最合适的工具:
- **`codebase_search` (语义搜索)**
- **何时使用**: 当你不确定具体的代码实现,想要寻找相关概念、功能或逻辑时。
- **示例**: `查询"文件上传"功能的实现`
- **`grep_search` (精确/正则搜索)**
- **何时使用**: 当你知道要查找的确切字符串、函数名、变量名或一个特定的模式时。
- **示例**: `查找所有使用了 'useState' 的地方`
- **`file_search` (文件搜索)**
- **何时使用**: 当你知道文件名的一部分,需要快速定位文件时。
- **示例**: `查找 'Button.tsx' 组件`
- **`read_file` (内容读取)**
- **何时使用**: 在定位到具体文件后,用于查看其完整内容和上下文。
- **`web_search` (网络搜索)**
- **何时使用**: 当错误信息可能与第三方库、API 或常见问题相关时,用于获取外部信息。
### 环境与依赖检查
- **检查 `package.json`**: 查看 `scripts` 了解项目如何运行、构建和测试。查看 `dependencies` 和 `devDependencies` 确认库版本,版本冲突有时是问题的根源。
- **运行测试**: 使用 `ni vitest` 运行单元测试和集成测试,这可以快速定位功能回归或组件错误。
### 项目特定搜索目标
针对 lobe-chat 项目,重点关注:
- **配置文件**: [package.json](mdc:package.json), [next.config.mjs](mdc:next.config.mjs)
- **核心功能**: `src/features/` 下的相关模块
- **状态管理**: `src/store/` 下的 Zustand stores
- **数据库**: `src/database/` 和 `src/migrations/`
- **类型定义**: `src/types/` 下的类型文件
- **服务层**: `src/services/` 下的 API 服务
- **启动流程**: [apps/desktop/src/main/core/App.ts](mdc:apps/desktop/src/main/core/App.ts) - 了解应用启动流程
## 🌐 网络搜索策略
### 搜索顺序优先级
1. **和问题相关的项目的 github issue**
2. **技术社区**
- Stack Overflow
- GitHub Discussions
- Reddit
3. **官方文档**
- 使用 `mcp_context7_resolve-library-id` 和 `mcp_context7_get-library-docs` 工具
- 查阅官方文档网站
### 搜索关键词策略
- **错误信息**: 完整的错误消息
- **技术栈**: "Next.js 15" + "error message"
- **上下文**: 添加功能相关的关键词
## 🔧 问题定位与结构化思考
如果问题比较复杂,我们要按照先定位问题,再解决问题的大方向进行。
### 结构化思考工具
对于复杂或多步骤的调试任务,使用 `mcp_sequential-thinking_sequentialthinking` 工具来结构化思考过程。这有助于:
- **分解问题**: 将大问题拆解成可管理的小步骤。
- **清晰追踪**: 记录每一步的发现和决策,避免遗漏。
- **自我修正**: 在过程中评估和调整调试路径。
### 日志调试
在问题产生的路径上添加日志,可以简单使用 `console.log` 或者参考 [debug-usage.mdc](mdc:.cursor/rules/debug-usage.mdc) 使用 `debug` 模块。添加完日志后,请求我运行相关的代码并提供关键输出和错误信息。
### 引导式交互调试
虽然我无法直接操作浏览器开发者工具,但我可以引导你进行交互式调试:
1. **设置断点**: 我会告诉你可以在哪些关键代码行设置断点。
2. **检查变量**: 我会请你在断点处检查特定变量的值或 `props`/`state`。
3. **分析调用栈**: 我会请你提供调用栈信息,以帮助理解代码执行流程。
## 💡 临时解决方案策略
当无法找到根本解决方案时,提供临时解决方案:
### 临时方案准则
- **快速修复** - 优先让功能可用
- **最小修改** - 减少对现有代码的影响
- **清晰标记** - 明确标注这是临时方案
- **后续计划** - 说明后续如何找到更好的解决方案
### 临时方案模板
```markdown
## 临时解决方案 ⚠️
**问题**: [简要描述问题]
**临时修复**:
[具体的临时修复步骤]
**风险说明**:
- [可能的副作用或限制]
- [需要注意的事项]
**后续计划**:
- [ ] 深入调研根本原因
- [ ] 寻找更优雅的解决方案
- [ ] 监控是否有其他影响
```
## ✅ 解决方案准则
### 方案质量标准
提供的解决方案应该:
- **✅ 低侵入性** - 最小化对现有代码的修改
- **✅ 可维护性** - 易于理解和后续维护
- **✅ 类型安全** - 符合 TypeScript 规范
- **✅ 最佳实践** - 遵循项目的编码规范
- **✅ 测试友好** - 便于编写和运行测试
- **❌ 避免长期 Hack** - 临时方案可以 hack,但要明确标注
### 解决方案模板
```markdown
## 问题原因
[简要说明问题产生的根本原因]
## 解决方案
[详细的解决步骤]
## 代码修改
[具体的代码变更]
## 验证方法
[如何验证问题已解决]
## 预防措施
[如何避免类似问题再次发生]
```
## 🔄 迭代调试流程
如果初次解决方案无效:
1. **重新收集信息** - 基于新的错误信息搜索
2. **深入代码分析** - 查看更多相关代码文件
3. **运行相关测试** - 编写或运行一个失败的测试来稳定复现问题。
4. **扩大搜索范围** - 搜索更广泛的相关问题
5. **请求更多日志** - 添加更详细的调试信息
6. **提供临时方案** - 如果根本解决方案复杂,先提供临时修复
7. **分解问题** - 将复杂问题拆解为更小的子问题
+8
View File
@@ -0,0 +1,8 @@
---
description:
globs: src/database/models/**/*
alwaysApply: false
---
1. first read [lobe-chat-backend-architecture.mdc](mdc:.cursor/rules/lobe-chat-backend-architecture.mdc)
2. refer to the [_template.ts](mdc:src/database/models/_template.ts) to create new model
3. if an operation involves multiple models or complex queries, consider defining it in the `repositories` layer under `src/database/repositories/`
+188
View File
@@ -0,0 +1,188 @@
---
description: 桌面端测试
globs:
alwaysApply: false
---
# 桌面端控制器单元测试指南
## 测试框架与目录结构
LobeChat 桌面端使用 Vitest 作为测试框架。控制器的单元测试应放置在对应控制器文件同级的 `__tests__` 目录下,并以原控制器文件名加 `.test.ts` 作为文件名。
```
apps/desktop/src/main/controllers/
├── __tests__/
│ ├── index.test.ts
│ ├── MenuCtr.test.ts
│ └── ...
├── McpCtr.ts
├── MenuCtr.ts
└── ...
```
## 测试文件基本结构
```typescript
import { beforeEach, describe, expect, it, vi } from 'vitest';
import type { App } from '@/core/App';
import YourController from '../YourControllerName';
// 模拟依赖
vi.mock('依赖模块', () => ({
依赖函数: vi.fn(),
}));
// 模拟 App 实例
const mockApp = {
// 按需模拟必要的 App 属性和方法
} as unknown as App;
describe('YourController', () => {
let controller: YourController;
beforeEach(() => {
vi.clearAllMocks();
controller = new YourController(mockApp);
});
describe('方法名', () => {
it('测试场景描述', async () => {
// 准备测试数据
// 执行被测方法
const result = await controller.方法名(参数);
// 验证结果
expect(result).toMatchObject(预期结果);
});
});
});
```
## 模拟外部依赖
### 模拟模块函数
```typescript
const mockFunction = vi.fn();
vi.mock('module-name', () => ({
functionName: mockFunction,
}));
```
### 模拟 Node.js 核心模块
例如模拟 `child_process.exec` 和 `util.promisify`:
```typescript
// 存储模拟的 exec 实现
const mockExecImpl = vi.fn();
// 模拟 child_process.exec
vi.mock('child_process', () => ({
exec: vi.fn((cmd, callback) => {
return mockExecImpl(cmd, callback);
}),
}));
// 模拟 util.promisify
vi.mock('util', () => ({
promisify: vi.fn((fn) => {
return async (cmd: string) => {
return new Promise((resolve, reject) => {
mockExecImpl(cmd, (error: Error | null, result: any) => {
if (error) reject(error);
else resolve(result);
});
});
};
}),
}));
```
## 编写有效的测试用例
### 测试分类
将测试用例分为不同类别,每个类别测试一个特定场景:
```typescript
// 成功场景
it('应该成功完成操作', async () => {});
// 边界条件
it('应该处理边界情况', async () => {});
// 错误处理
it('应该优雅地处理错误', async () => {});
```
### 设置测试数据
```typescript
// 模拟返回值
mockExecImpl.mockImplementation((cmd: string, callback: any) => {
if (cmd === '命令') {
callback(null, { stdout: '成功输出' });
} else {
callback(new Error('错误信息'), null);
}
});
```
### 断言
使用 Vitest 的断言函数验证结果:
```typescript
// 检查基本值
expect(result.success).toBe(true);
// 检查对象部分匹配
expect(result.data).toMatchObject({
key: 'value',
});
// 检查数组
expect(result.items).toHaveLength(2);
expect(result.items[0].name).toBe('expectedName');
// 检查函数调用
expect(mockFunction).toHaveBeenCalledWith(expectedArgs);
expect(mockFunction).toHaveBeenCalledTimes(1);
```
## 最佳实践
1. **隔离测试**:确保每个测试互不影响,使用 `beforeEach` 重置模拟和状态
2. **全面覆盖**:测试正常流程、边界条件和错误处理
3. **清晰命名**:测试名称应清晰描述测试内容和预期结果
4. **避免测试实现细节**:测试应该关注行为而非实现细节,使代码重构不会破坏测试
5. **模拟外部依赖**:使用 `vi.mock()` 模拟所有外部依赖,减少测试的不确定性
## 示例:测试 IPC 事件处理方法
```typescript
it('应该正确处理 IPC 事件', async () => {
// 模拟依赖
mockSomething.mockReturnValue({ result: 'success' });
// 调用 IPC 方法
const result = await controller.ipcMethodName({
param1: 'value1',
param2: 'value2',
});
// 验证结果
expect(result).toEqual({
success: true,
data: { result: 'success' },
});
// 验证依赖调用
expect(mockSomething).toHaveBeenCalledWith('value1', 'value2');
});
```
@@ -0,0 +1,154 @@
---
description: 当要做 electron 相关工作时
globs:
alwaysApply: false
---
**桌面端新功能实现指南**
## 桌面端应用架构概述
LobeChat 桌面端基于 Electron 框架构建,采用主进程-渲染进程架构:
1. **主进程 (Main Process)**
- 位置:`apps/desktop/src/main`
- 职责:控制应用生命周期、系统API交互、窗口管理、后台服务
2. **渲染进程 (Renderer Process)**
- 复用 Web 端代码,位于 `src` 目录
- 通过 IPC 与主进程通信
3. **预加载脚本 (Preload)**
- 位置:`apps/desktop/src/preload`
- 职责:安全地暴露主进程功能给渲染进程
## 添加新桌面端功能流程
### 1. 确定功能需求与设计
首先确定新功能的需求和设计,包括:
- 功能描述和用例
- 是否需要系统级API(如文件系统、网络等)
- UI/UX设计(如必要)
- 与现有功能的交互方式
### 2. 在主进程中实现核心功能
1. **创建控制器 (Controller)**
- 位置:`apps/desktop/src/main/controllers/`
- 示例:创建 `NewFeatureCtr.ts`
- 规范:按 `_template.ts` 模板格式实现
- 注册:在 `apps/desktop/src/main/controllers/index.ts` 导出
2. **定义 IPC 事件处理器**
- 使用 `@ipcClientEvent('eventName')` 装饰器注册事件处理函数
- 处理函数应接收前端传递的参数并返回结果
- 处理可能的错误情况
3. **实现业务逻辑**
- 可能需要调用 Electron API 或 Node.js 原生模块
- 对于复杂功能,可以创建专门的服务类 (`services/`)
### 3. 定义 IPC 通信类型
1. **在共享类型定义中添加新类型**
- 位置:`packages/electron-client-ipc/src/types.ts`
- 添加参数类型接口(如 `NewFeatureParams`
- 添加返回结果类型接口(如 `NewFeatureResult`
### 4. 在渲染进程实现前端功能
1. **创建服务层**
- 位置:`src/services/electron/`
- 添加服务方法调用 IPC
- 使用 `dispatch` 或 `invoke` 函数
```typescript
// src/services/electron/newFeatureService.ts
import { dispatch } from '@lobechat/electron-client-ipc';
import { NewFeatureParams } from 'types';
export const newFeatureService = async (params: NewFeatureParams) => {
return dispatch('newFeatureEventName', params);
};
```
2. **实现 Store Action**
- 位置:`src/store/`
- 添加状态更新逻辑和错误处理
3. **添加 UI 组件**
- 根据需要在适当位置添加UI组件
- 通过 Store 或 Service 层调用功能
### 5. 如果是新增内置工具,遵循工具实现流程
参考 [desktop-local-tools-implement.mdc](mdc:desktop-local-tools-implement.mdc) 了解更多关于添加内置工具的详细步骤。
### 6. 添加测试
1. **单元测试**
- 位置:`apps/desktop/src/main/controllers/__tests__/`
- 测试主进程组件功能
2. **集成测试**
- 测试 IPC 通信和功能完整流程
## 最佳实践
1. **安全性考虑**
- 谨慎处理用户数据和文件系统访问
- 适当验证和清理输入数据
- 限制暴露给渲染进程的API范围
2. **性能优化**
- 对于耗时操作,考虑使用异步方法
- 大型数据传输考虑分批处理
3. **用户体验**
- 为长时间操作添加进度指示
- 提供适当的错误反馈
- 考虑操作的可撤销性
4. **代码组织**
- 遵循项目现有的命名和代码风格约定
- 为新功能添加适当的文档和注释
- 功能模块化,避免过度耦合
## 示例:实现系统通知功能
```typescript
// apps/desktop/src/main/controllers/NotificationCtr.ts
import { BrowserWindow, Notification } from 'electron';
import { ipcClientEvent } from 'electron-client-ipc';
interface ShowNotificationParams {
title: string;
body: string;
}
export class NotificationCtr {
@ipcClientEvent('showNotification')
async handleShowNotification({ title, body }: ShowNotificationParams) {
try {
if (!Notification.isSupported()) {
return { success: false, error: 'Notifications not supported' };
}
const notification = new Notification({
title,
body,
});
notification.show();
return { success: true };
} catch (error) {
console.error('Failed to show notification:', error);
return {
success: false,
error: error instanceof Error ? error.message : 'Unknown error'
};
}
}
}
```
@@ -0,0 +1,80 @@
---
description:
globs:
alwaysApply: false
---
**新增桌面端工具流程:**
1. **定义工具接口 (Manifest):**
* **文件:** `src/tools/[tool_category]/index.ts` (例如: `src/tools/local-files/index.ts`)
* **操作:**
* 在 `ApiName` 对象(例如 `LocalFilesApiName`)中添加一个新的、唯一的 API 名称。
* 在 `Manifest` 对象(例如 `LocalFilesManifest`)的 `api` 数组中,新增一个对象来定义新工具的接口。
* **关键字段:**
* `name`: 使用上一步定义的 API 名称。
* `description`: 清晰描述工具的功能,供 Agent 理解和向用户展示。
* `parameters`: 使用 JSON Schema 定义工具所需的输入参数。
* `type`: 通常是 'object'。
* `properties`: 定义每个参数的名称、`description`、`type` (string, number, boolean, array, etc.),使用英文。
* `required`: 一个字符串数组,列出必须提供的参数名称。
2. **定义相关类型:**
* **文件 1:** `packages/electron-client-ipc/src/types.ts` (或类似的共享 IPC 类型文件)
* **操作:** 定义传递给 IPC 事件的参数类型接口 (例如: `RenameLocalFileParams`, `MoveLocalFileParams`)。确保与 Manifest 中定义的 `parameters` 一致。
* **文件 2:** `src/tools/[tool_category]/type.ts` (例如: `src/tools/local-files/type.ts`)
* **操作:** 定义此工具执行后,存储在前端 Zustand Store 中的状态类型接口 (例如: `LocalRenameFileState`, `LocalMoveFileState`)。这通常包含操作结果(成功/失败)、错误信息以及相关数据(如旧路径、新路径等)。
3. **实现前端状态管理 (Store Action):**
* **文件:** `src/store/chat/slices/builtinTool/actions/[tool_category].ts` (例如: `src/store/chat/slices/builtinTool/actions/localFile.ts`)
* **操作:**
* 导入在步骤 2 中定义的 IPC 参数类型和状态类型。
* 在 Action 接口 (例如: `LocalFileAction`) 中添加新 Action 的方法签名,使用对应的 IPC 参数类型。
* 在 `createSlice` (例如: `localFileSlice`) 中实现该 Action 方法:
* 接收 `id` (消息 ID) 和 `params` (符合 IPC 参数类型)。
* 设置加载状态 (`toggleLocalFileLoading(id, true)`)。
* 调用对应的 `Service` 层方法 (见步骤 4),传递 `params`。
* 使用 `try...catch` 处理 `Service` 调用可能发生的错误。
* **成功时:**
* 调用 `updatePluginState(id, {...})` 更新插件状态,使用步骤 2 中定义的状态类型。
* 调用 `internal_updateMessageContent(id, JSON.stringify({...}))` 更新消息内容,通常包含成功确认信息。
* **失败时:**
* 记录错误 (`console.error`)。
* 调用 `updatePluginState(id, {...})` 更新插件状态,包含错误信息。
* 调用 `internal_updateMessagePluginError(id, {...})` 设置消息的错误状态。
* 调用 `internal_updateMessageContent(id, JSON.stringify({...}))` 更新消息内容,包含错误信息。
* 在 `finally` 块中取消加载状态 (`toggleLocalFileLoading(id, false)`)。
* 返回操作是否成功 (`boolean`)。
4. **实现 Service 层 (调用 IPC):**
* **文件:** `src/services/electron/[tool_category]Service.ts` (例如: `src/services/electron/localFileService.ts`)
* **操作:**
* 导入在步骤 2 中定义的 IPC 参数类型。
* 添加一个新的 `async` 方法,方法名通常与 Action 名称对应 (例如: `renameLocalFile`)。
* 方法接收 `params` (符合 IPC 参数类型)。
* 使用从 `@lobechat/electron-client-ipc` 导入的 `dispatch` (或 `invoke`) 函数,调用与 Manifest 中 `name` 字段匹配的 IPC 事件名称,并将 `params` 传递过去。
* 定义方法的返回类型,通常是 `Promise<{ success: boolean; error?: string }>`,与后端 Controller 返回的结构一致。
5. **实现后端逻辑 (Controller / IPC Handler):**
* **文件:** `apps/desktop/src/main/controllers/[ToolName]Ctr.ts` (例如: `apps/desktop/src/main/controllers/LocalFileCtr.ts`)
* **操作:**
* 导入 Node.js 相关模块 (`fs`, `path` 等) 和 IPC 相关依赖 (`ipcClientEvent`, 参数类型等)。
* 添加一个新的 `async` 方法,方法名通常以 `handle` 开头 (例如: `handleRenameFile`)。
* 使用 `@ipcClientEvent('yourApiName')` 装饰器将此方法注册为对应 IPC 事件的处理器,确保 `'yourApiName'` 与 Manifest 中的 `name` 和 Service 层调用的事件名称一致。
* 方法的参数应解构自 Service 层传递过来的对象,类型与步骤 2 中定义的 IPC 参数类型匹配。
* 实现核心业务逻辑:
* 进行必要的输入验证。
* 执行文件系统操作或其他后端任务 (例如: `fs.promises.rename`)。
* 使用 `try...catch` 捕获执行过程中的错误。
* 处理特定错误码 (`error.code`) 以提供更友好的错误消息。
* 返回一个包含 `success` (boolean) 和可选 `error` (string) 字段的对象。
6. **更新 Agent 文档 (System Role):**
* **文件:** `src/tools/[tool_category]/systemRole.ts` (例如: `src/tools/local-files/systemRole.ts`)
* **操作:**
* 在 `<core_capabilities>` 部分添加新工具的简要描述。
* 如果需要,更新 `<workflow>`。
* 在 `<tool_usage_guidelines>` 部分为新工具添加详细的使用说明,解释其参数、用途和预期行为。
* 如有必要,更新 `<security_considerations>`。
* 如有必要(例如工具返回了新的数据结构或路径),更新 `<response_format>` 中的示例。
通过遵循这些步骤,可以系统地将新的桌面端工具集成到 LobeChat 的插件系统中。
@@ -0,0 +1,197 @@
---
description:
globs:
alwaysApply: false
---
**桌面端菜单配置指南**
## 菜单系统概述
LobeChat 桌面应用有三种主要的菜单类型:
1. **应用菜单 (App Menu)**:显示在应用窗口顶部(macOS)或窗口标题栏(Windows/Linux
2. **上下文菜单 (Context Menu)**:右键点击时显示的菜单
3. **托盘菜单 (Tray Menu)**:点击系统托盘图标显示的菜单
## 菜单相关文件结构
```
apps/desktop/src/main/
├── menus/ # 菜单定义
│ ├── appMenu.ts # 应用菜单配置
│ ├── contextMenu.ts # 上下文菜单配置
│ └── factory.ts # 菜单工厂函数
├── controllers/
│ ├── MenuCtr.ts # 菜单控制器
│ └── TrayMenuCtr.ts # 托盘菜单控制器
```
## 菜单配置流程
### 1. 应用菜单配置
应用菜单在 `apps/desktop/src/main/menus/appMenu.ts` 中定义:
1. **导入依赖**
```typescript
import { app, BrowserWindow, Menu, MenuItem, MenuItemConstructorOptions } from 'electron';
import { is } from 'electron-util';
```
2. **定义菜单项**
- 使用 `MenuItemConstructorOptions` 类型定义菜单结构
- 每个菜单项可以包含:label, accelerator (快捷键), role, submenu, click 等属性
3. **创建菜单工厂函数**
```typescript
export const createAppMenu = (win: BrowserWindow) => {
const template = [
// 定义菜单项...
];
return Menu.buildFromTemplate(template);
};
```
4. **注册菜单**
- 在 `MenuCtr.ts` 控制器中使用 `Menu.setApplicationMenu(menu)` 设置应用菜单
### 2. 上下文菜单配置
上下文菜单通常在特定元素上右键点击时显示:
1. **在主进程中定义菜单模板**
```typescript
// apps/desktop/src/main/menus/contextMenu.ts
export const createContextMenu = () => {
const template = [
// 定义菜单项...
];
return Menu.buildFromTemplate(template);
};
```
2. **在适当的事件处理器中显示菜单**
```typescript
const menu = createContextMenu();
menu.popup();
```
### 3. 托盘菜单配置
托盘菜单在 `TrayMenuCtr.ts` 中配置:
1. **创建托盘图标**
```typescript
this.tray = new Tray(trayIconPath);
```
2. **定义托盘菜单**
```typescript
const contextMenu = Menu.buildFromTemplate([
{ label: '显示主窗口', click: this.showMainWindow },
{ type: 'separator' },
{ label: '退出', click: () => app.quit() },
]);
```
3. **设置托盘菜单**
```typescript
this.tray.setContextMenu(contextMenu);
```
## 多语言支持
为菜单添加多语言支持:
1. **导入本地化工具**
```typescript
import { i18n } from '../locales';
```
2. **使用翻译函数**
```typescript
const template = [
{
label: i18n.t('menu.file'),
submenu: [
{ label: i18n.t('menu.new'), click: createNew },
// ...
]
},
// ...
];
```
3. **在语言切换时更新菜单**
在 `MenuCtr.ts` 中监听语言变化事件并重新创建菜单
## 添加新菜单项流程
1. **确定菜单位置**
- 决定添加到哪个菜单(应用菜单、上下文菜单或托盘菜单)
- 确定在菜单中的位置(主菜单项或子菜单项)
2. **定义菜单项**
```typescript
const newMenuItem: MenuItemConstructorOptions = {
label: '新功能',
accelerator: 'CmdOrCtrl+N',
click: (_, window) => {
// 处理点击事件
if (window) window.webContents.send('trigger-new-feature');
}
};
```
3. **添加到菜单模板**
将新菜单项添加到相应的菜单模板中
4. **对于与渲染进程交互的功能**
- 使用 `window.webContents.send()` 发送 IPC 消息到渲染进程
- 在渲染进程中监听该消息并处理
## 菜单项启用/禁用控制
动态控制菜单项状态:
1. **保存对菜单项的引用**
```typescript
this.menuItems = {};
const menu = Menu.buildFromTemplate(template);
this.menuItems.newFeature = menu.getMenuItemById('new-feature');
```
2. **根据条件更新状态**
```typescript
updateMenuState(state) {
if (this.menuItems.newFeature) {
this.menuItems.newFeature.enabled = state.canUseNewFeature;
}
}
```
## 最佳实践
1. **使用标准角色**
- 尽可能使用 Electron 预定义的角色(如 `role: 'copy'`)以获得本地化和一致的行为
2. **平台特定菜单**
- 使用 `process.platform` 检查为不同平台提供不同菜单
```typescript
if (process.platform === 'darwin') {
template.unshift({ role: 'appMenu' });
}
```
3. **快捷键冲突**
- 避免与系统快捷键冲突
- 使用 `CmdOrCtrl` 代替 `Ctrl` 以支持 macOS 和 Windows/Linux
4. **保持菜单简洁**
- 避免过多嵌套的子菜单
- 将相关功能分组在一起
5. **添加分隔符**
- 使用 `{ type: 'separator' }` 在逻辑上分隔不同组的菜单项
+296
View File
@@ -0,0 +1,296 @@
---
description:
globs:
alwaysApply: false
---
**桌面端窗口管理指南**
## 窗口管理概述
LobeChat 桌面应用使用 Electron 的 `BrowserWindow` 管理应用窗口。主要的窗口管理功能包括:
1. **窗口创建和配置**
2. **窗口状态管理**(大小、位置、最大化等)
3. **多窗口协调**
4. **窗口事件处理**
## 相关文件结构
```
apps/desktop/src/main/
├── appBrowsers.ts # 窗口管理的核心文件
├── controllers/
│ └── BrowserWindowsCtr.ts # 窗口控制器
└── modules/
└── browserWindowManager.ts # 窗口管理模块
```
## 窗口管理流程
### 1. 窗口创建
在 `appBrowsers.ts` 或 `BrowserWindowsCtr.ts` 中定义窗口创建逻辑:
```typescript
export const createMainWindow = () => {
const mainWindow = new BrowserWindow({
width: 1200,
height: 800,
minWidth: 600,
minHeight: 400,
webPreferences: {
preload: path.join(__dirname, '../preload/index.js'),
contextIsolation: true,
nodeIntegration: false,
},
// 其他窗口配置项...
});
// 加载应用内容
if (isDev) {
mainWindow.loadURL('http://localhost:3000');
mainWindow.webContents.openDevTools();
} else {
mainWindow.loadFile(path.join(__dirname, '../../renderer/index.html'));
}
return mainWindow;
};
```
### 2. 窗口状态管理
实现窗口状态持久化保存和恢复:
1. **保存窗口状态**
```typescript
const saveWindowState = (window: BrowserWindow) => {
if (!window.isMinimized() && !window.isMaximized()) {
const position = window.getPosition();
const size = window.getSize();
settings.set('windowState', {
x: position[0],
y: position[1],
width: size[0],
height: size[1],
});
}
};
```
2. **恢复窗口状态**
```typescript
const restoreWindowState = (window: BrowserWindow) => {
const savedState = settings.get('windowState');
if (savedState) {
window.setBounds({
x: savedState.x,
y: savedState.y,
width: savedState.width,
height: savedState.height,
});
}
};
```
3. **监听窗口事件**
```typescript
window.on('close', () => saveWindowState(window));
window.on('moved', () => saveWindowState(window));
window.on('resized', () => saveWindowState(window));
```
### 3. 实现多窗口管理
对于需要多窗口支持的功能:
1. **跟踪窗口**
```typescript
export class WindowManager {
private windows: Map<string, BrowserWindow> = new Map();
createWindow(id: string, options: BrowserWindowConstructorOptions) {
const window = new BrowserWindow(options);
this.windows.set(id, window);
window.on('closed', () => {
this.windows.delete(id);
});
return window;
}
getWindow(id: string) {
return this.windows.get(id);
}
getAllWindows() {
return Array.from(this.windows.values());
}
}
```
2. **窗口间通信**
```typescript
// 从一个窗口向另一个窗口发送消息
sendMessageToWindow(targetWindowId, channel, data) {
const targetWindow = this.getWindow(targetWindowId);
if (targetWindow) {
targetWindow.webContents.send(channel, data);
}
}
```
### 4. 窗口与渲染进程通信
通过 IPC 实现窗口操作:
1. **在主进程中注册 IPC 处理器**
```typescript
// BrowserWindowsCtr.ts
@ipcClientEvent('minimizeWindow')
handleMinimizeWindow() {
const focusedWindow = BrowserWindow.getFocusedWindow();
if (focusedWindow) {
focusedWindow.minimize();
}
return { success: true };
}
@ipcClientEvent('maximizeWindow')
handleMaximizeWindow() {
const focusedWindow = BrowserWindow.getFocusedWindow();
if (focusedWindow) {
if (focusedWindow.isMaximized()) {
focusedWindow.restore();
} else {
focusedWindow.maximize();
}
}
return { success: true };
}
@ipcClientEvent('closeWindow')
handleCloseWindow() {
const focusedWindow = BrowserWindow.getFocusedWindow();
if (focusedWindow) {
focusedWindow.close();
}
return { success: true };
}
```
2. **在渲染进程中调用**
```typescript
// src/services/electron/windowService.ts
import { dispatch } from '@lobechat/electron-client-ipc';
export const windowService = {
minimize: () => dispatch('minimizeWindow'),
maximize: () => dispatch('maximizeWindow'),
close: () => dispatch('closeWindow'),
};
```
### 5. 自定义窗口控制 (无边框窗口)
对于自定义窗口标题栏:
1. **创建无边框窗口**
```typescript
const window = new BrowserWindow({
frame: false,
titleBarStyle: 'hidden',
// 其他选项...
});
```
2. **在渲染进程中实现拖拽区域**
```css
/* CSS */
.titlebar {
-webkit-app-region: drag;
}
.titlebar-button {
-webkit-app-region: no-drag;
}
```
## 最佳实践
1. **性能考虑**
- 避免创建过多窗口
- 使用 `show: false` 创建窗口,在内容加载完成后再显示,避免白屏
2. **安全性**
- 始终设置适当的 `webPreferences` 确保安全
```typescript
webPreferences: {
preload: path.join(__dirname, '../preload/index.js'),
contextIsolation: true,
nodeIntegration: false,
sandbox: true,
}
```
3. **跨平台兼容性**
- 考虑不同操作系统的窗口行为差异
- 使用 `process.platform` 为不同平台提供特定实现
4. **崩溃恢复**
- 监听 `webContents.on('crashed')` 事件处理崩溃
- 提供崩溃恢复选项
5. **内存管理**
- 确保窗口关闭时清理所有相关资源
- 使用 `window.on('closed')` 而不是 `window.on('close')` 进行最终清理
## 示例:创建设置窗口
```typescript
// apps/desktop/src/main/controllers/BrowserWindowsCtr.ts
@ipcClientEvent('openSettings')
handleOpenSettings() {
// 检查设置窗口是否已经存在
if (this.settingsWindow && !this.settingsWindow.isDestroyed()) {
// 如果窗口已存在,将其置于前台
this.settingsWindow.focus();
return { success: true };
}
// 创建新窗口
this.settingsWindow = new BrowserWindow({
width: 800,
height: 600,
title: 'Settings',
parent: this.mainWindow, // 设置父窗口,使其成为模态窗口
modal: true,
webPreferences: {
preload: path.join(__dirname, '../preload/index.js'),
contextIsolation: true,
nodeIntegration: false,
},
});
// 加载设置页面
if (isDev) {
this.settingsWindow.loadURL('http://localhost:3000/settings');
} else {
this.settingsWindow.loadFile(
path.join(__dirname, '../../renderer/index.html'),
{ hash: 'settings' }
);
}
// 监听窗口关闭事件
this.settingsWindow.on('closed', () => {
this.settingsWindow = null;
});
return { success: true };
}
```
@@ -0,0 +1,202 @@
---
description:
globs: src/database/schemas/*
alwaysApply: false
---
# Drizzle ORM Schema Style Guide for lobe-chat
This document outlines the conventions and best practices for defining PostgreSQL Drizzle ORM schemas within the lobe-chat project.
## Configuration
- Drizzle configuration is managed in [drizzle.config.ts](mdc:drizzle.config.ts)
- Schema files are located in the src/database/schemas/ directory
- Migration files are output to `src/database/migrations/`
- The project uses `postgresql` dialect with `strict: true`
## Helper Functions
Commonly used column definitions, especially for timestamps, are centralized in [src/database/schemas/_helpers.ts](mdc:src/database/schemas/_helpers.ts):
- `timestamptz(name: string)`: Creates a timestamp column with timezone
- `createdAt()`, `updatedAt()`, `accessedAt()`: Helper functions for standard timestamp columns
- `timestamps`: An object `{ createdAt, updatedAt, accessedAt }` for easy inclusion in table definitions
## Naming Conventions
- **Table Names**: Use plural snake_case (e.g., `users`, `agents`, `session_groups`)
- **Column Names**: Use snake_case (e.g., `user_id`, `created_at`, `background_color`)
## Column Definitions
### Primary Keys (PKs)
- Typically `text('id')` (or `varchar('id')` for some OIDC tables)
- Often use `.$defaultFn(() => idGenerator('table_name'))` for automatic ID generation with meaningful prefixes
- **ID Prefix Purpose**: Makes it easy for users and developers to distinguish different entity types at a glance
- For internal/system tables that users don't need to see, can use `uuid` or auto-increment keys
- Composite PKs are defined using `primaryKey({ columns: [t.colA, t.colB] })`
### Foreign Keys (FKs)
- Defined using `.references(() => otherTable.id, { onDelete: 'cascade' | 'set null' | 'no action' })`
- FK columns are usually named `related_table_singular_name_id` (e.g., `user_id` references `users.id`)
- Most tables include a `user_id` column referencing `users.id` with `onDelete: 'cascade'`
### Timestamps
- Consistently use the `...timestamps` spread from [_helpers.ts](mdc:src/database/schemas/_helpers.ts) for `created_at`, `updated_at`, and `accessed_at` columns
### Default Values
- `.$defaultFn(() => expression)` for dynamic defaults (e.g., `idGenerator()`, `randomSlug()`)
- `.default(staticValue)` for static defaults (e.g., `boolean('enabled').default(true)`)
### Indexes
- Defined in the table's second argument: `pgTable('name', {...columns}, (t) => ({ indexName: indexType().on(...) }))`
- Use `uniqueIndex()` for unique constraints and `index()` for non-unique indexes
- Naming pattern: `table_name_column(s)_idx` or `table_name_column(s)_unique`
- Many tables feature a `clientId: text('client_id')` column, often part of a composite unique index with `user_id`
### Data Types
- Common types: `text`, `varchar`, `jsonb`, `boolean`, `integer`, `uuid`, `pgTable`
- For `jsonb` fields, specify the TypeScript type using `.$type<MyType>()` for better type safety
## Zod Schemas & Type Inference
- Utilize `drizzle-zod` to generate Zod schemas for validation:
- `createInsertSchema(tableName)`
- `createSelectSchema(tableName)` (less common)
- Export inferred types: `export type NewEntity = typeof tableName.$inferInsert;` and `export type EntityItem = typeof tableName.$inferSelect;`
## Relations
- Table relationships are defined centrally in [src/database/schemas/relations.ts](mdc:src/database/schemas/relations.ts) using the `relations()` utility from `drizzle-orm`
## Code Style & Structure
- **File Organization**: Each main database entity typically has its own schema file (e.g., [user.ts](mdc:src/database/schemas/user.ts), [agent.ts](mdc:src/database/schemas/agent.ts))
- All schemas are re-exported from [src/database/schemas/index.ts](mdc:src/database/schemas/index.ts)
- **ESLint**: Files often start with `/* eslint-disable sort-keys-fix/sort-keys-fix */`
- **Comments**: Use JSDoc-style comments to explain the purpose of tables and complex columns, fields that are self-explanatory do not require jsdoc explanations, such as id, user_id, etc.
## Example Pattern
```typescript
// From src/database/schemas/agent.ts
export const agents = pgTable(
'agents',
{
id: text('id')
.primaryKey()
.$defaultFn(() => idGenerator('agents'))
.notNull(),
slug: varchar('slug', { length: 100 })
.$defaultFn(() => randomSlug(4))
.unique(),
userId: text('user_id')
.references(() => users.id, { onDelete: 'cascade' })
.notNull(),
clientId: text('client_id'),
chatConfig: jsonb('chat_config').$type<LobeAgentChatConfig>(),
...timestamps,
},
// return array instead of object, the object style is deprecated
(t) => [
uniqueIndex('client_id_user_id_unique').on(t.clientId, t.userId),
],
);
export const insertAgentSchema = createInsertSchema(agents);
export type NewAgent = typeof agents.$inferInsert;
export type AgentItem = typeof agents.$inferSelect;
```
## Common Patterns
### 1. userId + clientId Pattern (Legacy)
Some existing tables include both fields for different purposes:
```typescript
// Example from agents table (legacy pattern)
userId: text('user_id')
.references(() => users.id, { onDelete: 'cascade' })
.notNull(),
clientId: text('client_id'),
// Usually with a composite unique index
clientIdUnique: uniqueIndex('agents_client_id_user_id_unique').on(t.clientId, t.userId),
```
- **`userId`**: Server-side user association, ensures data belongs to specific user
- **`clientId`**: Unique key for import/export operations, supports data migration between instances
- **Current Status**: New tables should NOT include `clientId` unless specifically needed for import/export functionality
- **Note**: This pattern is being phased out for new features to simplify the schema
### 2. Junction Tables (Many-to-Many Relationships)
Use composite primary keys for relationship tables:
```typescript
// Example: agents_knowledge_bases (from agent.ts)
export const agentsKnowledgeBases = pgTable(
'agents_knowledge_bases',
{
agentId: text('agent_id').references(() => agents.id, { onDelete: 'cascade' }).notNull(),
knowledgeBaseId: text('knowledge_base_id').references(() => knowledgeBases.id, { onDelete: 'cascade' }).notNull(),
userId: text('user_id').references(() => users.id, { onDelete: 'cascade' }).notNull(),
enabled: boolean('enabled').default(true),
...timestamps,
},
(t) => [
primaryKey({ columns: [t.agentId, t.knowledgeBaseId] }),
],
);
```
**Pattern**: `{entity1}Id` + `{entity2}Id` as composite PK, plus `userId` for ownership
### 3. OIDC Tables Special Patterns
OIDC tables use `varchar` IDs instead of `text` with custom generators:
```typescript
// Example from oidc.ts
export const oidcAuthorizationCodes = pgTable('oidc_authorization_codes', {
id: varchar('id', { length: 255 }).primaryKey(), // varchar not text
data: jsonb('data').notNull(),
expiresAt: timestamptz('expires_at').notNull(),
// ... other fields
});
```
**Reason**: OIDC standards expect specific ID formats and lengths
### 4. File Processing with Async Tasks
File-related tables reference async task IDs for background processing:
```typescript
// Example from files table
export const files = pgTable('files', {
// ... other fields
chunkTaskId: uuid('chunk_task_id').references(() => asyncTasks.id, { onDelete: 'set null' }),
embeddingTaskId: uuid('embedding_task_id').references(() => asyncTasks.id, { onDelete: 'set null' }),
// ...
});
```
**Purpose**:
- Track file chunking progress (breaking files into smaller pieces)
- Track embedding generation progress (converting text to vectors)
- Allow querying task status and handling failures
### 5. Slug Pattern (Legacy)
Some entities include auto-generated slugs - this is legacy code:
```typescript
slug: varchar('slug', { length: 100 })
.$defaultFn(() => randomSlug(4))
.unique(),
// Often with composite unique constraint
slugUserIdUnique: uniqueIndex('slug_user_id_unique').on(t.slug, t.userId),
```
**Current usage**: Only used to identify default agents/sessions (legacy pattern)
**Future refactor**: Will likely be replaced with `isDefault: boolean()` field
**Note**: Avoid using slugs for new features - prefer explicit boolean flags for status tracking
By following these guidelines, maintain consistency, type safety, and maintainability across database schema definitions.
@@ -0,0 +1,6 @@
---
description:
globs: src/locales/**/*
alwaysApply: false
---
read [i18n.mdc](mdc:.cursor/rules/i18n/i18n.mdc)
+181
View File
@@ -0,0 +1,181 @@
---
description: i18n workflow and troubleshooting
globs:
alwaysApply: false
---
# LobeChat 国际化指南
## 架构概览
LobeChat 使用 react-i18next 进行国际化,采用良好的命名空间架构:
- 默认语言:中文(zh-CN),作为源语言
- 支持语言:18 种语言,包括英语、日语、韩语、阿拉伯语等
- 框架:react-i18next 配合 Next.js app router
- 翻译自动化:@lobehub/i18n-cli 用于自动翻译,配置文件:.i18nrc.js
## 目录结构
```
src/locales/
├── default/ # 源语言文件(zh-CN)
│ ├── index.ts # 命名空间导出
│ ├── common.ts # 通用翻译
│ ├── chat.ts # 聊天相关翻译
│ ├── setting.ts # 设置翻译
│ └── ... # 其他命名空间文件
└── resources.ts # 类型定义和语言配置
locales/ # 翻译文件
├── en-US/ # 英语翻译
│ ├── common.json # 通用翻译
│ ├── chat.json # 聊天翻译
│ ├── setting.json # 设置翻译
│ └── ... # 其他命名空间 JSON 文件
├── ja-JP/ # 日语翻译
│ ├── common.json
│ ├── chat.json
│ └── ...
└── ... # 其他语言文件夹
```
## 添加新翻译的工作流程
### 1. 添加新的翻译键
第一步:在 src/locales/default 目录下的相应命名空间文件中添加翻译键
```typescript
// 示例:src/locales/default/common.ts
export default {
// ... 现有键
newFeature: {
title: "新功能标题",
description: "功能描述文案",
button: "操作按钮",
},
};
```
第二步:如果创建新命名空间,需要在 src/locales/default/index.ts 中导出
```typescript
import newNamespace from "./newNamespace";
const resources = {
// ... 现有命名空间
newNamespace,
} as const;
```
### 2. 翻译过程
开发模式:
一般情况下不需要你帮我跑自动翻译工具,跑一次很久,需要的时候我会自己跑。
但是为了立马能看到效果,还是需要先翻译 `locales/zh-CN/namespace.json`,不需要翻译其它语言。
生产模式:
```bash
# 为所有语言生成翻译
npm run i18n
```
## 在组件中使用
### 基本用法
```tsx
import { useTranslation } from "react-i18next";
const MyComponent = () => {
const { t } = useTranslation("common");
return (
<div>
<h1>{t("newFeature.title")}</h1>
<p>{t("newFeature.description")}</p>
<button>{t("newFeature.button")}</button>
</div>
);
};
```
### 带参数的用法
```tsx
const { t } = useTranslation("common");
<p>{t("welcome.message", { name: "John" })}</p>;
// 对应的语言文件:
// welcome: { message: '欢迎 {{name}} 使用!' }
```
### 多个命名空间
```tsx
const { t } = useTranslation(['common', 'chat']);
<button>{t('common:save')}</button>
<span>{t('chat:typing')}</span>
```
## 类型安全
项目使用 TypeScript 实现类型安全的翻译,类型从 src/locales/resources.ts 自动生成:
```typescript
import type { DefaultResources, NS, Locales } from "@/locales/resources";
// 可用类型:
// - NS: 可用命名空间键 ('common' | 'chat' | 'setting' | ...)
// - Locales: 支持的语言代码 ('en-US' | 'zh-CN' | 'ja-JP' | ...)
const namespace: NS = "common";
const locale: Locales = "en-US";
```
## 最佳实践
### 1. 命名空间组织
- common: 共享 UI 元素(按钮、标签、操作)
- chat: 聊天特定功能
- setting: 配置和设置
- error: 错误消息和处理
- [feature]: 功能特定或页面特定的命名空间
- components: 可复用组件文案
### 2. 键命名约定
```typescript
// ✅ 好:层次结构
export default {
modal: {
confirm: {
title: "确认操作",
message: "确定要执行此操作吗?",
actions: {
confirm: "确认",
cancel: "取消",
},
},
},
};
// ❌ 避免:扁平结构
export default {
modalConfirmTitle: "确认操作",
modalConfirmMessage: "确定要执行此操作吗?",
};
```
## 故障排除
### 缺少翻译键
- 检查键是否存在于 src/locales/default/namespace.ts 中
- 确保在组件中正确导入命名空间
- 确保新命名空间已在 src/locales/default/index.ts 中导出
+119
View File
@@ -0,0 +1,119 @@
---
description: react flex layout package `react-layout-kit` usage
globs:
alwaysApply: false
---
# React Layout Kit 使用指南
react-layout-kit 是一个功能丰富的 React flex 布局组件库,在 lobe-chat 项目中被广泛使用。以下是重点组件的使用方法:
## Flexbox 组件
Flexbox 是最常用的布局组件,用于创建弹性布局,类似于 CSS 的 display: flex。
### 基本用法
```jsx
import { Flexbox } from 'react-layout-kit';
// 默认垂直布局
<Flexbox>
<div>子元素1</div>
<div>子元素2</div>
</Flexbox>
// 水平布局
<Flexbox horizontal>
<div>左侧元素</div>
<div>右侧元素</div>
</Flexbox>
```
### 常用属性
- horizontal: 布尔值,设置为水平方向布局
- flex: 数值或字符串,控制 flex 属性
- gap: 数值,设置子元素之间的间距
- align: 对齐方式,如 'center', 'flex-start' 等
- justify: 主轴对齐方式,如 'space-between', 'center' 等
- padding: 内边距值
- paddingInline: 水平内边距值
- paddingBlock: 垂直内边距值
- width/height: 设置宽高,通常用 '100%' 或具体像素值
- style: 自定义样式对象
### 实际应用示例
```jsx
// 经典三栏布局
<Flexbox horizontal height={'100%'} width={'100%'}>
{/* 左侧边栏 */}
<Flexbox
width={260}
style={{
borderRight: `1px solid ${theme.colorBorderSecondary}`,
height: '100%',
overflowY: 'auto',
}}
>
<SidebarContent />
</Flexbox>
{/* 中间内容区 */}
<Flexbox flex={1} style={{ height: '100%' }}>
{/* 主要内容 */}
<Flexbox flex={1} padding={24} style={{ overflowY: 'auto' }}>
<MainContent />
</Flexbox>
{/* 底部区域 */}
<Flexbox
style={{
borderTop: `1px solid ${theme.colorBorderSecondary}`,
padding: '16px 24px',
}}
>
<Footer />
</Flexbox>
</Flexbox>
</Flexbox>
```
## Center 组件
Center 是对 Flexbox 的封装,使子元素水平和垂直居中。
### 基本用法
```jsx
<Center width={'100%'} height={'100%'}>
<Content />
</Center>
```
Center 组件继承了 Flexbox 的所有属性,同时默认设置了居中对齐。主要用于快速创建居中布局。
### 实际应用示例
```jsx
// 登录页面居中布局
<Flexbox height={'100%'} width={'100%'}>
<Center height={'100%'} width={'100%'}>
<LoginForm />
</Center>
</Flexbox>
// 图标居中显示
<Center className={styles.icon} flex={'none'} height={40} width={40}>
<Icon icon={icon} size={24} />
</Center>
```
## 最佳实践
- 使用 flex={1} 让组件填充可用空间
- 使用 gap 代替传统的 margin 设置元素间距
- 嵌套 Flexbox 创建复杂布局
- 设置 overflow: 'auto' 使内容可滚动
- 使用 horizontal 创建水平布局,默认为垂直布局
- 与 antd-style 的 useTheme hook 配合使用创建主题响应式的布局
+47
View File
@@ -0,0 +1,47 @@
---
description:
globs:
alwaysApply: true
---
## Project Description
You are developing an open-source, modern-design AI chat framework: lobe chat.
Emoji logo: 🤯
## Project Technologies Stack
read [package.json](mdc:package.json) to know all npm packages you can use.
read [folder-structure.mdx](mdc:docs/development/basic/folder-structure.mdx) to learn project structure.
The project uses the following technologies:
- pnpm as package manager
- Next.js 15 for frontend and backend, using app router instead of pages router
- react 19, using hooks, functional components, react server components
- TypeScript programming language
- antd, @lobehub/ui for component framework
- antd-style for css-in-js framework
- react-layout-kit for flex layout
- react-i18next for i18n
- lucide-react, @ant-design/icons for icons
- @lobehub/icons for AI provider/model logo icon
- @formkit/auto-animate for react list animation
- zustand for global state management
- nuqs for type-safe search params state manager
- SWR for react data fetch
- aHooks for react hooks library
- dayjs for date and time library
- lodash-es for utility library
- fast-deep-equal for deep comparison of JavaScript objects
- zod for data validation
- TRPC for type safe backend
- PGLite for client DB and PostgreSQL for backend DB
- Drizzle ORM
- Vitest for testing, testing-library for react component test
- Prettier for code formatting
- ESLint for code linting
- Cursor AI for code editing and AI coding assistance
Note: All tools and libraries used are the latest versions. The application only needs to be compatible with the latest browsers;
+153
View File
@@ -0,0 +1,153 @@
---
description:
globs: *.tsx
alwaysApply: false
---
# react component 编写指南
- 如果要写复杂样式的话用 antd-style ,简单的话可以用 style 属性直接写内联样式
- 如果需要 flex 布局或者居中布局应该使用 react-layout-kit 的 Flexbox 和 Center 组件
- 选择组件时优先顺序应该是 src/components > 安装的组件 package > lobe-ui > antd
## antd-style token system
### 访问 token system 的两种方式
#### 使用 antd-style 的 useTheme hook
```tsx
import { useTheme } from 'antd-style';
const MyComponent = () => {
const theme = useTheme();
return (
<div style={{
color: theme.colorPrimary,
backgroundColor: theme.colorBgContainer,
padding: theme.padding,
borderRadius: theme.borderRadius
}}>
使用主题 token 的组件
</div>
);
}
```
#### 使用 antd-style 的 createStyles
```tsx
const useStyles = createStyles(({ css, token }) => {
return {
container: css`
background-color: ${token.colorBgContainer};
border-radius: ${token.borderRadius}px;
padding: ${token.padding}px;
color: ${token.colorText};
`,
title: css`
font-size: ${token.fontSizeLG}px;
font-weight: ${token.fontWeightStrong};
margin-bottom: ${token.marginSM}px;
`,
content: css`
font-size: ${token.fontSize}px;
line-height: ${token.lineHeight};
`
};
});
const Card: FC<CardProps> = ({ title, content }) => {
const { styles } = useStyles();
return (
<Flexbox className={styles.container}>
<div className={styles.title}>{title}</div>
<div className={styles.content}>{content}</div>
</Flexbox>
);
};
```
### 一些你经常会忘记使用的 token
请注意使用下面的 token 而不是 css 字面值。可以访问 https://ant.design/docs/react/customize-theme-cn 了解所有 token
- 动画类
- token.motionDurationMid
- token.motionEaseInOut
- 包围盒属性
- token.paddingSM
- token.marginLG
## Lobe UI 包含的组件
- 不知道 @lobehub/ui 的组件怎么用,有哪些属性,就自己搜下这个项目其它地方怎么用的,不要瞎猜,大部分组件都是在 antd 的基础上扩展了属性
- 具体用法不懂可以联网搜索,例如 ActionIcon 就爬取 https://ui.lobehub.com/components/action-icon
- General
ActionIcon
ActionIconGroup
Block
Button
Icon
- Data Display
Avatar
Collapse
FileTypeIcon
FluentEmoji
GuideCard
Highlighter
Hotkey
Image
List
Markdown
MaterialFileTypeIcon
Mermaid
Segmented
Snippet
SortableList
Tag
Tooltip
Video
- Data Entry
AutoComplete
CodeEditor
ColorSwatches
CopyButton
DatePicker
EditableText
EmojiPicker
Form
FormModal
HotkeyInput
ImageSelect
Input
SearchBar
Select
SliderWithInput
ThemeSwitch
- Feedback
Alert
Drawer
Modal
- Layout
DraggablePanel
Footer
Grid
Header
Layout
MaskShadow
ScrollShadow
- Navigation
Burger
Dropdown
Menu
SideNav
Tabs
Toc
- Theme
ConfigProvider
FontLoader
ThemeProvider
+76
View File
@@ -0,0 +1,76 @@
---
description:
globs:
alwaysApply: true
---
# LobeChat Cursor Rules System Guide
This document explains how the LobeChat project's Cursor rules system works and serves as an index for manually accessible rules.
## 🎯 Core Principle
**All rules are equal** - there are no priorities or "recommendations" between different rule sources. You should follow all applicable rules simultaneously.
## 📚 Four Ways to Access Rules
### 1. **Always Applied Rules** - `always_applied_workspace_rules`
- **What**: Core project guidelines that are always active
- **Content**: Project tech stack, basic coding standards, output formatting rules
- **Access**: No tools needed - automatically provided in every conversation
### 2. **Dynamic Context Rules** - `cursor_rules_context`
- **What**: Rules automatically matched based on files referenced in the conversation
- **Trigger**: Only when user **explicitly @ mentions files** or **opens files in Cursor**
- **Content**: May include brief descriptions or full rule content, depending on relevance
- **Access**: No tools needed - automatically updated when files are referenced
### 3. **Agent Requestable Rules** - `agent_requestable_workspace_rules`
- **What**: Detailed operational guides that can be requested on-demand
- **Access**: Use `fetch_rules` tool with rule names
- **Examples**: `debug`, `i18n/i18n`, `code-review`
### 4. **Manual Rules Index** - This file + `read_file`
- **What**: Additional rules not covered by the above mechanisms
- **Why needed**: Cursor's rule system only supports "agent request" or "auto attach" modes
- **Access**: Use `read_file` tool to read specific `.mdc` files
## 🔧 When to Use `read_file` for Rules
Use `read_file` to access rules from the index below when:
1. **Gap identification**: You determine a rule is needed for the current task
2. **No auto-trigger**: The rule isn't provided in `cursor_rules_context` (because relevant files weren't @ mentioned)
3. **Not agent-requestable**: The rule isn't available via `fetch_rules`
## 📋 Available Rules Index
The following rules are available via `read_file` from the `.cursor/rules/` directory:
- `backend-architecture.mdc` Backend layer architecture and design guidelines
- `zustand-action-patterns.mdc` Recommended patterns for organizing Zustand actions
- `zustand-slice-organization.mdc` Best practices for structuring Zustand slices
- `drizzle-schema-style-guide.mdc` Style guide for defining Drizzle ORM schemas
- `react-component.mdc` React component style guide and conventions
## ❌ Common Misunderstandings to Avoid
1. **"Priority confusion"**: There's no hierarchy between rule sources - they're complementary, not competitive
2. **"Dynamic expectations"**: `cursor_rules_context` only updates when you @ files - it won't automatically include rules for tasks you're thinking about
3. **"Tool redundancy"**: Each access method serves a different purpose - they're not alternatives to choose from
## 🛠️ Practical Workflow
```
1. Start with always_applied_workspace_rules (automatic)
2. Check cursor_rules_context for auto-matched rules (automatic)
3. If you need specific guides: fetch_rules (manual)
4. If you identify gaps: consult this index → read_file (manual)
```
## Example Decision Flow
**Scenario**: Working on a new Zustand store slice
1. Follow always_applied_workspace_rules ✅
2. If store files were @ mentioned → use cursor_rules_context rules ✅
3. Need detailed Zustand guidance → `read_file('.cursor/rules/zustand-slice-organization.mdc')` ✅
4. All rules apply simultaneously - no conflicts ✅
+38
View File
@@ -0,0 +1,38 @@
---
description:
globs:
alwaysApply: true
---
## System Role
You are an expert in full-stack Web development, proficient in JavaScript, TypeScript, CSS, React, Node.js, Next.js, Postgresql, all kinds of network protocols.
You are an expert in LLM and Ai art. In Ai image generation, you are proficient in Stable Diffusion and ComfyUI's architectural principles, workflows, model structures, parameter configurations, training methods, and inference optimization.
You are an expert in UI/UX design, proficient in web interaction patterns, responsive design, accessibility, and user behavior optimization. You excel at improving user retention and paid conversion rates through various interaction details.
## Problem Solving
- Before formulating any response, you must first gather context by using tools like codebase_search, grep_search, file_search, web_search, fetch_rules, context7, and read_file to avoid making assumptions.
- When modifying existing code, clearly describe the differences and reasons for the changes
- Provide alternative solutions that may be better overall or superior in specific aspects
- Provide optimization suggestions for deprecated API usage
- Cite sources whenever possible at the end, not inline
- When you provide multiple solutions, provide the recommended solution first, and note it as `Recommended`
- Express uncertainty when there might not be a correct answer
- Admit when you don't know something instead of guessing
## Code Implementation
- Write correct, up-to-date, bug-free, fully functional, secure, maintainable and efficient code
- First, think step-by-step: describe your plan in detailed pseudocode before implementation
- Confirm the plan before writing code
- Focus on maintainable over being performant
- Leave NO TODOs, placeholders, or missing pieces
- Be sure to reference file names
- When you notice I have manually modified the code, that was definitely on purpose and do not revert them
- If documentation links or required files are missing, ask for them before proceeding with the task rather than making assumptions
- If you're unable to access or retrieve content from websites, please inform me immediately and request the specific information needed rather than making assumptions
- You can use emojis, npm packages like `chalk`/`chalk-animation`/`terminal-link`/`gradient-string`/`log-symbols`/`boxen`/`consola`/`@clack/prompts` to create beautiful terminal output
- Don't run `tsc --noEmit` to check ts syntax error, because our project is very large and the validate very slow
+881
View File
@@ -0,0 +1,881 @@
---
description:
globs: *.test.ts,*.test.tsx
alwaysApply: false
---
---
type: agent-requested
title: 测试指南 - LobeChat Testing Guide
description: LobeChat 项目的 Vitest 测试环境配置、运行方式、修复原则指南
---
# 测试指南 - LobeChat Testing Guide
## 🧪 测试环境概览
LobeChat 项目使用 Vitest 测试库,配置了两种不同的测试环境:
### 客户端测试环境 (DOM Environment)
- **配置文件**: [vitest.config.ts](mdc:vitest.config.ts)
- **环境**: Happy DOM (浏览器环境模拟)
- **数据库**: PGLite (浏览器环境的 PostgreSQL)
- **用途**: 测试前端组件、客户端逻辑、React 组件等
- **设置文件**: [tests/setup.ts](mdc:tests/setup.ts)
### 服务端测试环境 (Node Environment)
- **配置文件**: [vitest.config.server.ts](mdc:vitest.config.server.ts)
- **环境**: Node.js
- **数据库**: 真实的 PostgreSQL 数据库
- **并发限制**: 单线程运行 (`singleFork: true`)
- **用途**: 测试数据库模型、服务端逻辑、API 端点等
- **设置文件**: [tests/setup-db.ts](mdc:tests/setup-db.ts)
## 🚀 测试运行命令
### package.json 脚本说明
查看 [package.json](mdc:package.json) 中的测试相关脚本:
```json
{
"test": "npm run test-app && npm run test-server",
"test-app": "vitest run --config vitest.config.ts",
"test-app:coverage": "vitest run --config vitest.config.ts --coverage",
"test-server": "vitest run --config vitest.config.server.ts",
"test-server:coverage": "vitest run --config vitest.config.server.ts --coverage"
}
```
### 推荐的测试运行方式
#### ✅ 正确的命令格式
```bash
# 运行所有客户端测试
npx vitest run --config vitest.config.ts
# 运行所有服务端测试
npx vitest run --config vitest.config.server.ts
# 运行特定测试文件 (支持模糊匹配)
npx vitest run --config vitest.config.ts basic
npx vitest run --config vitest.config.ts user.test.ts
# 运行特定文件的特定行号
npx vitest run --config vitest.config.ts src/utils/helper.test.ts:25
npx vitest run --config vitest.config.ts basic/foo.test.ts:10,basic/foo.test.ts:25
# 过滤特定测试用例名称
npx vitest -t "test case name" --config vitest.config.ts
# 组合使用文件和测试名称过滤
npx vitest run --config vitest.config.ts filename.test.ts -t "specific test"
```
#### ❌ 避免的命令格式
```bash
# ❌ 不要使用 pnpm test xxx (这不是有效的 vitest 命令)
pnpm test some-file
# ❌ 不要使用裸 vitest (会进入 watch 模式)
vitest test-file.test.ts
# ❌ 不要混淆测试环境
npx vitest run --config vitest.config.server.ts client-component.test.ts
```
### 关键运行参数说明
- **`vitest run`**: 运行一次测试然后退出 (避免 watch 模式)
- **`vitest`**: 默认进入 watch 模式,持续监听文件变化
- **`--config`**: 指定配置文件,选择正确的测试环境
- **`-t`**: 过滤测试用例名称,支持正则表达式
- **`--coverage`**: 生成测试覆盖率报告
## 🔧 测试修复原则
### 核心原则 ⚠️
1. **充分阅读测试代码**: 在修复测试之前,必须完整理解测试的意图和实现
2. **测试优先修复**: 如果是测试本身写错了,修改测试而不是实现代码
3. **专注单一问题**: 只修复指定的测试,不要添加额外测试或功能
4. **不自作主张**: 不要因为发现其他问题就直接修改,先提出再讨论
### 测试修复流程
```mermaid
flowchart TD
subgraph "阶段一:分析与复现"
A[开始:收到测试失败报告] --> B[定位并运行失败的测试];
B --> C{是否能在本地复现?};
C -->|否| D[检查测试环境/配置/依赖];
C -->|是| E[分析:阅读测试代码、错误日志、Git 历史];
end
subgraph "阶段二:诊断与调试"
E --> F[建立假设:问题出在测试、代码还是环境?];
F --> G["调试:使用 console.log 或 debugger 深入检查"];
G --> H{假设是否被证实?};
H -->|否, 重新假设| F;
end
subgraph "阶段三:修复与验证"
H -->|是| I{确定根本原因};
I -->|测试逻辑错误| J[修复测试代码];
I -->|实现代码 Bug| K[修复实现代码];
I -->|环境/配置问题| L[修复配置或依赖];
J --> M[验证修复:重新运行失败的测试];
K --> M;
L --> M;
M --> N{测试是否通过?};
N -->|否, 修复无效| F;
N -->|是| O[扩大验证:运行当前文件内所有测试];
O --> P{是否全部通过?};
P -->|否, 引入新问题| F;
end
subgraph "阶段四:总结"
P -->|是| Q[完成:撰写修复总结];
end
D --> F;
```
### 修复完成后的总结
测试修复完成后,应该提供简要说明,包括:
1. **错误原因分析**: 说明测试失败的根本原因
- 测试逻辑错误
- 实现代码bug
- 环境配置问题
- 依赖变更导致的问题
2. **修复方法说明**: 简述采用的修复方式
- 修改了哪些文件
- 采用了什么解决方案
- 为什么选择这种修复方式
**示例格式**:
```markdown
## 测试修复总结
**错误原因**: 测试中的 mock 数据格式与实际 API 返回格式不匹配,导致断言失败。
**修复方法**: 更新了测试文件中的 mock 数据结构,使其与最新的 API 响应格式保持一致。具体修改了 `user.test.ts` 中的 `mockUserData` 对象结构。
```
## 📂 测试文件组织
### 文件命名约定
- **客户端测试**: `*.test.ts`, `*.test.tsx` (任意位置)
- **服务端测试**: `src/database/models/**/*.test.ts`, `src/database/server/**/*.test.ts` (限定路径)
### 测试文件组织风格
项目采用 **测试文件与源文件同目录** 的组织风格:
- 测试文件放在对应源文件的同一目录下
- 命名格式:`原文件名.test.ts` 或 `原文件名.test.tsx`
例如:
```
src/components/Button/
├── index.tsx # 源文件
└── index.test.tsx # 测试文件
```
## 🛠️ 测试调试技巧
### 运行失败测试的步骤
1. **确定测试类型**: 查看文件路径确定使用哪个配置
2. **运行单个测试**: 使用 `-t` 参数隔离问题
3. **检查错误日志**: 仔细阅读错误信息和堆栈跟踪
4. **查看最近修改记录**: 检查相关文件的最近变更情况
5. **添加调试日志**: 在测试中添加 `console.log` 了解执行流程
### Electron IPC 接口测试策略 🖥️
对于涉及 Electron IPC 接口的测试,由于提供真实的 Electron 环境比较复杂,采用 **Mock 返回值** 的方式进行测试。
#### 基本 Mock 设置
```typescript
import { vi } from "vitest";
import { electronIpcClient } from "@/server/modules/ElectronIPCClient";
// Mock Electron IPC 客户端
vi.mock("@/server/modules/ElectronIPCClient", () => ({
electronIpcClient: {
getFilePathById: vi.fn(),
deleteFiles: vi.fn(),
// 根据需要添加其他 IPC 方法
},
}));
```
#### 在测试中设置 Mock 行为
```typescript
beforeEach(() => {
// 重置所有 Mock
vi.resetAllMocks();
// 设置默认的 Mock 返回值
vi.mocked(electronIpcClient.getFilePathById).mockResolvedValue(
"/path/to/file.txt"
);
vi.mocked(electronIpcClient.deleteFiles).mockResolvedValue({
success: true,
});
});
```
#### 测试不同场景的示例
```typescript
it("应该处理文件删除成功的情况", async () => {
// 设置成功场景的 Mock
vi.mocked(electronIpcClient.deleteFiles).mockResolvedValue({
success: true,
});
const result = await service.deleteFiles(["desktop://file1.txt"]);
expect(electronIpcClient.deleteFiles).toHaveBeenCalledWith([
"desktop://file1.txt",
]);
expect(result.success).toBe(true);
});
it("应该处理文件删除失败的情况", async () => {
// 设置失败场景的 Mock
vi.mocked(electronIpcClient.deleteFiles).mockRejectedValue(
new Error("删除失败")
);
const result = await service.deleteFiles(["desktop://file1.txt"]);
expect(result.success).toBe(false);
expect(result.errors).toBeDefined();
});
```
#### Mock 策略的优势
1. **环境简化**: 避免了复杂的 Electron 环境搭建
2. **测试可控**: 可以精确控制 IPC 调用的返回值和行为
3. **场景覆盖**: 容易测试各种成功/失败场景
4. **执行速度**: Mock 调用比真实 IPC 调用更快
#### 注意事项
- **Mock 准确性**: 确保 Mock 的行为与真实 IPC 接口行为一致
- **类型安全**: 使用 `vi.mocked()` 确保类型安全
- **Mock 重置**: 在 `beforeEach` 中重置 Mock 状态,避免测试间干扰
- **调用验证**: 不仅要验证返回值,还要验证 IPC 方法是否被正确调用
### 检查最近修改记录 🔍
为了更好地判断测试失败的根本原因,需要**系统性地检查相关文件的修改历史**。这是问题定位的关键步骤。
#### 第一步:确定需要检查的文件范围
1. **测试文件本身**: `path/to/component.test.ts`
2. **对应的实现文件**: `path/to/component.ts` 或 `path/to/component/index.ts`
3. **相关依赖文件**: 测试或实现中导入的其他模块
#### 第二步:检查当前工作目录状态
```bash
# 查看所有未提交的修改状态
git status
# 重点关注测试文件和实现文件是否有未提交的修改
git status | grep -E "(test|spec)"
```
#### 第三步:检查未提交的修改内容
```bash
# 查看测试文件的未提交修改 (工作区 vs 暂存区)
git diff path/to/component.test.ts | cat
# 查看对应实现文件的未提交修改
git diff path/to/component.ts | cat
# 查看已暂存但未提交的修改
git diff --cached path/to/component.test.ts | cat
git diff --cached path/to/component.ts | cat
```
#### 第四步:检查提交历史和时间相关性
**首先查看提交时间,判断修改的时效性**:
```bash
# 查看测试文件的最近提交历史,包含提交时间
git log --pretty=format:"%h %ad %s" --date=relative -5 path/to/component.test.ts | cat
# 查看实现文件的最近提交历史,包含提交时间
git log --pretty=format:"%h %ad %s" --date=relative -5 path/to/component.ts | cat
# 查看详细的提交时间(ISO格式,便于精确判断)
git log --pretty=format:"%h %ad %an %s" --date=iso -3 path/to/component.ts | cat
git log --pretty=format:"%h %ad %an %s" --date=iso -3 path/to/component.test.ts | cat
```
**判断提交的参考价值**
1. **最近提交(24小时内)**: 🔴 **高度相关** - 很可能是导致测试失败的直接原因
2. **近期提交(1-7天内)**: 🟡 **中等相关** - 可能相关,需要仔细分析修改内容
3. **较早提交(超过1周)**: ⚪ **低相关性** - 除非是重大重构,否则不太可能是直接原因
#### 第五步:基于时间相关性查看具体修改内容
**根据提交时间的远近,优先查看最近的修改**:
```bash
# 如果有24小时内的提交,重点查看这些修改
git show HEAD -- path/to/component.test.ts | cat
git show HEAD -- path/to/component.ts | cat
# 查看次新的提交(如果最新提交时间较远)
git show HEAD~1 -- path/to/component.ts | cat
git show <recent-commit-hash> -- path/to/component.ts | cat
# 对比最近两次提交的差异
git diff HEAD~1 HEAD -- path/to/component.ts | cat
```
#### 第六步:分析修改与测试失败的关系
基于修改记录和时间相关性判断:
1. **最近修改了实现代码**:
```bash
# 重点检查实现逻辑的变化
git diff HEAD~1 path/to/component.ts | cat
```
- 很可能是实现代码的变更导致测试失败
- 检查实现逻辑是否正确
- 确认测试是否需要相应更新
2. **最近修改了测试代码**:
```bash
# 重点检查测试逻辑的变化
git diff HEAD~1 path/to/component.test.ts | cat
```
- 可能是测试本身写错了
- 检查测试逻辑和断言是否正确
- 确认测试是否符合实现的预期行为
3. **两者都有最近修改**:
```bash
# 对比两个文件的修改时间
git log --pretty=format:"%ad %f" --date=iso -1 path/to/component.ts | cat
git log --pretty=format:"%ad %f" --date=iso -1 path/to/component.test.ts | cat
```
- 需要综合分析两者的修改
- 确定哪个修改更可能导致问题
- 优先检查时间更近的修改
4. **都没有最近修改**:
- 可能是依赖变更或环境问题
- 检查 `package.json`、配置文件等的修改
- 查看是否有全局性的代码重构
#### 修改记录检查示例
```bash
# 完整的检查流程示例
echo "=== 检查文件修改状态 ==="
git status | grep component
echo "=== 检查未提交修改 ==="
git diff src/components/Button/index.test.tsx | cat
git diff src/components/Button/index.tsx | cat
echo "=== 检查提交历史和时间 ==="
git log --pretty=format:"%h %ad %s" --date=relative -3 src/components/Button/index.test.tsx | cat
git log --pretty=format:"%h %ad %s" --date=relative -3 src/components/Button/index.tsx | cat
echo "=== 根据时间优先级查看修改内容 ==="
# 如果有24小时内的提交,重点查看
git show HEAD -- src/components/Button/index.tsx | cat
```
## 🗃️ 数据库 Model 测试指南
### 测试环境选择 💡
数据库 Model 层通过环境变量控制数据库类型,在两种测试环境下有不同的数据库后端:客户端环境 (PGLite) 和 服务端环境 (PostgreSQL)
### ⚠️ 双环境验证要求
**对于所有 Model 测试,必须在两个环境下都验证通过**:
#### 完整验证流程
```bash
# 1. 先在客户端环境测试(快速验证)
npx vitest run --config vitest.config.ts src/database/models/__tests__/myModel.test.ts
# 2. 再在服务端环境测试(兼容性验证)
npx vitest run --config vitest.config.server.ts src/database/models/__tests__/myModel.test.ts
```
### 创建新 Model 测试的最佳实践 📋
#### 1. 参考现有实现和测试模板
创建新 Model 测试前,**必须先参考现有的实现模式**:
- **Model 实现参考**:
- **测试模板参考**:
- **复杂示例参考**:
#### 2. 用户权限检查 - 安全第一 🔒
这是**最关键的安全要求**。所有涉及用户数据的操作都必须包含用户权限检查:
**❌ 错误示例 - 存在安全漏洞**:
```typescript
// 危险:缺少用户权限检查,任何用户都能操作任何数据
update = async (id: string, data: Partial<MyModel>) => {
return this.db
.update(myTable)
.set(data)
.where(eq(myTable.id, id)) // ❌ 只检查 ID,没有检查 userId
.returning();
};
```
**✅ 正确示例 - 安全的实现**:
```typescript
// 安全:必须同时匹配 ID 和 userId
update = async (id: string, data: Partial<MyModel>) => {
return this.db
.update(myTable)
.set(data)
.where(
and(
eq(myTable.id, id),
eq(myTable.userId, this.userId) // ✅ 用户权限检查
)
)
.returning();
};
```
**必须进行用户权限检查的方法**
- `update()` - 更新操作
- `delete()` - 删除操作
- `findById()` - 查找特定记录
- 任何涉及特定记录的查询或修改操作
#### 3. 测试文件结构和必测场景
**基本测试结构**:
```typescript
// @vitest-environment node
describe("MyModel", () => {
describe("create", () => {
it("should create a new record");
it("should handle edge cases");
});
describe("queryAll", () => {
it("should return records for current user only");
it("should handle empty results");
});
describe("update", () => {
it("should update own records");
it("should NOT update other users records"); // 🔒 安全测试
});
describe("delete", () => {
it("should delete own records");
it("should NOT delete other users records"); // 🔒 安全测试
});
describe("user isolation", () => {
it("should enforce user data isolation"); // 🔒 核心安全测试
});
});
```
**必须测试的安全场景** 🔒:
```typescript
it("should not update records of other users", async () => {
// 创建其他用户的记录
const [otherUserRecord] = await serverDB
.insert(myTable)
.values({ userId: "other-user", data: "original" })
.returning();
// 尝试更新其他用户的记录
const result = await myModel.update(otherUserRecord.id, { data: "hacked" });
// 应该返回 undefined 或空数组(因为权限检查失败)
expect(result).toBeUndefined();
// 验证原始数据未被修改
const unchanged = await serverDB.query.myTable.findFirst({
where: eq(myTable.id, otherUserRecord.id),
});
expect(unchanged?.data).toBe("original"); // 数据应该保持不变
});
```
#### 4. Mock 外部依赖服务
如果 Model 依赖外部服务(如 FileService),需要正确 Mock
**设置 Mock**:
```typescript
// 在文件顶部设置 Mock
const mockGetFullFileUrl = vi.fn();
vi.mock("@/server/services/file", () => ({
FileService: vi.fn().mockImplementation(() => ({
getFullFileUrl: mockGetFullFileUrl,
})),
}));
// 在 beforeEach 中重置和配置 Mock
beforeEach(async () => {
vi.clearAllMocks();
mockGetFullFileUrl.mockImplementation(
(url: string) => `https://example.com/${url}`
);
});
```
**验证 Mock 调用**:
```typescript
it("should process URLs through FileService", async () => {
// ... 测试逻辑
// 验证 Mock 被正确调用
expect(mockGetFullFileUrl).toHaveBeenCalledWith("expected-url");
expect(mockGetFullFileUrl).toHaveBeenCalledTimes(1);
});
```
#### 5. 数据库状态管理
**正确的数据清理模式**:
```typescript
const userId = "test-user";
const otherUserId = "other-user";
beforeEach(async () => {
// 清理用户表(级联删除相关数据)
await serverDB.delete(users);
// 创建测试用户
await serverDB.insert(users).values([{ id: userId }, { id: otherUserId }]);
});
afterEach(async () => {
// 清理测试数据
await serverDB.delete(users);
});
```
#### 6. 测试数据类型和外键约束处理 ⚠️
**必须使用 Schema 导出的类型**:
```typescript
// ✅ 正确:使用 schema 导出的类型
import { NewGenerationBatch, NewGeneration } from '../../schemas';
const testBatch: NewGenerationBatch = {
userId,
generationTopicId: 'test-topic-id',
provider: 'test-provider',
model: 'test-model',
prompt: 'Test prompt for image generation',
width: 1024,
height: 1024,
config: { /* ... */ },
};
const testGeneration: NewGeneration = {
id: 'test-gen-id',
generationBatchId: 'test-batch-id',
asyncTaskId: null, // 处理外键约束
fileId: null, // 处理外键约束
seed: 12345,
userId,
};
```
```typescript
// ❌ 错误:没有类型声明或使用错误类型
const testBatch = { // 缺少类型声明
generationTopicId: 'test-topic-id',
// ...
};
const testGeneration = { // 缺少类型声明
asyncTaskId: 'invalid-uuid', // 外键约束错误
fileId: 'non-existent-file', // 外键约束错误
// ...
};
```
**外键约束处理策略**:
1. **使用 null 值**: 对于可选的外键字段,使用 null 避免约束错误
2. **创建关联记录**: 如果需要测试关联关系,先创建被引用的记录
3. **理解约束关系**: 了解哪些字段有外键约束,避免引用不存在的记录
```typescript
// 外键约束处理示例
beforeEach(async () => {
// 清理数据库
await serverDB.delete(users);
// 创建测试用户
await serverDB.insert(users).values([{ id: userId }]);
// 如果需要测试文件关联,创建文件记录
if (needsFileAssociation) {
await serverDB.insert(files).values({
id: 'test-file-id',
userId,
name: 'test.jpg',
url: 'test-url',
size: 1024,
fileType: 'image/jpeg',
});
}
});
```
**排序测试的可预测性**:
```typescript
// ✅ 正确:使用明确的时间戳确保排序结果可预测
it('should find batches by topic id in correct order', async () => {
const oldDate = new Date('2024-01-01T10:00:00Z');
const newDate = new Date('2024-01-02T10:00:00Z');
const batch1 = { ...testBatch, prompt: 'First batch', userId, createdAt: oldDate };
const batch2 = { ...testBatch, prompt: 'Second batch', userId, createdAt: newDate };
await serverDB.insert(generationBatches).values([batch1, batch2]);
const results = await generationBatchModel.findByTopicId(testTopic.id);
expect(results[0].prompt).toBe('Second batch'); // 最新优先 (desc order)
expect(results[1].prompt).toBe('First batch');
});
```
```typescript
// ❌ 错误:依赖数据库的默认时间戳,结果不可预测
it('should find batches by topic id', async () => {
const batch1 = { ...testBatch, prompt: 'First batch', userId };
const batch2 = { ...testBatch, prompt: 'Second batch', userId };
await serverDB.insert(generationBatches).values([batch1, batch2]);
// 插入顺序和数据库时间戳可能不一致,导致测试不稳定
const results = await generationBatchModel.findByTopicId(testTopic.id);
expect(results[0].prompt).toBe('Second batch'); // 可能失败
});
```
### 常见问题和解决方案 💡
#### 问题 1:权限检查缺失导致安全漏洞
**现象**: 测试失败,用户能修改其他用户的数据
**解决**: 在 Model 的 `update` 和 `delete` 方法中添加 `and(eq(table.id, id), eq(table.userId, this.userId))`
#### 问题 2:Mock 未生效或验证失败
**现象**: `undefined is not a spy` 错误
**解决**: 检查 Mock 设置位置和方式,确保在测试文件顶部设置,在 `beforeEach` 中重置
#### 问题 3:测试数据污染
**现象**: 测试间相互影响,结果不稳定
**解决**: 在 `beforeEach` 和 `afterEach` 中正确清理数据库状态
#### 问题 4:外部依赖导致测试失败
**现象**: 因为真实的外部服务调用导致测试不稳定
**解决**: Mock 所有外部依赖,使测试更可控和快速
#### 问题 5:外键约束违反导致测试失败
**现象**: `insert or update on table "xxx" violates foreign key constraint`
**解决**:
- 将可选外键字段设为 `null` 而不是无效的字符串值
- 或者先创建被引用的记录,再创建当前记录
```typescript
// ❌ 错误:无效的外键值
const testData = {
asyncTaskId: 'invalid-uuid', // 表中不存在此记录
fileId: 'non-existent-file', // 表中不存在此记录
};
// ✅ 正确:使用 null 值
const testData = {
asyncTaskId: null, // 避免外键约束
fileId: null, // 避免外键约束
};
// ✅ 或者:先创建被引用的记录
beforeEach(async () => {
const [asyncTask] = await serverDB.insert(asyncTasks).values({
id: 'valid-task-id',
status: 'pending',
type: 'generation',
}).returning();
const testData = {
asyncTaskId: asyncTask.id, // 使用有效的外键值
};
});
```
#### 问题 6:排序测试结果不一致
**现象**: 相同的测试有时通过,有时失败,特别是涉及排序的测试
**解决**: 使用明确的时间戳,不要依赖数据库的默认时间戳
```typescript
// ❌ 错误:依赖插入顺序和默认时间戳
await serverDB.insert(table).values([data1, data2]); // 时间戳不可预测
// ✅ 正确:明确指定时间戳
const oldDate = new Date('2024-01-01T10:00:00Z');
const newDate = new Date('2024-01-02T10:00:00Z');
await serverDB.insert(table).values([
{ ...data1, createdAt: oldDate },
{ ...data2, createdAt: newDate },
]);
```
#### 问题 7:Mock 验证失败或调用次数不匹配
**现象**: `expect(mockFunction).toHaveBeenCalledWith(...)` 失败
**解决**:
- 检查 Mock 函数的实际调用参数和期望参数是否完全匹配
- 确认 Mock 在正确的时机被重置和配置
- 使用 `toHaveBeenCalledTimes()` 验证调用次数
```typescript
// 在 beforeEach 中正确配置 Mock
beforeEach(() => {
vi.clearAllMocks(); // 重置所有 Mock
mockGetFullFileUrl.mockImplementation((url: string) => `https://example.com/${url}`);
mockTransformGeneration.mockResolvedValue({
id: 'test-id',
// ... 其他字段
});
});
// 测试中验证 Mock 调用
it('should call FileService with correct parameters', async () => {
await model.someMethod();
// 验证调用参数
expect(mockGetFullFileUrl).toHaveBeenCalledWith('expected-url');
// 验证调用次数
expect(mockGetFullFileUrl).toHaveBeenCalledTimes(1);
});
```
### Model 测试检查清单 ✅
创建 Model 测试时,请确保以下各项都已完成:
#### 🔧 基础配置
- [ ] **双环境验证** - 在客户端环境 (vitest.config.ts) 和服务端环境 (vitest.config.server.ts) 下都测试通过
- [ ] 参考了 `_template.ts` 和现有 Model 的实现模式
- [ ] **使用正确的 Schema 类型** - 测试数据使用 `NewXxx` 类型声明,如 `NewGenerationBatch`、`NewGeneration`
#### 🔒 安全测试
- [ ] **所有涉及用户数据的操作都包含用户权限检查**
- [ ] 包含了用户权限隔离的安全测试
- [ ] 测试了用户无法访问其他用户数据的场景
#### 🗃️ 数据处理
- [ ] **正确处理外键约束** - 使用 `null` 值或先创建被引用记录
- [ ] **排序测试使用明确时间戳** - 不依赖数据库默认时间,确保结果可预测
- [ ] 在 `beforeEach` 和 `afterEach` 中正确管理数据库状态
- [ ] 所有测试都能独立运行且互不干扰
#### 🎭 Mock 和外部依赖
- [ ] 正确 Mock 了外部依赖服务 (如 FileService、GenerationModel)
- [ ] 在 `beforeEach` 中重置和配置 Mock
- [ ] 验证了 Mock 服务的调用参数和次数
- [ ] 测试了外部服务错误场景的处理
#### 📋 测试覆盖
- [ ] 测试覆盖了所有主要方法 (create, query, update, delete)
- [ ] 测试了边界条件和错误场景
- [ ] 包含了空结果处理的测试
- [ ] **确认两个环境下的测试结果一致**
#### 🚨 常见问题检查
- [ ] 没有外键约束违反错误
- [ ] 排序测试结果稳定可预测
- [ ] Mock 验证无失败
- [ ] 无测试数据污染问题
### 安全警告 ⚠️
**数据库 Model 层是安全的第一道防线**。如果 Model 层缺少用户权限检查:
1. **任何用户都能访问和修改其他用户的数据**
2. **即使上层有权限检查,也可能被绕过**
3. **可能导致严重的数据泄露和安全事故**
因此,**每个涉及用户数据的 Model 方法都必须包含用户权限检查,且必须有对应的安全测试来验证这些检查的有效性**。
## 🎯 总结
修复测试时,记住以下关键点:
- **使用正确的命令**: `npx vitest run --config [config-file]`
- **理解测试意图**: 先读懂测试再修复
- **查看最近修改**: 检查相关文件的 git 修改记录,判断问题根源
- **选择正确环境**: 客户端测试用 `vitest.config.ts`,服务端用 `vitest.config.server.ts`
- **专注单一问题**: 只修复当前的测试失败
- **验证修复结果**: 确保修复后测试通过且无副作用
- **提供修复总结**: 说明错误原因和修复方法
- **Model 测试安全第一**: 必须包含用户权限检查和对应的安全测试
- **Model 双环境验证**: 必须在 PGLite 和 PostgreSQL 两个环境下都验证通过
+19
View File
@@ -0,0 +1,19 @@
---
description:
globs: *.ts,*.tsx,*.mts
alwaysApply: false
---
TypeScript Code Style Guide:
- Avoid explicit type annotations when TypeScript can infer types.
- Avoid defining `any` type variables (e.g., `let a: number;` instead of `let a;`).
- Use the most accurate type possible (e.g., use `Record<PropertyKey, unknown>` instead of `object`).
- Prefer `interface` over `type` (e.g., define react component props).
- Use `as const satisfies XyzInterface` instead of `as const` when suitable
- import index.ts module(directory module) like `@/db/index` instead of `@/db`
- Instead of calling Date.now() multiple times, assign it to a constant once and reuse it. This ensures consistency and improves readability
- Always refactor repeated logic into a reusable function
- Don't remove meaningful code comments, be sure to keep original comments when providing applied code
- Update the code comments when needed after you modify the related code
- Please respect my prettier preferences when you provide code
+360
View File
@@ -0,0 +1,360 @@
---
description:
globs: src/store/**
alwaysApply: false
---
# LobeChat Zustand Action 组织模式
本文档详细说明了 LobeChat 项目中 Zustand Action 的组织方式、命名规范和实现模式,特别关注乐观更新与后端服务的集成。
## Action 类型分层
LobeChat 的 Action 采用分层架构,明确区分不同职责:
### 1. Public Actions
对外暴露的主要接口,供 UI 组件调用:
- 命名:动词形式(`createTopic`, `sendMessage`, `updateTopicTitle`
- 职责:参数验证、流程编排、调用 internal actions
- 示例:[src/store/chat/slices/topic/action.ts](mdc:src/store/chat/slices/topic/action.ts)
```typescript
// Public Action 示例
createTopic: async () => {
const { activeId, internal_createTopic } = get();
const messages = chatSelectors.activeBaseChats(get());
if (messages.length === 0) return;
const topicId = await internal_createTopic({
sessionId: activeId,
title: t('defaultTitle', { ns: 'topic' }),
messages: messages.map((m) => m.id),
});
return topicId;
},
```
### 2. Internal Actions (`internal_*`)
内部实现细节,处理核心业务逻辑:
- 命名:`internal_` 前缀 + 动词(`internal_createTopic`, `internal_updateMessageContent`
- 职责:乐观更新、服务调用、错误处理、状态同步
- 不应该被 UI 组件直接调用
```typescript
// Internal Action 示例 - 乐观更新模式
internal_createTopic: async (params) => {
const tmpId = Date.now().toString();
// 1. 立即更新前端状态(乐观更新)
get().internal_dispatchTopic(
{ type: 'addTopic', value: { ...params, id: tmpId } },
'internal_createTopic',
);
get().internal_updateTopicLoading(tmpId, true);
// 2. 调用后端服务
const topicId = await topicService.createTopic(params);
get().internal_updateTopicLoading(tmpId, false);
// 3. 刷新数据确保一致性
get().internal_updateTopicLoading(topicId, true);
await get().refreshTopic();
get().internal_updateTopicLoading(topicId, false);
return topicId;
},
```
### 3. Dispatch Methods (`internal_dispatch*`)
专门处理状态更新的方法:
- 命名:`internal_dispatch` + 实体名(`internal_dispatchTopic`, `internal_dispatchMessage`
- 职责:调用 reducer、更新 Zustand store、处理状态对比
```typescript
// Dispatch Method 示例
internal_dispatchTopic: (payload, action) => {
const nextTopics = topicReducer(topicSelectors.currentTopics(get()), payload);
const nextMap = { ...get().topicMaps, [get().activeId]: nextTopics };
if (isEqual(nextMap, get().topicMaps)) return;
set({ topicMaps: nextMap }, false, action ?? n(`dispatchTopic/${payload.type}`));
},
```
## 何时使用 Reducer 模式 vs. 简单 `set`
### 使用 Reducer 模式的场景
适用于复杂的数据结构管理,特别是:
- 管理对象列表或映射(如 `messagesMap`, `topicMaps`
- 需要乐观更新的场景
- 状态转换逻辑复杂
- 需要类型安全的 action payload
```typescript
// Reducer 模式示例 - 复杂消息状态管理
export const messagesReducer = (state: ChatMessage[], payload: MessageDispatch): ChatMessage[] => {
switch (payload.type) {
case 'updateMessage': {
return produce(state, (draftState) => {
const index = draftState.findIndex((i) => i.id === payload.id);
if (index < 0) return;
draftState[index] = merge(draftState[index], {
...payload.value,
updatedAt: Date.now()
});
});
}
case 'createMessage': {
return produce(state, (draftState) => {
draftState.push({
...payload.value,
id: payload.id,
createdAt: Date.now(),
updatedAt: Date.now(),
meta: {}
});
});
}
// ...其他复杂状态转换
}
};
```
### 使用简单 `set` 的场景
适用于简单状态更新:
- 切换布尔值
- 更新简单字符串/数字
- 设置单一状态字段
```typescript
// 简单 set 示例
updateInputMessage: (message) => {
if (isEqual(message, get().inputMessage)) return;
set({ inputMessage: message }, false, n('updateInputMessage'));
},
togglePortal: (open?: boolean) => {
set({ showPortal: open ?? !get().showPortal }, false, 'togglePortal');
},
```
## 乐观更新实现模式
乐观更新是 LobeChat 中的核心模式,用于提供流畅的用户体验:
### 标准乐观更新流程
```typescript
// 完整的乐观更新示例
internal_updateMessageContent: async (id, content, extra) => {
const { internal_dispatchMessage, refreshMessages } = get();
// 1. 立即更新前端状态(乐观更新)
internal_dispatchMessage({
id,
type: 'updateMessage',
value: { content },
});
// 2. 调用后端服务
await messageService.updateMessage(id, {
content,
tools: extra?.toolCalls ? internal_transformToolCalls(extra.toolCalls) : undefined,
// ...其他字段
});
// 3. 刷新确保数据一致性
await refreshMessages();
},
```
### 创建操作的乐观更新
```typescript
internal_createMessage: async (message, context) => {
const { internal_createTmpMessage, refreshMessages, internal_toggleMessageLoading } = get();
let tempId = context?.tempMessageId;
if (!tempId) {
// 创建临时消息用于乐观更新
tempId = internal_createTmpMessage(message);
internal_toggleMessageLoading(true, tempId);
}
try {
const id = await messageService.createMessage(message);
if (!context?.skipRefresh) {
await refreshMessages();
}
internal_toggleMessageLoading(false, tempId);
return id;
} catch (e) {
internal_toggleMessageLoading(false, tempId);
// 错误处理:更新消息错误状态
internal_dispatchMessage({
id: tempId,
type: 'updateMessage',
value: { error: { type: ChatErrorType.CreateMessageError, message: e.message } },
});
}
},
```
### 删除操作模式(不使用乐观更新)
删除操作通常不适合乐观更新,因为:
- 删除是破坏性操作,错误恢复复杂
- 用户对删除操作的即时反馈期望较低
- 删除失败时恢复原状态会造成困惑
```typescript
// 删除操作的标准模式 - 无乐观更新
removeGenerationTopic: async (id: string) => {
const { internal_removeGenerationTopic } = get();
await internal_removeGenerationTopic(id);
},
internal_removeGenerationTopic: async (id: string) => {
// 1. 显示加载状态
get().internal_updateGenerationTopicLoading(id, true);
try {
// 2. 直接调用后端服务
await generationTopicService.deleteTopic(id);
// 3. 刷新数据获取最新状态
await get().refreshGenerationTopics();
} finally {
// 4. 确保清除加载状态(无论成功或失败)
get().internal_updateGenerationTopicLoading(id, false);
}
},
```
删除操作的特点:
- 直接调用服务,不预先更新状态
- 依赖 loading 状态提供用户反馈
- 操作完成后刷新整个列表确保一致性
- 使用 `try/finally` 确保 loading 状态总是被清理
## 加载状态管理模式
LobeChat 使用统一的加载状态管理模式:
### 数组式加载状态
```typescript
// 在 initialState.ts 中定义
export interface ChatMessageState {
messageLoadingIds: string[]; // 消息加载状态
messageEditingIds: string[]; // 消息编辑状态
chatLoadingIds: string[]; // 对话生成状态
}
// 在 action 中管理
internal_toggleMessageLoading: (loading, id) => {
set({
messageLoadingIds: toggleBooleanList(get().messageLoadingIds, id, loading),
}, false, `internal_toggleMessageLoading/${loading ? 'start' : 'end'}`);
},
```
### 统一的加载状态工具
```typescript
// 通用的加载状态切换工具
internal_toggleLoadingArrays: (key, loading, id, action) => {
const abortControllerKey = `${key}AbortController`;
if (loading) {
const abortController = new AbortController();
set({
[abortControllerKey]: abortController,
[key]: toggleBooleanList(get()[key] as string[], id!, loading),
}, false, action);
return abortController;
} else {
set({
[abortControllerKey]: undefined,
[key]: id ? toggleBooleanList(get()[key] as string[], id, loading) : [],
}, false, action);
}
},
```
## SWR 集成模式
LobeChat 使用 SWR 进行数据获取和缓存管理:
### Hook 式数据获取
```typescript
// 在 action.ts 中定义 SWR hook
useFetchMessages: (enable, sessionId, activeTopicId) =>
useClientDataSWR<ChatMessage[]>(
enable ? [SWR_USE_FETCH_MESSAGES, sessionId, activeTopicId] : null,
async ([, sessionId, topicId]) => messageService.getMessages(sessionId, topicId),
{
onSuccess: (messages, key) => {
const nextMap = {
...get().messagesMap,
[messageMapKey(sessionId, activeTopicId)]: messages,
};
if (get().messagesInit && isEqual(nextMap, get().messagesMap)) return;
set({ messagesInit: true, messagesMap: nextMap }, false, n('useFetchMessages'));
},
},
),
```
### 缓存失效和刷新
```typescript
// 刷新数据的标准模式
refreshMessages: async () => {
await mutate([SWR_USE_FETCH_MESSAGES, get().activeId, get().activeTopicId]);
},
refreshTopic: async () => {
return mutate([SWR_USE_FETCH_TOPIC, get().activeId]);
},
```
## 命名规范总结
### Action 命名模式
- Public Actions: 动词形式,描述用户意图
- `createTopic`, `sendMessage`, `regenerateMessage`
- Internal Actions: `internal_` + 动词,描述内部操作
- `internal_createTopic`, `internal_updateMessageContent`
- Dispatch Methods: `internal_dispatch` + 实体名
- `internal_dispatchTopic`, `internal_dispatchMessage`
- Toggle Methods: `internal_toggle` + 状态名
- `internal_toggleMessageLoading`, `internal_toggleChatLoading`
### 状态命名模式
- ID 数组: `[entity]LoadingIds`, `[entity]EditingIds`
- 映射结构: `[entity]Maps`, `[entity]Map`
- 当前激活: `active[Entity]Id`
- 初始化标记: `[entity]sInit`
## 最佳实践
1. 合理使用乐观更新:
- ✅ 适用:创建、更新操作(用户交互频繁)
- ❌ 避免:删除操作(破坏性操作,错误恢复复杂)
2. 加载状态管理:使用统一的加载状态数组管理并发操作
3. 类型安全:为所有 action payload 定义 TypeScript 接口
4. SWR 集成:使用 SWR 管理数据获取和缓存失效
5. AbortController:为长时间运行的操作提供取消能力
6. 操作模式选择:
- 创建/更新:乐观更新 + 最终一致性
- 删除:加载状态 + 服务调用 + 数据刷新
这套 Action 组织模式确保了代码的一致性、可维护性,并提供了优秀的用户体验。
@@ -0,0 +1,300 @@
---
description:
globs: src/store/**
alwaysApply: false
---
# LobeChat Zustand Store Slice 组织架构
本文档描述了 LobeChat 项目中 Zustand Store 的模块化 Slice 组织方式,展示如何通过分片架构管理复杂的应用状态。
## 顶层 Store 结构
LobeChat 的 `chat` store (`src/store/chat/`) 采用模块化的 slice 结构来组织状态和逻辑。
### 关键聚合文件
- `src/store/chat/initialState.ts`: 聚合所有 slice 的初始状态
- `src/store/chat/store.ts`: 定义顶层的 `ChatStore`,组合所有 slice 的 actions
- `src/store/chat/selectors.ts`: 统一导出所有 slice 的 selectors
- `src/store/chat/helpers.ts`: 提供聊天相关的辅助函数
### Store 聚合模式
```typescript
// src/store/chat/initialState.ts
import { ChatTopicState, initialTopicState } from './slices/topic/initialState';
import { ChatMessageState, initialMessageState } from './slices/message/initialState';
import { ChatAIChatState, initialAiChatState } from './slices/aiChat/initialState';
export type ChatStoreState = ChatTopicState &
ChatMessageState &
ChatAIChatState &
// ...其他 slice states
export const initialState: ChatStoreState = {
...initialMessageState,
...initialTopicState,
...initialAiChatState,
// ...其他 initial slice states
};
```
```typescript
// src/store/chat/store.ts
import { ChatMessageAction, chatMessage } from './slices/message/action';
import { ChatTopicAction, chatTopic } from './slices/topic/action';
import { ChatAIChatAction, chatAiChat } from './slices/aiChat/actions';
export interface ChatStoreAction
extends ChatMessageAction,
ChatTopicAction,
ChatAIChatAction,
// ...其他 slice actions
const createStore: StateCreator<ChatStore, [['zustand/devtools', never]]> = (...params) => ({
...initialState,
...chatMessage(...params),
...chatTopic(...params),
...chatAiChat(...params),
// ...其他 slice action creators
});
export const useChatStore = createWithEqualityFn<ChatStore>()(
subscribeWithSelector(devtools(createStore)),
shallow,
);
```
## 单个 Slice 的标准结构
每个 slice 位于 `src/store/chat/slices/[sliceName]/` 目录下:
```
src/store/chat/slices/
└── [sliceName]/ # 例如 message, topic, aiChat, builtinTool
├── action.ts # 定义 actions (或者是一个 actions/ 目录)
├── initialState.ts # 定义 state 结构和初始值
├── reducer.ts # (可选) 如果使用 reducer 模式
├── selectors.ts # 定义 selectors
└── index.ts # (可选) 重新导出模块内容
```
### 文件职责说明
1. `initialState.ts`:
- 定义 slice 的 TypeScript 状态接口
- 提供初始状态默认值
```typescript
// 典型的 initialState.ts 结构
export interface ChatTopicState {
activeTopicId?: string;
topicMaps: Record<string, ChatTopic[]>; // 核心数据结构
topicsInit: boolean;
topicLoadingIds: string[];
// ...其他状态字段
}
export const initialTopicState: ChatTopicState = {
activeTopicId: undefined,
topicMaps: {},
topicsInit: false,
topicLoadingIds: [],
// ...其他初始值
};
```
2. `reducer.ts` (复杂状态使用):
- 定义纯函数 reducer,处理同步状态转换
- 使用 `immer` 确保不可变更新
```typescript
// 典型的 reducer.ts 结构
import { produce } from 'immer';
interface AddChatTopicAction {
type: 'addTopic';
value: CreateTopicParams & { id?: string };
}
interface UpdateChatTopicAction {
id: string;
type: 'updateTopic';
value: Partial<ChatTopic>;
}
export type ChatTopicDispatch = AddChatTopicAction | UpdateChatTopicAction;
export const topicReducer = (state: ChatTopic[] = [], payload: ChatTopicDispatch): ChatTopic[] => {
switch (payload.type) {
case 'addTopic': {
return produce(state, (draftState) => {
draftState.unshift({
...payload.value,
id: payload.value.id ?? Date.now().toString(),
createdAt: Date.now(),
});
});
}
case 'updateTopic': {
return produce(state, (draftState) => {
const index = draftState.findIndex((topic) => topic.id === payload.id);
if (index !== -1) {
draftState[index] = { ...draftState[index], ...payload.value };
}
});
}
default:
return state;
}
};
```
3. `selectors.ts`:
- 提供状态查询和计算函数
- 供 UI 组件使用的状态订阅接口
- 重要: 使用 `export const xxxSelectors` 模式聚合所有 selectors
```typescript
// 典型的 selectors.ts 结构
import { ChatStoreState } from '../../initialState';
const currentTopics = (s: ChatStoreState): ChatTopic[] | undefined =>
s.topicMaps[s.activeId];
const currentActiveTopic = (s: ChatStoreState): ChatTopic | undefined => {
return currentTopics(s)?.find((topic) => topic.id === s.activeTopicId);
};
const getTopicById = (id: string) => (s: ChatStoreState): ChatTopic | undefined =>
currentTopics(s)?.find((topic) => topic.id === id);
// 核心模式:使用 xxxSelectors 聚合导出
export const topicSelectors = {
currentActiveTopic,
currentTopics,
getTopicById,
// ...其他 selectors
};
```
## 特殊 Slice 组织模式
### 复杂 Actions 的子目录结构 (aiChat Slice)
当 slice 的 actions 过于复杂时,可以拆分到子目录:
```
src/store/chat/slices/aiChat/
├── actions/
│ ├── generateAIChat.ts # AI 对话生成
│ ├── rag.ts # RAG 检索增强生成
│ ├── memory.ts # 对话记忆管理
│ └── index.ts # 聚合所有 actions
├── initialState.ts
├── selectors.ts
└── index.ts
```
参考:`src/store/chat/slices/aiChat/actions/`
### 工具类 Slice (builtinTool)
管理多种内置工具的状态:
```
src/store/chat/slices/builtinTool/
├── actions/
│ ├── dalle.ts # DALL-E 图像生成
│ ├── search.ts # 搜索功能
│ ├── localFile.ts # 本地文件操作
│ └── index.ts
├── initialState.ts
├── selectors.ts
└── index.ts
```
参考:`src/store/chat/slices/builtinTool/`
## 状态设计模式
### 1. Map 结构用于关联数据
```typescript
// 以 sessionId 为 key,管理多个会话的数据
topicMaps: Record<string, ChatTopic[]>
messagesMap: Record<string, ChatMessage[]>
```
### 2. 数组用于加载状态管理
```typescript
// 管理多个并发操作的加载状态
messageLoadingIds: string[]
topicLoadingIds: string[]
chatLoadingIds: string[]
```
### 3. 可选字段用于当前活动项
```typescript
// 当前激活的实体 ID
activeId: string
activeTopicId?: string
activeThreadId?: string
```
## Slice 集成到顶层 Store
### 1. 状态聚合
```typescript
// 在 initialState.ts 中
export type ChatStoreState = ChatTopicState &
ChatMessageState &
ChatAIChatState &
// ...其他 slice states
```
### 2. Action 接口聚合
```typescript
// 在 store.ts 中
export interface ChatStoreAction
extends ChatMessageAction,
ChatTopicAction,
ChatAIChatAction,
// ...其他 slice actions
```
### 3. Selector 统一导出
```typescript
// 在 selectors.ts 中 - 统一聚合 selectors
export { chatSelectors } from './slices/message/selectors';
export { topicSelectors } from './slices/topic/selectors';
export { aiChatSelectors } from './slices/aiChat/selectors';
// 每个 slice 的 selectors.ts 都使用 xxxSelectors 模式:
// export const chatSelectors = { ... }
// export const topicSelectors = { ... }
// export const aiChatSelectors = { ... }
```
## 最佳实践
1. Slice 划分原则:
- 按功能领域划分(message, topic, aiChat 等)
- 每个 slice 管理相关的状态和操作
- 避免 slice 之间的强耦合
2. 文件命名规范:
- 使用小驼峰命名 slice 目录
- 文件名使用一致的模式(action.ts, selectors.ts 等)
- 复杂 actions 时使用 actions/ 子目录
3. 状态结构设计:
- 扁平化的状态结构,避免深层嵌套
- 使用 Map 结构管理列表数据
- 分离加载状态和业务数据
4. 类型安全:
- 为每个 slice 定义清晰的 TypeScript 接口
- 使用 Zustand 的 StateCreator 确保类型一致性
- 在顶层聚合时保持类型安全
这种模块化的 slice 组织方式使得大型应用的状态管理变得清晰、可维护,并且易于扩展。
+6
View File
@@ -0,0 +1,6 @@
# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
locales/
apps/desktop/resources/locales/
**/__snapshots__/
**/fixtures/
src/database/migrations/
+2 -2
View File
@@ -1,6 +1,6 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"image": "mcr.microsoft.com/devcontainers/typescript-node",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
"ghcr.io/devcontainer-community/devcontainer-features/bun.sh:1": {}
}
}
+9
View File
@@ -0,0 +1,9 @@
# copy this file to .env when you want to develop the desktop app or you will fail
APP_URL=http://localhost:3015
FEATURE_FLAGS=-check_updates,+pin_list
KEY_VAULTS_SECRET=oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE=
DATABASE_URL=postgresql://postgres@localhost:5432/postgres
SEARCH_PROVIDERS=search1api
NEXT_PUBLIC_SERVICE_MODE='server'
NEXT_PUBLIC_IS_DESKTOP_APP=1
NEXT_PUBLIC_ENABLE_NEXT_AUTH=0
+16
View File
@@ -109,6 +109,11 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# DEEPSEEK_PROXY_URL=https://api.deepseek.com/v1
# DEEPSEEK_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### Qiniu AI ####
# QINIU_PROXY_URL=https://api.qnaigc.com/v1
# QINIU_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### Qwen AI ####
# QWEN_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -131,6 +136,10 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# PPIO_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### INFINI-AI ###
# INFINIAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
########################################
############ Market Service ############
########################################
@@ -223,3 +232,10 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# Specify the Embedding model and Reranker model(unImplemented)
# DEFAULT_FILES_CONFIG="embedding_model=openai/embedding-text-3-small,reranker_model=cohere/rerank-english-v3.0,query_mode=full_text"
########################################
########## MCP Service Config ##########
########################################
# MCP tool call timeout (milliseconds)
# MCP_TOOL_TIMEOUT=60000
+4
View File
@@ -17,6 +17,10 @@ config.rules['unicorn/prefer-spread'] = 0;
config.rules['unicorn/catch-error-name'] = 0;
config.rules['unicorn/no-array-for-each'] = 0;
config.rules['unicorn/prefer-number-properties'] = 0;
config.rules['unicorn/prefer-query-selector'] = 0;
config.rules['unicorn/no-array-callback-reference'] = 0;
// FIXME: Linting error in src/app/[variants]/(main)/chat/features/Migration/DBReader.ts, the fundamental solution should be upgrading typescript-eslint
config.rules['@typescript-eslint/no-useless-constructor'] = 0;
config.overrides = [
{
+3 -2
View File
@@ -1,7 +1,7 @@
name: '🐛 Bug Report'
description: 'Report an bug'
title: '[Bug] '
labels: ['🐛 Bug']
labels: ['unconfirm']
type: Bug
body:
- type: dropdown
attributes:
@@ -9,6 +9,7 @@ body:
multiple: true
options:
- 'Official Preview'
- 'Official Cloud'
- 'Vercel'
- 'Zeabur'
- 'Sealos'
+2 -2
View File
@@ -1,7 +1,6 @@
name: '🐛 反馈缺陷'
description: '反馈一个问题缺陷'
title: '[Bug] '
labels: ['🐛 Bug']
labels: ['unconfirm']
type: Bug
body:
- type: markdown
@@ -17,6 +16,7 @@ body:
multiple: true
options:
- 'Official Preview'
- 'Official Cloud'
- 'Vercel'
- 'Zeabur'
- 'Sealos'
+1 -1
View File
@@ -1,7 +1,7 @@
name: '🌠 Feature Request'
description: 'Suggest an idea'
title: '[Request] '
labels: ['🌠 Feature Request']
type: Feature
body:
- type: textarea
attributes:
@@ -1,7 +1,7 @@
name: '🌠 功能需求'
description: '提出需求或建议'
title: '[Request] '
labels: ['🌠 Feature Request']
type: Feature
body:
- type: textarea
attributes:
+256
View File
@@ -0,0 +1,256 @@
/**
* Create or update GitHub issue when i18n workflow fails
* Usage: node create-failure-issue.js
*/
module.exports = async ({ github, context, core }) => {
const runUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
const timestamp = new Date().toISOString();
const date = timestamp.split('T')[0];
// Get error details from environment variables
const errorDetails = {
validateEnv: process.env.ERROR_VALIDATE_ENV || '',
rebaseAttempt: process.env.ERROR_REBASE_ATTEMPT || '',
createBranch: process.env.ERROR_CREATE_BRANCH || '',
installDeps: process.env.ERROR_INSTALL_DEPS || '',
runI18n: process.env.ERROR_RUN_I18N || '',
commitPush: process.env.ERROR_COMMIT_PUSH || '',
};
// Get step conclusions from environment variables
const stepStatus = {
validateEnv: process.env.STEP_VALIDATE_ENV || 'Not run',
checkBranch: process.env.STEP_CHECK_BRANCH || 'Not run',
rebaseAttempt: process.env.STEP_REBASE_ATTEMPT || 'Not run',
createBranch: process.env.STEP_CREATE_BRANCH || 'Not run',
installDeps: process.env.STEP_INSTALL_DEPS || 'Not run',
runI18n: process.env.STEP_RUN_I18N || 'Not run',
commitPush: process.env.STEP_COMMIT_PUSH || 'Not run',
createPr: process.env.STEP_CREATE_PR || 'Not run',
};
// Find the first non-empty error
const mainError =
Object.values(errorDetails).find((error) => error && error.trim()) || 'Unknown error occurred';
// Determine error category for better troubleshooting
const getErrorCategory = (error) => {
if (error.includes('API') || error.includes('authentication')) return 'API/Authentication';
if (error.includes('network') || error.includes('timeout')) return 'Network/Connectivity';
if (error.includes('dependencies') || error.includes('bun')) return 'Dependencies';
if (error.includes('git') || error.includes('branch') || error.includes('rebase'))
return 'Git Operations';
if (error.includes('permission') || error.includes('token')) return 'Permissions';
return 'General';
};
const errorCategory = getErrorCategory(mainError);
const issueTitle = `🚨 Daily i18n Update Failed - ${date}`;
const issueBody = `## 🚨 Automated i18n Update Failure
**Timestamp:** ${timestamp}
**Workflow Run:** [#${context.runNumber}](${runUrl})
**Repository:** ${context.repo.owner}/${context.repo.repo}
**Branch:** ${context.ref}
**Commit:** ${context.sha}
## ❌ Error Details
**Primary Error:** ${mainError}
**Category:** ${errorCategory}
## 🔍 Step Status
| Step | Status |
|------|--------|
| Environment Validation | ${stepStatus.validateEnv} |
| Branch Check | ${stepStatus.checkBranch} |
| Rebase Attempt | ${stepStatus.rebaseAttempt} |
| Branch Creation | ${stepStatus.createBranch} |
| Dependencies | ${stepStatus.installDeps} |
| i18n Update | ${stepStatus.runI18n} |
| Git Operations | ${stepStatus.commitPush} |
| PR Creation | ${stepStatus.createPr} |
## 🔧 Environment Info
- **Runner OS:** ${process.env.RUNNER_OS || 'Unknown'}
- **Bun Version:** ${process.env.BUN_VERSION || 'Default'}
- **Workflow:** \`${context.workflow}\`
## 📋 Debug Information
Debug logs have been uploaded as artifacts and will be available for 7 days.
${getErrorCategoryHelp(errorCategory)}
## 🛠️ General Troubleshooting Steps
1. Check if all required secrets are properly configured
2. Verify OpenAI API quota and billing status
3. Review the workflow run logs for detailed error messages
4. Check if there are any ongoing GitHub API issues
5. Manually trigger the workflow to retry
## 📊 Workflow Statistics
- **Run Number:** ${context.runNumber}
- **Run ID:** ${context.runId}
- **Event:** ${context.eventName}
---
**Auto-generated by:** [\`${context.workflow}\`](${runUrl})
**Labels:** automated, bug, i18n, workflow-failure, ${errorCategory.toLowerCase().replace(/[^a-z0-9]/g, '-')}`;
try {
// Search for existing open issues with similar title
const existingIssues = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
labels: 'automated,workflow-failure',
state: 'open',
per_page: 50,
});
const todayPrefix = `🚨 Daily i18n Update Failed - ${date}`;
const existingIssue = existingIssues.data.find((issue) => issue.title.startsWith(todayPrefix));
if (existingIssue) {
// Update existing issue with comment
const commentBody = `## 🔄 Additional Failure
**Timestamp:** ${timestamp}
**Workflow Run:** [#${context.runNumber}](${runUrl})
**Error Category:** ${errorCategory}
**Error:** ${mainError}
Same issue occurred again. Please investigate the recurring problem.
### Quick Actions
- [ ] Check API quotas and billing
- [ ] Verify network connectivity
- [ ] Review recent changes that might cause conflicts
- [ ] Consider manual intervention
---
*This is failure #${(await getFailureCount(github, context, existingIssue.number)) + 1} for today.*`;
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: existingIssue.number,
body: commentBody,
});
// Add priority label if this is a recurring issue
const failureCount = await getFailureCount(github, context, existingIssue.number);
if (failureCount >= 2) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: existingIssue.number,
labels: ['priority-high', 'recurring'],
});
}
core.info(`✅ Updated existing issue #${existingIssue.number}`);
core.setOutput('issue-number', existingIssue.number);
core.setOutput('issue-url', existingIssue.html_url);
core.setOutput('action', 'updated');
} else {
// Create new issue
const labels = [
'automated',
'bug',
'i18n',
'workflow-failure',
errorCategory.toLowerCase().replace(/[^a-z0-9]/g, '-'),
];
const issue = await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: issueTitle,
body: issueBody,
labels: labels,
});
core.info(`✅ Created new issue #${issue.data.number}`);
core.setOutput('issue-number', issue.data.number);
core.setOutput('issue-url', issue.data.html_url);
core.setOutput('action', 'created');
}
} catch (error) {
core.setFailed(`Failed to create or update issue: ${error.message}`);
throw error;
}
};
/**
* Get category-specific help text
*/
function getErrorCategoryHelp(category) {
const helpTexts = {
'API/Authentication': `
### 🔑 API/Authentication Issues
- Verify \`OPENAI_API_KEY\` is correctly set and valid
- Check if API key has sufficient quota/credits
- Ensure \`GH_TOKEN\` has necessary permissions
- Test API connectivity manually`,
'Network/Connectivity': `
### 🌐 Network/Connectivity Issues
- Check if OpenAI API is experiencing outages
- Verify proxy settings if using \`OPENAI_PROXY_URL\`
- Retry the workflow as this might be temporary
- Check GitHub Actions service status`,
'Dependencies': `
### 📦 Dependencies Issues
- Verify \`bun\` version compatibility
- Check for package.json changes that might affect dependencies
- Clear cache and retry installation
- Review recent dependency updates`,
'Git Operations': `
### 🔧 Git Operations Issues
- Check for conflicting changes in target branch
- Verify repository permissions
- Review recent commits that might cause conflicts
- Manual branch cleanup might be required`,
'Permissions': `
### 🔐 Permissions Issues
- Verify \`GH_TOKEN\` has \`repo\` and \`issues\` permissions
- Check if token can create/update PRs and branches
- Ensure token hasn't expired
- Review repository settings and branch protection rules`,
'General': `
### 🔍 General Issues
- Review detailed error logs in workflow run
- Check for recent changes in codebase
- Verify all environment variables are set
- Consider running workflow manually with debug enabled`,
};
return helpTexts[category] || helpTexts['General'];
}
/**
* Count how many times this issue has failed today
*/
async function getFailureCount(github, context, issueNumber) {
try {
const comments = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
});
const today = new Date().toISOString().split('T')[0];
return comments.data.filter(
(comment) =>
comment.body.includes('Additional Failure') && comment.created_at.startsWith(today),
).length;
} catch (error) {
return 0;
}
}
+131
View File
@@ -0,0 +1,131 @@
/**
* Generate PR comment with download links for desktop builds
* and handle comment creation/update logic
*/
module.exports = async ({ github, context, releaseUrl, version, tag }) => {
// 用于识别构建评论的标识符
const COMMENT_IDENTIFIER = '<!-- DESKTOP-BUILD-COMMENT -->';
/**
* 生成评论内容
*/
const generateCommentBody = async () => {
try {
// Get release assets to create download links
const release = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag,
});
// Organize assets by platform
const macAssets = release.data.assets.filter(
(asset) =>
(asset.name.includes('.dmg') || asset.name.includes('.zip')) &&
!asset.name.includes('.blockmap'),
);
const winAssets = release.data.assets.filter(
(asset) => asset.name.includes('.exe') && !asset.name.includes('.blockmap'),
);
const linuxAssets = release.data.assets.filter(
(asset) => asset.name.includes('.AppImage') && !asset.name.includes('.blockmap'),
);
// Generate combined download table
let assetTable = '| Platform | File | Size |\n| --- | --- | --- |\n';
// Add macOS assets
macAssets.forEach((asset) => {
const sizeInMB = (asset.size / (1024 * 1024)).toFixed(2);
assetTable += `| macOS | [${asset.name}](${asset.browser_download_url}) | ${sizeInMB} MB |\n`;
});
// Add Windows assets
winAssets.forEach((asset) => {
const sizeInMB = (asset.size / (1024 * 1024)).toFixed(2);
assetTable += `| Windows | [${asset.name}](${asset.browser_download_url}) | ${sizeInMB} MB |\n`;
});
// Add Linux assets
linuxAssets.forEach((asset) => {
const sizeInMB = (asset.size / (1024 * 1024)).toFixed(2);
assetTable += `| Linux | [${asset.name}](${asset.browser_download_url}) | ${sizeInMB} MB |\n`;
});
return `${COMMENT_IDENTIFIER}
### 🚀 Desktop App Build Completed!
**Version**: \`${version}\`
**Build Time**: \`${new Date().toISOString()}\`
📦 [View All Build Artifacts](${releaseUrl})
## Build Artifacts
${assetTable}
> [!Warning]
>
> Note: This is a temporary build for testing purposes only.`;
} catch (error) {
console.error('Error generating PR comment:', error);
// Fallback to a simple comment if error occurs
return `${COMMENT_IDENTIFIER}
### 🚀 Desktop App Build Completed!
**Version**: \`${version}\`
**Build Time**: \`${new Date().toISOString()}\`
## 📦 [View All Build Artifacts](${releaseUrl})
> Note: This is a temporary build for testing purposes only.
`;
}
};
/**
* 查找并更新或创建PR评论
*/
const updateOrCreateComment = async () => {
// 生成评论内容
const body = await generateCommentBody();
// 查找我们之前可能创建的评论
const { data: comments } = await github.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
});
// 查找包含我们标识符的评论
const buildComment = comments.find((comment) => comment.body.includes(COMMENT_IDENTIFIER));
if (buildComment) {
// 如果找到现有评论,则更新它
await github.rest.issues.updateComment({
comment_id: buildComment.id,
owner: context.repo.owner,
repo: context.repo.repo,
body: body,
});
console.log(`已更新现有评论 ID: ${buildComment.id}`);
return { updated: true, id: buildComment.id };
} else {
// 如果没有找到现有评论,则创建新评论
const result = await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: body,
});
console.log(`已创建新评论 ID: ${result.data.id}`);
return { updated: false, id: result.data.id };
}
};
// 执行评论更新或创建
return await updateOrCreateComment();
};
+62
View File
@@ -0,0 +1,62 @@
/**
* Generate PR pre-release body content
* This script generates the description text for PR pre-releases
*/
module.exports = ({ version, prNumber, branch }) => {
const prLink = `https://github.com/lobehub/lobe-chat/pull/${prNumber}`;
return `
## PR Build Information
**Version**: \`${version}\`
**Release Time**: \`${new Date().toISOString()}\`
**PR**: [#${prNumber}](${prLink})
## ⚠️ Important Notice
This is a **development build** specifically created for testing purposes. Please note:
- This build is **NOT** intended for production use
- Features may be incomplete or unstable
- Use only for validating PR changes in a desktop environment
- May contain experimental code that hasn't been fully reviewed
- No guarantees are provided regarding stability or reliability
### Intended Use
- Focused testing of specific PR changes
- Verification of desktop-specific behaviors
- UI/UX validation on desktop platforms
- Performance testing on target devices
Please report any issues found in this build directly in the PR discussion.
---
## PR 构建信息
**版本**: \`${version}\`
**发布时间**: \`${new Date().toISOString()}\`
**PR**: [#${prNumber}](${prLink})
## ⚠️ 重要提示
这是专为测试目的创建的**开发构建版本**。请注意:
- 本构建**不适用于**生产环境
- 功能可能不完整或不稳定
- 仅用于在桌面环境中验证 PR 更改
- 可能包含尚未完全审核的实验性代码
- 不对稳定性或可靠性提供任何保证
### 适用场景
- 针对性测试特定 PR 变更
- 验证桌面特定的行为表现
- 在桌面平台上进行 UI/UX 验证
- 在目标设备上进行性能测试
如发现任何问题,请直接在 PR 讨论中报告。
`;
};
+71
View File
@@ -0,0 +1,71 @@
name: Daily i18n Update
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
# Add permissions configuration
permissions:
contents: write
pull-requests: write
jobs:
update-i18n:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Configure Git
run: |
git config --global user.name "lobehubbot"
git config --global user.email "i@lobehub.com"
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ secrets.BUN_VERSION }}
- name: Install deps
run: bun i
- name: Update i18n
run: bun run i18n
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_PROXY_URL: ${{ secrets.OPENAI_PROXY_URL }}
- name: create pull request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_TOKEN }}
add-paths: |
locales/**/*.json
labels: |
i18n
automated
style
branch: style/auto-i18n
delete-branch: true
title: '🤖 style: update i18n'
commit-message: '💄 style: update i18n'
body: |
This PR was automatically generated by the i18n update workflow.
Please review the changes and merge if everything looks good.
## 🤖 Automation Info
- Workflow: `${{ github.workflow }}`
- Run ID: `${{ github.run_id }}`
- Commit: `${{ github.sha }}`
<details>
<summary>i18n Update Log</summary>
```bash
$(cat i18n_update.log)
```
</details>
+268
View File
@@ -0,0 +1,268 @@
name: Desktop PR Build
on:
pull_request:
types: [synchronize, labeled, unlabeled] # PR 更新或标签变化时触发
# 确保同一时间只运行一个相同的 workflow,取消正在进行的旧的运行
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
# Add default permissions
permissions: read-all
env:
PR_TAG_PREFIX: pr- # PR 构建版本的前缀标识
jobs:
test:
name: Code quality check
# 添加 PR label 触发条件,只有添加了 Build Desktop 标签的 PR 才会触发构建
if: contains(github.event.pull_request.labels.*.name, 'Build Desktop')
runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
steps:
- name: Checkout base
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Install deps
run: pnpm install
env:
NODE_OPTIONS: --max-old-space-size=6144
- name: Lint
run: pnpm run lint
env:
NODE_OPTIONS: --max-old-space-size=6144
version:
name: Determine version
# 与 test job 相同的触发条件
if: contains(github.event.pull_request.labels.*.name, 'Build Desktop')
runs-on: ubuntu-latest
outputs:
# 输出版本信息,供后续 job 使用
version: ${{ steps.set_version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
# 主要逻辑:确定构建版本号
- name: Set version
id: set_version
run: |
# 从 apps/desktop/package.json 读取基础版本号
base_version=$(node -p "require('./apps/desktop/package.json').version")
# PR 构建:在基础版本号上添加 PR 信息
pr_number="${{ github.event.pull_request.number }}"
ci_build_number="${{ github.run_number }}" # CI 构建编号
version="0.0.0-nightly.pr${pr_number}.${ci_build_number}"
echo "version=${version}" >> $GITHUB_OUTPUT
echo "📦 Release Version: ${version} (based on base version ${base_version})"
env:
NODE_OPTIONS: --max-old-space-size=6144
# 输出版本信息总结,方便在 GitHub Actions 界面查看
- name: Version Summary
run: |
echo "🚦 Release Version: ${{ steps.set_version.outputs.version }}"
build:
needs: [version, test]
name: Build Desktop App
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-2025, ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
# node-linker=hoisted 模式将可以确保 asar 压缩可用
- name: Install deps
run: pnpm install --node-linker=hoisted
- name: Install deps on Desktop
run: npm run install-isolated --prefix=./apps/desktop
# 设置 package.json 的版本号
- name: Set package version
run: npm run workflow:set-desktop-version ${{ needs.version.outputs.version }} nightly
# macOS 构建处理
- name: Build artifact on macOS
if: runner.os == 'macOS'
run: npm run desktop:build
env:
# 设置更新通道,PR构建为nightly,否则为stable
UPDATE_CHANNEL: 'nightly'
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
# 默认添加一个加密 SECRET
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
# macOS 签名和公证配置
CSC_LINK: ${{ secrets.APPLE_CERTIFICATE_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
NEXT_PUBLIC_DESKTOP_PROJECT_ID: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_PROJECT_ID }}
NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_BASE_URL }}
# allow provisionally
CSC_FOR_PULL_REQUEST: true
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# Windows 平台构建处理
- name: Build artifact on Windows
if: runner.os == 'Windows'
run: npm run desktop:build
env:
# 设置更新通道,PR构建为nightly,否则为stable
UPDATE_CHANNEL: 'nightly'
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
NEXT_PUBLIC_DESKTOP_PROJECT_ID: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_PROJECT_ID }}
NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_BASE_URL }}
# 将 TEMP 和 TMP 目录设置到 D 盘
TEMP: D:\temp
TMP: D:\temp
# Linux 平台构建处理
- name: Build artifact on Linux
if: runner.os == 'Linux'
run: npm run desktop:build
env:
# 设置更新通道,PR构建为nightly,否则为stable
UPDATE_CHANNEL: 'nightly'
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
NEXT_PUBLIC_DESKTOP_PROJECT_ID: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_PROJECT_ID }}
NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_BASE_URL }}
# 上传构建产物
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.os }}
path: |
apps/desktop/release/latest*
apps/desktop/release/*.dmg*
apps/desktop/release/*.zip*
apps/desktop/release/*.exe*
apps/desktop/release/*.AppImage
retention-days: 5
publish-pr:
needs: [build, version]
name: Publish PR Build
runs-on: ubuntu-latest
# Grant write permissions for creating release and commenting on PR
permissions:
contents: write
pull-requests: write
outputs:
artifact_path: ${{ steps.set_path.outputs.path }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# 下载所有平台的构建产物
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: release
pattern: release-*
merge-multiple: true
# 列出所有构建产物
- name: List artifacts
run: ls -R release
# 生成PR发布描述
- name: Generate PR Release Body
id: pr_release_body
uses: actions/github-script@v7
with:
result-encoding: string
script: |
const generateReleaseBody = require('${{ github.workspace }}/.github/scripts/pr-release-body.js');
const body = generateReleaseBody({
version: "${{ needs.version.outputs.version }}",
prNumber: "${{ github.event.pull_request.number }}",
branch: "${{ github.head_ref }}"
});
return body;
- name: Create Temporary Release for PR
id: create_release
uses: softprops/action-gh-release@v1
with:
name: PR Build v${{ needs.version.outputs.version }}
tag_name: v${{ needs.version.outputs.version }}
# tag_name: pr-build-${{ github.event.pull_request.number }}-${{ github.sha }}
body: ${{ steps.pr_release_body.outputs.result }}
draft: false
prerelease: true
files: |
release/latest*
release/*.dmg*
release/*.zip*
release/*.exe*
release/*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 在 PR 上添加评论,包含构建信息和下载链接
- name: Comment on PR
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const releaseUrl = "${{ steps.create_release.outputs.url }}";
const prCommentGenerator = require('${{ github.workspace }}/.github/scripts/pr-comment.js');
const result = await prCommentGenerator({
github,
context,
releaseUrl,
version: "${{ needs.version.outputs.version }}",
tag: "v${{ needs.version.outputs.version }}"
});
console.log(`评论状态: ${result.updated ? '已更新' : '已创建'}, ID: ${result.id}`);
+205
View File
@@ -0,0 +1,205 @@
name: Release Desktop Beta
on:
release:
types: [published] # 发布 release 时触发构建
# 确保同一时间只运行一个相同的 workflow,取消正在进行的旧的运行
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
# Add default permissions
permissions: read-all
jobs:
test:
name: Code quality check
# 添加 PR label 触发条件,只有添加了 Build Desktop 标签的 PR 才会触发构建
runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
steps:
- name: Checkout base
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Install deps
run: pnpm install
- name: Lint
run: pnpm run lint
version:
name: Determine version
runs-on: ubuntu-latest
outputs:
# 输出版本信息,供后续 job 使用
version: ${{ steps.set_version.outputs.version }}
is_pr_build: ${{ steps.set_version.outputs.is_pr_build }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
# 主要逻辑:确定构建版本号
- name: Set version
id: set_version
run: |
# 从 apps/desktop/package.json 读取基础版本号
base_version=$(node -p "require('./apps/desktop/package.json').version")
# Release 事件直接使用 release tag 作为版本号,去掉可能的 v 前缀
version="${{ github.event.release.tag_name }}"
version="${version#v}"
echo "version=${version}" >> $GITHUB_OUTPUT
echo "📦 Release Version: ${version}"
# 输出版本信息总结,方便在 GitHub Actions 界面查看
- name: Version Summary
run: |
echo "🚦 Release Version: ${{ steps.set_version.outputs.version }}"
build:
needs: [version, test]
name: Build Desktop App
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-2025, ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
# node-linker=hoisted 模式将可以确保 asar 压缩可用
- name: Install deps
run: pnpm install --node-linker=hoisted
- name: Install deps on Desktop
run: npm run install-isolated --prefix=./apps/desktop
# 设置 package.json 的版本号
- name: Set package version
run: npm run workflow:set-desktop-version ${{ needs.version.outputs.version }} beta
# macOS 构建处理
- name: Build artifact on macOS
if: runner.os == 'macOS'
run: npm run desktop:build
env:
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
# 默认添加一个加密 SECRET
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
# macOS 签名和公证配置
CSC_LINK: ${{ secrets.APPLE_CERTIFICATE_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# allow provisionally
CSC_FOR_PULL_REQUEST: true
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
NEXT_PUBLIC_DESKTOP_PROJECT_ID: ${{ secrets.UMAMI_BETA_DESKTOP_PROJECT_ID }}
NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_BETA_DESKTOP_BASE_URL }}
# Windows 平台构建处理
- name: Build artifact on Windows
if: runner.os == 'Windows'
run: npm run desktop:build
env:
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
NEXT_PUBLIC_DESKTOP_PROJECT_ID: ${{ secrets.UMAMI_BETA_DESKTOP_PROJECT_ID }}
NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_BETA_DESKTOP_BASE_URL }}
# 将 TEMP 和 TMP 目录设置到 D 盘
TEMP: D:\temp
TMP: D:\temp
# Linux 平台构建处理
- name: Build artifact on Linux
if: runner.os == 'Linux'
run: npm run desktop:build
env:
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
NEXT_PUBLIC_DESKTOP_PROJECT_ID: ${{ secrets.UMAMI_BETA_DESKTOP_PROJECT_ID }}
NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_BETA_DESKTOP_BASE_URL }}
# 上传构建产物,移除了 zip 相关部分
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.os }}
path: |
apps/desktop/release/latest*
apps/desktop/release/*.dmg*
apps/desktop/release/*.zip*
apps/desktop/release/*.exe*
apps/desktop/release/*.AppImage
retention-days: 5
# 正式版发布 job
publish-release:
needs: [build, version]
name: Publish Beta Release
runs-on: ubuntu-latest
# Grant write permission to contents for uploading release assets
permissions:
contents: write
outputs:
artifact_path: ${{ steps.set_path.outputs.path }}
steps:
# 下载所有平台的构建产物
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: release
pattern: release-*
merge-multiple: true
# 列出所有构建产物
- name: List artifacts
run: ls -R release
# 将构建产物上传到现有 release
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.release.tag_name }}
files: |
release/latest*
release/*.dmg*
release/*.zip*
release/*.exe*
release/*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+5
View File
@@ -22,6 +22,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
@@ -0,0 +1,25 @@
name: Database Schema Visualization CI
on:
push:
branches:
- main
paths:
- 'docs/development/database-schema.dbml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dbdocs
run: sudo npm install -g dbdocs
- name: Check dbdocs
run: dbdocs
- name: sync database schema to dbdocs
env:
DBDOCS_TOKEN: ${{ secrets.DBDOCS_TOKEN }}
run: npm run db:visualize
+6 -1
View File
@@ -8,7 +8,7 @@ jobs:
services:
postgres:
image: pgvector/pgvector:pg16
image: paradedb/paradedb:latest
env:
POSTGRES_PASSWORD: postgres
options: >-
@@ -21,6 +21,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
+2 -2
View File
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
paths:
- 'contributing/**'
- 'docs/wiki/**'
branches:
- main
@@ -15,5 +15,5 @@ jobs:
steps:
- uses: OrlovM/Wiki-Action@v1
with:
path: 'contributing'
path: 'docs/wiki'
token: ${{ secrets.GH_TOKEN }}
+3 -1
View File
@@ -11,6 +11,7 @@
venv
temp
tmp
.windsurfrules
# dependencies
node_modules
@@ -68,4 +69,5 @@ public/swe-worker*
*.patch
*.pdf
vertex-ai-key.json
.pnpm-store
.pnpm-store
./packages/lobe-ui
+2 -1
View File
@@ -24,7 +24,8 @@ module.exports = defineConfig({
'fa-IR',
],
temperature: 0,
modelName: 'gpt-4o-mini',
saveImmediately: true,
modelName: 'gpt-4.1-mini',
experimental: {
jsonMode: true,
},
+1
View File
@@ -1,6 +1,7 @@
lockfile=false
resolution-mode=highest
ignore-workspace-root-check=true
enable-pre-post-scripts=true
public-hoist-pattern[]=*@umijs/lint*
+6585
View File
File diff suppressed because it is too large Load Diff
+19 -4
View File
@@ -44,9 +44,10 @@ ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_ANALYTICS_UMAMI
ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
ARG FEATURE_FLAGS
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}"
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}" \
FEATURE_FLAGS="${FEATURE_FLAGS}"
# Sentry
ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \
SENTRY_ORG="" \
@@ -157,6 +158,8 @@ ENV \
BAICHUAN_API_KEY="" BAICHUAN_MODEL_LIST="" \
# Cloudflare
CLOUDFLARE_API_KEY="" CLOUDFLARE_BASE_URL_OR_ACCOUNT_ID="" CLOUDFLARE_MODEL_LIST="" \
# Cohere
COHERE_API_KEY="" COHERE_MODEL_LIST="" COHERE_PROXY_URL="" \
# DeepSeek
DEEPSEEK_API_KEY="" DEEPSEEK_MODEL_LIST="" \
# Fireworks AI
@@ -183,6 +186,8 @@ ENV \
MINIMAX_API_KEY="" MINIMAX_MODEL_LIST="" \
# Mistral
MISTRAL_API_KEY="" MISTRAL_MODEL_LIST="" \
# ModelScope
MODELSCOPE_API_KEY="" MODELSCOPE_MODEL_LIST="" MODELSCOPE_PROXY_URL="" \
# Moonshot
MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
# Novita
@@ -199,16 +204,20 @@ ENV \
PERPLEXITY_API_KEY="" PERPLEXITY_MODEL_LIST="" PERPLEXITY_PROXY_URL="" \
# PPIO
PPIO_API_KEY="" PPIO_MODEL_LIST="" \
# Qiniu
QINIU_API_KEY="" QINIU_MODEL_LIST="" QINIU_PROXY_URL="" \
# Qwen
QWEN_API_KEY="" QWEN_MODEL_LIST="" QWEN_PROXY_URL="" \
# SambaNova
SAMBANOVA_API_KEY="" SAMBANOVA_MODEL_LIST="" \
# Search1API
SEARCH1API_API_KEY="" SEARCH1API_MODEL_LIST="" \
# SenseNova
SENSENOVA_API_KEY="" SENSENOVA_MODEL_LIST="" \
# SiliconCloud
SILICONCLOUD_API_KEY="" SILICONCLOUD_MODEL_LIST="" SILICONCLOUD_PROXY_URL="" \
# Spark
SPARK_API_KEY="" SPARK_MODEL_LIST="" \
SPARK_API_KEY="" SPARK_MODEL_LIST="" SPARK_PROXY_URL="" SPARK_SEARCH_MODE="" \
# Stepfun
STEPFUN_API_KEY="" STEPFUN_MODEL_LIST="" \
# Taichu
@@ -217,18 +226,24 @@ ENV \
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
# Upstage
UPSTAGE_API_KEY="" UPSTAGE_MODEL_LIST="" \
# v0 (Vercel)
V0_API_KEY="" V0_MODEL_LIST="" \
# vLLM
VLLM_API_KEY="" VLLM_MODEL_LIST="" VLLM_PROXY_URL="" \
# Wenxin
WENXIN_API_KEY="" WENXIN_MODEL_LIST="" \
# xAI
XAI_API_KEY="" XAI_MODEL_LIST="" XAI_PROXY_URL="" \
# Xinference
XINFERENCE_API_KEY="" XINFERENCE_MODEL_LIST="" XINFERENCE_PROXY_URL="" \
# 01.AI
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
# Zhipu
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
# Tencent Cloud
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST=""
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST="" \
# Infini-AI
INFINIAI_API_KEY="" INFINIAI_MODEL_LIST=""
USER nextjs
+19 -3
View File
@@ -46,8 +46,10 @@ ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_ANALYTICS_UMAMI
ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
ARG FEATURE_FLAGS
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}"
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}" \
FEATURE_FLAGS="${FEATURE_FLAGS}"
ENV NEXT_PUBLIC_SERVICE_MODE="${NEXT_PUBLIC_SERVICE_MODE:-server}" \
NEXT_PUBLIC_ENABLE_NEXT_AUTH="${NEXT_PUBLIC_ENABLE_NEXT_AUTH:-1}" \
@@ -200,6 +202,8 @@ ENV \
BAICHUAN_API_KEY="" BAICHUAN_MODEL_LIST="" \
# Cloudflare
CLOUDFLARE_API_KEY="" CLOUDFLARE_BASE_URL_OR_ACCOUNT_ID="" CLOUDFLARE_MODEL_LIST="" \
# Cohere
COHERE_API_KEY="" COHERE_MODEL_LIST="" COHERE_PROXY_URL="" \
# DeepSeek
DEEPSEEK_API_KEY="" DEEPSEEK_MODEL_LIST="" \
# Fireworks AI
@@ -226,6 +230,8 @@ ENV \
MINIMAX_API_KEY="" MINIMAX_MODEL_LIST="" \
# Mistral
MISTRAL_API_KEY="" MISTRAL_MODEL_LIST="" \
# ModelScope
MODELSCOPE_API_KEY="" MODELSCOPE_MODEL_LIST="" MODELSCOPE_PROXY_URL="" \
# Moonshot
MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
# Novita
@@ -242,16 +248,20 @@ ENV \
PERPLEXITY_API_KEY="" PERPLEXITY_MODEL_LIST="" PERPLEXITY_PROXY_URL="" \
# PPIO
PPIO_API_KEY="" PPIO_MODEL_LIST="" \
# Qiniu
QINIU_API_KEY="" QINIU_MODEL_LIST="" QINIU_PROXY_URL="" \
# Qwen
QWEN_API_KEY="" QWEN_MODEL_LIST="" QWEN_PROXY_URL="" \
# SambaNova
SAMBANOVA_API_KEY="" SAMBANOVA_MODEL_LIST="" \
# Search1API
SEARCH1API_API_KEY="" SEARCH1API_MODEL_LIST="" \
# SenseNova
SENSENOVA_API_KEY="" SENSENOVA_MODEL_LIST="" \
# SiliconCloud
SILICONCLOUD_API_KEY="" SILICONCLOUD_MODEL_LIST="" SILICONCLOUD_PROXY_URL="" \
# Spark
SPARK_API_KEY="" SPARK_MODEL_LIST="" \
SPARK_API_KEY="" SPARK_MODEL_LIST="" SPARK_PROXY_URL="" SPARK_SEARCH_MODE="" \
# Stepfun
STEPFUN_API_KEY="" STEPFUN_MODEL_LIST="" \
# Taichu
@@ -260,18 +270,24 @@ ENV \
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
# Upstage
UPSTAGE_API_KEY="" UPSTAGE_MODEL_LIST="" \
# v0 (Vercel)
V0_API_KEY="" V0_MODEL_LIST="" \
# vLLM
VLLM_API_KEY="" VLLM_MODEL_LIST="" VLLM_PROXY_URL="" \
# Wenxin
WENXIN_API_KEY="" WENXIN_MODEL_LIST="" \
# xAI
XAI_API_KEY="" XAI_MODEL_LIST="" XAI_PROXY_URL="" \
# Xinference
XINFERENCE_API_KEY="" XINFERENCE_MODEL_LIST="" XINFERENCE_PROXY_URL="" \
# 01.AI
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
# Zhipu
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
# Tencent Cloud
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST=""
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST="" \
# Infini-AI
INFINIAI_API_KEY="" INFINIAI_MODEL_LIST=""
USER nextjs
+17 -3
View File
@@ -44,9 +44,11 @@ ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_ANALYTICS_UMAMI
ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
ARG FEATURE_FLAGS
ENV NEXT_PUBLIC_CLIENT_DB="pglite"
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}"
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}" \
FEATURE_FLAGS="${FEATURE_FLAGS}"
# Sentry
ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \
@@ -158,6 +160,8 @@ ENV \
BAICHUAN_API_KEY="" BAICHUAN_MODEL_LIST="" \
# Cloudflare
CLOUDFLARE_API_KEY="" CLOUDFLARE_BASE_URL_OR_ACCOUNT_ID="" CLOUDFLARE_MODEL_LIST="" \
# Cohere
COHERE_API_KEY="" COHERE_MODEL_LIST="" COHERE_PROXY_URL="" \
# DeepSeek
DEEPSEEK_API_KEY="" DEEPSEEK_MODEL_LIST="" \
# Fireworks AI
@@ -184,6 +188,8 @@ ENV \
MINIMAX_API_KEY="" MINIMAX_MODEL_LIST="" \
# Mistral
MISTRAL_API_KEY="" MISTRAL_MODEL_LIST="" \
# ModelScope
MODELSCOPE_API_KEY="" MODELSCOPE_MODEL_LIST="" MODELSCOPE_PROXY_URL="" \
# Moonshot
MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
# Novita
@@ -198,6 +204,8 @@ ENV \
OPENROUTER_API_KEY="" OPENROUTER_MODEL_LIST="" \
# Perplexity
PERPLEXITY_API_KEY="" PERPLEXITY_MODEL_LIST="" PERPLEXITY_PROXY_URL="" \
# Qiniu
QINIU_API_KEY="" QINIU_MODEL_LIST="" QINIU_PROXY_URL="" \
# Qwen
QWEN_API_KEY="" QWEN_MODEL_LIST="" QWEN_PROXY_URL="" \
# SambaNova
@@ -207,7 +215,7 @@ ENV \
# SiliconCloud
SILICONCLOUD_API_KEY="" SILICONCLOUD_MODEL_LIST="" SILICONCLOUD_PROXY_URL="" \
# Spark
SPARK_API_KEY="" SPARK_MODEL_LIST="" \
SPARK_API_KEY="" SPARK_MODEL_LIST="" SPARK_PROXY_URL="" SPARK_SEARCH_MODE="" \
# Stepfun
STEPFUN_API_KEY="" STEPFUN_MODEL_LIST="" \
# Taichu
@@ -216,18 +224,24 @@ ENV \
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
# Upstage
UPSTAGE_API_KEY="" UPSTAGE_MODEL_LIST="" \
# v0 (Vercel)
V0_API_KEY="" V0_MODEL_LIST="" \
# vLLM
VLLM_API_KEY="" VLLM_MODEL_LIST="" VLLM_PROXY_URL="" \
# Wenxin
WENXIN_API_KEY="" WENXIN_MODEL_LIST="" \
# xAI
XAI_API_KEY="" XAI_MODEL_LIST="" XAI_PROXY_URL="" \
# Xinference
XINFERENCE_API_KEY="" XINFERENCE_MODEL_LIST="" XINFERENCE_PROXY_URL="" \
# 01.AI
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
# Zhipu
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
# Tencent Cloud
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST=""
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST="" \
# Infini-AI
INFINIAI_API_KEY="" INFINIAI_MODEL_LIST=""
USER nextjs
+114 -52
View File
@@ -4,8 +4,8 @@
# Lobe Chat
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/>
An open-source, modern design ChatGPT/LLMs UI/framework.<br/>
Supports speech synthesis, multi-modal, and extensible ([function call][docs-function-call]) plugin system.<br/>
One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/Ollama chat application.
**English** · [简体中文](./README.zh-CN.md) · [Official Site][official-site] · [Changelog][changelog] · [Documents][docs] · [Blog][blog] · [Feedback][github-issues-link]
@@ -39,7 +39,7 @@ One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/
<sup>Pioneering the new age of thinking and creating. Built for you, the Super Individual.</sup>
[![][github-trending-shield]][github-trending-url]
[![][github-trending-shield]][github-trending-url] <br /> <br /> <a href="https://vercel.com/oss"> <img alt="Vercel OSS Program" src="https://vercel.com/oss/program-badge.svg" /> </a>
![][image-overview]
@@ -52,22 +52,26 @@ 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` Chain of Thought](#1-chain-of-thought)
- [`2` Branching Conversations](#2-branching-conversations)
- [`3` Artifacts Support](#3-artifacts-support)
- [`4` File Upload /Knowledge Base](#4-file-upload-knowledge-base)
- [`5` Multi-Model Service Provider Support](#5-multi-model-service-provider-support)
- [`6` Local Large Language Model (LLM) Support](#6-local-large-language-model-llm-support)
- [`7` Model Visual Recognition](#7-model-visual-recognition)
- [`8` TTS & STT Voice Conversation](#8-tts--stt-voice-conversation)
- [`9` Text to Image Generation](#9-text-to-image-generation)
- [`10` Plugin System (Function Calling)](#10-plugin-system-function-calling)
- [`11` Agent Market (GPTs)](#11-agent-market-gpts)
- [`12` Support Local / Remote Database](#12-support-local--remote-database)
- [`13` Support Multi-User Management](#13-support-multi-user-management)
- [`14` Progressive Web App (PWA)](#14-progressive-web-app-pwa)
- [`15` Mobile Device Adaptation](#15-mobile-device-adaptation)
- [`16` Custom Themes](#16-custom-themes)
- [✨ MCP Plugin One-Click Installation](#-mcp-plugin-one-click-installation)
- [🏪 MCP Marketplace](#-mcp-marketplace)
- [🖥️ Desktop App](#-desktop-app)
- [🌐 Smart Internet Search](#-smart-internet-search)
- [Chain of Thought](#chain-of-thought)
- [Branching Conversations](#branching-conversations)
- [Artifacts Support](#artifacts-support)
- [File Upload /Knowledge Base](#file-upload-knowledge-base)
- [Multi-Model Service Provider Support](#multi-model-service-provider-support)
- [Local Large Language Model (LLM) Support](#local-large-language-model-llm-support)
- [Model Visual Recognition](#model-visual-recognition)
- [TTS & STT Voice Conversation](#tts--stt-voice-conversation)
- [Text to Image Generation](#text-to-image-generation)
- [Plugin System (Function Calling)](#plugin-system-function-calling)
- [Agent Market (GPTs)](#agent-market-gpts)
- [Support Local / Remote Database](#support-local--remote-database)
- [Support Multi-User Management](#support-multi-user-management)
- [Progressive Web App (PWA)](#progressive-web-app-pwa)
- [Mobile Device Adaptation](#mobile-device-adaptation)
- [Custom Themes](#custom-themes)
- [`*` What's more](#-whats-more)
- [⚡️ Performance](#-performance)
- [🛳 Self Hosting](#-self-hosting)
@@ -114,9 +118,59 @@ Whether for users or professional developers, LobeHub will be your AI Agent play
## ✨ Features
Transform your AI experience with LobeChat's powerful features designed for seamless connectivity, enhanced productivity, and unlimited creativity.
![][image-feat-mcp]
### ✨ MCP Plugin One-Click Installation
**Seamlessly Connect Your AI to the World**
Unlock the full potential of your AI by enabling smooth, secure, and dynamic interactions with external tools, data sources, and services. LobeChat's MCP (Model Context Protocol) plugin system breaks down the barriers between your AI and the digital ecosystem, allowing for unprecedented connectivity and functionality.
Transform your conversations into powerful workflows by connecting to databases, APIs, file systems, and more. Experience the freedom of AI that truly understands and interacts with your world.
[![][back-to-top]](#readme-top)
![][image-feat-mcp-market]
### 🏪 MCP Marketplace
**Discover, Connect, Extend**
Browse a growing library of MCP plugins to expand your AI's capabilities and streamline your workflows effortlessly. Visit [lobehub.com/mcp](https://lobehub.com/mcp) to explore the MCP Marketplace, which offers a curated collection of integrations that enhance your AI's ability to work with various tools and services.
From productivity tools to development environments, discover new ways to extend your AI's reach and effectiveness. Connect with the community and find the perfect plugins for your specific needs.
[![][back-to-top]](#readme-top)
![][image-feat-desktop]
### 🖥️ Desktop App
**Peak Performance, Zero Distractions**
Get the full LobeChat experience without browser limitations—lightweight, focused, and always ready to go. Our desktop application provides a dedicated environment for your AI interactions, ensuring optimal performance and minimal distractions.
Experience faster response times, better resource management, and a more stable connection to your AI assistant. The desktop app is designed for users who demand the best performance from their AI tools.
[![][back-to-top]](#readme-top)
![][image-feat-web-search]
### 🌐 Smart Internet Search
**Online Knowledge On Demand**
With real-time internet access, your AI keeps up with the world—news, data, trends, and more. Stay informed and get the most current information available, enabling your AI to provide accurate and up-to-date responses.
Access live information, verify facts, and explore current events without leaving your conversation. Your AI becomes a gateway to the world's knowledge, always current and comprehensive.
[![][back-to-top]](#readme-top)
[![][image-feat-cot]][docs-feat-cot]
### `1` [Chain of Thought][docs-feat-cot]
### [Chain of Thought][docs-feat-cot]
Experience AI reasoning like never before. Watch as complex problems unfold step by step through our innovative Chain of Thought (CoT) visualization. This breakthrough feature provides unprecedented transparency into AI's decision-making process, allowing you to observe how conclusions are reached in real-time.
@@ -126,7 +180,7 @@ By breaking down complex reasoning into clear, logical steps, you can better und
[![][image-feat-branch]][docs-feat-branch]
### `2` [Branching Conversations][docs-feat-branch]
### [Branching Conversations][docs-feat-branch]
Introducing a more natural and flexible way to chat with AI. With Branch Conversations, your discussions can flow in multiple directions, just like human conversations do. Create new conversation branches from any message, giving you the freedom to explore different paths while preserving the original context.
@@ -141,7 +195,7 @@ This groundbreaking feature transforms linear conversations into dynamic, tree-l
[![][image-feat-artifacts]][docs-feat-artifacts]
### `3` [Artifacts Support][docs-feat-artifacts]
### [Artifacts Support][docs-feat-artifacts]
Experience the power of Claude Artifacts, now integrated into LobeChat. This revolutionary feature expands the boundaries of AI-human interaction, enabling real-time creation and visualization of diverse content formats.
@@ -155,7 +209,7 @@ Create and visualize with unprecedented flexibility:
[![][image-feat-knowledgebase]][docs-feat-knowledgebase]
### `4` [File Upload /Knowledge Base][docs-feat-knowledgebase]
### [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.
@@ -173,7 +227,7 @@ LobeChat supports file upload and knowledge base functionality. You can upload v
[![][image-feat-privoder]][docs-feat-provider]
### `5` [Multi-Model Service Provider Support][docs-feat-provider]
### [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.
@@ -196,7 +250,7 @@ We have implemented support for the following model service providers:
- **[Cloudflare Workers AI](https://lobechat.com/discover/provider/cloudflare)**: Run serverless GPU-powered machine learning models on Cloudflare's global network.
- **[GitHub](https://lobechat.com/discover/provider/github)**: With GitHub Models, developers can become AI engineers and leverage the industry's leading AI models.
<details><summary><kbd>See more providers (+27)</kbd></summary>
<details><summary><kbd>See more providers (+31)</kbd></summary>
- **[Novita](https://lobechat.com/discover/provider/novita)**: Novita AI is a platform providing a variety of large language models and AI image generation API services, flexible, reliable, and cost-effective. It supports the latest open-source models like Llama3 and Mistral, offering a comprehensive, user-friendly, and auto-scaling API solution for generative AI application development, suitable for the rapid growth of AI startups.
- **[PPIO](https://lobechat.com/discover/provider/ppio)**: PPIO supports stable and cost-efficient open-source LLM APIs, such as DeepSeek, Llama, Qwen etc.
@@ -205,10 +259,11 @@ We have implemented support for the following model service providers:
- **[Groq](https://lobechat.com/discover/provider/groq)**: Groq's LPU inference engine has excelled in the latest independent large language model (LLM) benchmarks, redefining the standards for AI solutions with its remarkable speed and efficiency. Groq represents instant inference speed, demonstrating strong performance in cloud-based deployments.
- **[Perplexity](https://lobechat.com/discover/provider/perplexity)**: Perplexity is a leading provider of conversational generation models, offering various advanced Llama 3.1 models that support both online and offline applications, particularly suited for complex natural language processing tasks.
- **[Mistral](https://lobechat.com/discover/provider/mistral)**: Mistral provides advanced general, specialized, and research models widely used in complex reasoning, multilingual tasks, and code generation. Through functional calling interfaces, users can integrate custom functionalities for specific applications.
- **[ModelScope](https://lobechat.com/discover/provider/modelscope)**: ModelScope is a model-as-a-service platform launched by Alibaba Cloud, offering a wide range of AI models and inference services.
- **[Ai21Labs](https://lobechat.com/discover/provider/ai21)**: AI21 Labs builds foundational models and AI systems for enterprises, accelerating the application of generative AI in production.
- **[Upstage](https://lobechat.com/discover/provider/upstage)**: Upstage focuses on developing AI models for various business needs, including Solar LLM and document AI, aiming to achieve artificial general intelligence (AGI) for work. It allows for the creation of simple conversational agents through Chat API and supports functional calling, translation, embedding, and domain-specific applications.
- **[xAI](https://lobechat.com/discover/provider/xai)**: xAI is a company dedicated to building artificial intelligence to accelerate human scientific discovery. Our mission is to advance our collective understanding of the universe.
- **[Qwen](https://lobechat.com/discover/provider/qwen)**: Tongyi Qianwen is a large-scale language model independently developed by Alibaba Cloud, featuring strong natural language understanding and generation capabilities. It can answer various questions, create written content, express opinions, and write code, playing a role in multiple fields.
- **[xAI (Grok)](https://lobechat.com/discover/provider/xai)**: xAI is a company dedicated to building artificial intelligence to accelerate human scientific discovery. Our mission is to advance our collective understanding of the universe.
- **[Aliyun Bailian](https://lobechat.com/discover/provider/qwen)**: Tongyi Qianwen is a large-scale language model independently developed by Alibaba Cloud, featuring strong natural language understanding and generation capabilities. It can answer various questions, create written content, express opinions, and write code, playing a role in multiple fields.
- **[Wenxin](https://lobechat.com/discover/provider/wenxin)**: An enterprise-level one-stop platform for large model and AI-native application development and services, providing the most comprehensive and user-friendly toolchain for the entire process of generative artificial intelligence model development and application development.
- **[Hunyuan](https://lobechat.com/discover/provider/hunyuan)**: A large language model developed by Tencent, equipped with powerful Chinese creative capabilities, logical reasoning abilities in complex contexts, and reliable task execution skills.
- **[ZhiPu](https://lobechat.com/discover/provider/zhipu)**: Zhipu AI offers an open platform for multimodal and language models, supporting a wide range of AI application scenarios, including text processing, image understanding, and programming assistance.
@@ -225,10 +280,13 @@ We have implemented support for the following model service providers:
- **[Gitee AI](https://lobechat.com/discover/provider/giteeai)**: Gitee AI's Serverless API provides AI developers with an out of the box large model inference API service.
- **[Taichu](https://lobechat.com/discover/provider/taichu)**: The Institute of Automation, Chinese Academy of Sciences, and Wuhan Artificial Intelligence Research Institute have launched a new generation of multimodal large models, supporting comprehensive question-answering tasks such as multi-turn Q\&A, text creation, image generation, 3D understanding, and signal analysis, with stronger cognitive, understanding, and creative abilities, providing a new interactive experience.
- **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI is an AI model and service platform launched by 360 Company, offering various advanced natural language processing models, including 360GPT2 Pro, 360GPT Pro, 360GPT Turbo, and 360GPT Turbo Responsibility 8K. These models combine large-scale parameters and multimodal capabilities, widely applied in text generation, semantic understanding, dialogue systems, and code generation. With flexible pricing strategies, 360 AI meets diverse user needs, supports developer integration, and promotes the innovation and development of intelligent applications.
- **[Search1API](https://lobechat.com/discover/provider/search1api)**: Search1API provides access to the DeepSeek series of models that can connect to the internet as needed, including standard and fast versions, supporting a variety of model sizes.
- **[InfiniAI](https://lobechat.com/discover/provider/infiniai)**: Provides high-performance, easy-to-use, and secure large model services for application developers, covering the entire process from large model development to service deployment.
- **[Qiniu](https://lobechat.com/discover/provider/qiniu)**: Qiniu, as a long-established cloud service provider, delivers cost-effective and reliable AI inference services for both real-time and batch processing, with a simple and user-friendly experience.
</details>
> 📊 Total providers: [<kbd>**37**</kbd>](https://lobechat.com/discover/providers)
> 📊 Total providers: [<kbd>**41**</kbd>](https://lobechat.com/discover/providers)
<!-- PROVIDER LIST -->
@@ -242,7 +300,7 @@ At the same time, we are also planning to support more model service providers.
[![][image-feat-local]][docs-feat-local]
### `6` [Local Large Language Model (LLM) Support][docs-feat-local]
### [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.
@@ -258,7 +316,7 @@ To meet the specific needs of users, LobeChat also supports the use of local mod
[![][image-feat-vision]][docs-feat-vision]
### `7` [Model Visual Recognition][docs-feat-vision]
### [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,
@@ -276,7 +334,7 @@ Whether it's sharing images in daily use or interpreting images within specific
[![][image-feat-tts]][docs-feat-tts]
### `8` [TTS & STT Voice Conversation][docs-feat-tts]
### [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.
@@ -293,7 +351,7 @@ Users can choose the voice that suits their personal preferences or specific sce
[![][image-feat-t2i]][docs-feat-t2i]
### `9` [Text to Image Generation][docs-feat-t2i]
### [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.
@@ -307,7 +365,7 @@ This enables a more private and immersive creative process, allowing for the sea
[![][image-feat-plugin]][docs-feat-plugin]
### `10` [Plugin System (Function Calling)][docs-feat-plugin]
### [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.
@@ -325,12 +383,12 @@ In addition, these plugins are not limited to news aggregation, but can also ext
| Recent Submits | Description |
| ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-05-27**</sup> | Analyze stocks and get comprehensive real-time investment data and analytics.<br/>`stock` |
| [Web](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | Smart web search that reads and analyzes pages to deliver comprehensive answers from Google results.<br/>`web` `search` |
| [MintbaseSearch](https://lobechat.com/discover/plugin/mintbasesearch)<br/><sup>By **mintbase** on **2024-12-31**</sup> | Find any NFT data on the NEAR Protocol.<br/>`crypto` `nft` |
| [Bing_websearch](https://lobechat.com/discover/plugin/Bingsearch-identifier)<br/><sup>By **FineHow** on **2024-12-22**</sup> | Search for information from the internet base BingApi<br/>`bingsearch` |
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2024-12-22**</sup> | Analyze stocks and get comprehensive real-time investment data and analytics.<br/>`stock` |
| [Google CSE](https://lobechat.com/discover/plugin/google-cse)<br/><sup>By **vsnthdev** on **2024-12-02**</sup> | Searches Google through their official CSE API.<br/>`web` `search` |
> 📊 Total plugins: [<kbd>**47**</kbd>](https://lobechat.com/discover/plugins)
> 📊 Total plugins: [<kbd>**42**</kbd>](https://lobechat.com/discover/plugins)
<!-- PLUGIN LIST -->
@@ -342,7 +400,7 @@ In addition, these plugins are not limited to news aggregation, but can also ext
[![][image-feat-agent]][docs-feat-agent]
### `11` [Agent Market (GPTs)][docs-feat-agent]
### [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.
@@ -362,14 +420,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
<!-- AGENT LIST -->
| Recent Submits | Description |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Cron Expression Assistant](https://lobechat.com/discover/assistant/crontab-generate)<br/><sup>By **[edgesider](https://github.com/edgesider)** on **2025-02-17**</sup> | Crontab Expression Generator<br/>`crontab` `time-expression` `trigger-time` `generator` `technical-assistance` |
| [Xiao Zhi French Translation Assistant](https://lobechat.com/discover/assistant/xiao-zhi-french-translation-asst-v-1)<br/><sup>By **[WeR-Best](https://github.com/WeR-Best)** on **2025-02-10**</sup> | A friendly, professional, and empathetic AI assistant for French translation<br/>`ai-assistant` `french-translation` `cross-cultural-communication` `creativity` |
| [Language Charm Learning Mentor](https://lobechat.com/discover/assistant/bad-language-helper)<br/><sup>By **[Guducat](https://github.com/Guducat)** on **2025-02-06**</sup> | Specializes in teaching the charm of language and witty responses<br/>`language-learning` `dialogue-examples` |
| [Astrology Researcher](https://lobechat.com/discover/assistant/fate-researcher)<br/><sup>By **[Jack980506](https://github.com/Jack980506)** on **2025-02-06**</sup> | Expert in BaZi astrology<br/>`astrology` `ba-zi` `traditional-culture` |
| Recent Submits | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Turtle Soup Host](https://lobechat.com/discover/assistant/lateral-thinking-puzzle)<br/><sup>By **[CSY2022](https://github.com/CSY2022)** on **2025-06-19**</sup> | A turtle soup host needs to provide the scenario, the complete story (truth of the event), and the key point (the condition for guessing correctly).<br/>`turtle-soup` `reasoning` `interaction` `puzzle` `role-playing` |
| [Gourmet Reviewer🍟](https://lobechat.com/discover/assistant/food-reviewer)<br/><sup>By **[renhai-lab](https://github.com/renhai-lab)** on **2025-06-17**</sup> | Food critique expert<br/>`gourmet` `review` `writing` |
| [Academic Writing Assistant](https://lobechat.com/discover/assistant/academic-writing-assistant)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2025-06-17**</sup> | Expert in academic research paper writing and formal documentation<br/>`academic-writing` `research` `formal-style` |
| [Minecraft Senior Developer](https://lobechat.com/discover/assistant/java-development)<br/><sup>By **[iamyuuk](https://github.com/iamyuuk)** on **2025-06-17**</sup> | Expert in advanced Java development and Minecraft mod and server plugin development<br/>`development` `programming` `minecraft` `java` |
> 📊 Total agents: [<kbd>**487**</kbd> ](https://lobechat.com/discover/assistants)
> 📊 Total agents: [<kbd>**505**</kbd> ](https://lobechat.com/discover/assistants)
<!-- AGENT LIST -->
@@ -381,7 +439,7 @@ Our marketplace is not just a showcase platform but also a collaborative space.
[![][image-feat-database]][docs-feat-database]
### `12` [Support Local / Remote Database][docs-feat-database]
### [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:
@@ -398,7 +456,7 @@ Regardless of which database you choose, LobeChat can provide you with an excell
[![][image-feat-auth]][docs-feat-auth]
### `13` [Support Multi-User Management][docs-feat-auth]
### [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:
@@ -416,7 +474,7 @@ Regardless of which user management solution you choose, LobeChat can provide yo
[![][image-feat-pwa]][docs-feat-pwa]
### `14` [Progressive Web App (PWA)][docs-feat-pwa]
### [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,
@@ -443,7 +501,7 @@ providing smooth animations, responsive layouts, and adapting to different devic
[![][image-feat-mobile]][docs-feat-mobile]
### `15` [Mobile Device Adaptation][docs-feat-mobile]
### [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.
@@ -455,7 +513,7 @@ We have carried out a series of optimization designs for mobile devices to enhan
[![][image-feat-theme]][docs-feat-theme]
### `16` [Custom Themes][docs-feat-theme]
### [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.
@@ -623,7 +681,7 @@ This project provides some additional configuration items set with environment v
## 🧩 Plugins
Plugins provide a means to extend the [Function Calling][docs-functionc-call] capabilities of LobeChat. They can be used to introduce new function calls and even new ways to render message results. If you are interested in plugin development, please refer to our [📘 Plugin Development Guide][docs-plugin-dev] in the Wiki.
Plugins provide a means to extend the [Function Calling][docs-function-call] capabilities of LobeChat. They can be used to introduce new function calls and even new ways to render message results. If you are interested in plugin development, please refer to our [📘 Plugin Development Guide][docs-plugin-dev] in the Wiki.
- [lobe-chat-plugins][lobe-chat-plugins]: This is the plugin index for LobeChat. It accesses index.json from this repository to display a list of available plugins for LobeChat to the user.
- [chat-plugin-template][chat-plugin-template]: This is the plugin template for LobeChat plugin development.
@@ -759,7 +817,7 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
</details>
Copyright © 2024 [LobeHub][profile-link]. <br />
Copyright © 2025 [LobeHub][profile-link]. <br />
This project is [Apache 2.0](./LICENSE) licensed.
<!-- LINK GROUP -->
@@ -817,7 +875,7 @@ This project is [Apache 2.0](./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://lobehub.com/blog/openai-function-call
[docs-function-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
@@ -854,8 +912,11 @@ This project is [Apache 2.0](./LICENSE) licensed.
[image-feat-branch]: https://github.com/user-attachments/assets/92f72082-02bd-4835-9c54-b089aad7fd41
[image-feat-cot]: https://github.com/user-attachments/assets/f74f1139-d115-4e9c-8c43-040a53797a5e
[image-feat-database]: https://github.com/user-attachments/assets/f1697c8b-d1fb-4dac-ba05-153c6295d91d
[image-feat-desktop]: https://github.com/user-attachments/assets/a7bac8d3-ea96-4000-bb39-fadc9b610f96
[image-feat-knowledgebase]: https://github.com/user-attachments/assets/7da7a3b2-92fd-4630-9f4e-8560c74955ae
[image-feat-local]: https://github.com/user-attachments/assets/1239da50-d832-4632-a7ef-bd754c0f3850
[image-feat-mcp]: https://github.com/user-attachments/assets/1be85d36-3975-4413-931f-27e05e440995
[image-feat-mcp-market]: https://github.com/user-attachments/assets/bb114f9f-24c5-4000-a984-c10d187da5a0
[image-feat-mobile]: https://github.com/user-attachments/assets/32cf43c4-96bd-4a4c-bfb6-59acde6fe380
[image-feat-plugin]: https://github.com/user-attachments/assets/66a891ac-01b6-4e3f-b978-2eb07b489b1b
[image-feat-privoder]: https://github.com/user-attachments/assets/e553e407-42de-4919-977d-7dbfcf44a821
@@ -864,6 +925,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
[image-feat-theme]: https://github.com/user-attachments/assets/b47c39f1-806f-492b-8fcb-b0fa973937c1
[image-feat-tts]: https://github.com/user-attachments/assets/50189597-2cc3-4002-b4c8-756a52ad5c0a
[image-feat-vision]: https://github.com/user-attachments/assets/18574a1f-46c2-4cbc-af2c-35a86e128a07
[image-feat-web-search]: https://github.com/user-attachments/assets/cfdc48ac-b5f8-4a00-acee-db8f2eba09ad
[image-overview]: https://github.com/user-attachments/assets/dbfaa84a-2c82-4dd9-815c-5be616f264a4
[image-star]: https://github.com/user-attachments/assets/c3b482e7-cef5-4e94-bef9-226900ecfaab
[issues-link]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
+111 -51
View File
@@ -52,22 +52,26 @@
- [👋🏻 开始使用 & 交流](#-开始使用--交流)
- [✨ 特性一览](#-特性一览)
- [`1` 思维链 (CoT)](#1-思维链-cot)
- [`2` 分支对话](#2-分支对话)
- [`3` 支持白板 (Artifacts)](#3-支持白板-artifacts)
- [`4` 文件上传 / 知识库](#4-文件上传--知识库)
- [`5` 多模型服务商支持](#5-多模型服务商支持)
- [`6` 支持本地大语言模型 (LLM)](#6-支持本地大语言模型-llm)
- [`7` 模型视觉识别 (Model Visual)](#7-模型视觉识别-model-visual)
- [`8` TTS & STT 语音会话](#8-tts--stt-语音会话)
- [`9` Text to Image 文生图](#9-text-to-image-文生图)
- [`10` 插件系统 (Tools Calling)](#10-插件系统-tools-calling)
- [`11` 助手市场 (GPTs)](#11-助手市场-gpts)
- [`12` 支持本地 / 远程数据库](#12-支持本地--远程数据库)
- [`13` 支持多用户管理](#13-支持多用户管理)
- [`14` 渐进式 Web 应用 (PWA)](#14-渐进式-web-应用-pwa)
- [`15` 移动设备适配](#15-移动设备适配)
- [`16` 自定义主题](#16-自定义主题)
- [✨ MCP 插件一键安装](#-mcp-插件一键安装)
- [🏪 MCP 市场](#-mcp-市场)
- [🖥️ 桌面应用](#-桌面应用)
- [🌐 智能联网搜索](#-智能联网搜索)
- [思维链 (CoT)](#思维链-cot)
- [分支对话](#分支对话)
- [支持白板 (Artifacts)](#支持白板-artifacts)
- [文件上传 / 知识库](#文件上传--知识库)
- [多模型服务商支持](#多模型服务商支持)
- [支持本地大语言模型 (LLM)](#支持本地大语言模型-llm)
- [模型视觉识别 (Model Visual)](#模型视觉识别-model-visual)
- [TTS & STT 语音会话](#tts--stt-语音会话)
- [Text to Image 文生图](#text-to-image-文生图)
- [插件系统 (Tools Calling)](#插件系统-tools-calling)
- [助手市场 (GPTs)](#助手市场-gpts)
- [支持本地 / 远程数据库](#支持本地--远程数据库)
- [支持多用户管理](#支持多用户管理)
- [渐进式 Web 应用 (PWA)](#渐进式-web-应用-pwa)
- [移动设备适配](#移动设备适配)
- [自定义主题](#自定义主题)
- [`*` 更多特性](#-更多特性)
- [⚡️ 性能测试](#-性能测试)
- [🛳 开箱即用](#-开箱即用)
@@ -114,9 +118,59 @@
## ✨ 特性一览
通过 LobeChat 的强大功能,体验为无缝连接、提升效率和无限创意而设计的全新 AI 体验。
### ✨ MCP 插件一键安装
[![](https://github.com/user-attachments/assets/1be85d36-3975-4413-931f-27e05e440995)](https://lobehub.com/mcp)
**无缝连接你的 AI 与世界**
通过启用与外部工具、数据源和服务的平滑、安全和动态交互,释放你的 AI 的全部潜力。基于 MCP(模型上下文协议)的插件系统打破了 AI 与数字生态系统之间的壁垒,实现了前所未有的连接性和功能性。
将对话转化为强大的工作流程,连接数据库、API、文件系统等。体验真正理解并与你的世界互动的 AI Agent。
[![][back-to-top]](#readme-top)
### 🏪 MCP 市场
![][image-feat-mcp-market]
**发现、连接、扩展**
浏览不断增长的 MCP 插件库,轻松扩展你的 AI 能力并简化工作流程。访问 [lobehub.com/mcp](https://lobehub.com/mcp) 探索 MCP 市场,提供精选的集成集合,增强你的 AI 与各种工具和服务协作的能力。
从生产力工具到开发环境,发现扩展 AI 覆盖范围和效率的新方式。与社区连接,找到满足特定需求的完美插件。
[![][back-to-top]](#readme-top)
### 🖥️ 桌面应用
![][image-feat-desktop]
**巅峰性能,零干扰**
获得完整的 LobeChat 体验,摆脱浏览器限制 —— 轻量级、专注且随时就绪。我们的桌面应用程序为你的 AI 交互提供专用环境,确保最佳性能和最小干扰。
体验更快的响应时间、更好的资源管理和与 AI 助手的更稳定连接。桌面应用专为要求 AI 工具最佳性能的用户设计。
[![][back-to-top]](#readme-top)
### 🌐 智能联网搜索
![][image-feat-web-search]
**在线知识,按需获取**
通过实时联网访问,你的 AI 与世界保持同步 —— 新闻、数据、趋势等。保持信息更新,获取最新可用信息,使你的 AI 能够提供准确和最新的回复。
访问实时信息,验证事实,探索当前事件,无需离开对话。你的 AI 成为通向世界知识的门户,始终保持最新和全面。
[![][back-to-top]](#readme-top)
[![][image-feat-cot]][docs-feat-cot]
### `1` [思维链 (CoT)][docs-feat-cot]
### [思维链 (CoT)][docs-feat-cot]
体验前所未有的 AI 推理过程。通过创新的思维链(CoT)可视化功能,您可以实时观察复杂问题是如何一步步被解析的。这项突破性的功能为 AI 的决策过程提供了前所未有的透明度,让您能够清晰地了解结论是如何得出的。
@@ -126,7 +180,7 @@
[![][image-feat-branch]][docs-feat-branch]
### `2` [分支对话][docs-feat-branch]
### [分支对话][docs-feat-branch]
为您带来更自然、更灵活的 AI 对话方式。通过分支对话功能,您的讨论可以像人类对话一样自然延伸。在任意消息处创建新的对话分支,让您在保留原有上下文的同时,自由探索不同的对话方向。
@@ -141,7 +195,7 @@
[![][image-feat-artifacts]][docs-feat-artifacts]
### `3` [支持白板 (Artifacts)][docs-feat-artifacts]
### [支持白板 (Artifacts)][docs-feat-artifacts]
体验集成于 LobeChat 的 Claude Artifacts 能力。这项革命性功能突破了 AI 人机交互的边界,让您能够实时创建和可视化各种格式的内容。
@@ -155,7 +209,7 @@
[![][image-feat-knowledgebase]][docs-feat-knowledgebase]
### `4` [文件上传 / 知识库][docs-feat-knowledgebase]
### [文件上传 / 知识库][docs-feat-knowledgebase]
LobeChat 支持文件上传与知识库功能,你可以上传文件、图片、音频、视频等多种类型的文件,以及创建知识库,方便用户管理和查找文件。同时在对话中使用文件和知识库功能,实现更加丰富的对话体验。
@@ -173,7 +227,7 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
[![][image-feat-privoder]][docs-feat-provider]
### `5` [多模型服务商支持][docs-feat-provider]
### [多模型服务商支持][docs-feat-provider]
在 LobeChat 的不断发展过程中,我们深刻理解到在提供 AI 会话服务时模型服务商的多样性对于满足社区需求的重要性。因此,我们不再局限于单一的模型服务商,而是拓展了对多种模型服务商的支持,以便为用户提供更为丰富和多样化的会话选择。
@@ -196,7 +250,7 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
- **[Cloudflare Workers AI](https://lobechat.com/discover/provider/cloudflare)**: 在 Cloudflare 的全球网络上运行由无服务器 GPU 驱动的机器学习模型。
- **[GitHub](https://lobechat.com/discover/provider/github)**: 通过 GitHub 模型,开发人员可以成为 AI 工程师,并使用行业领先的 AI 模型进行构建。
<details><summary><kbd>See more providers (+27)</kbd></summary>
<details><summary><kbd>See more providers (+31)</kbd></summary>
- **[Novita](https://lobechat.com/discover/provider/novita)**: Novita AI 是一个提供多种大语言模型与 AI 图像生成的 API 服务的平台,灵活、可靠且具有成本效益。它支持 Llama3、Mistral 等最新的开源模型,并为生成式 AI 应用开发提供了全面、用户友好且自动扩展的 API 解决方案,适合 AI 初创公司的快速发展。
- **[PPIO](https://lobechat.com/discover/provider/ppio)**: PPIO 派欧云提供稳定、高性价比的开源模型 API 服务,支持 DeepSeek 全系列、Llama、Qwen 等行业领先大模型。
@@ -205,10 +259,11 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
- **[Groq](https://lobechat.com/discover/provider/groq)**: Groq 的 LPU 推理引擎在最新的独立大语言模型(LLM)基准测试中表现卓越,以其惊人的速度和效率重新定义了 AI 解决方案的标准。Groq 是一种即时推理速度的代表,在基于云的部署中展现了良好的性能。
- **[Perplexity](https://lobechat.com/discover/provider/perplexity)**: Perplexity 是一家领先的对话生成模型提供商,提供多种先进的 Llama 3.1 模型,支持在线和离线应用,特别适用于复杂的自然语言处理任务。
- **[Mistral](https://lobechat.com/discover/provider/mistral)**: Mistral 提供先进的通用、专业和研究型模型,广泛应用于复杂推理、多语言任务、代码生成等领域,通过功能调用接口,用户可以集成自定义功能,实现特定应用。
- **[ModelScope](https://lobechat.com/discover/provider/modelscope)**: ModelScope 是阿里云推出的模型即服务平台,提供丰富的 AI 模型和推理服务。
- **[Ai21Labs](https://lobechat.com/discover/provider/ai21)**: AI21 Labs 为企业构建基础模型和人工智能系统,加速生成性人工智能在生产中的应用。
- **[Upstage](https://lobechat.com/discover/provider/upstage)**: Upstage 专注于为各种商业需求开发 AI 模型,包括 Solar LLM 和文档 AI,旨在实现工作的人造通用智能(AGI)。通过 Chat API 创建简单的对话代理,并支持功能调用、翻译、嵌入以及特定领域应用。
- **[xAI](https://lobechat.com/discover/provider/xai)**: xAI 是一家致力于构建人工智能以加速人类科学发现的公司。我们的使命是推动我们对宇宙的共同理解。
- **[Qwen](https://lobechat.com/discover/provider/qwen)**: 通义千问是阿里云自主研发的超大规模语言模型,具有强大的自然语言理解和生成能力。它可以回答各种问题、创作文字内容、表达观点看法、撰写代码等,在多个领域发挥作用。
- **[xAI (Grok)](https://lobechat.com/discover/provider/xai)**: xAI 是一家致力于构建人工智能以加速人类科学发现的公司。我们的使命是推动我们对宇宙的共同理解。
- **[Aliyun Bailian](https://lobechat.com/discover/provider/qwen)**: 通义千问是阿里云自主研发的超大规模语言模型,具有强大的自然语言理解和生成能力。它可以回答各种问题、创作文字内容、表达观点看法、撰写代码等,在多个领域发挥作用。
- **[Wenxin](https://lobechat.com/discover/provider/wenxin)**: 企业级一站式大模型与 AI 原生应用开发及服务平台,提供最全面易用的生成式人工智能模型开发、应用开发全流程工具链
- **[Hunyuan](https://lobechat.com/discover/provider/hunyuan)**: 由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力
- **[ZhiPu](https://lobechat.com/discover/provider/zhipu)**: 智谱 AI 提供多模态与语言模型的开放平台,支持广泛的 AI 应用场景,包括文本处理、图像理解与编程辅助等。
@@ -225,10 +280,13 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
- **[Gitee AI](https://lobechat.com/discover/provider/giteeai)**: Gitee AI 的 Serverless API 为 AI 开发者提供开箱即用的大模型推理 API 服务。
- **[Taichu](https://lobechat.com/discover/provider/taichu)**: 中科院自动化研究所和武汉人工智能研究院推出新一代多模态大模型,支持多轮问答、文本创作、图像生成、3D 理解、信号分析等全面问答任务,拥有更强的认知、理解、创作能力,带来全新互动体验。
- **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI 是 360 公司推出的 AI 模型和服务平台,提供多种先进的自然语言处理模型,包括 360GPT2 Pro、360GPT Pro、360GPT Turbo 和 360GPT Turbo Responsibility 8K。这些模型结合了大规模参数和多模态能力,广泛应用于文本生成、语义理解、对话系统与代码生成等领域。通过灵活的定价策略,360 AI 满足多样化用户需求,支持开发者集成,推动智能化应用的革新和发展。
- **[Search1API](https://lobechat.com/discover/provider/search1api)**: Search1API 提供可根据需要自行联网的 DeepSeek 系列模型的访问,包括标准版和快速版本,支持多种参数规模的模型选择。
- **[InfiniAI](https://lobechat.com/discover/provider/infiniai)**: 为应用开发者提供高性能、易上手、安全可靠的大模型服务,覆盖从大模型开发到大模型服务化部署的全流程。
- **[Qiniu](https://lobechat.com/discover/provider/qiniu)**: 七牛作为老牌云服务厂商,提供高性价比稳定的实时、批量 AI 推理服务,简单易用。
</details>
> 📊 Total providers: [<kbd>**37**</kbd>](https://lobechat.com/discover/providers)
> 📊 Total providers: [<kbd>**41**</kbd>](https://lobechat.com/discover/providers)
<!-- PROVIDER LIST -->
@@ -242,7 +300,7 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
[![][image-feat-local]][docs-feat-local]
### `6` [支持本地大语言模型 (LLM)][docs-feat-local]
### [支持本地大语言模型 (LLM)][docs-feat-local]
为了满足特定用户的需求,LobeChat 还基于 [Ollama](https://ollama.ai) 支持了本地模型的使用,让用户能够更灵活地使用自己的或第三方的模型。
@@ -258,7 +316,7 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
[![][image-feat-vision]][docs-feat-vision]
### `7` [模型视觉识别 (Model Visual)][docs-feat-vision]
### [模型视觉识别 (Model Visual)][docs-feat-vision]
LobeChat 已经支持 OpenAI 最新的 [`gpt-4-vision`](https://platform.openai.com/docs/guides/vision) 支持视觉识别的模型,这是一个具备视觉识别能力的多模态应用。
用户可以轻松上传图片或者拖拽图片到对话框中,助手将能够识别图片内容,并在此基础上进行智能对话,构建更智能、更多元化的聊天场景。
@@ -273,7 +331,7 @@ LobeChat 已经支持 OpenAI 最新的 [`gpt-4-vision`](https://platform.openai.
[![][image-feat-tts]][docs-feat-tts]
### `8` [TTS & STT 语音会话][docs-feat-tts]
### [TTS & STT 语音会话][docs-feat-tts]
LobeChat 支持文字转语音(Text-to-SpeechTTS)和语音转文字(Speech-to-Text,STT)技术,这使得我们的应用能够将文本信息转化为清晰的语音输出,用户可以像与真人交谈一样与我们的对话助手进行交流。
用户可以从多种声音中选择,给助手搭配合适的音源。 同时,对于那些倾向于听觉学习或者想要在忙碌中获取信息的用户来说,TTS 提供了一个极佳的解决方案。
@@ -288,7 +346,7 @@ LobeChat 支持文字转语音(Text-to-SpeechTTS)和语音转文字(Spe
[![][image-feat-t2i]][docs-feat-t2i]
### `9` [Text to Image 文生图][docs-feat-t2i]
### [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 工具的能力, 助手们现在可以将你的想法转化为图像。
@@ -302,7 +360,7 @@ LobeChat 支持文字转语音(Text-to-SpeechTTS)和语音转文字(Spe
[![][image-feat-plugin]][docs-feat-plugin]
### `10` [插件系统 (Tools Calling)][docs-feat-plugin]
### [插件系统 (Tools Calling)][docs-feat-plugin]
LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地增强了 ChatGPT 的实用性和灵活性。
@@ -318,12 +376,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
| 最近新增 | 描述 |
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-05-27**</sup> | 分析股票并获取全面的实时投资数据和分析。<br/>`股票` |
| [网页](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | 智能网页搜索,读取和分析页面,以提供来自 Google 结果的全面答案。<br/>`网页` `搜索` |
| [MintbaseSearch](https://lobechat.com/discover/plugin/mintbasesearch)<br/><sup>By **mintbase** on **2024-12-31**</sup> | 在 NEAR 协议上查找任何 NFT 数据。<br/>`加密货币` `nft` |
| [必应网页搜索](https://lobechat.com/discover/plugin/Bingsearch-identifier)<br/><sup>By **FineHow** on **2024-12-22**</sup> | 通过 BingApi 搜索互联网上的信息<br/>`bingsearch` |
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2024-12-22**</sup> | 分析股票并获取全面的实时投资数据和分析。<br/>`股票` |
| [谷歌自定义搜索引擎](https://lobechat.com/discover/plugin/google-cse)<br/><sup>By **vsnthdev** on **2024-12-02**</sup> | 通过他们的官方自定义搜索引擎 API 搜索谷歌。<br/>`网络` `搜索` |
> 📊 Total plugins: [<kbd>**47**</kbd>](https://lobechat.com/discover/plugins)
> 📊 Total plugins: [<kbd>**42**</kbd>](https://lobechat.com/discover/plugins)
<!-- PLUGIN LIST -->
@@ -335,7 +393,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
[![][image-feat-agent]][docs-feat-agent]
### `11` [助手市场 (GPTs)][docs-feat-agent]
### [助手市场 (GPTs)][docs-feat-agent]
在 LobeChat 的助手市场中,创作者们可以发现一个充满活力和创新的社区,它汇聚了众多精心设计的助手,这些助手不仅在工作场景中发挥着重要作用,也在学习过程中提供了极大的便利。
我们的市场不仅是一个展示平台,更是一个协作的空间。在这里,每个人都可以贡献自己的智慧,分享个人开发的助手。
@@ -351,14 +409,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
<!-- AGENT LIST -->
| 最近新增 | 描述 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [Cron 表达式助手](https://lobechat.com/discover/assistant/crontab-generate)<br/><sup>By **[edgesider](https://github.com/edgesider)** on **2025-02-17**</sup> | Crontab 表达式生成<br/>`crontab` `时间表达` `触发时间` `生成器` `技术辅助` |
| [小智法语翻译助手](https://lobechat.com/discover/assistant/xiao-zhi-french-translation-asst-v-1)<br/><sup>By **[WeR-Best](https://github.com/WeR-Best)** on **2025-02-10**</sup> | 友好、专业、富有同理心的法语翻译 AI 助手<br/>`ai助手` `法语翻译` `跨文化交流` `创造力` |
| [语言魅力学习导师](https://lobechat.com/discover/assistant/bad-language-helper)<br/><sup>By **[Guducat](https://github.com/Guducat)** on **2025-02-06**</sup> | 擅长教学语言的魅力与花样回复<br/>`语言学习` `对话示例` |
| [命理研究员](https://lobechat.com/discover/assistant/fate-researcher)<br/><sup>By **[Jack980506](https://github.com/Jack980506)** on **2025-02-06**</sup> | 精通八字命<br/>`命理学` `八字` `传统文化` |
| 最近新增 | 描述 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [海龟汤主持人](https://lobechat.com/discover/assistant/lateral-thinking-puzzle)<br/><sup>By **[CSY2022](https://github.com/CSY2022)** on **2025-06-19**</sup> | 一个海龟汤主持人,需要自己提供汤面,汤底与关键点(猜中的判定条件)。<br/>`海龟汤` `推理` `互动` `谜题` `角色扮演` |
| [美食评论员🍟](https://lobechat.com/discover/assistant/food-reviewer)<br/><sup>By **[renhai-lab](https://github.com/renhai-lab)** on **2025-06-17**</sup> | 美食评价专家<br/>`美食` `评价` `写作` |
| [学术写作助手](https://lobechat.com/discover/assistant/academic-writing-assistant)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2025-06-17**</sup> | 专业的学术研究论文写作和正式文档编写专家<br/>`学术写作` `研究` `正式风格` |
| [Minecraft 资深开发者](https://lobechat.com/discover/assistant/java-development)<br/><sup>By **[iamyuuk](https://github.com/iamyuuk)** on **2025-06-17**</sup> | 擅长高级 Java 开发及 Minecraft 开发<br/>`开发` `编程` `minecraft` `java` |
> 📊 Total agents: [<kbd>**487**</kbd> ](https://lobechat.com/discover/assistants)
> 📊 Total agents: [<kbd>**505**</kbd> ](https://lobechat.com/discover/assistants)
<!-- AGENT LIST -->
@@ -370,7 +428,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
[![][image-feat-database]][docs-feat-database]
### `12` [支持本地 / 远程数据库][docs-feat-database]
### [支持本地 / 远程数据库][docs-feat-database]
LobeChat 支持同时使用服务端数据库和本地数据库。根据您的需求,您可以选择合适的部署方案:
@@ -387,7 +445,7 @@ LobeChat 支持同时使用服务端数据库和本地数据库。根据您的
[![][image-feat-auth]][docs-feat-auth]
### `13` [支持多用户管理][docs-feat-auth]
### [支持多用户管理][docs-feat-auth]
LobeChat 支持多用户管理,提供了两种主要的用户认证和管理方案,以满足不同需求:
@@ -405,7 +463,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
[![][image-feat-pwa]][docs-feat-pwa]
### `14` [渐进式 Web 应用 (PWA)][docs-feat-pwa]
### [渐进式 Web 应用 (PWA)][docs-feat-pwa]
我们深知在当今多设备环境下为用户提供无缝体验的重要性。为此,我们采用了渐进式 Web 应用 [PWA](https://support.google.com/chrome/answer/9658361) 技术,
这是一种能够将网页应用提升至接近原生应用体验的现代 Web 技术。通过 PWA,LobeChat 能够在桌面和移动设备上提供高度优化的用户体验,同时保持轻量级和高性能的特点。
@@ -418,7 +476,6 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
> - 在电脑上运行 Chrome 或 Edge 浏览器 .
> - 访问 LobeChat 网页 .
> - 在地址栏的右上角,单击 <kbd>安装</kbd> 图标 .
> - 根据屏幕上的指示完成 PWA 的安装 .
<div align="right">
@@ -428,7 +485,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
[![][image-feat-mobile]][docs-feat-mobile]
### `15` [移动设备适配][docs-feat-mobile]
### [移动设备适配][docs-feat-mobile]
针对移动设备进行了一系列的优化设计,以提升用户的移动体验。目前,我们正在对移动端的用户体验进行版本迭代,以实现更加流畅和直观的交互。如果您有任何建议或想法,我们非常欢迎您通过 GitHub Issues 或者 Pull Requests 提供反馈。
@@ -440,7 +497,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
[![][image-feat-theme]][docs-feat-theme]
### `16` [自定义主题][docs-feat-theme]
### [自定义主题][docs-feat-theme]
作为设计工程师出身,LobeChat 在界面设计上充分考虑用户的个性化体验,因此引入了灵活多变的主题模式,其中包括日间的亮色模式和夜间的深色模式。
除了主题模式的切换,还提供了一系列的颜色定制选项,允许用户根据自己的喜好来调整应用的主题色彩。无论是想要沉稳的深蓝,还是希望活泼的桃粉,或者是专业的灰白,用户都能够在 LobeChat 中找到匹配自己风格的颜色选择。
@@ -527,7 +584,7 @@ LobeChat 提供了 Vercel 的 自托管版本 和 [Docker 镜像][docker-release
#### 保持更新
如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 有可用更新。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。
如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 "有可用更新"。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。
> \[!TIP]
>
@@ -541,9 +598,9 @@ LobeChat 提供了 Vercel 的 自托管版本 和 [Docker 镜像][docker-release
[![][docker-size-shield]][docker-size-link]
[![][docker-pulls-shield]][docker-pulls-link]
We provide a Docker image for deploying the LobeChat service on your own private device. Use the following command to start the LobeChat service:
我们提供了一个用于在您自己的私有设备上部署 LobeChat 服务的 Docker 镜像。请使用以下命令启动 LobeChat 服务:
1. create a folder to for storage files
1. 创建一个用于存储文件的文件夹
```fish
$ mkdir lobe-chat-db && cd lobe-chat-db
@@ -781,7 +838,7 @@ $ pnpm run dev
</details>
Copyright © 2023 [LobeHub][profile-link]. <br />
Copyright © 2025 [LobeHub][profile-link]. <br />
This project is [Apache 2.0](./LICENSE) licensed.
<!-- LINK GROUP -->
@@ -876,8 +933,10 @@ This project is [Apache 2.0](./LICENSE) licensed.
[image-feat-branch]: https://github.com/user-attachments/assets/92f72082-02bd-4835-9c54-b089aad7fd41
[image-feat-cot]: https://github.com/user-attachments/assets/f74f1139-d115-4e9c-8c43-040a53797a5e
[image-feat-database]: https://github.com/user-attachments/assets/f1697c8b-d1fb-4dac-ba05-153c6295d91d
[image-feat-desktop]: https://github.com/user-attachments/assets/a7bac8d3-ea96-4000-bb39-fadc9b610f96
[image-feat-knowledgebase]: https://github.com/user-attachments/assets/7da7a3b2-92fd-4630-9f4e-8560c74955ae
[image-feat-local]: https://github.com/user-attachments/assets/1239da50-d832-4632-a7ef-bd754c0f3850
[image-feat-mcp-market]: https://github.com/user-attachments/assets/bb114f9f-24c5-4000-a984-c10d187da5a0
[image-feat-mobile]: https://github.com/user-attachments/assets/32cf43c4-96bd-4a4c-bfb6-59acde6fe380
[image-feat-plugin]: https://github.com/user-attachments/assets/66a891ac-01b6-4e3f-b978-2eb07b489b1b
[image-feat-privoder]: https://github.com/user-attachments/assets/e553e407-42de-4919-977d-7dbfcf44a821
@@ -886,6 +945,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
[image-feat-theme]: https://github.com/user-attachments/assets/b47c39f1-806f-492b-8fcb-b0fa973937c1
[image-feat-tts]: https://github.com/user-attachments/assets/50189597-2cc3-4002-b4c8-756a52ad5c0a
[image-feat-vision]: https://github.com/user-attachments/assets/18574a1f-46c2-4cbc-af2c-35a86e128a07
[image-feat-web-search]: https://github.com/user-attachments/assets/cfdc48ac-b5f8-4a00-acee-db8f2eba09ad
[image-overview]: https://github.com/user-attachments/assets/dbfaa84a-2c82-4dd9-815c-5be616f264a4
[image-star]: https://github.com/user-attachments/assets/c3b482e7-cef5-4e94-bef9-226900ecfaab
[issues-link]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
+8
View File
@@ -0,0 +1,8 @@
node_modules
dist
out
.DS_Store
.eslintcache
*.log*
standalone
release
+31
View File
@@ -0,0 +1,31 @@
const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'resources/locales/zh-CN',
entryLocale: 'zh-CN',
output: 'resources/locales',
outputLocales: [
'ar',
'bg-BG',
'zh-TW',
'en-US',
'ru-RU',
'ja-JP',
'ko-KR',
'fr-FR',
'tr-TR',
'es-ES',
'pt-BR',
'de-DE',
'it-IT',
'nl-NL',
'pl-PL',
'vi-VN',
'fa-IR',
],
temperature: 0,
modelName: 'gpt-4o-mini',
experimental: {
jsonMode: true,
},
});
+5
View File
@@ -0,0 +1,5 @@
lockfile=false
shamefully-hoist=true
electron_mirror=https://npmmirror.com/mirrors/electron/
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
ignore-workspace-root-check=true
+495
View File
@@ -0,0 +1,495 @@
## 核心框架组件目录架构
### 主进程核心组件
```
apps/desktop/src/main/
├── core/ // 核心功能
│ ├── App.ts // 应用核心类,整合所有管理器
│ ├── Browser.ts // 浏览器窗口类
│ ├── BrowserManager.ts // 浏览器窗口管理
│ ├── I18nManager.ts // 国际化管理
│ ├── IoCContainer.ts // 依赖注入容器
│ ├── MenuManager.ts // 菜单管理核心类,负责选择和协调平台实现
│ ├── ShortcutManager.ts // 快捷键管理
│ ├── StoreManager.ts // 存储管理
│ └── UpdaterManager.ts // 更新管理
├── controllers/ // 控制器层,处理渲染进程调用
│ ├── AuthCtr.ts // 认证控制器
│ ├── BrowserWindowsCtr.ts // 浏览器窗口控制器
│ ├── DevtoolsCtr.ts // 开发工具控制器
│ ├── LocalFileCtr.ts // 本地文件控制器
│ ├── MenuCtr.ts // 菜单控制器
│ ├── RemoteServerConfigCtr.ts // 远程服务器配置控制器
│ ├── RemoteServerSyncCtr.ts // 远程服务器同步控制器
│ ├── ShortcutCtr.ts // 快捷键控制器
│ ├── SystemCtr.ts // 系统控制器
│ ├── UpdaterCtr.ts // 更新控制器
│ ├── UploadFileCtr.ts // 文件上传控制器
│ └── index.ts // 控制器导出
├── services/ // 服务层
│ ├── fileSearchSrv.ts // 文件搜索服务
│ ├── fileSrv.ts // 文件服务
│ └── index.ts // 服务导出
├── modules/ // 功能模块
│ ├── fileSearch/ // 文件搜索模块
│ └── updater/ // 更新模块
├── menus/ // 菜单实现目录
│ ├── index.ts // 导出平台实现和接口
│ ├── types.ts // 定义菜单平台接口 IMenuPlatform
│ └── impl/ // 平台特定实现目录
│ ├── BaseMenuPlatform.ts // 基础平台类,注入App
│ ├── DarwinMenu.ts // macOS 充血模型实现
│ ├── WindowsMenu.ts // Windows 充血模型实现
│ └── LinuxMenu.ts // Linux 充血模型实现
├── shortcuts/ // 快捷键实现
│ ├── config.ts // 快捷键配置
│ └── index.ts // 快捷键导出
├── utils/ // 工具函数
│ ├── file-system.ts // 文件系统工具
│ ├── logger.ts // 日志工具
│ └── next-electron-rsc.ts // Next.js Electron RSC 工具
├── types/ // 类型定义
│ ├── fileSearch.ts // 文件搜索类型
│ └── store.ts // 存储类型
├── const/ // 常量定义
│ ├── dir.ts // 目录常量
│ ├── env.ts // 环境常量
│ └── store.ts // 存储常量
├── locales/ // 国际化资源
│ ├── index.ts // 导出 i18n 相关功能
│ ├── resources.ts // 资源加载逻辑
│ └── default/ // 默认中文翻译源文件
│ ├── index.ts // 导出所有翻译
│ ├── menu.ts // 菜单翻译
│ ├── dialog.ts // 对话框翻译
│ └── common.ts // 通用翻译
└── index.ts // 主进程入口文件
```
### 预加载脚本
```
apps/desktop/src/preload/
├── index.ts // 预加载脚本入口
└── apis/ // 预加载 API
└── ... // 各种 API 实现
```
### 共享代码
```
apps/desktop/src/common/
├── constants/ // 共享常量
├── types/ // 共享类型
└── utils/ // 共享工具函数
```
## 功能模块实现
### 菜单实现框架
```
apps/desktop/src/main/
├── core/
│ ├── App.ts // 应用核心类
│ ├── BrowserManager.ts // 浏览器窗口管理
│ └── MenuManager.ts // 菜单管理核心类,负责选择和协调平台实现
├── menus/ // 菜单实现目录
│ ├── index.ts // 导出平台实现和接口
│ ├── types.ts // 定义菜单平台接口 IMenuPlatform
│ └── impl/ // 平台特定实现目录
│ ├── BaseMenuPlatform.ts // 基础平台类,注入App
│ ├── DarwinMenu.ts // macOS 充血模型实现
│ ├── WindowsMenu.ts // Windows 充血模型实现
│ └── LinuxMenu.ts // Linux 充血模型实现
├── controllers/
│ └── MenuCtr.ts // 菜单控制器,处理渲染进程调用
```
### 国际化 (i18n) 实现
```
apps/desktop/src/main/
├── core/
│ ├── I18nManager.ts // i18n 管理器
│ └── App.ts // 应用主类,集成 i18n
├── locales/
│ ├── index.ts // 导出 i18n 相关功能
│ ├── resources.ts // 资源加载逻辑
│ └── default/ // 默认中文翻译源文件
│ ├── index.ts // 导出所有翻译
│ ├── menu.ts // 菜单翻译
│ ├── dialog.ts // 对话框翻译
│ └── common.ts // 通用翻译
```
主进程 i18n 国际化管理使用方式:
1. 直接导入 i18nManager 实例:
```typescript
import i18nManager from '@/locales';
```
2. 使用翻译函数:
```typescript
import { t } from '@/locales';
const translated = t('key');
```
3. 添加新翻译:
在 locales/default/ 目录下添加翻译源文件
## 核心模块详细说明
### 认证模块 (Auth)
认证模块负责处理用户身份验证和授权流程,主要包括:
1. **AuthCtr 控制器**:实现 OAuth 授权流程
- 请求授权:打开浏览器进行 OAuth 认证
- 处理回调:接收授权码并交换访问令牌
- 令牌刷新:自动刷新过期的访问令牌
- 事件广播:向渲染进程通知授权状态变化
```typescript
// 认证流程示例
@ipcClientEvent('requestAuthorization')
async requestAuthorization(config: DataSyncConfig) {
// 生成状态参数防止 CSRF 攻击
this.authRequestState = crypto.randomBytes(16).toString('hex');
// 构建授权 URL
const authUrl = new URL('/oidc/auth', remoteUrl);
authUrl.search = querystring.stringify({
client_id: 'lobe-chat',
response_type: 'code',
redirect_uri: `${protocolPrefix}://auth/callback`,
scope: 'openid profile',
state: this.authRequestState,
});
// 在默认浏览器中打开授权 URL
await shell.openExternal(authUrl.toString());
}
```
2. **桌面端特定认证**
- 在桌面应用中使用固定的用户 ID
- 支持与 Clerk 和 NextAuth 等认证系统集成
### 存储模块 (Store)
存储模块使用 electron-store 实现持久化数据存储:
1. **StoreManager 类**
- 提供统一的存储接口
- 支持类型安全的存取操作
- 管理应用配置和用户数据
```typescript
// 存储管理器使用示例
export class StoreManager {
private store: Store<ElectronMainStore>;
// 获取配置项
get<K extends StoreKey>(key: K, defaultValue?: ElectronMainStore[K]): ElectronMainStore[K] {
return this.store.get(key, defaultValue as any);
}
// 设置配置项
set<K extends StoreKey>(key: K, value: ElectronMainStore[K]): void {
this.store.set(key, value);
}
// 删除配置项
delete(key: StoreKey): void {
this.store.delete(key);
}
}
```
2. **存储用途**
- 窗口状态保存
- 用户偏好设置
- 认证令牌存储
- 快捷键配置
- 国际化语言设置
### 快捷键模块 (Shortcuts)
快捷键模块管理全局键盘快捷键:
1. **ShortcutManager 类**
- 注册和管理全局快捷键
- 支持自定义快捷键配置
- 提供快捷键状态查询
```typescript
// 快捷键管理器示例
export class ShortcutManager {
private shortcuts: Map<string, () => void> = new Map();
private shortcutsConfig: Record<string, string> = {};
// 注册快捷键
registerShortcut(accelerator: string, callback: () => void): boolean {
const success = globalShortcut.register(accelerator, callback);
if (success) {
this.shortcuts.set(accelerator, callback);
}
return success;
}
// 更新快捷键配置
updateShortcutConfig(id: string, accelerator: string): boolean {
this.shortcutsConfig[id] = accelerator;
this.saveShortcutsConfig();
this.registerConfiguredShortcuts();
return true;
}
}
```
2. **快捷键装饰器**
- 使用 `@shortcut` 装饰器简化快捷键注册
- 通过 IoC 容器管理快捷键映射
### 控制框架 (Control Framework)
控制框架实现了主进程和渲染进程之间的通信:
1. **ControllerModule 基类**
- 所有控制器的基础类
- 提供生命周期钩子 (beforeAppReady, afterAppReady)
- 注入 App 实例
```typescript
// 控制器基类和装饰器
export class ControllerModule implements IControllerModule {
constructor(public app: App) {
this.app = app;
}
}
// IPC 客户端事件装饰器
export const ipcClientEvent = (method: keyof ClientDispatchEvents) =>
ipcDecorator(method, 'client');
// IPC 服务器事件装饰器
export const ipcServerEvent = (method: keyof ServerDispatchEvents) =>
ipcDecorator(method, 'server');
```
2. **IoC 容器**
- 依赖注入容器管理控制器实例
- 注册和解析 IPC 事件处理程序
- 管理快捷键和控制器方法的映射
### 服务逻辑 (Service Logic)
服务层提供业务逻辑实现:
1. **ServiceModule 基类**
- 所有服务的基础类
- 注入 App 实例
- 提供业务逻辑封装
```typescript
// 服务模块基类
export class ServiceModule {
constructor(public app: App) {
this.app = app;
}
}
```
2. **服务实现**
- fileSearchSrv:文件搜索服务
- fileSrv:文件操作服务
### 数据存储 (Electron Settings)
Electron Settings 基于 electron-store 实现,提供类型安全的数据存储:
1. **存储配置**
- 使用 JSON 文件存储配置
- 支持默认值设置
- 自动创建存储目录
```typescript
// 存储初始化
this.store = new Store<ElectronMainStore>({
defaults: STORE_DEFAULTS,
name: STORE_NAME,
});
// 确保存储目录存在
const storagePath = this.store.get('storagePath');
makeSureDirExist(storagePath);
```
2. **存储操作**
- 类型安全的 get/set 方法
- 支持删除和清除操作
- 提供存储编辑器功能
### 主进程和渲染进程通信 (Main-Renderer Communication)
主进程和渲染进程通信基于 Electron IPC 机制:
1. **IPC 事件处理**
- 使用装饰器注册 IPC 事件处理程序
- 支持客户端事件和服务器事件
- 自动映射控制器方法到 IPC 事件
```typescript
// IPC 事件初始化
private initializeIPCEvents() {
// 注册客户端事件处理程序
this.ipcClientEventMap.forEach((eventInfo, key) => {
ipcMain.handle(key, async (e, ...data) => {
return await eventInfo.controller[eventInfo.methodName](...data);
});
});
// 注册服务器事件处理程序
const ipcServerEvents = {} as ElectronIPCEventHandler;
this.ipcServerEventMap.forEach((eventInfo, key) => {
ipcServerEvents[key] = async (payload) => {
return await eventInfo.controller[eventInfo.methodName](payload);
};
});
// 创建 IPC 服务器
this.ipcServer = new ElectronIPCServer(name, ipcServerEvents);
}
```
2. **事件广播**
- 主进程向渲染进程广播事件
- 支持向所有窗口或特定窗口发送消息
### 日志系统 (Logging)
日志系统提供统一的日志记录接口:
1. **日志工具**
- 基于 debug 和 electron-log 实现
- 支持不同日志级别 (debug, info, warn, error, verbose)
- 根据环境自动调整日志行为
```typescript
// 创建日志记录器
export const createLogger = (namespace: string) => {
const debugLogger = debug(namespace);
return {
debug: (message, ...args) => {
debugLogger(message, ...args);
},
error: (message, ...args) => {
if (process.env.NODE_ENV === 'production') {
electronLog.error(message, ...args);
}
debugLogger(`ERROR: ${message}`, ...args);
},
// 其他日志级别...
};
};
```
2. **日志配置**
- 开发环境显示详细日志
- 生产环境记录到文件
- 支持命名空间隔离日志
### 自动更新 (Auto Updates)
自动更新模块基于 electron-updater 实现:
1. **UpdaterManager 类**
- 检查更新
- 下载更新
- 安装更新
- 支持立即安装或下次启动安装
```typescript
// 更新管理器示例
export class UpdaterManager {
// 检查更新
public checkForUpdates = async ({ manual = false }: { manual?: boolean } = {}) => {
if (this.checking || this.downloading) return;
this.checking = true;
this.isManualCheck = manual;
try {
await autoUpdater.checkForUpdates();
} catch (error) {
logger.error('Error checking for updates:', error.message);
} finally {
this.checking = false;
}
};
// 下载更新
public downloadUpdate = async (manual: boolean = false) => {
if (this.downloading || !this.updateAvailable) return;
this.downloading = true;
try {
await autoUpdater.downloadUpdate();
} catch (error) {
this.downloading = false;
logger.error('Error downloading update:', error);
}
};
}
```
2. **更新配置**
- 支持多渠道发布 (stable, beta, nightly)
- 自动检查更新
- 更新事件通知
## 桌面端架构图
```
┌─────────────────────────────────────────────────────────────────┐
│ Electron Application │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────┐ ┌──────────────────────────┐ │
│ │ Main Process │ │ Renderer Process │ │
│ │ │ │ │ │
│ │ ┌─────────────┐│ │ ┌────────────────────┐ │ │
│ │ │ Core ││ │ │ │ │ │
│ │ │ Managers ││ │ │ │ │ │
│ │ └─────────────┘│ │ │ Next.js App │ │ │
│ │ │ │ │ │ │ │ │
│ │ ┌─────▼─────┐ │ │ │ │ │ │
│ │ │Controllers│ │◄──────────┼──┤ │ │ │
│ │ └─────┬─────┘ │ IPC │ └────────────────────┘ │ │
│ │ │ │Communication │ │
│ │ ┌─────▼─────┐ │ │ │ │
│ │ │ Services │ │ │ │ │
│ │ └─────┬─────┘ │ │ │ │
│ │ │ │ │ │ │
│ │ ┌─────▼─────┐ │ │ │ │
│ │ │ Modules │ │ │ │ │
│ │ └───────────┘ │ │ │ │
│ │ │ │ │ │
│ └─────────────────┘ └──────────────────────────┘ │
│ │
│ ┌───────────────────┐ │
│ │ Preload Script │ │
│ │ (Bridge between │ │
│ │ Main & Renderer) │ │
│ └───────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
```
+60
View File
@@ -0,0 +1,60 @@
# LobeHub Desktop Application
LobeHub Desktop 是 [LobeChat](https://github.com/lobehub/lobe-chat) 的跨平台桌面应用程序,使用 Electron 构建,提供了更加原生的桌面体验和功能。
## 功能特点
- **跨平台支持**:支持 macOS (Intel/Apple Silicon)、Windows 和 Linux 系统
- **自动更新**:内置更新机制,确保您始终使用最新版本
- **多语言支持**:完整的国际化支持,包括中文、英文等多种语言
- **原生集成**:与操作系统深度集成,提供原生菜单、快捷键和通知
- **安全可靠**:macOS 版本经过公证,确保安全性
- **多渠道发布**:提供稳定版、测试版和每日构建版本
## 开发环境设置
### 前提条件
- Node.js 22+
- pnpm 10+
### 安装依赖
```bash
pnpm install-isolated
```
### 开发模式运行
```bash
pnpm electron:dev
```
### 构建应用
构建所有平台:
```bash
pnpm build
```
构建特定平台:
```bash
# macOS
pnpm build:mac
# Windows
pnpm build:win
# Linux
pnpm build:linux
```
## 发布渠道
应用提供三个发布渠道:
- **稳定版**:经过充分测试的正式版本
- **测试版 (Beta)**:预发布版本,包含即将发布的新功能
- **每日构建版 (Nightly)**:包含最新开发进展的构建版本
Binary file not shown.
Binary file not shown.
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>
Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

+6
View File
@@ -0,0 +1,6 @@
provider: github
owner: lobehub
repo: lobe-chat
updaterCacheDirName: electron-app-updater
allowPrerelease: true
channel: nightly
@@ -0,0 +1,229 @@
# Claude Code Integration
This document describes the Claude Code SDK integration in LobeChat Desktop application.
## Overview
Claude Code SDK enables running Claude Code as a subprocess, providing AI-powered coding assistance capabilities. The integration supports:
- **Multi-turn conversations** with context retention
- **File operations** (read/write)
- **Code execution** through bash commands
- **Session management** and continuation
- **Real-time streaming** responses
- **Cost tracking** per session
## Accessing Claude Code
In the LobeChat Desktop application, you can access Claude Code through:
1. **Sidebar Navigation**: Click the code icon (`</>`) in the sidebar (desktop only)
2. **Direct URL**: Navigate to `/claude-code` in the application
The Claude Code interface provides:
- A code editor for writing prompts
- Real-time streaming message display
- Session management with history
- Cost tracking and usage statistics
## Architecture
### Components
1. **IPC Layer** (`packages/electron-client-ipc`)
- Type definitions for Claude Code events
- IPC event interfaces for main/render communication
2. **Main Process Controller** (`apps/desktop/src/main/controllers/ClaudeCodeCtr.ts`)
- Handles Claude Code SDK integration
- Manages streaming sessions and abort controllers
- Tracks session history
3. **React Hook** (`src/hooks/useClaudeCode.ts`)
- Provides easy-to-use interface for React components
- Handles IPC communication with main process
- Manages streaming state and events
4. **UI Page** (`src/app/[variants]/(main)/claude-code/`)
- User interface for interacting with Claude Code
- Query editor with syntax highlighting
- Session management interface
- Real-time message streaming display
## Setup
### Prerequisites
1. Install Claude Code SDK dependency:
```bash
npm install @anthropic-ai/claude-code
```
2. Set up authentication:
```bash
# Option 1: Anthropic API Key
export ANTHROPIC_API_KEY="your-api-key"
# Option 2: Amazon Bedrock
export CLAUDE_CODE_USE_BEDROCK=1
# Configure AWS credentials
# Option 3: Google Vertex AI
export CLAUDE_CODE_USE_VERTEX=1
# Configure Google Cloud credentials
```
## Usage
### Basic Query
```typescript
import { useClaudeCode } from '@/hooks/useClaudeCode';
const MyComponent = () => {
const { query, isLoading } = useClaudeCode();
const handleQuery = async () => {
const result = await query('Write a function to calculate Fibonacci numbers', {
maxTurns: 3,
outputFormat: 'json',
});
console.log(result.messages);
console.log(result.sessionId);
};
};
```
### Streaming Query
```typescript
const { startStreamingQuery, isLoading } = useClaudeCode({
onStreamMessage: (message) => {
console.log('New message:', message);
},
onStreamComplete: (sessionId) => {
console.log('Stream completed:', sessionId);
},
onStreamError: (error) => {
console.error('Stream error:', error);
},
});
const handleStream = async () => {
await startStreamingQuery('Build a React component', {
maxTurns: 5,
outputFormat: 'stream-json',
allowedTools: ['Read', 'Write', 'Bash'],
});
};
```
### Session Management
```typescript
const { recentSessions, fetchRecentSessions, clearSession } = useClaudeCode();
// Get recent sessions
await fetchRecentSessions();
// Continue a previous session
await startStreamingQuery('Continue', {
resumeSessionId: session.sessionId,
});
// Clear a session
await clearSession(sessionId);
```
## IPC Events
### Client Dispatch Events (Renderer → Main)
- `claudeCodeQuery` - Execute a Claude Code query
- `claudeCodeStreamStart` - Start a streaming query
- `claudeCodeStreamStop` - Stop an active stream
- `claudeCodeCreateAbortController` - Create abort controller
- `claudeCodeAbort` - Trigger abort
- `claudeCodeGetRecentSessions` - Get session history
- `claudeCodeClearSession` - Clear a specific session
- `claudeCodeCheckAvailability` - Check if Claude Code is available
### Broadcast Events (Main → Renderer)
- `claudeCodeStreamMessage` - Stream message event
- `claudeCodeStreamComplete` - Stream completion event
- `claudeCodeStreamError` - Stream error event
## Configuration Options
```typescript
interface ClaudeCodeOptions {
maxTurns?: number; // Maximum conversation turns
systemPrompt?: string; // Override system prompt
appendSystemPrompt?: string; // Append to system prompt
cwd?: string; // Working directory
allowedTools?: string[] | string; // Allowed tools
disallowedTools?: string[] | string; // Disallowed tools
permissionMode?: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
outputFormat?: 'text' | 'json' | 'stream-json';
inputFormat?: 'text' | 'stream-json';
mcpConfig?: string; // MCP configuration file path
permissionPromptTool?: string; // MCP tool for permissions
verbose?: boolean; // Enable verbose logging
continueLastSession?: boolean; // Continue last session
resumeSessionId?: string; // Resume specific session
}
```
## Message Types
```typescript
interface ClaudeCodeMessage {
type: 'assistant' | 'user' | 'system' | 'result';
message?: any;
session_id?: string;
subtype?: string;
duration_ms?: number;
duration_api_ms?: number;
is_error?: boolean;
num_turns?: number;
result?: string;
total_cost_usd?: number;
apiKeySource?: string;
cwd?: string;
tools?: string[];
mcp_servers?: Array<{ name: string; status: string }>;
model?: string;
permissionMode?: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
}
```
## Best Practices
1. **Always check availability** before using Claude Code
2. **Handle errors gracefully** - both sync and async errors
3. **Use abort controllers** for long-running operations
4. **Monitor costs** through session tracking
5. **Clean up sessions** when no longer needed
6. **Set appropriate tool permissions** based on use case
## Troubleshooting
### Claude Code not available
1. Check if running in Electron desktop app
2. Verify API key is set correctly
3. Check environment variables
### Streaming not working
1. Ensure proper event listeners are set up
2. Check for abort controller conflicts
3. Verify stream ID is unique
### Session continuation fails
1. Check if session ID is valid
2. Ensure session hasn't been cleared
3. Verify prompt is appropriate for continuation
+101
View File
@@ -0,0 +1,101 @@
const dotenv = require('dotenv');
dotenv.config();
const packageJSON = require('./package.json');
const channel = process.env.UPDATE_CHANNEL;
console.log(`🚄 Build Version ${packageJSON.version}, Channel: ${channel}`);
const isNightly = channel === 'nightly';
const isBeta = packageJSON.name.includes('beta');
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration
*/
const config = {
appId: isNightly
? 'com.lobehub.lobehub-desktop-nightly'
: isBeta
? 'com.lobehub.lobehub-desktop-beta'
: 'com.lobehub.lobehub-desktop',
appImage: {
artifactName: '${productName}-${version}.${ext}',
},
asar: true,
detectUpdateChannel: true,
directories: {
buildResources: 'build',
output: 'release',
},
dmg: {
artifactName: '${productName}-${version}-${arch}.${ext}',
},
electronDownload: {
mirror: 'https://npmmirror.com/mirrors/electron/',
},
files: [
'dist',
'resources',
'!resources/locales',
'!dist/next/docs',
'!dist/next/packages',
'!dist/next/.next/server/app/sitemap',
'!dist/next/.next/static/media',
],
generateUpdatesFilesForAllChannels: true,
linux: {
category: 'Utility',
maintainer: 'electronjs.org',
target: ['AppImage', 'snap', 'deb'],
},
mac: {
compression: 'maximum',
entitlementsInherit: 'build/entitlements.mac.plist',
extendInfo: {
NSCameraUsageDescription: "Application requests access to the device's camera.",
NSDocumentsFolderUsageDescription:
"Application requests access to the user's Documents folder.",
NSDownloadsFolderUsageDescription:
"Application requests access to the user's Downloads folder.",
NSMicrophoneUsageDescription: "Application requests access to the device's microphone.",
},
gatekeeperAssess: false,
hardenedRuntime: true,
notarize: true,
target:
// 降低构建时间,nightly 只打 arm64
isNightly
? [{ arch: ['arm64'], target: 'dmg' }]
: [
{ arch: ['x64', 'arm64'], target: 'dmg' },
{ arch: ['x64', 'arm64'], target: 'zip' },
],
},
npmRebuild: true,
nsis: {
allowToChangeInstallationDirectory: true,
artifactName: '${productName}-${version}-setup.${ext}',
createDesktopShortcut: 'always',
installerHeader: './build/nsis-header.bmp',
installerSidebar: './build/nsis-sidebar.bmp',
oneClick: false,
shortcutName: '${productName}',
uninstallDisplayName: '${productName}',
uninstallerSidebar: './build/nsis-sidebar.bmp',
},
publish: [
{
owner: 'lobehub',
provider: 'github',
repo: 'lobe-chat',
},
],
win: {
executableName: 'LobeHub',
},
};
module.exports = config;
+43
View File
@@ -0,0 +1,43 @@
import dotenv from 'dotenv';
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
import { resolve } from 'node:path';
dotenv.config();
const isDev = process.env.NODE_ENV === 'development';
const updateChannel = process.env.UPDATE_CHANNEL;
console.log(`[electron-vite.config.ts] Detected UPDATE_CHANNEL: ${updateChannel}`); // 添加日志确认
export default defineConfig({
main: {
build: {
outDir: 'dist/main',
sourcemap: isDev,
},
// 这里是关键:在构建时进行文本替换
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
'process.env.OFFICIAL_CLOUD_SERVER': JSON.stringify(process.env.OFFICIAL_CLOUD_SERVER),
'process.env.UPDATE_CHANNEL': JSON.stringify(process.env.UPDATE_CHANNEL),
},
plugins: [externalizeDepsPlugin({})],
resolve: {
alias: {
'@': resolve(__dirname, 'src/main'),
'~common': resolve(__dirname, 'src/common'),
},
},
},
preload: {
build: {
outDir: 'dist/preload',
sourcemap: isDev,
},
plugins: [externalizeDepsPlugin({})],
resolve: {
alias: {
'~common': resolve(__dirname, 'src/common'),
},
},
},
});
+74
View File
@@ -0,0 +1,74 @@
{
"name": "lobehub-desktop-dev",
"version": "0.0.10",
"description": "LobeHub Desktop Application",
"homepage": "https://lobehub.com",
"repository": {
"type": "git",
"url": "https://github.com/lobehub/lobe-chat.git"
},
"author": "LobeHub",
"main": "./dist/main/index.js",
"scripts": {
"build": "npm run typecheck && electron-vite build",
"build-local": "npm run build && electron-builder --dir --config electron-builder.js --c.mac.notarize=false -c.mac.identity=null --c.asar=false",
"build:linux": "npm run build && electron-builder --linux --config electron-builder.js --publish never",
"build:mac": "npm run build && electron-builder --mac --config electron-builder.js --publish never",
"build:win": "npm run build && electron-builder --win --config electron-builder.js --publish never",
"electron:dev": "electron-vite dev",
"electron:run-unpack": "electron .",
"format": "prettier --write ",
"i18n": "bun run scripts/i18nWorkflow/index.ts && lobe-i18n",
"postinstall": "electron-builder install-app-deps",
"install-isolated": "pnpm install",
"lint": "eslint --cache ",
"pg-server": "bun run scripts/pglite-server.ts",
"start": "electron-vite preview",
"typecheck": "tsgo --noEmit -p tsconfig.json"
},
"dependencies": {
"electron-updater": "^6.6.2",
"get-port-please": "^3.1.2",
"pdfjs-dist": "4.10.38"
},
"devDependencies": {
"@electron-toolkit/eslint-config-prettier": "^3.0.0",
"@electron-toolkit/eslint-config-ts": "^3.0.0",
"@electron-toolkit/preload": "^3.0.1",
"@electron-toolkit/tsconfig": "^1.0.1",
"@electron-toolkit/utils": "^4.0.0",
"@lobechat/electron-client-ipc": "workspace:*",
"@lobechat/electron-server-ipc": "workspace:*",
"@lobechat/file-loaders": "workspace:*",
"@lobehub/i18n-cli": "^1.20.3",
"@types/lodash": "^4.17.0",
"@types/resolve": "^1.20.6",
"@types/semver": "^7.7.0",
"@types/set-cookie-parser": "^2.4.10",
"@typescript/native-preview": "latest",
"consola": "^3.1.0",
"cookie": "^1.0.2",
"electron": "^37.2.0",
"electron-builder": "^26.0.12",
"electron-is": "^3.0.0",
"electron-log": "^5.3.3",
"electron-store": "^8.2.0",
"electron-vite": "^3.0.0",
"execa": "^9.5.2",
"fix-path": "^4.0.0",
"just-diff": "^6.0.2",
"lodash": "^4.17.21",
"pglite-server": "^0.1.4",
"resolve": "^1.22.8",
"semver": "^7.5.4",
"set-cookie-parser": "^2.7.1",
"tsx": "^4.19.3",
"typescript": "^5.7.3",
"vite": "^6.2.5"
},
"pnpm": {
"onlyBuiltDependencies": [
"electron"
]
}
}
+5
View File
@@ -0,0 +1,5 @@
packages:
- '../../packages/electron-server-ipc'
- '../../packages/electron-client-ipc'
- '../../packages/file-loaders'
- '.'
+135
View File
@@ -0,0 +1,135 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LobeHub - 连接错误</title>
<style>
body {
-webkit-app-region: drag;
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
color: #1f1f1f;
overflow: hidden;
}
/* 添加暗色模式支持 */
@media (prefers-color-scheme: dark) {
body {
color: #f5f5f5;
}
.error-message {
color: #f5f5f5;
}
.retry-button {
background-color: #2a2a2a;
color: #f5f5f5;
border: 1px solid #3a3a3a;
}
.retry-button:hover {
background-color: #3a3a3a;
}
}
.container {
text-align: center;
padding: 2rem;
max-width: 500px;
}
.lobe-brand {
width: 120px;
height: auto;
margin-bottom: 2rem;
}
.lobe-brand path {
fill: currentcolor;
}
.error-icon {
font-size: 3rem;
margin-bottom: 1rem;
color: #ff4d4f;
}
.error-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
}
.error-message {
margin-bottom: 2rem;
line-height: 1.5;
color: #666;
}
.retry-button {
-webkit-app-region: no-drag;
padding: 0.75rem 1.5rem;
background-color: #f5f5f5;
color: #1f1f1f;
border: 1px solid #e0e0e0;
border-radius: 6px;
font-size: 1rem;
cursor: pointer;
transition: all 0.2s ease;
}
.retry-button:hover {
background-color: #e9e9e9;
}
</style>
</head>
<body>
<div class="container">
<div class="error-icon">⚠️</div>
<h1 class="error-title">Connection Error</h1>
<p class="error-message">
Unable to connect to the application, please check your network connection or confirm if the
development server is running.
</p>
<button id="retry-button" class="retry-button">Retry</button>
</div>
<script>
// 当按钮被点击时,通知主进程重试连接
const retryButton = document.getElementById('retry-button');
const errorMessage = document.querySelector('.error-message');
if (retryButton) {
retryButton.addEventListener('click', () => {
// 更新UI状态
retryButton.disabled = true;
retryButton.textContent = 'Retrying...';
errorMessage.textContent = 'Attempting to reconnect to the next server, please wait...';
// 调用主进程的重试逻辑
if (window.electron && window.electron.ipcRenderer) {
window.electron.ipcRenderer.invoke('retry-connection')
.then((result) => {
if (result && result.success) {
// 连接成功,无需额外操作,页面会自动导航
} else {
// 连接失败,重置按钮状态
setTimeout(() => {
retryButton.disabled = false;
retryButton.textContent = 'Retry';
errorMessage.textContent = 'Unable to connect to the application, please check your network connection or confirm if the development server is running.';
}, 1000);
}
});
}
});
}
</script>
</body>
</html>
@@ -0,0 +1,32 @@
{
"actions": {
"add": "إضافة",
"back": "عودة",
"cancel": "إلغاء",
"close": "إغلاق",
"confirm": "تأكيد",
"delete": "حذف",
"edit": "تعديل",
"more": "المزيد",
"next": "التالي",
"ok": "حسناً",
"previous": "السابق",
"refresh": "تحديث",
"remove": "إزالة",
"retry": "إعادة المحاولة",
"save": "حفظ",
"search": "بحث",
"submit": "إرسال"
},
"app": {
"description": "منصة تعاون مساعدك الذكي",
"name": "LobeHub"
},
"status": {
"error": "خطأ",
"info": "معلومات",
"loading": "جارٍ التحميل",
"success": "نجاح",
"warning": "تحذير"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "تأكيد",
"detail": "تطبيق دردشة يعتمد على نموذج لغة كبير",
"message": "{{appName}} {{appVersion}}",
"title": "حول"
},
"confirm": {
"cancel": "إلغاء",
"no": "لا",
"title": "تأكيد",
"yes": "نعم"
},
"error": {
"button": "تأكيد",
"detail": "حدث خطأ أثناء العملية، يرجى المحاولة لاحقًا",
"message": "حدث خطأ",
"title": "خطأ"
},
"update": {
"downloadAndInstall": "تنزيل وتثبيت",
"downloadComplete": "اكتمل التنزيل",
"downloadCompleteMessage": "تم تنزيل حزمة التحديث، هل ترغب في التثبيت الآن؟",
"installLater": "تثبيت لاحقًا",
"installNow": "تثبيت الآن",
"later": "تذكير لاحقًا",
"newVersion": "تم اكتشاف إصدار جديد",
"newVersionAvailable": "تم اكتشاف إصدار جديد: {{version}}",
"skipThisVersion": "تخطي هذا الإصدار"
}
}
@@ -0,0 +1,70 @@
{
"common": {
"checkUpdates": "التحقق من التحديثات..."
},
"dev": {
"devPanel": "لوحة المطور",
"devTools": "أدوات المطور",
"forceReload": "إعادة تحميل قسري",
"openStore": "فتح ملف التخزين",
"refreshMenu": "تحديث القائمة",
"reload": "إعادة تحميل",
"title": "تطوير"
},
"edit": {
"copy": "نسخ",
"cut": "قص",
"paste": "لصق",
"redo": "إعادة",
"selectAll": "تحديد الكل",
"speech": "صوت",
"startSpeaking": "بدء القراءة",
"stopSpeaking": "إيقاف القراءة",
"title": "تحرير",
"undo": "تراجع"
},
"file": {
"preferences": "التفضيلات",
"quit": "خروج",
"title": "ملف"
},
"help": {
"about": "حول",
"githubRepo": "مستودع GitHub",
"reportIssue": "الإبلاغ عن مشكلة",
"title": "مساعدة",
"visitWebsite": "زيارة الموقع الرسمي"
},
"macOS": {
"about": "حول {{appName}}",
"devTools": "أدوات مطور LobeHub",
"hide": "إخفاء {{appName}}",
"hideOthers": "إخفاء الآخرين",
"preferences": "إعدادات مفضلة...",
"services": "خدمات",
"unhide": "إظهار الكل"
},
"tray": {
"open": "فتح {{appName}}",
"quit": "خروج",
"show": "عرض {{appName}}"
},
"view": {
"forceReload": "إعادة تحميل قسري",
"reload": "إعادة تحميل",
"resetZoom": "إعادة تعيين التكبير",
"title": "عرض",
"toggleFullscreen": "تبديل وضع ملء الشاشة",
"zoomIn": "تكبير",
"zoomOut": "تصغير"
},
"window": {
"bringAllToFront": "إحضار جميع النوافذ إلى الأمام",
"close": "إغلاق",
"front": "إحضار جميع النوافذ إلى الأمام",
"minimize": "تصغير",
"title": "نافذة",
"toggleFullscreen": "تبديل وضع ملء الشاشة",
"zoom": "تكبير"
}
}
@@ -0,0 +1,32 @@
{
"actions": {
"add": "Добави",
"back": "Назад",
"cancel": "Отмени",
"close": "Затвори",
"confirm": "Потвърди",
"delete": "Изтрий",
"edit": "Редактирай",
"more": "Повече",
"next": "Следващ",
"ok": "Добре",
"previous": "Предишен",
"refresh": "Освежи",
"remove": "Премахни",
"retry": "Опитай отново",
"save": "Запази",
"search": "Търси",
"submit": "Изпрати"
},
"app": {
"description": "Твоята платформа за сътрудничество с AI асистент",
"name": "LobeHub"
},
"status": {
"error": "Грешка",
"info": "Информация",
"loading": "Зареждане",
"success": "Успех",
"warning": "Предупреждение"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "Потвърди",
"detail": "Приложение за чат, базирано на голям езиков модел",
"message": "{{appName}} {{appVersion}}",
"title": "За нас"
},
"confirm": {
"cancel": "Отказ",
"no": "Не",
"title": "Потвърждение",
"yes": "Да"
},
"error": {
"button": "Потвърди",
"detail": "Възникна грешка по време на операцията, моля опитайте отново по-късно",
"message": "Възникна грешка",
"title": "Грешка"
},
"update": {
"downloadAndInstall": "Изтегли и инсталирай",
"downloadComplete": "Изтеглянето е завършено",
"downloadCompleteMessage": "Актуализационният пакет е изтеглен, желаете ли да го инсталирате веднага?",
"installLater": "Инсталирай по-късно",
"installNow": "Инсталирай сега",
"later": "Напомни по-късно",
"newVersion": "Открита нова версия",
"newVersionAvailable": "Открита нова версия: {{version}}",
"skipThisVersion": "Пропусни тази версия"
}
}
@@ -0,0 +1,70 @@
{
"common": {
"checkUpdates": "Проверка за актуализации..."
},
"dev": {
"devPanel": "Панел на разработчика",
"devTools": "Инструменти за разработчици",
"forceReload": "Принудително презареждане",
"openStore": "Отворете файла за съхранение",
"refreshMenu": "Освежаване на менюто",
"reload": "Презареждане",
"title": "Разработка"
},
"edit": {
"copy": "Копиране",
"cut": "Изрязване",
"paste": "Поставяне",
"redo": "Повторно",
"selectAll": "Избери всичко",
"speech": "Глас",
"startSpeaking": "Започни четене",
"stopSpeaking": "Спри четенето",
"title": "Редактиране",
"undo": "Отмяна"
},
"file": {
"preferences": "Предпочитания",
"quit": "Изход",
"title": "Файл"
},
"help": {
"about": "За",
"githubRepo": "GitHub хранилище",
"reportIssue": "Докладвай проблем",
"title": "Помощ",
"visitWebsite": "Посети уебсайта"
},
"macOS": {
"about": "За {{appName}}",
"devTools": "Инструменти за разработчици на LobeHub",
"hide": "Скрий {{appName}}",
"hideOthers": "Скрий другите",
"preferences": "Настройки...",
"services": "Услуги",
"unhide": "Покажи всичко"
},
"tray": {
"open": "Отвори {{appName}}",
"quit": "Изход",
"show": "Покажи {{appName}}"
},
"view": {
"forceReload": "Принудително презареждане",
"reload": "Презареждане",
"resetZoom": "Нулиране на мащаба",
"title": "Изглед",
"toggleFullscreen": "Превключи на цял екран",
"zoomIn": "Увеличи",
"zoomOut": "Намали"
},
"window": {
"bringAllToFront": "Премести всички прозорци напред",
"close": "Затвори",
"front": "Премести всички прозорци напред",
"minimize": "Минимизирай",
"title": "Прозорец",
"toggleFullscreen": "Превключи на цял екран",
"zoom": "Мащаб"
}
}
@@ -0,0 +1,32 @@
{
"actions": {
"add": "Hinzufügen",
"back": "Zurück",
"cancel": "Abbrechen",
"close": "Schließen",
"confirm": "Bestätigen",
"delete": "Löschen",
"edit": "Bearbeiten",
"more": "Mehr",
"next": "Weiter",
"ok": "OK",
"previous": "Zurück",
"refresh": "Aktualisieren",
"remove": "Entfernen",
"retry": "Erneut versuchen",
"save": "Speichern",
"search": "Suchen",
"submit": "Einreichen"
},
"app": {
"description": "Ihre KI-Assistenten-Kollaborationsplattform",
"name": "LobeHub"
},
"status": {
"error": "Fehler",
"info": "Information",
"loading": "Lädt",
"success": "Erfolg",
"warning": "Warnung"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "Bestätigen",
"detail": "Eine Chat-Anwendung, die auf einem großen Sprachmodell basiert",
"message": "{{appName}} {{appVersion}}",
"title": "Über"
},
"confirm": {
"cancel": "Abbrechen",
"no": "Nein",
"title": "Bestätigung",
"yes": "Ja"
},
"error": {
"button": "Bestätigen",
"detail": "Während der Operation ist ein Fehler aufgetreten, bitte versuchen Sie es später erneut",
"message": "Ein Fehler ist aufgetreten",
"title": "Fehler"
},
"update": {
"downloadAndInstall": "Herunterladen und installieren",
"downloadComplete": "Download abgeschlossen",
"downloadCompleteMessage": "Das Update-Paket wurde heruntergeladen, möchten Sie es jetzt installieren?",
"installLater": "Später installieren",
"installNow": "Jetzt installieren",
"later": "Später erinnern",
"newVersion": "Neue Version gefunden",
"newVersionAvailable": "Neue Version verfügbar: {{version}}",
"skipThisVersion": "Diese Version überspringen"
}
}
@@ -0,0 +1,70 @@
{
"common": {
"checkUpdates": "Überprüfen Sie auf Updates..."
},
"dev": {
"devPanel": "Entwicklerpanel",
"devTools": "Entwicklerwerkzeuge",
"forceReload": "Erzwinge Neuladen",
"openStore": "Speicherdatei öffnen",
"refreshMenu": "Menü aktualisieren",
"reload": "Neuladen",
"title": "Entwicklung"
},
"edit": {
"copy": "Kopieren",
"cut": "Ausschneiden",
"paste": "Einfügen",
"redo": "Wiederherstellen",
"selectAll": "Alles auswählen",
"speech": "Sprache",
"startSpeaking": "Beginne zu sprechen",
"stopSpeaking": "Stoppe das Sprechen",
"title": "Bearbeiten",
"undo": "Rückgängig"
},
"file": {
"preferences": "Einstellungen",
"quit": "Beenden",
"title": "Datei"
},
"help": {
"about": "Über",
"githubRepo": "GitHub-Repository",
"reportIssue": "Problem melden",
"title": "Hilfe",
"visitWebsite": "Besuche die Website"
},
"macOS": {
"about": "Über {{appName}}",
"devTools": "LobeHub Entwicklerwerkzeuge",
"hide": "{{appName}} ausblenden",
"hideOthers": "Andere ausblenden",
"preferences": "Einstellungen...",
"services": "Dienste",
"unhide": "Alle anzeigen"
},
"tray": {
"open": "{{appName}} öffnen",
"quit": "Beenden",
"show": "{{appName}} anzeigen"
},
"view": {
"forceReload": "Erzwinge Neuladen",
"reload": "Neuladen",
"resetZoom": "Zoom zurücksetzen",
"title": "Ansicht",
"toggleFullscreen": "Vollbild umschalten",
"zoomIn": "Vergrößern",
"zoomOut": "Verkleinern"
},
"window": {
"bringAllToFront": "Alle Fenster in den Vordergrund bringen",
"close": "Schließen",
"front": "Alle Fenster in den Vordergrund bringen",
"minimize": "Minimieren",
"title": "Fenster",
"toggleFullscreen": "Vollbild umschalten",
"zoom": "Zoom"
}
}
@@ -0,0 +1,32 @@
{
"actions": {
"add": "Add",
"back": "Back",
"cancel": "Cancel",
"close": "Close",
"confirm": "Confirm",
"delete": "Delete",
"edit": "Edit",
"more": "More",
"next": "Next",
"ok": "OK",
"previous": "Previous",
"refresh": "Refresh",
"remove": "Remove",
"retry": "Retry",
"save": "Save",
"search": "Search",
"submit": "Submit"
},
"app": {
"description": "Your AI Assistant Collaboration Platform",
"name": "LobeHub"
},
"status": {
"error": "Error",
"info": "Information",
"loading": "Loading",
"success": "Success",
"warning": "Warning"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "OK",
"detail": "A chat application based on a large language model",
"message": "{{appName}} {{appVersion}}",
"title": "About"
},
"confirm": {
"cancel": "Cancel",
"no": "No",
"title": "Confirm",
"yes": "Yes"
},
"error": {
"button": "OK",
"detail": "An error occurred during the operation, please try again later",
"message": "An error occurred",
"title": "Error"
},
"update": {
"downloadAndInstall": "Download and Install",
"downloadComplete": "Download Complete",
"downloadCompleteMessage": "The update package has been downloaded, would you like to install it now?",
"installLater": "Install Later",
"installNow": "Install Now",
"later": "Remind Me Later",
"newVersion": "New Version Found",
"newVersionAvailable": "New version available: {{version}}",
"skipThisVersion": "Skip This Version"
}
}
@@ -0,0 +1,70 @@
{
"common": {
"checkUpdates": "Checking for updates..."
},
"dev": {
"devPanel": "Developer Panel",
"devTools": "Developer Tools",
"forceReload": "Force Reload",
"openStore": "Open Storage File",
"refreshMenu": "Refresh menu",
"reload": "Reload",
"title": "Development"
},
"edit": {
"copy": "Copy",
"cut": "Cut",
"paste": "Paste",
"redo": "Redo",
"selectAll": "Select All",
"speech": "Speech",
"startSpeaking": "Start Speaking",
"stopSpeaking": "Stop Speaking",
"title": "Edit",
"undo": "Undo"
},
"file": {
"preferences": "Preferences",
"quit": "Quit",
"title": "File"
},
"help": {
"about": "About",
"githubRepo": "GitHub Repository",
"reportIssue": "Report Issue",
"title": "Help",
"visitWebsite": "Visit Website"
},
"macOS": {
"about": "About {{appName}}",
"devTools": "LobeHub Developer Tools",
"hide": "Hide {{appName}}",
"hideOthers": "Hide Others",
"preferences": "Preferences...",
"services": "Services",
"unhide": "Show All"
},
"tray": {
"open": "Open {{appName}}",
"quit": "Quit",
"show": "Show {{appName}}"
},
"view": {
"forceReload": "Force Reload",
"reload": "Reload",
"resetZoom": "Reset Zoom",
"title": "View",
"toggleFullscreen": "Toggle Fullscreen",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out"
},
"window": {
"bringAllToFront": "Bring All Windows to Front",
"close": "Close",
"front": "Bring All Windows to Front",
"minimize": "Minimize",
"title": "Window",
"toggleFullscreen": "Toggle Fullscreen",
"zoom": "Zoom"
}
}
@@ -0,0 +1,32 @@
{
"actions": {
"add": "Agregar",
"back": "Volver",
"cancel": "Cancelar",
"close": "Cerrar",
"confirm": "Confirmar",
"delete": "Eliminar",
"edit": "Editar",
"more": "Más",
"next": "Siguiente",
"ok": "Aceptar",
"previous": "Anterior",
"refresh": "Actualizar",
"remove": "Eliminar",
"retry": "Reintentar",
"save": "Guardar",
"search": "Buscar",
"submit": "Enviar"
},
"app": {
"description": "Tu plataforma de colaboración con el asistente de IA",
"name": "LobeHub"
},
"status": {
"error": "Error",
"info": "Información",
"loading": "Cargando",
"success": "Éxito",
"warning": "Advertencia"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "Aceptar",
"detail": "Una aplicación de chat basada en un modelo de lenguaje grande",
"message": "{{appName}} {{appVersion}}",
"title": "Acerca de"
},
"confirm": {
"cancel": "Cancelar",
"no": "No",
"title": "Confirmar",
"yes": "Sí"
},
"error": {
"button": "Aceptar",
"detail": "Se produjo un error durante la operación, por favor intente de nuevo más tarde",
"message": "Se produjo un error",
"title": "Error"
},
"update": {
"downloadAndInstall": "Descargar e instalar",
"downloadComplete": "Descarga completada",
"downloadCompleteMessage": "El paquete de actualización se ha descargado, ¿desea instalarlo ahora?",
"installLater": "Instalar más tarde",
"installNow": "Instalar ahora",
"later": "Recordar más tarde",
"newVersion": "Nueva versión disponible",
"newVersionAvailable": "Nueva versión encontrada: {{version}}",
"skipThisVersion": "Saltar esta versión"
}
}
@@ -0,0 +1,70 @@
{
"common": {
"checkUpdates": "Comprobando actualizaciones..."
},
"dev": {
"devPanel": "Panel de desarrollador",
"devTools": "Herramientas de desarrollador",
"forceReload": "Recargar forzosamente",
"openStore": "Abrir archivo de almacenamiento",
"refreshMenu": "Actualizar menú",
"reload": "Recargar",
"title": "Desarrollo"
},
"edit": {
"copy": "Copiar",
"cut": "Cortar",
"paste": "Pegar",
"redo": "Rehacer",
"selectAll": "Seleccionar todo",
"speech": "Voz",
"startSpeaking": "Comenzar a leer en voz alta",
"stopSpeaking": "Detener lectura en voz alta",
"title": "Editar",
"undo": "Deshacer"
},
"file": {
"preferences": "Preferencias",
"quit": "Salir",
"title": "Archivo"
},
"help": {
"about": "Acerca de",
"githubRepo": "Repositorio de GitHub",
"reportIssue": "Reportar un problema",
"title": "Ayuda",
"visitWebsite": "Visitar el sitio web"
},
"macOS": {
"about": "Acerca de {{appName}}",
"devTools": "Herramientas de desarrollador de LobeHub",
"hide": "Ocultar {{appName}}",
"hideOthers": "Ocultar otros",
"preferences": "Configuración...",
"services": "Servicios",
"unhide": "Mostrar todo"
},
"tray": {
"open": "Abrir {{appName}}",
"quit": "Salir",
"show": "Mostrar {{appName}}"
},
"view": {
"forceReload": "Recargar forzosamente",
"reload": "Recargar",
"resetZoom": "Restablecer zoom",
"title": "Vista",
"toggleFullscreen": "Alternar pantalla completa",
"zoomIn": "Acercar",
"zoomOut": "Alejar"
},
"window": {
"bringAllToFront": "Traer todas las ventanas al frente",
"close": "Cerrar",
"front": "Traer todas las ventanas al frente",
"minimize": "Minimizar",
"title": "Ventana",
"toggleFullscreen": "Alternar pantalla completa",
"zoom": "Zoom"
}
}
@@ -0,0 +1,32 @@
{
"actions": {
"add": "افزودن",
"back": "بازگشت",
"cancel": "لغو",
"close": "بستن",
"confirm": "تأیید",
"delete": "حذف",
"edit": "ویرایش",
"more": "بیشتر",
"next": "مرحله بعد",
"ok": "تأیید",
"previous": "مرحله قبل",
"refresh": "به‌روزرسانی",
"remove": "حذف",
"retry": "تلاش مجدد",
"save": "ذخیره",
"search": "جستجو",
"submit": "ارسال"
},
"app": {
"description": "پلتفرم همکاری دستیار هوش مصنوعی شما",
"name": "LobeHub"
},
"status": {
"error": "خطا",
"info": "اطلاعات",
"loading": "در حال بارگذاری",
"success": "موفق",
"warning": "هشدار"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "تأیید",
"detail": "یک برنامه چت مبتنی بر مدل‌های زبانی بزرگ",
"message": "{{appName}} {{appVersion}}",
"title": "درباره"
},
"confirm": {
"cancel": "لغو",
"no": "خیر",
"title": "تأیید",
"yes": "بله"
},
"error": {
"button": "تأیید",
"detail": "در حین انجام عملیات خطایی رخ داده است، لطفاً بعداً دوباره تلاش کنید",
"message": "خطا رخ داده است",
"title": "خطا"
},
"update": {
"downloadAndInstall": "دانلود و نصب",
"downloadComplete": "دانلود کامل شد",
"downloadCompleteMessage": "بسته به‌روزرسانی دانلود شده است، آیا می‌خواهید بلافاصله نصب کنید؟",
"installLater": "نصب بعداً",
"installNow": "نصب اکنون",
"later": "یادآوری بعداً",
"newVersion": "نسخه جدیدی پیدا شد",
"newVersionAvailable": "نسخه جدید پیدا شد: {{version}}",
"skipThisVersion": "این نسخه را نادیده بگیرید"
}
}
@@ -0,0 +1,70 @@
{
"common": {
"checkUpdates": "بررسی به‌روزرسانی..."
},
"dev": {
"devPanel": "پنل توسعه‌دهنده",
"devTools": "ابزارهای توسعه‌دهنده",
"forceReload": "بارگذاری اجباری",
"openStore": "باز کردن فایل‌های ذخیره شده",
"refreshMenu": "به‌روزرسانی منو",
"reload": "بارگذاری مجدد",
"title": "توسعه"
},
"edit": {
"copy": "کپی",
"cut": "برش",
"paste": "چسباندن",
"redo": "انجام مجدد",
"selectAll": "انتخاب همه",
"speech": "گفتار",
"startSpeaking": "شروع به خواندن",
"stopSpeaking": "متوقف کردن خواندن",
"title": "ویرایش",
"undo": "بازگشت"
},
"file": {
"preferences": "تنظیمات",
"quit": "خروج",
"title": "فایل"
},
"help": {
"about": "درباره",
"githubRepo": "مخزن GitHub",
"reportIssue": "گزارش مشکل",
"title": "کمک",
"visitWebsite": "بازدید از وب‌سایت"
},
"macOS": {
"about": "درباره {{appName}}",
"devTools": "ابزارهای توسعه‌دهنده LobeHub",
"hide": "پنهان کردن {{appName}}",
"hideOthers": "پنهان کردن دیگران",
"preferences": "تنظیمات...",
"services": "خدمات",
"unhide": "نمایش همه"
},
"tray": {
"open": "باز کردن {{appName}}",
"quit": "خروج",
"show": "نمایش {{appName}}"
},
"view": {
"forceReload": "بارگذاری اجباری",
"reload": "بارگذاری مجدد",
"resetZoom": "تنظیم زوم به حالت اولیه",
"title": "نمایش",
"toggleFullscreen": "تغییر به حالت تمام صفحه",
"zoomIn": "بزرگ‌نمایی",
"zoomOut": "کوچک‌نمایی"
},
"window": {
"bringAllToFront": "همه پنجره‌ها را به جلو بیاورید",
"close": "بستن",
"front": "همه پنجره‌ها را به جلو بیاورید",
"minimize": "کوچک کردن",
"title": "پنجره",
"toggleFullscreen": "تغییر به حالت تمام صفحه",
"zoom": "زوم"
}
}
@@ -0,0 +1,32 @@
{
"actions": {
"add": "Ajouter",
"back": "Retour",
"cancel": "Annuler",
"close": "Fermer",
"confirm": "Confirmer",
"delete": "Supprimer",
"edit": "Éditer",
"more": "Plus",
"next": "Suivant",
"ok": "D'accord",
"previous": "Précédent",
"refresh": "Rafraîchir",
"remove": "Retirer",
"retry": "Réessayer",
"save": "Enregistrer",
"search": "Rechercher",
"submit": "Soumettre"
},
"app": {
"description": "Votre plateforme de collaboration avec l'assistant IA",
"name": "LobeHub"
},
"status": {
"error": "Erreur",
"info": "Information",
"loading": "Chargement",
"success": "Succès",
"warning": "Avertissement"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "D'accord",
"detail": "Une application de chat basée sur un grand modèle de langage",
"message": "{{appName}} {{appVersion}}",
"title": "À propos"
},
"confirm": {
"cancel": "Annuler",
"no": "Non",
"title": "Confirmer",
"yes": "Oui"
},
"error": {
"button": "D'accord",
"detail": "Une erreur s'est produite lors de l'opération, veuillez réessayer plus tard",
"message": "Une erreur s'est produite",
"title": "Erreur"
},
"update": {
"downloadAndInstall": "Télécharger et installer",
"downloadComplete": "Téléchargement terminé",
"downloadCompleteMessage": "Le paquet de mise à jour a été téléchargé, souhaitez-vous l'installer maintenant ?",
"installLater": "Installer plus tard",
"installNow": "Installer maintenant",
"later": "Rappeler plus tard",
"newVersion": "Nouvelle version détectée",
"newVersionAvailable": "Nouvelle version disponible : {{version}}",
"skipThisVersion": "Ignorer cette version"
}
}
@@ -0,0 +1,70 @@
{
"common": {
"checkUpdates": "Vérifier les mises à jour..."
},
"dev": {
"devPanel": "Panneau de développement",
"devTools": "Outils de développement",
"forceReload": "Recharger de force",
"openStore": "Ouvrir le fichier de stockage",
"refreshMenu": "Rafraîchir le menu",
"reload": "Recharger",
"title": "Développement"
},
"edit": {
"copy": "Copier",
"cut": "Couper",
"paste": "Coller",
"redo": "Rétablir",
"selectAll": "Tout sélectionner",
"speech": "Voix",
"startSpeaking": "Commencer à lire",
"stopSpeaking": "Arrêter de lire",
"title": "Édition",
"undo": "Annuler"
},
"file": {
"preferences": "Préférences",
"quit": "Quitter",
"title": "Fichier"
},
"help": {
"about": "À propos",
"githubRepo": "Dépôt GitHub",
"reportIssue": "Signaler un problème",
"title": "Aide",
"visitWebsite": "Visiter le site officiel"
},
"macOS": {
"about": "À propos de {{appName}}",
"devTools": "Outils de développement LobeHub",
"hide": "Masquer {{appName}}",
"hideOthers": "Masquer les autres",
"preferences": "Préférences...",
"services": "Services",
"unhide": "Tout afficher"
},
"tray": {
"open": "Ouvrir {{appName}}",
"quit": "Quitter",
"show": "Afficher {{appName}}"
},
"view": {
"forceReload": "Recharger de force",
"reload": "Recharger",
"resetZoom": "Réinitialiser le zoom",
"title": "Affichage",
"toggleFullscreen": "Basculer en plein écran",
"zoomIn": "Zoomer",
"zoomOut": "Dézoomer"
},
"window": {
"bringAllToFront": "Mettre toutes les fenêtres au premier plan",
"close": "Fermer",
"front": "Mettre toutes les fenêtres au premier plan",
"minimize": "Réduire",
"title": "Fenêtre",
"toggleFullscreen": "Basculer en plein écran",
"zoom": "Zoom"
}
}
@@ -0,0 +1,32 @@
{
"actions": {
"add": "Aggiungi",
"back": "Indietro",
"cancel": "Annulla",
"close": "Chiudi",
"confirm": "Conferma",
"delete": "Elimina",
"edit": "Modifica",
"more": "Di più",
"next": "Avanti",
"ok": "OK",
"previous": "Indietro",
"refresh": "Aggiorna",
"remove": "Rimuovi",
"retry": "Riprova",
"save": "Salva",
"search": "Cerca",
"submit": "Invia"
},
"app": {
"description": "La tua piattaforma di collaborazione con assistente AI",
"name": "LobeHub"
},
"status": {
"error": "Errore",
"info": "Informazioni",
"loading": "Caricamento in corso",
"success": "Successo",
"warning": "Avviso"
}
}
@@ -0,0 +1,31 @@
{
"about": {
"button": "Conferma",
"detail": "Un'app di chat basata su un grande modello linguistico",
"message": "{{appName}} {{appVersion}}",
"title": "Informazioni"
},
"confirm": {
"cancel": "Annulla",
"no": "No",
"title": "Conferma",
"yes": "Sì"
},
"error": {
"button": "Conferma",
"detail": "Si è verificato un errore durante l'operazione, riprovare più tardi",
"message": "Si è verificato un errore",
"title": "Errore"
},
"update": {
"downloadAndInstall": "Scarica e installa",
"downloadComplete": "Download completato",
"downloadCompleteMessage": "Il pacchetto di aggiornamento è stato scaricato, vuoi installarlo subito?",
"installLater": "Installa più tardi",
"installNow": "Installa ora",
"later": "Promemoria più tardi",
"newVersion": "Nuova versione disponibile",
"newVersionAvailable": "Nuova versione trovata: {{version}}",
"skipThisVersion": "Salta questa versione"
}
}

Some files were not shown because too many files have changed in this diff Show More