Compare commits

...

1680 Commits

Author SHA1 Message Date
ONLY-yours b8b1ab6616 feat: add loading back 2025-11-17 17:20:03 +08:00
ONLY-yours 3891015a3d fix: test mobile 2025-11-17 16:33:16 +08:00
ONLY-yours 5babb7d826 fix: try to fixed 2025-11-17 16:11:20 +08:00
ONLY-yours a7504b696a test: test the loading error 2025-11-17 15:38:29 +08:00
ONLY-yours 9dc4308942 fix: add router ErrorBoundary 2025-11-17 15:16:37 +08:00
ONLY-yours 082117998d fix: fixed the test error 2025-11-17 11:42:26 +08:00
ONLY-yours 9a74d6c045 fix: fix the reload was loading page problem 2025-11-17 11:26:38 +08:00
ONLY-yours b1a4f24dc9 fix: mobile chat settings go back 2025-11-17 11:19:38 +08:00
ONLY-yours c47551775b fix: delete uesless code 2025-11-17 11:04:24 +08:00
ONLY-yours 2d83300795 fix: delete useless code 2025-11-17 10:51:20 +08:00
ONLY-yours 0915538da8 Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-17 10:35:43 +08:00
renovate[bot] b76e3c85b9 Update all non-major dependencies (#10177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-17 09:56:56 +08:00
lobehubbot 29ce0225b2 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-17 01:49:09 +00:00
semantic-release-bot 06878829c9 🔖 chore(release): v2.0.0-next.69 [skip ci]
## [Version&nbsp;2.0.0-next.69](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.68...v2.0.0-next.69)
<sup>Released on **2025-11-17**</sup>

#### ♻ Code Refactoring

- **misc**: Remove `language_model_settings` and remove isDeprecatedEdition.

<br/>

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

#### Code refactoring

* **misc**: Remove `language_model_settings` and remove isDeprecatedEdition, closes [#10264](https://github.com/lobehub/lobe-chat/issues/10264) ([ae613c7](https://github.com/lobehub/lobe-chat/commit/ae613c7))

</details>

<div align="right">

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

</div>
2025-11-17 01:47:59 +00:00
Arvin Xu ae613c7c35 ♻️ refactor: remove language_model_settings and remove isDeprecatedEdition (#10264) 2025-11-17 09:35:49 +08:00
lobehubbot 8184f9d097 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-16 15:20:51 +00:00
semantic-release-bot 7fac37b983 🔖 chore(release): v2.0.0-next.68 [skip ci]
## [Version&nbsp;2.0.0-next.68](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.67...v2.0.0-next.68)
<sup>Released on **2025-11-16**</sup>

#### 🐛 Bug Fixes

- **misc**: The tool to fail execution on ollama when a message contains b….

<br/>

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

#### What's fixed

* **misc**: The tool to fail execution on ollama when a message contains b…, closes [#10259](https://github.com/lobehub/lobe-chat/issues/10259) ([1ad8080](https://github.com/lobehub/lobe-chat/commit/1ad8080))

</details>

<div align="right">

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

</div>
2025-11-16 15:19:33 +00:00
Arvin Xu d3570879da 🔨 chore: unpin eta (#10260) 2025-11-16 23:07:44 +08:00
Hypo 1ad80809cf 🐛 fix: the tool to fail execution on ollama when a message contains b… (#10259) 2025-11-16 23:06:33 +08:00
lobehubbot 2c97a9e920 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-16 11:59:30 +00:00
semantic-release-bot 246cce28db 🔖 chore(release): v2.0.0-next.67 [skip ci]
## [Version&nbsp;2.0.0-next.67](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.66...v2.0.0-next.67)
<sup>Released on **2025-11-16**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to virtua.

<br/>

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

#### Code refactoring

* **misc**: Refactor to virtua, closes [#10151](https://github.com/lobehub/lobe-chat/issues/10151) ([9ffb689](https://github.com/lobehub/lobe-chat/commit/9ffb689))

</details>

<div align="right">

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

</div>
2025-11-16 11:58:19 +00:00
Arvin Xu 9ffb6891e4 ♻️ refactor: refactor to virtua (#10151)
* refactor to virtua

* try virtua

* 默认滚动到底部

* fix
2025-11-16 19:46:41 +08:00
lobehubbot 766ca942b3 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-16 07:02:41 +00:00
semantic-release-bot 147975ae46 🔖 chore(release): v2.0.0-next.66 [skip ci]
## [Version&nbsp;2.0.0-next.66](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.65...v2.0.0-next.66)
<sup>Released on **2025-11-16**</sup>

####  Features

- **misc**: Support to collapse message.

<br/>

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

#### What's improved

* **misc**: Support to collapse message, closes [#10234](https://github.com/lobehub/lobe-chat/issues/10234) ([4cd6347](https://github.com/lobehub/lobe-chat/commit/4cd6347))

</details>

<div align="right">

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

</div>
2025-11-16 07:01:10 +00:00
renovate[bot] a6c3317192 Update dependency lucide-react to ^0.553.0 (#10250)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 14:48:08 +08:00
Arvin Xu 4cd6347d7e feat: support to collapse message (#10234)
*  feat: add message collapse functionality

- Add collapsed field to MessageMetadata type and schema
- Add isMessageCollapsed selector to check message collapse state
- Add toggleMessageCollapsed action with optimistic update
- Export getDisplayMessageById for internal use
- Collapse state persists to database via metadata field

* 💄 ui: add collapse UI for assistant messages

- Add collapse/expand action icons to action bar
- Add collapsed message style with 200px max height and gradient overlay
- Add collapse/expand translations (zh-CN)
- Integrate with toggleMessageCollapsed store action
- Show appropriate icon based on collapsed state

* support CollapsedMessage

* update

* improve test time

* refactor fixtures

* fix tests

* improve i18n
2025-11-16 14:46:27 +08:00
Shinji-Li cd7d955e3d 🔨 chore: change the market base url to online market.lobehub.com (#10247)
* fix: change the market base url to online market.lobehub.com

* feat: update the market callback layout
2025-11-16 12:14:27 +08:00
renovate[bot] 61901ddb07 Update dependency ollama to ^0.6.3 (#10244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 11:34:45 +08:00
renovate[bot] 77ed938cfb Update dependency @vercel/otel to v2 (#9969)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 11:34:36 +08:00
renovate[bot] 4c3ac3bce7 Update dependency dayjs to >=1.11.19 (#10241)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 11:33:22 +08:00
renovate[bot] a142b3384f Update aws-sdk-js-v3 monorepo to ~3.932.0 (#10119)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 11:31:49 +08:00
renovate[bot] ee80f613df Update dependency nanoid to >=5.1.6 (#10243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 11:24:48 +08:00
lobehubbot 7d05d0270c 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-16 02:12:14 +00:00
semantic-release-bot acd5954f15 🔖 chore(release): v2.0.0-next.65 [skip ci]
## [Version&nbsp;2.0.0-next.65](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.64...v2.0.0-next.65)
<sup>Released on **2025-11-16**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-11-16 02:11:08 +00:00
LobeHub Bot a52c9e5f24 🤖 style: update i18n (#10235) 2025-11-16 09:58:21 +08:00
lobehubbot bcb998d767 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-15 16:51:17 +00:00
semantic-release-bot c6410b29c5 🔖 chore(release): v2.0.0-next.64 [skip ci]
## [Version&nbsp;2.0.0-next.64](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.63...v2.0.0-next.64)
<sup>Released on **2025-11-15**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor package types.

<br/>

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

#### Code refactoring

* **misc**: Refactor package types, closes [#10233](https://github.com/lobehub/lobe-chat/issues/10233) ([9872409](https://github.com/lobehub/lobe-chat/commit/9872409))

</details>

<div align="right">

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

</div>
2025-11-15 16:50:03 +00:00
Arvin Xu 9872409d98 ♻️ refactor: refactor package types (#10233)
* refactor packages types

* remove lite mode
2025-11-16 00:37:55 +08:00
lobehubbot 319a622778 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-15 16:08:24 +00:00
semantic-release-bot 85153f2464 🔖 chore(release): v2.0.0-next.63 [skip ci]
## [Version&nbsp;2.0.0-next.63](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.62...v2.0.0-next.63)
<sup>Released on **2025-11-15**</sup>

####  Features

- **misc**: Show orphaned tool message and support delete tool message.

<br/>

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

#### What's improved

* **misc**: Show orphaned tool message and support delete tool message, closes [#10232](https://github.com/lobehub/lobe-chat/issues/10232) ([38cfd26](https://github.com/lobehub/lobe-chat/commit/38cfd26))

</details>

<div align="right">

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

</div>
2025-11-15 16:07:14 +00:00
Arvin Xu 38cfd266f4 feat: show orphaned tool message and support delete tool message (#10232)
* show  orphaned tool message

* support delete messages

* update i18n

* clean console.log

* improve system role

* fix
2025-11-15 23:55:13 +08:00
ONLY-yours 53fc0642e0 feat: use more simple way to update session hydration 2025-11-15 19:31:05 +08:00
ONLY-yours a8c725abd5 Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-15 19:08:58 +08:00
ONLY-yours b8a7f6e9eb feat: update the useQueryParams throttleMs params 2025-11-15 19:05:17 +08:00
lobehubbot 2c93d9bb1a 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-15 06:46:35 +00:00
semantic-release-bot a2c3b9e375 🔖 chore(release): v2.0.0-next.62 [skip ci]
## [Version&nbsp;2.0.0-next.62](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.61...v2.0.0-next.62)
<sup>Released on **2025-11-15**</sup>

#### 🐛 Bug Fixes

- **next16**: Resolve 'Response body object should not be disturbed or locked' error.

<br/>

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

#### What's fixed

* **next16**: Resolve 'Response body object should not be disturbed or locked' error, closes [#10226](https://github.com/lobehub/lobe-chat/issues/10226) ([caa9c78](https://github.com/lobehub/lobe-chat/commit/caa9c78))

</details>

<div align="right">

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

</div>
2025-11-15 06:45:30 +00:00
Arvin Xu caa9c78623 🐛 fix(next16): resolve 'Response body object should not be disturbed or locked' error (#10226)
- Add prepareRequestForTRPC utility to clone Request objects for tRPC handlers
- Update all tRPC route handlers (lambda, async, desktop, mobile, tools) to use cloned requests
- Update checkAuth middleware to clone requests before passing to handlers
- This fixes the issue where Next.js 16 internal mechanisms disturb the request body stream
- Resolves: https://github.com/vercel/next.js/issues/83453
2025-11-15 14:33:28 +08:00
lobehubbot 2072b56708 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-15 04:11:38 +00:00
semantic-release-bot f95aeb2ca6 🔖 chore(release): v2.0.0-next.61 [skip ci]
## [Version&nbsp;2.0.0-next.61](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.60...v2.0.0-next.61)
<sup>Released on **2025-11-15**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-11-15 04:10:28 +00:00
LobeHub Bot ca7551fb40 🤖 style: update i18n (#10224) 2025-11-15 11:58:40 +08:00
LobeHub Bot 0d6cb06d59 🌐 chore: translate non-English comments to English in database models (#10225) 2025-11-15 11:58:00 +08:00
lobehubbot 23a7c00181 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 16:50:11 +00:00
semantic-release-bot 51dbf94576 🔖 chore(release): v2.0.0-next.60 [skip ci]
## [Version&nbsp;2.0.0-next.60](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.59...v2.0.0-next.60)
<sup>Released on **2025-11-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Reduce threshold.

<br/>

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

#### What's fixed

* **misc**: Reduce threshold, closes [#10222](https://github.com/lobehub/lobe-chat/issues/10222) ([abdfd06](https://github.com/lobehub/lobe-chat/commit/abdfd06))

</details>

<div align="right">

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

</div>
2025-11-14 16:49:01 +00:00
René Wang abdfd064e7 🐛 fix: Reduce threshold (#10222) 2025-11-15 00:37:11 +08:00
ONLY-yours bb594f87e2 fix: fixed the test 2025-11-14 23:44:57 +08:00
ONLY-yours b0ee9b434e fix: fixed the url & new url not path problem 2025-11-14 23:34:31 +08:00
Arvin Xu fe1d05a547 test: fix upload service tests after removing ClientS3 (#10220)
- Removed references to deleted clientS3Storage
- Updated tests to match current server/desktop upload flow
- Fixed XMLHttpRequest mocking for server upload tests
- Updated filename assertions to match UUID generation behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-14 20:14:14 +08:00
lobehubbot 1c15ea5907 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 11:42:55 +00:00
semantic-release-bot 9bb03bcb96 🔖 chore(release): v2.0.0-next.59 [skip ci]
## [Version&nbsp;2.0.0-next.59](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.58...v2.0.0-next.59)
<sup>Released on **2025-11-14**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-11-14 11:41:51 +00:00
LobeHub Bot fc57d2a28c 🤖 style: update i18n (#10205)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-11-14 19:28:45 +08:00
lobehubbot d7ceee2cdb 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 11:19:01 +00:00
semantic-release-bot e033931d4e 🔖 chore(release): v2.0.0-next.58 [skip ci]
## [Version&nbsp;2.0.0-next.58](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.57...v2.0.0-next.58)
<sup>Released on **2025-11-14**</sup>

####  Features

- **misc**: Support DeepSeek Interleaved thinking.

<br/>

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

#### What's improved

* **misc**: Support DeepSeek Interleaved thinking, closes [#10219](https://github.com/lobehub/lobe-chat/issues/10219) ([3736a85](https://github.com/lobehub/lobe-chat/commit/3736a85))

</details>

<div align="right">

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

</div>
2025-11-14 11:17:53 +00:00
Arvin Xu 3736a85473 feat: support DeepSeek Interleaved thinking (#10219)
fix tests
2025-11-14 19:06:28 +08:00
lobehubbot ca348ec0df 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 10:22:47 +00:00
semantic-release-bot d262fdbeaf 🔖 chore(release): v2.0.0-next.57 [skip ci]
## [Version&nbsp;2.0.0-next.57](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.56...v2.0.0-next.57)
<sup>Released on **2025-11-14**</sup>

#### 💄 Styles

- **misc**: Revert background style.

<br/>

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

#### Styles

* **misc**: Revert background style, closes [#10218](https://github.com/lobehub/lobe-chat/issues/10218) ([97b0413](https://github.com/lobehub/lobe-chat/commit/97b0413))

</details>

<div align="right">

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

</div>
2025-11-14 10:21:35 +00:00
Arvin Xu 97b0413020 💄 style: revert background style (#10218)
revert style
2025-11-14 18:09:16 +08:00
ONLY-yours cf2c5a1d37 fix: fixed router link error 2025-11-14 17:15:09 +08:00
ONLY-yours 0511e43a48 fix: fixed usage router error 2025-11-14 17:09:21 +08:00
ONLY-yours 1f128f407f Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-14 16:58:34 +08:00
lobehubbot 52280da8bc 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 08:51:07 +00:00
semantic-release-bot c23d908b3b 🔖 chore(release): v2.0.0-next.56 [skip ci]
## [Version&nbsp;2.0.0-next.56](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.55...v2.0.0-next.56)
<sup>Released on **2025-11-14**</sup>

####  Features

- **misc**: Add folder creation UI and clean up debug code.

<br/>

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

#### What's improved

* **misc**: Add folder creation UI and clean up debug code ([d5ecd0a](https://github.com/lobehub/lobe-chat/commit/d5ecd0a))

</details>

<div align="right">

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

</div>
2025-11-14 08:49:56 +00:00
Rene Wang 85e2572d26 Merge branch 'next' of github.com:lobehub/lobe-chat into feat/folder-manager 2025-11-14 16:37:59 +08:00
lobehubbot 2e8031f865 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 08:31:24 +00:00
semantic-release-bot 9c3ddcc99b 🔖 chore(release): v2.0.0-next.55 [skip ci]
## [Version&nbsp;2.0.0-next.55](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.54...v2.0.0-next.55)
<sup>Released on **2025-11-14**</sup>

####  Features

- **image**: Image model show price.
- **misc**: Create Pages in Knowledge Base.

<br/>

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

#### What's improved

* **image**: Image model show price, closes [#10198](https://github.com/lobehub/lobe-chat/issues/10198) ([b87e0e4](https://github.com/lobehub/lobe-chat/commit/b87e0e4))
* **misc**: Create Pages in Knowledge Base, closes [#9895](https://github.com/lobehub/lobe-chat/issues/9895) ([f46edeb](https://github.com/lobehub/lobe-chat/commit/f46edeb))

</details>

<div align="right">

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

</div>
2025-11-14 08:30:09 +00:00
Rene Wang d5ecd0a17c feat: Add folder creation UI and clean up debug code
- Add "New Folder" option in KnowledgeManager add button dropdown
- Remove debug logging from FileExplorer component
- Add i18n keys for folder management actions (newFolder, newPage, uploadFile, uploadFolder)
- Prepare UI for folder creation functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-14 16:23:17 +08:00
ONLY-yours f258a2e042 fix: fixed the desktop knowledge page router 2025-11-14 16:18:55 +08:00
YuTengjing b87e0e422e feat(image): image model show price (#10198) 2025-11-14 16:10:22 +08:00
ONLY-yours 7996e1c431 Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-14 16:07:47 +08:00
René Wang f46edeb2d1 feat: Create Pages in Knowledge Base (#9895)
* feat: New note entry

* feat: save

* feat: custom note

* feat: save

* feat: editor

* feat: editor

* feat: editor

* lint: Regroup files

* fix: Image border

* feat: editor

* feat: masonry view in chat

* style: column

* 🐛 fix: Fix editor in modal

* fix: Mansory stuck

* feat: New note view

* feat: New note view

* fix: New note draft

* fix: New note draft

* style: New sidebar

* style: Remove icon

* style: Add skeleton

* style: button style

* fix: Lint error

* fix: Preview not updating

* style: Collection style

* fix: Cannot query other data

* style: New header style

* feat: Empty placeholder

* style: Adjust padding

* feat: Upload markdown

* fix: Tab active status

* style: image placeholder

* fix: Cannot delete note

* feat: Emoji picker

* style: Move icon to leading position

* style: Fix input color

* fix: Icon not saved

* style: leading icon

* style: Adjust skelton shape

* feat: Auto save

* feat: Upgrade file

* feat: Knowlwdge home

* feat: Knowlwdge home

* feat: Knowlwdge home

* feat: Knowlwdge home

* feat: Rename files

* fix: Knowledge base not working

* fix: Knowledge base home

* fix: Knowledge base home

* feat: Three dot menu

* fix: New knowledge base modal not working

* feat: Cannot use upload

* fix: documents not aloding

* feat: Route for document

* fix: Test error

* fix: Lint

* fix: Type error

* refac: Rename symbol

* fix: Cannot save icon

* fix: Add missing translations

* feat: Use virtualso for the list

* fix: Hover style

* fix: Cannot open documents

* feat: Bump Editor version

* fix: Editor blur

* feat: Hide preview for selected item

* style: Limit max width

* feat: Auto save hint

* style: New doc list style

* style: New header

* feat: Heade tyle

* style: Adjust padding

* feat: Duplicate document

* fix: Add missing i18n

* fix: Add missing translation

* fix: Test error

* lint: Seperate code

* fix: Style pollution

* feat: Share state

* fix: Word count

* fix: Navigation

* feat: Add heading option

* fix: Add missing translation

* feat: Delete confirm

* feat: Collpased by default

* fix: Editor hot area

* fix: Add missing translation

* style: Adjust file list density

* fix: Remove website for now

* feat: Use masonry by default

* feat: Collapse switch

* fix: Remove useless query

* feat: Remove unused features

* feat: Immeditaely create knowledge base

* feat: Immedately create the document

* feat: Add missing translation

* feat: Open emoji pciker by default

* fix: Emoji picker

* feat: Rename

* feat: Rename

* fix: Emoji picker disappear

* fix: Route flickering

* feat: Refactor document

* fix: Address ts error

* feat: Reduce delay

* feat: Document -> Page

* fix: Add missing translation

* fix: URL

* fix: add missing translation

* fix: editor blurred

* fix: No skelton after successfuly deletion

* fix: Filter

* build: Add test

* fix: Test

* fix: Test coverage drop

---------

Co-authored-by: canisminor1990 <i@canisminor.cc>
2025-11-14 16:05:19 +08:00
ONLY-yours 93dddfc2e5 feat: rollback some changes about layout 2025-11-14 15:58:50 +08:00
ONLY-yours 5e4186559b fix: fix useNav in discover page error problem 2025-11-14 15:42:16 +08:00
ONLY-yours 9bfd9bb4a5 Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-14 15:05:02 +08:00
ONLY-yours 9ca54135b5 feat: fix a lot router problem 2025-11-14 14:45:24 +08:00
lobehubbot 9250263fd7 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 06:27:53 +00:00
semantic-release-bot c782d091dd 🔖 chore(release): v2.0.0-next.54 [skip ci]
## [Version&nbsp;2.0.0-next.54](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.53...v2.0.0-next.54)
<sup>Released on **2025-11-14**</sup>

#### 💄 Styles

- **misc**: Refactor and support move locale file intervention.

<br/>

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

#### Styles

* **misc**: Refactor and support move locale file intervention, closes [#10213](https://github.com/lobehub/lobe-chat/issues/10213) ([63cac81](https://github.com/lobehub/lobe-chat/commit/63cac81))

</details>

<div align="right">

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

</div>
2025-11-14 06:26:44 +00:00
Arvin Xu 63cac811cd 💄 style: refactor and support move locale file intervention (#10213)
refactor and support move locale file
2025-11-14 14:15:25 +08:00
lobehubbot 0eca6f9f4a 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 05:12:53 +00:00
semantic-release-bot d62733adcc 🔖 chore(release): v2.0.0-next.53 [skip ci]
## [Version&nbsp;2.0.0-next.53](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.52...v2.0.0-next.53)
<sup>Released on **2025-11-14**</sup>

####  Features

- **misc**: Add GPT-5.1 models.

#### 💄 Styles

- **misc**: Fix approving render and improve Conversation style.

<br/>

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

#### What's improved

* **misc**: Add GPT-5.1 models, closes [#10206](https://github.com/lobehub/lobe-chat/issues/10206) ([afd3a47](https://github.com/lobehub/lobe-chat/commit/afd3a47))

#### Styles

* **misc**: Fix approving render and improve Conversation style, closes [#10210](https://github.com/lobehub/lobe-chat/issues/10210) ([841b7f1](https://github.com/lobehub/lobe-chat/commit/841b7f1))

</details>

<div align="right">

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

</div>
2025-11-14 05:11:29 +00:00
Arvin Xu 841b7f1c37 💄 style: fix approving render and improve Conversation style (#10210)
fix approving render and improve chat layout style
2025-11-14 12:57:28 +08:00
sxjeru afd3a47e3d feat: Add GPT-5.1 models (#10206) 2025-11-14 12:53:09 +08:00
LobeHub Bot 14dd288d50 🌐 chore: translate non-English comments to English in electron-server-ipc (#10207)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-14 12:52:38 +08:00
lobehubbot 799395d982 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 03:59:54 +00:00
Arvin Xu 6868d78adb test: fix tests (#10209)
fix tests
2025-11-14 11:48:09 +08:00
ONLY-yours f162556607 fix: delete the changelog modal page 2025-11-14 10:24:31 +08:00
Arvin Xu 4388270cf4 📌 chore: pin electron to 38.x (#10204)
Downgrade electron from 39.x to 38.x for stability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-14 10:14:39 +08:00
lobehubbot ac4993a769 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-13 18:55:54 +00:00
semantic-release-bot f1db5e1f11 🔖 chore(release): v2.0.0-next.52 [skip ci]
## [Version&nbsp;2.0.0-next.52](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.51...v2.0.0-next.52)
<sup>Released on **2025-11-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Filter out reasoning fields from messages in ChatCompletion API.

<br/>

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

#### What's fixed

* **misc**: Filter out reasoning fields from messages in ChatCompletion API, closes [#10203](https://github.com/lobehub/lobe-chat/issues/10203) [#10193](https://github.com/lobehub/lobe-chat/issues/10193) ([5f28b2c](https://github.com/lobehub/lobe-chat/commit/5f28b2c))

</details>

<div align="right">

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

</div>
2025-11-13 18:54:38 +00:00
Arvin Xu 5f28b2c59e 🐛 fix: filter out reasoning fields from messages in ChatCompletion API (#10203)
* fix max tokens issue

* 🐛 fix: filter out reasoning fields from messages in ChatCompletion API

Explicitly map only valid ChatCompletionMessageParam fields and exclude reasoning/reasoning_content to prevent JSON unmarshaling errors when conversation history contains reasoning objects.

Fixes #10193

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-14 02:42:36 +08:00
Arvin Xu 428f05ac8a 💄 style: make OpenAI Response API by default (#10202)
* update i18n

* 修正测试

* fix macOS impl

* fix directory params

* refactor the builtin render implement

* remove unused sql

* fix tests
2025-11-14 02:13:39 +08:00
lobehubbot ca2a7d43e9 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-13 15:14:51 +00:00
semantic-release-bot bf2f6daa1b 🔖 chore(release): v2.0.0-next.51 [skip ci]
## [Version&nbsp;2.0.0-next.51](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.50...v2.0.0-next.51)
<sup>Released on **2025-11-13**</sup>

#### 💄 Styles

- **misc**: Update ERNIE-5.0-Thinking-Preview model.

<br/>

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

#### Styles

* **misc**: Update ERNIE-5.0-Thinking-Preview model, closes [#10196](https://github.com/lobehub/lobe-chat/issues/10196) ([89f3eed](https://github.com/lobehub/lobe-chat/commit/89f3eed))

</details>

<div align="right">

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

</div>
2025-11-13 15:13:37 +00:00
sxjeru 89f3eed4c1 💄 style: Update ERNIE-5.0-Thinking-Preview model (#10196)
* feat(wenxin): add model listing and parsing for Wenxin models

- Implemented model retrieval in Wenxin provider with async models function.
- Introduced WenxinModelCard interface to define model structure.
- Updated modelParse utility to include keywords specific to Wenxin models.
- Enhanced model owner detection to recognize Wenxin models.

* feat(wenxin): add reasoning parameters to chat model settings and update payload handling

* feat(wenxin): update checkModel and modelsUrl for improved model access

* feat(wenxin): add search ability and update settings for chat models

* feat(wenxin): refine thinking budget handling in chat completion payload

* feat(wenxin): remove enableReasoning from extendParams in chat model settings
2025-11-13 23:01:55 +08:00
Arvin Xu 39cdb2057e feat: support bash tools in local system (#9676)
* wip for bash system

* refactor

* fix remark issue

* 完成批准实现

* refactor toolIntervention

* refactor toolIntervention

* use user tool config

* show InterventionModeSelector

* finish local file mode

* fix error

* update

* update i18n

* revert

* fix bug
2025-11-13 22:18:05 +08:00
lobehubbot bb33feb0f4 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-13 13:10:31 +00:00
semantic-release-bot 72afed9546 🔖 chore(release): v2.0.0-next.50 [skip ci]
## [Version&nbsp;2.0.0-next.50](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.49...v2.0.0-next.50)
<sup>Released on **2025-11-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix oidc accountId mismatch.

<br/>

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

#### What's fixed

* **misc**: Fix oidc accountId mismatch, closes [#10058](https://github.com/lobehub/lobe-chat/issues/10058) ([0692ba7](https://github.com/lobehub/lobe-chat/commit/0692ba7))

</details>

<div align="right">

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

</div>
2025-11-13 13:09:16 +00:00
Rdmclin2 0692ba7406 🐛 fix: fix oidc accountId mismatch (#10058)
* chore: adjust oidc login and consent page mobile style

* fix: acccount mismatch error

* test: add oidc service test case
2025-11-13 20:55:03 +08:00
ONLY-yours 3292ed83f9 fix: fix mobile router goback fc 2025-11-13 20:24:28 +08:00
ONLY-yours 561a38f788 fix: delete useless code 2025-11-13 20:08:58 +08:00
LobeHub Bot 39d91a86c0 test: add unit tests for validateRedirectHost (#10173)
Added comprehensive unit tests for the validateRedirectHost security function covering:
- Invalid input validation
- Exact host matching
- Localhost environment handling
- Subdomain validation
- Open redirect attack prevention
- Port handling with standard and custom ports
- Edge cases (IPv4, case sensitivity, malformed inputs)
- Real-world deployment scenarios

All 52 test cases pass successfully.
2025-11-13 20:05:50 +08:00
ONLY-yours 71aaf0fac5 chore: update test.ts in TopActions.tsx 2025-11-13 19:11:33 +08:00
ONLY-yours 287601f8ec fix: close the loading in the layout loading 2025-11-13 19:06:37 +08:00
ONLY-yours b36f8781e6 feat: use starTransition to navigate url 2025-11-13 18:02:16 +08:00
ONLY-yours 705450a571 fix: add files back 2025-11-13 17:17:36 +08:00
LobeHub Bot 331af68b73 🌐 chore: translate non-English comments to English in context-engine (#10180)
* 🌐 chore: translate non-English comments to English in context-engine


* 🌐 fix: complete comment translation in MessageContent.ts

- Translated remaining 3 Chinese comments to English
- Ensures all comments in context-engine package are properly translated
- Maintains code functionality while improving readability for international developers

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Arvin Xu <arvinxx@users.noreply.github.com>

* 🧪 test: update error message expectations to English in BaseProcessor tests

Updated test assertions to match English error messages ('Invalid context' and 'Invalid output context') instead of Chinese ones.
2025-11-13 17:15:22 +08:00
ONLY-yours 5272c7373f fix: add files back 2025-11-13 17:14:49 +08:00
ONLY-yours fb24b6f1b7 fix: add nuqs back & useQueryState back in oath 2025-11-13 17:09:10 +08:00
ONLY-yours 2fd65fe8a3 fix: discover find more link error fixed 2025-11-13 17:02:52 +08:00
ONLY-yours 35d5a2c937 chore: add mobile me layout back 2025-11-13 16:59:23 +08:00
ONLY-yours 42f40d2717 feat: change the mobile me layout back 2025-11-13 16:41:53 +08:00
ONLY-yours ef8a644d8c feat: delete all nuqs 2025-11-13 16:25:59 +08:00
lobehubbot 4ea759af29 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-13 07:38:20 +00:00
semantic-release-bot c73e1e2bfc 🔖 chore(release): v2.0.0-next.49 [skip ci]
## [Version&nbsp;2.0.0-next.49](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.48...v2.0.0-next.49)
<sup>Released on **2025-11-13**</sup>

####  Features

- **misc**: Support tool invention.

#### 🐛 Bug Fixes

- **misc**: Update lost i18n files.

<br/>

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

#### What's improved

* **misc**: Support tool invention, closes [#10182](https://github.com/lobehub/lobe-chat/issues/10182) ([4dca708](https://github.com/lobehub/lobe-chat/commit/4dca708))

#### What's fixed

* **misc**: Update lost i18n files, closes [#10179](https://github.com/lobehub/lobe-chat/issues/10179) ([b69c7ff](https://github.com/lobehub/lobe-chat/commit/b69c7ff))

</details>

<div align="right">

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

</div>
2025-11-13 07:36:55 +00:00
ONLY-yours 81c84348bc fix: change the changelog pages render 2025-11-13 15:25:48 +08:00
Shinji-Li b69c7ff83e 🐛 fix: update lost i18n files (#10179)
chore: update i18n
2025-11-13 15:22:32 +08:00
Arvin Xu 4dca708d2c feat: support tool invention (#10182)
* finish intervention backend

* add Intervention

* fix tests

* finish action mode

* 初步完成 reject 逻辑

* 初步完成 reject 逻辑

* wip approve tool calling

* 初步完成 approve 流程

* Update index.ts

* 完成 approve 流程

* fix tests

* fix tests
2025-11-13 15:11:28 +08:00
lobehubbot 9b9df57c59 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-13 06:18:25 +00:00
ONLY-yours 8d7a0467db fix: fix build problem 2025-11-13 14:18:08 +08:00
Arvin Xu 8bc15893b8 📌 chore: pin eta to 4.0.1 to fix ERR_PACKAGE_PATH_NOT_EXPORTED error (#10190)
* 📌 chore: pin eta to 4.0.1 to fix ERR_PACKAGE_PATH_NOT_EXPORTED error

* 🔨 chore: add overrides for bun compatibility
2025-11-13 14:07:25 +08:00
ONLY-yours e9522729c5 fix: fix hydrateFallback problem 2025-11-13 11:49:35 +08:00
ONLY-yours cf01894077 feat: change local params get use ReactRouter Outlet context 2025-11-13 11:03:12 +08:00
Shinji-Li bab0054557 🔨 chore: update market-sdk (#10171)
chore: update market-sdk
2025-11-13 10:13:08 +08:00
Neko 0baacf7301 👷 chore: improve renovate config to support grouping in the same way of npm does (#10176)
chore(ci): improve renovate config to support grouping in the same way of npm does
2025-11-12 22:34:28 +08:00
Neko 0c11d5fcee 🔨 chore(observability-otel): interval of metrics not small enough (#10175)
fix(observability-otel): interval of metrics not small enough
2025-11-12 21:05:26 +08:00
ONLY-yours b5d945b1fd fix: delete some layout tsx & update the ts 2025-11-12 17:16:26 +08:00
ONLY-yours cbee964582 feat: change NextJs Link useRouter useSearchParams change to react-router way 2025-11-12 17:01:31 +08:00
ONLY-yours 87a38ad0c4 feat: change the :slug to react-router loader to get 2025-11-12 16:27:34 +08:00
ONLY-yours f2d4745ad3 Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-12 15:00:36 +08:00
ONLY-yours 0167ac8e28 feat: change all routes to outer routes 2025-11-12 15:00:06 +08:00
ONLY-yours b480227fd0 feat: discover pages layout & pages routers get done 2025-11-12 11:56:20 +08:00
lobehubbot be9678e395 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-12 03:06:36 +00:00
semantic-release-bot 9d6a0a7d99 🔖 chore(release): v2.0.0-next.48 [skip ci]
## [Version&nbsp;2.0.0-next.48](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.47...v2.0.0-next.48)
<sup>Released on **2025-11-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-11-12 03:05:06 +00:00
Rdmclin2 02f05a875a 🔨 chore: add type (#10165)
chore: add type
2025-11-12 10:48:25 +08:00
Arvin Xu ad34554132 👷 build: update client sql (#10169)
update sql
2025-11-12 10:35:01 +08:00
Arvin Xu 656a33359b 👷 build: add intervention tool column (#10163)
* add intervention tool

* update sql
2025-11-12 10:25:03 +08:00
lobehubbot 84c3932b41 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-11 15:28:49 +00:00
ONLY-yours 97ff98cada Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-11 23:17:32 +08:00
ONLY-yours 845d3ef58a feat: change all discover page to the spa 2025-11-11 23:16:57 +08:00
Shinji-Li 8d362cf6b6 feat:support LobeHub MarketPlace (#8841)
* feat: 链接market 做基本的市场接驳功能

* feat: 重写分享助手的页面

* feat: 新增market-auth 的 oidc 方案

* feat: 增加初次agent发布链路和更agent逻辑

* feat: 增加二次添加助手时候的提示

* feat: 重新授权时候唤起新的重新授权而不是自动 token 换取

* feat: 添加market-auth-callback的 layout

* feat: 调整env 中的market 引用

* fix: 解决url 双/导致的路径请求问题

* fix: fix build error

* feat: 更新sitemap 的生成逻辑

* feat: 更新pglite的session meta 定义,增加 marketIdentifier

* feat: 增加个人信息存储的逻辑 & 整理发布 agent 时候按钮的整体逻辑

* fix: delete 0030

* feat: add search myown in discover

* feat: clean cthe code & refactor agents showpannel

* feat: support assistant detail pages have unpublish & achiave hint

* feat: change text render type

* feat: add submit mode style fixed

* fix: fixed migrations

* feat: update agent publish version modal

* feat: update market publish button

* feat: update exmaple &summary show case

* feat: add token show in publish modal

* feat: add verison show tags antd version? params search

* feat: add desktop market auth request way

* feat: delete market-oidc second path,change all to base url

* feat: change sdk & api into url const & change market api into servers

* feat: change all api into /market server path

* feat: change the migrations insert position

* feat: support assistant origin checkout feature

* feat: change the item show place

* feat: add market source switch components

* feat: add 'force-dynamic' in discord/detail page

* feat: change the describe name

* feat: styles & locals add

* feat: add locals

* feat: fixed market update locals

* feat: update market-oidc layout

* feat: delete some types

* feat: support leacgcy params change

* feat: change the oidc url

* feat: agent detial page should have status show page

* feat: add db migrations

* test: update test

* feat: delete database change & update i18n

* fix: rollback mirgration

* fix: change mirgration

* fix: back snapshot

* Update print statement from 'Hello' to 'Goodbye'
2025-11-11 23:16:19 +08:00
Shinji-Li a15eda7fbf 🔨 chore: add market_identifier into agents table schema (#10164)
chore: add market_identifier into agents table schema
2025-11-11 22:37:47 +08:00
YuTengjing 4f7bc5acd2 🐛 fix: add SSRF protection (#10152) 2025-11-11 19:39:36 +08:00
lobehubbot 8219124a10 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-11 11:16:46 +00:00
semantic-release-bot 6ce223ed11 🔖 chore(release): v2.0.0-next.47 [skip ci]
## [Version&nbsp;2.0.0-next.47](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.46...v2.0.0-next.47)
<sup>Released on **2025-11-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix mcp server return image error.

<br/>

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

#### What's fixed

* **misc**: Fix mcp server return image error, closes [#10113](https://github.com/lobehub/lobe-chat/issues/10113) ([e5640d4](https://github.com/lobehub/lobe-chat/commit/e5640d4))

</details>

<div align="right">

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

</div>
2025-11-11 11:15:31 +00:00
Arvin Xu e5640d499a 🐛 fix: fix mcp server return image error (#10113)
* support upload image

* support upload image in mcp

* fix tests

* update

* fix

* improve tests

* fix tests

* Update route.ts
2025-11-11 19:02:54 +08:00
ONLY-yours 906917362f feat: /chat delete pages & layouts dir 2025-11-11 17:45:12 +08:00
LobeHub Bot b63be1c90a test: add unit tests for route variants (#10159)
 test: add unit tests for route variants serialization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-11 17:35:56 +08:00
ONLY-yours c69049d6da fix: refactor the memory router to browser router 2025-11-11 16:01:32 +08:00
LobeHub Bot e70a703a7e 🌐 chore: translate non-English comments to English in packages/types (#10158)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-11 13:15:34 +08:00
lobehubbot 522a3ec6fa 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-11 01:56:09 +00:00
semantic-release-bot e682b1a10d 🔖 chore(release): v2.0.0-next.46 [skip ci]
## [Version&nbsp;2.0.0-next.46](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.45...v2.0.0-next.46)
<sup>Released on **2025-11-11**</sup>

#### ♻ Code Refactoring

- **misc**: Fix thread display.

<br/>

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

#### Code refactoring

* **misc**: Fix thread display, closes [#10153](https://github.com/lobehub/lobe-chat/issues/10153) ([8fda83e](https://github.com/lobehub/lobe-chat/commit/8fda83e))

</details>

<div align="right">

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

</div>
2025-11-11 01:54:55 +00:00
LobeHub Bot 4c5cf41be3 test: add unit tests for ContentChunk module (#10145)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-11 09:43:24 +08:00
Arvin Xu 8fda83ec55 ♻️ refactor: fix thread display (#10153)
* refactor thread

* fix style

* improve

* refactor to improve rerender
2025-11-11 09:41:02 +08:00
lobehubbot cee154fc73 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-10 17:23:33 +00:00
semantic-release-bot 18eaa649b5 🔖 chore(release): v2.0.0-next.45 [skip ci]
## [Version&nbsp;2.0.0-next.45](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.44...v2.0.0-next.45)
<sup>Released on **2025-11-10**</sup>

#### ♻ Code Refactoring

- **misc**: Edge to node runtime.

<br/>

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

#### Code refactoring

* **misc**: Edge to node runtime, closes [#10149](https://github.com/lobehub/lobe-chat/issues/10149) ([2f4c25d](https://github.com/lobehub/lobe-chat/commit/2f4c25d))

</details>

<div align="right">

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

</div>
2025-11-10 17:22:24 +00:00
YuTengjing 2f4c25d826 ♻️ refactor: edge to node runtime (#10149) 2025-11-10 23:44:10 +08:00
lobehubbot 29b1eb2521 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-10 12:05:59 +00:00
semantic-release-bot 037703c8f0 🔖 chore(release): v2.0.0-next.44 [skip ci]
## [Version&nbsp;2.0.0-next.44](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.43...v2.0.0-next.44)
<sup>Released on **2025-11-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix reasoning issue with claude and Response API thinking.

<br/>

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

#### What's fixed

* **misc**: Fix reasoning issue with claude and Response API thinking, closes [#10147](https://github.com/lobehub/lobe-chat/issues/10147) ([cf6bd53](https://github.com/lobehub/lobe-chat/commit/cf6bd53))

</details>

<div align="right">

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

</div>
2025-11-10 12:04:46 +00:00
Arvin Xu cf6bd53141 🐛 fix: fix reasoning issue with claude and Response API thinking (#10147)
* add parse testing

* fix claude thinking issue

* fix gpt thinking

* fix mobile router

* Update src/services/message/index.ts

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

* fix tests

* fix tests and portal

* fix tests
2025-11-10 19:52:44 +08:00
LobeHub Bot 88e376272c 🌐 chore: translate non-English comments to English in packages/utils and src/services (#10143)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-10 11:34:19 +08:00
lobehubbot 84b039c4f2 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-09 11:51:23 +00:00
semantic-release-bot f178777c8d 🔖 chore(release): v2.0.0-next.43 [skip ci]
## [Version&nbsp;2.0.0-next.43](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.42...v2.0.0-next.43)
<sup>Released on **2025-11-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Abnormal animation of tokens.

<br/>

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

#### What's fixed

* **misc**: Abnormal animation of tokens, closes [#10106](https://github.com/lobehub/lobe-chat/issues/10106) ([129df7b](https://github.com/lobehub/lobe-chat/commit/129df7b))

</details>

<div align="right">

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

</div>
2025-11-09 11:50:13 +00:00
sxjeru 129df7b888 🐛 fix: Abnormal animation of tokens (#10106)
*  feat(TokenDetail): add toggle for short/long format display of token values

*  feat(TokenDetail): enhance token display format persistence and toggle functionality

*  feat(TokenDetail): adjust popover trigger behavior for mobile and desktop

* replace localStorage with global store for token display format management

* add animation duration for token value display

*  feat: 强制重新挂载以防止在切换 token/credit 时出现不必要的动画
2025-11-09 19:38:05 +08:00
lobehubbot 190b28244e 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-09 11:23:31 +00:00
semantic-release-bot 5db5cf582d 🔖 chore(release): v2.0.0-next.42 [skip ci]
## [Version&nbsp;2.0.0-next.42](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.41...v2.0.0-next.42)
<sup>Released on **2025-11-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix missing messages when finish runtime.

<br/>

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

#### What's fixed

* **misc**: Fix missing messages when finish runtime, closes [#10138](https://github.com/lobehub/lobe-chat/issues/10138) ([b94d477](https://github.com/lobehub/lobe-chat/commit/b94d477))

</details>

<div align="right">

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

</div>
2025-11-09 11:22:13 +00:00
Arvin Xu b94d477f01 🐛 fix: fix missing messages when finish runtime (#10138)
fix missing message when finish render
2025-11-09 19:10:25 +08:00
LobeHub Bot 5c817bc304 test: add unit tests for trace utilities (#10136)
- Added comprehensive unit tests for packages/utils/src/trace.ts
- Tests cover getTracePayload, getTraceId, and createTraceHeader functions
- Includes edge cases, Unicode handling, and round-trip encoding/decoding
- All 23 test cases pass successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-09 15:21:35 +08:00
Arvin Xu b3cea58514 test(database): achieve 100% coverage for message model (#10137)
*  test(database): fix all 3 skipped tests and improve coverage to 98.6%

- Fix test: create message with file chunks and RAG query ID
  - Add proper FK setup (message -> query -> message with chunks)
  - Fix similarity precision (database stores 5 decimals)

- Fix test: handle multiple message queries for same message
  - Update test to accept any of the queries (no ordering guarantee)
  - Add documentation about messageQueries table lacking sort field

- Fix test: heatmap 19:00 time boundary issue
  - Use local time at noon to avoid timezone edge cases
  - Use explicit date strings to ensure correct date grouping

Test results:
- All 105 tests passing (no skipped tests!)
- Statement coverage: 98.6% (569/577 lines)
- Branch coverage: 91.0% (131/144 branches)
- Function coverage: 100% (34/34 functions)

* fix tests

*  test(database): achieve 100% coverage for message model

- Add edge case tests for INBOX_SESSION_ID, empty fileType, null similarity, groupId, and plugin state
- Fix similarity handling logic to properly convert null to undefined
- Add countWords tests with startDate/endDate filters
2025-11-09 15:06:08 +08:00
LobeHub Bot 2b74d0be05 🌐 chore: translate non-English comments to English in packages/utils (#10133)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-09 15:00:15 +08:00
lobehubbot 16a9c8b920 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-09 02:16:51 +00:00
semantic-release-bot e183eacf36 🔖 chore(release): v2.0.0-next.41 [skip ci]
## [Version&nbsp;2.0.0-next.41](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.40...v2.0.0-next.41)
<sup>Released on **2025-11-09**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-11-09 02:15:42 +00:00
LobeHub Bot 766772eaeb 🤖 style: update i18n (#10116)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-11-09 10:04:06 +08:00
Arvin Xu 00bac7e9fd test(database): split message.test.ts into modular test files (#10114)
*  test(database): add comprehensive test coverage for message query edge cases

Added critical test coverage for null parameter scenarios that were previously untested, preventing potential bugs similar to the deleteMessagesBySession issue.

**Test Coverage Added:**

1. **query() method with null parameters:**
   -  Query messages in session with null topicId (only non-topic messages)
   -  Query messages in session with null groupId (only non-group messages)
   -  Query inbox messages with null topicId when no sessionId specified
   -  Query messages with combined sessionId and topicId filters

2. **queryBySessionId() method:**
   -  Query inbox messages when sessionId is null
   -  Query inbox messages when sessionId is undefined

3. **deleteMessagesBySession() method:**
   -  Delete messages with specific groupId in session
   -  Delete messages with combined topicId and groupId filters

**Why This Matters:**

These edge cases were completely untested, creating blind spots where bugs could hide. The recent deleteMessagesBySession bug (which caused data loss) would have been caught if we had these tests. These tests verify that:

- Passing `null` explicitly filters for null values (e.g., messages without topics)
- Not passing a parameter defaults to null filtering (inbox messages)
- Parameter combinations work correctly without unexpected interactions

**Total New Tests:** 8 test cases covering critical edge cases

* update

* refactor messages tests

* 🔧 fix: use unique userIds in test files to prevent concurrent test conflicts

* ♻️ refactor(database): move conditional query logic from Model to Service layer

- Simplify MessageModel.update() to only perform update operation
- Simplify MessageModel.updatePluginState() to only perform update operation
- Remove options parameter and conditional message query logic from Model layer
- Service layer now handles all conditional query logic via queryWithSuccess()
- Update return types to use proper TypeScript types (UIChatMessage[])
- Remove 3 tests that tested Model layer business logic (now in Service layer)

This separates concerns properly:
- Model layer: pure database operations
- Service layer: business logic and conditional queries
2025-11-09 01:18:57 +08:00
Arvin Xu 508b34a5c8 test(database): add comprehensive test coverage for message query edge cases (#10111)
*  test(database): add comprehensive test coverage for message query edge cases

Added critical test coverage for null parameter scenarios that were previously untested, preventing potential bugs similar to the deleteMessagesBySession issue.

**Test Coverage Added:**

1. **query() method with null parameters:**
   -  Query messages in session with null topicId (only non-topic messages)
   -  Query messages in session with null groupId (only non-group messages)
   -  Query inbox messages with null topicId when no sessionId specified
   -  Query messages with combined sessionId and topicId filters

2. **queryBySessionId() method:**
   -  Query inbox messages when sessionId is null
   -  Query inbox messages when sessionId is undefined

3. **deleteMessagesBySession() method:**
   -  Delete messages with specific groupId in session
   -  Delete messages with combined topicId and groupId filters

**Why This Matters:**

These edge cases were completely untested, creating blind spots where bugs could hide. The recent deleteMessagesBySession bug (which caused data loss) would have been caught if we had these tests. These tests verify that:

- Passing `null` explicitly filters for null values (e.g., messages without topics)
- Not passing a parameter defaults to null filtering (inbox messages)
- Parameter combinations work correctly without unexpected interactions

**Total New Tests:** 8 test cases covering critical edge cases
2025-11-09 00:32:34 +08:00
lobehubbot dcea52bb2e 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-08 15:51:44 +00:00
semantic-release-bot c62092f63a 🔖 chore(release): v2.0.0-next.40 [skip ci]
## [Version&nbsp;2.0.0-next.40](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.39...v2.0.0-next.40)
<sup>Released on **2025-11-08**</sup>

#### 🐛 Bug Fixes

- **database**: Fix deleteMessagesBySession incorrectly deleting all messages.

<br/>

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

#### What's fixed

* **database**: Fix deleteMessagesBySession incorrectly deleting all messages, closes [#10110](https://github.com/lobehub/lobe-chat/issues/10110) ([1d7f67d](https://github.com/lobehub/lobe-chat/commit/1d7f67d))

</details>

<div align="right">

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

</div>
2025-11-08 15:50:43 +00:00
Arvin Xu 1d7f67da56 🐛 fix(database): fix deleteMessagesBySession incorrectly deleting all messages (#10110) 2025-11-08 23:40:02 +08:00
lobehubbot c48956e715 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-08 10:27:37 +00:00
semantic-release-bot 07578fe163 🔖 chore(release): v2.0.0-next.39 [skip ci]
## [Version&nbsp;2.0.0-next.39](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.38...v2.0.0-next.39)
<sup>Released on **2025-11-08**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-11-08 10:26:19 +00:00
Neko 9f762e12be 👷 build(observability-otel): support to trace and meter for tRPC (#10086)
feat(observability-otel): support to trace and meter for tRPC
2025-11-08 18:14:53 +08:00
Arvin Xu 2ae4aeb58d ♻️ refactor: refactor mcp context use and support continueGeneration (#10096)
* refactor plugin actions

* refactor mcp invoke

* refactor MCPType display

* support Continue Generate

* support continueGeneration message

* fix tests

* fix tests

* fix parentId issue

* fix duration is NaN

* improve mcp render

* 🐛 fix(context-engine): preserve reasoning field in MessageCleanupProcessor

The MessageCleanupProcessor was removing the reasoning field from assistant messages during cleanup. This fix ensures that reasoning field is preserved along with other necessary fields like tool_calls.

Changes:
- Added reasoning field preservation in MessageCleanup.ts
- Added test case to verify reasoning field is correctly preserved

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix maxSteps

*  test: update test expectation for reasoning field preservation

Updated the test to expect the reasoning field to be preserved in the output, which is now the correct behavior after fixing MessageCleanupProcessor.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-08 17:59:50 +08:00
ONLY-yours 4f7356ffab feat: change AppRouter to Desktop Router & mobile Router to dynamic import 2025-11-08 17:52:05 +08:00
LobeHub Bot 17efa0bd52 test: add unit tests for network proxy module (#10104)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-08 15:08:11 +08:00
lobehubbot dc08f10268 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-08 06:25:05 +00:00
Rylan Cai 0851028205 💄 Style: RFC-113 Provider Model Usage Statistics (#8453)
* 💄 style: migrate panel UI

* 🌐 i18n: add i18n slots

*  lint: fix

* 🌐 i18n: add translations

*  test: add usage tests

* 📝 docs: update annotations

* 🐛 fix: always enable

* 🐛 fix: dayjs init error

* 🐛 fix: no attr len

* 🐛 fix: slice err
2025-11-08 14:13:21 +08:00
ONLY-yours d20c82c115 fix: change the router judge by servers 2025-11-08 11:59:00 +08:00
lobehubbot d600a476f0 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-08 03:40:34 +00:00
semantic-release-bot 92a62e70a9 🔖 chore(release): v2.0.0-next.38 [skip ci]
## [Version&nbsp;2.0.0-next.38](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.37...v2.0.0-next.38)
<sup>Released on **2025-11-08**</sup>

#### 🐛 Bug Fixes

- **TokenUsage**: Prevent animation when toggling between token and credit display.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's fixed

* **TokenUsage**: Prevent animation when toggling between token and credit display, closes [#10098](https://github.com/lobehub/lobe-chat/issues/10098) ([f20a910](https://github.com/lobehub/lobe-chat/commit/f20a910))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-11-08 03:39:22 +00:00
LobeHub Bot deb6b5e5a0 🤖 style: update i18n (#10100) 2025-11-08 11:27:16 +08:00
LobeHub Bot bd4ee89a43 🌐 chore: translate non-English comments to English in packages/web-crawler (#10101) 2025-11-08 11:26:33 +08:00
Arvin Xu f20a9108ed 🐛 fix(TokenUsage): prevent animation when toggling between token and credit display (#10098) 2025-11-08 11:24:38 +08:00
lobehubbot e56e50b2d6 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-07 18:31:32 +00:00
semantic-release-bot 48b2ec92a1 🔖 chore(release): v2.0.0-next.37 [skip ci]
## [Version&nbsp;2.0.0-next.37](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.36...v2.0.0-next.37)
<sup>Released on **2025-11-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Don't include runtimeProvider in JWT for non-image operations.

<br/>

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

#### What's fixed

* **misc**: Don't include runtimeProvider in JWT for non-image operations, closes [#9959](https://github.com/lobehub/lobe-chat/issues/9959) [#9569](https://github.com/lobehub/lobe-chat/issues/9569) ([b8f25de](https://github.com/lobehub/lobe-chat/commit/b8f25de))

</details>

<div align="right">

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

</div>
2025-11-07 18:30:16 +00:00
XYenon b8f25dec30 🐛 fix: don't include runtimeProvider in JWT for non-image operations (#9959)
The lambdaClient was hardcoding provider='openai' and including it in the JWT
for ALL operations (knowledge base, chat, etc.). This caused the user's JWT
runtimeProvider to override the server's DEFAULT_FILES_CONFIG embedding provider,
resulting in InvalidProviderAPIKey errors.

Root cause:
- lambdaClient headers() set provider=ModelProvider.OpenAI by default
- This was passed to createHeaderWithAuth() for all operations
- createPayloadWithKeyVaults() added runtimeProvider='openai' to JWT
- Server's embedding operations received this JWT
- initModelRuntimeWithUserPayload() used JWT's runtimeProvider instead of server config

Solution:
- Only include provider in JWT for image operations (where user can select provider)
- For other operations (knowledge base, chat), don't pass provider
- Let server use its own DEFAULT_FILES_CONFIG for embedding operations

This fixes #9569 where users with DEFAULT_FILES_CONFIG=embedding_model=ollama/...
were getting InvalidProviderAPIKey errors because JWT was forcing provider='openai'.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2025-11-08 02:18:25 +08:00
ONLY-yours d617a6cd97 fix: slove ts problem 2025-11-07 23:34:43 +08:00
ONLY-yours 408391eeb6 fix: slove the router back 2025-11-07 23:14:47 +08:00
ONLY-yours 4a2e671f55 fix: fix the test 2025-11-07 22:53:49 +08:00
ONLY-yours 695a261df1 Merge remote-tracking branch 'origin/next' into refactor/changeAllToSpa 2025-11-07 22:35:37 +08:00
ONLY-yours 39b723eff4 feat: fix mobile agent settings page not work problem 2025-11-07 22:24:03 +08:00
ONLY-yours 68937d842c fix: delete useless code 2025-11-07 22:16:17 +08:00
ONLY-yours b66bc66260 feat: link replace to react-router-dom 2025-11-07 22:06:18 +08:00
ONLY-yours 4d06279abd feat: change some nextjs router to react-router-dom use 2025-11-07 21:56:03 +08:00
ONLY-yours 1a8d33fbf4 fix: change the goback & knowledge/base url 2025-11-07 21:22:56 +08:00
ONLY-yours 2c086373cc feat: use loading to dynamic loading 2025-11-07 21:09:52 +08:00
LobeHub Bot 6eb6b9010b test: add unit tests for ApiKeyModel (#10091)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-07 20:36:06 +08:00
ONLY-yours c7d49258f8 feat: change /settings labs image profile changelog to spa mode 2025-11-07 20:34:06 +08:00
ONLY-yours 2280fd6ff9 feat: disable / to /chat rewrite 2025-11-07 18:02:55 +08:00
ONLY-yours 8eb901c401 feat: change the root path to react-router-dom to render spa 2025-11-07 18:01:56 +08:00
lobehubbot 185f04e060 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-07 08:56:44 +00:00
semantic-release-bot 235a41ca54 🔖 chore(release): v2.0.0-next.36 [skip ci]
## [Version&nbsp;2.0.0-next.36](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.35...v2.0.0-next.36)
<sup>Released on **2025-11-07**</sup>

####  Features

- **misc**: Refactor to use agent runtime as the generation core and support branch mode.

<br/>

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

#### What's improved

* **misc**: Refactor to use agent runtime as the generation core and support branch mode, closes [#10080](https://github.com/lobehub/lobe-chat/issues/10080) ([b95e741](https://github.com/lobehub/lobe-chat/commit/b95e741))

</details>

<div align="right">

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

</div>
2025-11-07 08:55:27 +00:00
Arvin Xu b95e741717 feat: refactor to use agent runtime as the generation core and support branch mode (#10080)
* refactor

* refactor

* refactor message group

* wip

# Conflicts:
#	src/store/chat/slices/aiChat/actions/generateAIChatV2.ts

* refactor

* refactor agent mode

* fix style

* refactor agent executors

* finish the refactor

* remove gpt-tokenizer

* add metadata api

* add fix

* support branch

* fix branch render data

* fix send issue

* refactor style

* refactor style

* refactor tests

* refactor chatStore

* refactor from model to model

* fix tests

* refactor regenerate mode

* update style

* fix lint

* refactor

* refactor

* refactor

* fix delete

* refactor thread mode

* fix basic experience

* fix

* fix tests

* fix manual add

* fix tests

* fix group
2025-11-07 16:44:03 +08:00
LobeHub Bot c3c4319625 🌐 chore: translate non-English comments to English in file services (#10089)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-07 14:15:08 +08:00
lobehubbot 29974373f5 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-07 04:57:37 +00:00
semantic-release-bot 729dbe2a0f 🔖 chore(release): v2.0.0-next.35 [skip ci]
## [Version&nbsp;2.0.0-next.35](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.34...v2.0.0-next.35)
<sup>Released on **2025-11-07**</sup>

#### ♻ Code Refactoring

- **misc**: Use react-router-dom change /chat page to spa mode.

<br/>

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

#### Code refactoring

* **misc**: Use react-router-dom change /chat page to spa mode, closes [#10077](https://github.com/lobehub/lobe-chat/issues/10077) ([9154606](https://github.com/lobehub/lobe-chat/commit/9154606))

</details>

<div align="right">

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

</div>
2025-11-07 04:56:25 +00:00
Shinji-Li 9154606285 ♻️ refactor: use react-router-dom change /chat page to spa mode (#10077)
* feat: base change chat to spa

* feat: add /settings page layout

* feat: change workspace to components dir

* fix: restore the lamdba change
2025-11-07 12:45:26 +08:00
lobehubbot 3961a648ca 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-07 03:28:22 +00:00
semantic-release-bot 553d13c9f8 🔖 chore(release): v2.0.0-next.34 [skip ci]
## [Version&nbsp;2.0.0-next.34](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.33...v2.0.0-next.34)
<sup>Released on **2025-11-07**</sup>

#### 💄 Styles

- **misc**: Add sorting functionality for disabled models and model providers with tooltip support.

<br/>

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

#### Styles

* **misc**: Add sorting functionality for disabled models and model providers with tooltip support, closes [#10000](https://github.com/lobehub/lobe-chat/issues/10000) ([68e98b1](https://github.com/lobehub/lobe-chat/commit/68e98b1))

</details>

<div align="right">

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

</div>
2025-11-07 03:27:10 +00:00
bbbugg 68e98b1af4 💄 style: add sorting functionality for disabled models and model providers with tooltip support (#10000)
*  feat: add sorting functionality for disabled models and model providers with tooltip support

*  feat: persist sort type in localStorage for model providers and disabled models

*  feat: add dropdown menu for sorting models and providers with ascending/descending options

*  feat: add sorting options for models by release date with ascending/descending functionality

*  refactor: replace useUserStore with useGlobalStore for disabled models sorting

*  refactor: streamline sort type management in DisabledModels and List components

*  refactor: update sort type management in DisabledModels and List components to use useCallback
2025-11-07 11:15:48 +08:00
LobeHub Bot 23ed51887f test: add unit tests for MCP installation checkers (#10078)
Added comprehensive unit tests for PythonInstallationChecker, NpmInstallationChecker, and ManualInstallationChecker classes covering validation, happy paths, edge cases, error handling, and fallback mechanisms.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-06 17:11:24 +08:00
lobehubbot d394743d4d 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-06 05:53:42 +00:00
semantic-release-bot 65d87b4571 🔖 chore(release): v2.0.0-next.33 [skip ci]
## [Version&nbsp;2.0.0-next.33](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.32...v2.0.0-next.33)
<sup>Released on **2025-11-06**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor message create name.

#### 🐛 Bug Fixes

- **misc**: Model name display in the assistant panel disappears.

<br/>

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

#### Code refactoring

* **misc**: Refactor message create name, closes [#10074](https://github.com/lobehub/lobe-chat/issues/10074) ([08ec29f](https://github.com/lobehub/lobe-chat/commit/08ec29f))

#### What's fixed

* **misc**: Model name display in the assistant panel disappears, closes [#9830](https://github.com/lobehub/lobe-chat/issues/9830) ([54f4e18](https://github.com/lobehub/lobe-chat/commit/54f4e18))

</details>

<div align="right">

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

</div>
2025-11-06 05:52:12 +00:00
Arvin Xu 08ec29f3a2 ♻️ refactor: refactor message create name (#10074)
refactor name
2025-11-06 13:41:01 +08:00
sxjeru 54f4e18c03 🐛 fix: model name display in the assistant panel disappears (#9830)
♻️ refactor: update session model visibility logic and clean up unused imports
2025-11-06 13:40:29 +08:00
XYenon 7eb78c43e6 👷 build: add INTERNAL_APP_URL for server-to-server calls (#9960)
*  feat: add INTERNAL_APP_URL for server-to-server calls

Add INTERNAL_APP_URL environment variable to bypass CDN/proxy for internal operations like embedding and file chunking. Falls back to APP_URL if not set.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* 📝 docs: add INTERNAL_APP_URL documentation

Add documentation for INTERNAL_APP_URL environment variable in:
- docker-compose .env.example
- Docker Compose deployment guide (English and Chinese)

Explains how to bypass CDN/proxy for server-to-server operations.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

*  test: add tests for INTERNAL_APP_URL feature

Add comprehensive test coverage for INTERNAL_APP_URL:
- Test fallback behavior to APP_URL when INTERNAL_APP_URL is not set
- Test explicit INTERNAL_APP_URL configuration
- Test localhost bypass for CDN/proxy
- Test createAsyncServerClient using INTERNAL_APP_URL
- Test authentication headers in async calls

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

---------

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2025-11-06 13:28:54 +08:00
renovate[bot] 46ccddcd24 Update dependency electron to v39 (#9971)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-06 13:28:24 +08:00
LobeHub Bot 11aa0ecad5 🌐 chore: translate non-English comments to English in packages/const (#10073)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-06 10:46:27 +08:00
Arvin Xu 0e2bad0a23 🔨 chore: add conversation-flow module (#10052)
* wip

* refactor

* snapshot

* fix input

* fix assistant-tools calling case

* fix assistant-tools calling case

* fix

* fix compare-mode

* fix basic-branch-mode

* refactor branch test case

* refactor branch test case

* implement branch parse

* improve compare

* improve compare

* improve compare

* refactor

* refactor the transformer

* clean tests

* add test workflow

* update

* fix issue
2025-11-05 22:24:51 +08:00
lobehubbot 4153f182fe 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-05 14:03:06 +00:00
semantic-release-bot a48841a368 🔖 chore(release): v2.0.0-next.32 [skip ci]
## [Version&nbsp;2.0.0-next.32](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.31...v2.0.0-next.32)
<sup>Released on **2025-11-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Should install new version after quit this instance.

<br/>

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

#### What's fixed

* **misc**: Should install new version after quit this instance, closes [#10064](https://github.com/lobehub/lobe-chat/issues/10064) ([9ab77b2](https://github.com/lobehub/lobe-chat/commit/9ab77b2))

</details>

<div align="right">

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

</div>
2025-11-05 14:01:51 +00:00
Shinji-Li 9ab77b2ea7 🐛 fix: should install new version after quit this instance (#10064)
fix: should install new version after quit this instance
2025-11-05 21:49:27 +08:00
LobeHub Bot a91f90340e test: add unit tests for S3 module (#10059)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 21:28:48 +08:00
lobehubbot 236b825fa0 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-05 11:26:19 +00:00
semantic-release-bot df7cfa165e 🔖 chore(release): v2.0.0-next.31 [skip ci]
## [Version&nbsp;2.0.0-next.31](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.30...v2.0.0-next.31)
<sup>Released on **2025-11-05**</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-11-05 11:25:19 +00:00
Neko d98c88b78f 👷 build(database): fix cannot correctly trace sqls (#10070)
fix(database): cannot correctly trace sqls
2025-11-05 19:14:15 +08:00
lobehubbot 3d1b050003 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-05 03:55:00 +00:00
semantic-release-bot 8ec9491b48 🔖 chore(release): v2.0.0-next.30 [skip ci]
## [Version&nbsp;2.0.0-next.30](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.29...v2.0.0-next.30)
<sup>Released on **2025-11-05**</sup>

#### ♻ Code Refactoring

- **misc**: Enhance message router with service layer and comprehensive tests.

<br/>

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

#### Code refactoring

* **misc**: Enhance message router with service layer and comprehensive tests, closes [#10056](https://github.com/lobehub/lobe-chat/issues/10056) ([62110e0](https://github.com/lobehub/lobe-chat/commit/62110e0))

</details>

<div align="right">

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

</div>
2025-11-05 03:53:51 +00:00
Arvin Xu 62110e08c8 ♻️ refactor: enhance message router with service layer and comprehensive tests (#10056)
*  test: enhance message router integration test coverage

## Summary

Completed comprehensive integration tests for message router, covering all 20 endpoints:

**New Test Coverage:**
-  removeMessage (with return messages)
-  removeAllMessages
-  removeMessagesByGroup
-  getMessages with groupId/useGroup
-  update with return messages
-  updateMessagePlugin
-  updateMetadata
-  updatePluginError (with return messages)
-  updatePluginState
-  updateTranslate (create & delete)
-  getHeatmaps
-  rankModels
-  count/countWords with date range

**Skipped Tests (require complex setup):**
- removeMessageQuery (needs UUID query IDs)
- updateMessageRAG (needs chunk & embeddings setup)
- updateTTS (needs file records)

**Test Results:**
- 33 passed 
- 6 skipped (with explanatory comments)
- 0 failed

## Coverage Improvement

Before: ~40% (8/20 endpoints)
After: ~85% (17/20 endpoints)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix test

* ♻️ refactor: extract MessageService for mutation + conditional query patterns

Refactored message router to use a new MessageService that consolidates repeated "mutation + conditional query" logic. The service handles operations that perform database mutations (delete/update) followed by conditional message list returns based on sessionId/topicId presence.

Changes:
- Created MessageService in src/server/services/message/index.ts
- Centralized conditional query logic in queryWithSuccess method
- Returns { success: true } when sessionId/topicId not provided
- Returns { messages, success: true } when sessionId/topicId provided
- Simple operations (1-2 lines) remain in router using messageModel directly
- Reduced router code significantly while improving maintainability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ♻️ refactor: improve MessageService and createNewMessage

Changes:
- Changed all comments in MessageService to English
- Extracted query logic from model for updatePluginState and updateMessage methods
- Added comprehensive unit tests for MessageService (15 tests)
- Fixed createNewMessage to accept useGroup parameter instead of hardcoding groupAssistantMessages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ♻️ refactor: move createNewMessage from model to MessageService

Changes:
- Moved createNewMessage logic from MessageModel to MessageService
- MessageModel now only handles single-responsibility create operation
- MessageService handles the "create + query" pattern consistently with other methods
- Updated router to use MessageService.createNewMessage
- Added 3 unit tests for createNewMessage in MessageService (total 18 tests now)

This follows the same pattern as other service methods: keep models focused on
database operations, while services handle business logic and composite operations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ♻️ refactor: remove createNewMessage from MessageModel

Changes:
- Removed createNewMessage method from MessageModel
- Removed 5 associated unit tests from message.test.ts
- This logic now lives entirely in MessageService

Rationale:
MessageModel should focus on single-responsibility database operations.
The "create + query" pattern is a business logic concern that belongs
in the service layer, not the data access layer.

All tests passing:
- MessageModel: 91 passed, 3 skipped
- Server integration: 38 passed, 1 skipped

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 11:42:19 +08:00
LobeHub Bot d17b07fda9 🌐 chore: translate non-English comments to English in utils/server (#10057)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 10:55:53 +08:00
lobehubbot 10201a2ba1 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 18:27:44 +00:00
semantic-release-bot 5c66dc2b02 🔖 chore(release): v2.0.0-next.29 [skip ci]
## [Version&nbsp;2.0.0-next.29](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.28...v2.0.0-next.29)
<sup>Released on **2025-11-04**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor chat message model to speed up.

<br/>

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

#### Code refactoring

* **misc**: Refactor chat message model to speed up, closes [#10053](https://github.com/lobehub/lobe-chat/issues/10053) ([035994f](https://github.com/lobehub/lobe-chat/commit/035994f))

</details>

<div align="right">

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

</div>
2025-11-04 18:26:39 +00:00
Arvin Xu 035994f1a8 ♻️ refactor: refactor chat message model to speed up (#10053)
* refactor new chat message

* ♻️ refactor: Unify message creation methods into single `internal_createMessage`

## Changes

### Method Consolidation
- Merged `internal_createMessage` and `internal_createNewMessage` into a single unified method
- All message creation now returns `{ id: string, messages: UIChatMessage[] }`
- Eliminated redundant API calls by always using `createNewMessage` backend endpoint

### Updated Call Sites (11 locations)
**Store Actions:**
- `addAIMessage` & `addUserMessage` - Added result validation

**AI Chat:**
- `generateAIChat.ts` - Extract `result.id` from response
- `generateAIChatV2.ts` - Renamed from `internal_createNewMessage` to `internal_createMessage`

**Group Chat:**
- `generateAIGroupChat.ts` - Extract `result.id` in 3 locations

**Thread & Tools:**
- `thread/action.ts` - Extract `result.id`
- `builtinTool/actions/search.ts` - Extract `result.id`
- `plugin/action.ts` - Extract `result.id`

### Test Updates
- Updated mocks to return `{ id, messages }` structure
- `thread/action.test.ts` - 4 mock updates
- `plugin/action.test.ts` - 2 mock updates

## Benefits
- **Performance**: All message creation now uses single-request pattern
- **Consistency**: Unified return type across all creation flows
- **Maintainability**: Single method to maintain instead of two similar ones

## Testing
-  Type check: 0 errors
-  Unit tests: 175/175 passed
  - message/action.test.ts: 33/33
  - plugin/action.test.ts: 26/26
  - thread/action.test.ts: 39/39
  - generateAIChat.test.ts: 41/41
  - generateAIChatV2.test.ts: 36/36

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ♻️ refactor: optimize message update operations to reduce API calls

Optimized two message update operations to reduce network requests:

1. **updatePluginState**: Modified to return updated messages
   - Backend: `MessageModel.updatePluginState` now accepts options and returns `UpdateMessageResult`
   - Router: Added `sessionId`, `topicId`, and `useGroup` parameters
   - Frontend: Service layer passes lab preferences, store uses `replaceMessages` instead of `refreshMessages`
   - Reduction: 2 requests → 1 request

2. **message.update**: Added `groupAssistantMessages` support
   - Service: `updateMessage` now passes `useGroup` flag based on lab preferences
   - Backend model already had infrastructure for returning messages
   - Reduction: Ensures consistent 1-request pattern

Tests passing (26/26 plugin tests, 14/14 integration tests).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ♻️ refactor: optimize all internal message methods to reduce API calls

Optimized 6 internal message methods and 3 error handling scenarios to reduce API calls from 2 requests (update + refresh) to 1 request (update with messages returned):

**Internal methods optimized:**
- internal_updateMessagePluginError
- internal_updateMessageRAG
- internal_deleteMessage
- internal_refreshToUpdateMessageTools
- internal_updatePluginError

**Error handling optimized:**
- internal_callPluginApi error scenarios (2 locations)
- invokeStandaloneTypePlugin invalid settings

**Changes:**
- Backend: Updated message routers to accept sessionId/topicId/useGroup and return messages
- Service: Added getUseGroupPreference() getter to simplify lab preference checks
- Service: Updated methods to use getter and return UpdateMessageResult
- Store: Changed from refreshMessages() to replaceMessages(result.messages)
- Tests: Updated 4 plugin tests to verify replaceMessages instead of refreshMessages

**Performance impact:**
Each optimized method now makes 1 request instead of 2, reducing network overhead and improving UI responsiveness.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ♻️ refactor: optimize message deletion to reduce API calls and fix group message children deletion

**Problem 1 - Group message children not deleted:**
- When deleting a `role: 'group'` message, children messages (linked via `parentId`) were not deleted
- Tool result messages were also not included in deletion

**Problem 2 - Delete operations using refresh pattern:**
- `deleteMessage`, `clearMessage`, `clearAllMessages` all used refreshMessages after deletion
- This resulted in 2 requests: delete + refresh

**Solutions:**

1. **Enhanced deleteMessage in UI layer:**
   - Added logic to find all children messages via `parentId` for group role messages
   - Combined with existing tool message deletion logic
   - All related message IDs are collected and passed to backend in one call
   - Business logic stays in UI layer, model layer remains simple

2. **Optimized delete operations:**
   - Backend: `removeMessages` now accepts sessionId/topicId/useGroup and returns messages
   - Service: `removeMessages` updated to pass options and return UpdateMessageResult
   - Store: `deleteMessage` now uses replaceMessages with returned data (2 requests → 1 request)
   - Store: `clearMessage` and `clearAllMessages` directly replace with empty array

3. **Updated tests:**
   - Fixed 4 tests to verify replaceMessages instead of refreshMessages
   - Added mock for service to return messages in delete operations
   - All 33 message action tests passing
   - All 14 integration tests passing

**Performance impact:**
- deleteMessage: 2 requests → 1 request
- clearMessage/clearAllMessages: 1 delete + 1 refresh → 1 delete + direct clear

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

*  test: add comprehensive tests for group message deletion with children

Added 2 new test cases to verify group message deletion behavior:

1. **Basic group message with children deletion:**
   - Verifies that deleting a `role: 'group'` message also deletes all children (via `parentId`)
   - Tests that unrelated messages are preserved

2. **Group message with children that have tool calls:**
   - Verifies that deleting a group message also deletes:
     - The group message itself
     - All children messages (via `parentId`)
     - Tool result messages from children (via `tool_call_id`)
   - Ensures complete cleanup of the entire message tree

**Implementation enhancement:**
- Updated `deleteMessage` to also collect and delete tool results from children messages
- Ensures no orphaned tool result messages remain after group deletion

**Test results:**
- All 35 message action tests passing (2 new tests added)
- Verifies complete cascading deletion of group message trees

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 02:15:40 +08:00
lobehubbot c7b7998505 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 17:12:15 +00:00
semantic-release-bot a41c7a3fb7 🔖 chore(release): v2.0.0-next.28 [skip ci]
## [Version&nbsp;2.0.0-next.28](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.27...v2.0.0-next.28)
<sup>Released on **2025-11-04**</sup>

####  Features

- **misc**: Support install sreamable http mcp server on web.

<br/>

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

#### What's improved

* **misc**: Support install sreamable http mcp server on web, closes [#10044](https://github.com/lobehub/lobe-chat/issues/10044) [#9916](https://github.com/lobehub/lobe-chat/issues/9916) ([85454c5](https://github.com/lobehub/lobe-chat/commit/85454c5))

</details>

<div align="right">

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

</div>
2025-11-04 17:11:03 +00:00
Shinji-Li 85454c5e7c feat: support install sreamable http mcp server on web (#10044)
* 🐛 fix: OIDC error when connecting to self-host instance (#9916)

fix: oidc/consent redirect header

* feat: support streamable mcp install

* feat: env fixed

* feat: when in desktop only show http mcp

* feat: use http connectionType to query mcp list

* fix: delete useless code

* fix: update the actions test

* feat: change the import way

* feat: change the import way

* feat: change the enum type

* fix: slove types problem

* fix: slove types problem

* fix: mobile not show custom add mcp button

---------

Co-authored-by: Aloxaf <bailong104@gmail.com>
2025-11-05 00:57:19 +08:00
Neko 84148a8dd3 🔨 chore: improve renovate config to not group minor & major (#10051)
chore: improve renovate config to not group minor & major
2025-11-04 22:47:12 +08:00
lobehubbot d79ffa37e2 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 14:04:44 +00:00
semantic-release-bot c4873d1854 🔖 chore(release): v2.0.0-next.27 [skip ci]
## [Version&nbsp;2.0.0-next.27](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.26...v2.0.0-next.27)
<sup>Released on **2025-11-04**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor services to a more clean structure.

<br/>

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

#### Code refactoring

* **misc**: Refactor services to a more clean structure, closes [#10050](https://github.com/lobehub/lobe-chat/issues/10050) ([de61dfa](https://github.com/lobehub/lobe-chat/commit/de61dfa))

</details>

<div align="right">

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

</div>
2025-11-04 14:03:32 +00:00
Arvin Xu de61dfaad4 ♻️ refactor: refactor services to a more clean structure (#10050)
* refactor services

* clean tests

* fix type
2025-11-04 21:52:30 +08:00
lobehubbot 1bea16f292 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 13:14:51 +00:00
semantic-release-bot 1da176191b 🔖 chore(release): v2.0.0-next.26 [skip ci]
## [Version&nbsp;2.0.0-next.26](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.25...v2.0.0-next.26)
<sup>Released on **2025-11-04**</sup>

#### ♻ Code Refactoring

- **misc**: Add settings (jsonb) column to `ai_models` table.

<br/>

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

#### Code refactoring

* **misc**: Add settings (jsonb) column to `ai_models` table, closes [#10042](https://github.com/lobehub/lobe-chat/issues/10042) ([7e1dd02](https://github.com/lobehub/lobe-chat/commit/7e1dd02))

</details>

<div align="right">

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

</div>
2025-11-04 13:13:38 +00:00
sxjeru 7e1dd02d7c ♻️ refactor: add settings (jsonb) column to ai_models table (#10042)
* Refactor code structure for improved readability and maintainability

* edit dbml

* feat: 更新 AiInfraRepos 以支持用户设置覆盖内置设置

* Revert "Refactor code structure for improved readability and maintainability"

This reverts commit 81453d8dc3.

* Refactor code structure for improved readability and maintainability

* 添加 IF NOT EXISTS 选项以避免重复列添加

* format
2025-11-04 21:02:40 +08:00
Arvin Xu b0dd7be095 test: add more discover bdd tests (#10048)
add bdd tests
2025-11-04 20:32:09 +08:00
lobehubbot 3cf6242877 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 12:10:29 +00:00
semantic-release-bot da063a726a 🔖 chore(release): v2.0.0-next.25 [skip ci]
## [Version&nbsp;2.0.0-next.25](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.24...v2.0.0-next.25)
<sup>Released on **2025-11-04**</sup>

####  Features

- **misc**: Display assistant message in group.

<br/>

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

#### What's improved

* **misc**: Display assistant message in group, closes [#9941](https://github.com/lobehub/lobe-chat/issues/9941) ([59b6ac3](https://github.com/lobehub/lobe-chat/commit/59b6ac3))

</details>

<div align="right">

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

</div>
2025-11-04 12:09:19 +00:00
Arvin Xu 59b6ac3a1c feat: display assistant message in group (#9941)
* use message group

* refactor

* fix tests

* fix tests
2025-11-04 19:58:32 +08:00
lobehubbot 8bab7ad448 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 11:02:27 +00:00
semantic-release-bot f69e7a22df 🔖 chore(release): v2.0.0-next.24 [skip ci]
## [Version&nbsp;2.0.0-next.24](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.23...v2.0.0-next.24)
<sup>Released on **2025-11-04**</sup>

#### 💄 Styles

- **misc**: Improve lab style.

<br/>

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

#### Styles

* **misc**: Improve lab style, closes [#10040](https://github.com/lobehub/lobe-chat/issues/10040) ([bbf1c0b](https://github.com/lobehub/lobe-chat/commit/bbf1c0b))

</details>

<div align="right">

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

</div>
2025-11-04 11:01:15 +00:00
Neko ffcdd5fac0 🔨 chore: improve renovate config separate major versions only (#10045)
chore: improve renovate config separate major versions only
2025-11-04 18:49:42 +08:00
Arvin Xu bbf1c0bbe9 💄 style: improve lab style (#10040)
* update

* refactor lab

* Update package.json
2025-11-04 18:35:49 +08:00
lobehubbot fd226d03d4 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 09:51:47 +00:00
semantic-release-bot 599e199b91 🔖 chore(release): v2.0.0-next.23 [skip ci]
## [Version&nbsp;2.0.0-next.23](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.22...v2.0.0-next.23)
<sup>Released on **2025-11-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix send message.

<br/>

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

#### What's fixed

* **misc**: Fix send message, closes [#10041](https://github.com/lobehub/lobe-chat/issues/10041) [#9984](https://github.com/lobehub/lobe-chat/issues/9984) ([7cca60f](https://github.com/lobehub/lobe-chat/commit/7cca60f))

</details>

<div align="right">

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

</div>
2025-11-04 09:50:34 +00:00
Arvin Xu 7cca60fcb8 🐛 fix: fix send message (#10041)
* fix

* Revert "Update dependency vite to v7 (#9984)"

This reverts commit f1ffaff96f.
2025-11-04 17:38:40 +08:00
Neko d517f77d1d 🔨 chore: improve renovate config to split pinned deps while keeping grouped (#10043)
chore: improve renovate config to split pinned deps while keeping grouped
2025-11-04 17:36:16 +08:00
LobeHub Bot c8e5a630ed test: add unit tests for MCPSystemDepsCheckService (#10037)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 16:02:27 +08:00
renovate[bot] 9a231ee6d3 Update dependency ora to v9 (#9977)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-04 15:45:52 +08:00
lobehubbot fa89dbf6b7 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 06:42:06 +00:00
semantic-release-bot 6d0f09fa1e 🔖 chore(release): v2.0.0-next.22 [skip ci]
## [Version&nbsp;2.0.0-next.22](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.21...v2.0.0-next.22)
<sup>Released on **2025-11-04**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-11-04 06:40:46 +00:00
Arvin Xu 0d8188c60b ️ perf: improve db query performance (#10036)
* improve db query performance

* Remove query timing log from hasMoreThanN

Removed timing log from hasMoreThanN method.
2025-11-04 14:29:11 +08:00
LobeHub Bot aae047265e 🌐 chore: translate non-English comments to English in desktop controllers (#10034)
* 🌐 chore: translate non-English comments to English in desktop controllers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 🧪 fix: update Desktop test expectations to match English error messages

- Updated TrayMenuCtr.test.ts to expect English error messages instead of Chinese
- Fixes failing tests after comment translation changes
- Changed '托盘通知仅在 Windows 平台支持' to 'Tray notifications are only supported on Windows platform'
- Changed '托盘功能仅在 Windows 平台支持' to 'Tray functionality is only supported on Windows platform'

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-11-04 13:38:31 +08:00
renovate[bot] f1ffaff96f Update dependency vite to v7 (#9984)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-04 13:13:52 +08:00
renovate[bot] 74637839f5 Update dependency pino to v10 (#9979)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-04 10:37:43 +08:00
lobehubbot 4d9181ece0 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-04 02:28:29 +00:00
semantic-release-bot f833a461aa 🔖 chore(release): v2.0.0-next.21 [skip ci]
## [Version&nbsp;2.0.0-next.21](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.20...v2.0.0-next.21)
<sup>Released on **2025-11-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix oidc auth timeout issue on the desktop.

<br/>

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

#### What's fixed

* **misc**: Fix oidc auth timeout issue on the desktop, closes [#10025](https://github.com/lobehub/lobe-chat/issues/10025) ([20666db](https://github.com/lobehub/lobe-chat/commit/20666db))

</details>

<div align="right">

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

</div>
2025-11-04 02:26:52 +00:00
Neko cb8c606d06 🔨 chore: reconfigure renovate to group patch updates (#10008)
chore: reconfigure renovate to group patch updates
2025-11-04 10:13:19 +08:00
Arvin Xu 20666db14f 🐛 fix: fix oidc auth timeout issue on the desktop (#10025)
* add tests

* fix auth timeout issue

* update locale

* fix tests
2025-11-04 10:12:54 +08:00
Arvin Xu e6fc44be76 test: add unit tests for apiKey (#10031)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 10:12:45 +08:00
LobeHub Bot 1be312cb25 test: add unit tests for MCPService (#10032)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 10:12:28 +08:00
LobeHub Bot 9c0ac419d0 🌐 chore: translate non-English comments to English in utils/client (#10029) 2025-11-04 09:13:48 +08:00
Arvin Xu 3556e5986c 🔨 chore: add auto creating test workflow (#10030)
create auto test mode
2025-11-04 02:18:35 +08:00
Arvin Xu 17090f1e8c 💄 style: improve oidc mobile layout style (#10026)
improve oidc layout again
2025-11-04 02:04:03 +08:00
Arvin Xu 6cce80ee9a 🌐 chore: translate non-English comments to English in chat service (#10028)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 01:54:44 +08:00
Arvin Xu 2da01ca1c7 🔨 chore: add workflow for translating Chinese comments to English (#10027)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 01:54:07 +08:00
Arvin Xu 665e6c99f5 🔨 chore: add desktop test workflow (#10024)
* workflow

* fix tests

* update

* update
2025-11-04 01:36:05 +08:00
lobehubbot ccd2c0b510 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-03 17:11:27 +00:00
semantic-release-bot 9346900a50 🔖 chore(release): v2.0.0-next.20 [skip ci]
## [Version&nbsp;2.0.0-next.20](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.19...v2.0.0-next.20)
<sup>Released on **2025-11-03**</sup>

#### 💄 Styles

- **misc**: Improve oidc layout style.

<br/>

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

#### Styles

* **misc**: Improve oidc layout style, closes [#10023](https://github.com/lobehub/lobe-chat/issues/10023) ([5008be7](https://github.com/lobehub/lobe-chat/commit/5008be7))

</details>

<div align="right">

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

</div>
2025-11-03 17:10:18 +00:00
Arvin Xu 5008be7fe9 💄 style: improve oidc layout style (#10023)
improve oidc layout style
2025-11-04 00:57:52 +08:00
lobehubbot 9e81151487 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-03 16:48:22 +00:00
semantic-release-bot 1fdc49ec0f 🔖 chore(release): v2.0.0-next.19 [skip ci]
## [Version&nbsp;2.0.0-next.19](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.18...v2.0.0-next.19)
<sup>Released on **2025-11-03**</sup>

#### ♻ Code Refactoring

- **misc**: Remove `NEXT_PUBLIC_SERVICE_MODE` env and use server by default.

<br/>

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

#### Code refactoring

* **misc**: Remove `NEXT_PUBLIC_SERVICE_MODE` env and use server by default, closes [#10017](https://github.com/lobehub/lobe-chat/issues/10017) ([f2ab2fc](https://github.com/lobehub/lobe-chat/commit/f2ab2fc))

</details>

<div align="right">

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

</div>
2025-11-03 16:47:11 +00:00
Arvin Xu f2ab2fcef6 ♻️ refactor: remove NEXT_PUBLIC_SERVICE_MODE env and use server by default (#10017)
* remove NEXT_PUBLIC_SERVICE_MODE

* update

* fix tests

* update e2e workflow

* update config

* Rename DATABASE_TEST_URL to DATABASE_URL
2025-11-04 00:34:37 +08:00
renovate[bot] 3eaa645fb0 Update dependency dotenv to v17 (#9970)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-03 23:10:35 +08:00
lobehubbot 1500e8cdb3 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-03 14:29:12 +00:00
semantic-release-bot 5262a73308 🔖 chore(release): v2.0.0-next.18 [skip ci]
## [Version&nbsp;2.0.0-next.18](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.17...v2.0.0-next.18)
<sup>Released on **2025-11-03**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor trpc request to use zod schema.

#### 💄 Styles

- **misc**: Improve built-in client OIDC user flow.

<br/>

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

#### Code refactoring

* **misc**: Refactor trpc request to use zod schema, closes [#10016](https://github.com/lobehub/lobe-chat/issues/10016) ([1a84f2c](https://github.com/lobehub/lobe-chat/commit/1a84f2c))

#### Styles

* **misc**: Improve built-in client OIDC user flow, closes [#10020](https://github.com/lobehub/lobe-chat/issues/10020) ([80202ed](https://github.com/lobehub/lobe-chat/commit/80202ed))

</details>

<div align="right">

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

</div>
2025-11-03 14:27:58 +00:00
Arvin Xu 1a84f2cb00 ♻️ refactor: refactor trpc request to use zod schema (#10016)
refactor request api
2025-11-03 22:16:37 +08:00
Arvin Xu 80202ed4ff 💄 style: improve built-in client OIDC user flow (#10020)
* refactor

* make builtin client auto consent

* i18n
2025-11-03 22:13:14 +08:00
lobehubbot 0009816364 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-03 13:39:09 +00:00
semantic-release-bot af839cc5c3 🔖 chore(release): v2.0.0-next.17 [skip ci]
## [Version&nbsp;2.0.0-next.17](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.16...v2.0.0-next.17)
<sup>Released on **2025-11-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix regex ReDoS.

<br/>

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

#### What's fixed

* **misc**: Fix regex ReDoS, closes [#10012](https://github.com/lobehub/lobe-chat/issues/10012) ([1d8d5cd](https://github.com/lobehub/lobe-chat/commit/1d8d5cd))

</details>

<div align="right">

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

</div>
2025-11-03 13:37:59 +00:00
Arvin Xu 5c9baf490f test: add more smoke bdd tests (#10014)
add more smoke bdd tests
2025-11-03 21:24:46 +08:00
Arvin Xu 1d8d5cda30 🐛 fix: fix regex ReDoS (#10012)
* fix regex ReDoS

* fix regex ReDoS

* fix regex ReDoS

* fix regex ReDoS

* fix regex ReDoS
2025-11-03 21:15:34 +08:00
lobehubbot bd071fa3c4 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-03 05:54:17 +00:00
semantic-release-bot fa179fc934 🔖 chore(release): v2.0.0-next.16 [skip ci]
## [Version&nbsp;2.0.0-next.16](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.15...v2.0.0-next.16)
<sup>Released on **2025-11-03**</sup>

#### ♻ Code Refactoring

- **misc**: Remove deperated code.

<br/>

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

#### Code refactoring

* **misc**: Remove deperated code, closes [#10001](https://github.com/lobehub/lobe-chat/issues/10001) ([4ee4590](https://github.com/lobehub/lobe-chat/commit/4ee4590))

</details>

<div align="right">

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

</div>
2025-11-03 05:53:09 +00:00
Arvin Xu 4ee4590630 ♻️ refactor: remove deperated code (#10001)
* remove

* improve

* remove chatModels

* remove user model list slice

* improve lab image

* remove deprecated code

* remove clerk_sign_up

* fix tests
2025-11-03 13:14:35 +08:00
lobehubbot 788d7046ea 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-03 05:08:55 +00:00
semantic-release-bot 65cf324d07 🔖 chore(release): v2.0.0-next.15 [skip ci]
## [Version&nbsp;2.0.0-next.15](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.14...v2.0.0-next.15)
<sup>Released on **2025-11-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-11-03 05:07:48 +00:00
YuTengjing 44776b40bc 👷 build: nodejs 24 (#10003)
* build: upgrade node 24

* build: run pnpm update

* fix: tsgo not support baseUrl
2025-11-03 12:56:15 +08:00
YuTengjing 637460bdf0 🔧 chore(workflow): fix desktop PR build concurrency to isolate per-PR builds (#10005) 2025-11-03 12:23:39 +08:00
lobehubbot 4363f7d306 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-02 15:49:07 +00:00
semantic-release-bot d7f927d934 🔖 chore(release): v2.0.0-next.14 [skip ci]
## [Version&nbsp;2.0.0-next.14](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.13...v2.0.0-next.14)
<sup>Released on **2025-11-02**</sup>

#### ♻ Code Refactoring

- **misc**: Remove client service.

<br/>

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

#### Code refactoring

* **misc**: Remove client service, closes [#9991](https://github.com/lobehub/lobe-chat/issues/9991) ([9137dba](https://github.com/lobehub/lobe-chat/commit/9137dba))

</details>

<div align="right">

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

</div>
2025-11-02 15:47:58 +00:00
Arvin Xu 9137dba6a0 ♻️ refactor: remove client service (#9991)
* remove client service

* remove edge client and <InitClientDB />

* fix search tests

* fix app url

* fix tests

* fix tests

* fix tests

* remove InitClientDB

* fix tests

* fix tests
2025-11-02 23:37:50 +08:00
Arvin Xu c265f6c8ad ️ perf: fix provider link issue (#9993)
* fix provider link issue

* fix again

* fix link
2025-11-02 23:37:26 +08:00
lobehubbot c58cfd98a4 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-02 15:25:36 +00:00
semantic-release-bot 9ca8f7bbe2 🔖 chore(release): v2.0.0-next.13 [skip ci]
## [Version&nbsp;2.0.0-next.13](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.12...v2.0.0-next.13)
<sup>Released on **2025-11-02**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix image prompt form.

<br/>

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

#### What's fixed

* **misc**: Fix image prompt form, closes [#9995](https://github.com/lobehub/lobe-chat/issues/9995) ([799e6fd](https://github.com/lobehub/lobe-chat/commit/799e6fd))

</details>

<div align="right">

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

</div>
2025-11-02 15:24:34 +00:00
Coooolfan 799e6fd0fd 🐛 fix: fix image prompt form (#9995)
* 🐛 fix: do not create image on Enter key during composition

* 🐛 fix: include authorization header in mock user context
2025-11-02 23:12:53 +08:00
lobehubbot 838a7d4eed 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-02 14:40:32 +00:00
semantic-release-bot 955c92e4f1 🔖 chore(release): v2.0.0-next.12 [skip ci]
## [Version&nbsp;2.0.0-next.12](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.11...v2.0.0-next.12)
<sup>Released on **2025-11-02**</sup>

#### 💄 Styles

- **misc**: Add padding to TopicList component.

<br/>

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

#### Styles

* **misc**: Add padding to TopicList component, closes [#9994](https://github.com/lobehub/lobe-chat/issues/9994) ([c1e7381](https://github.com/lobehub/lobe-chat/commit/c1e7381))

</details>

<div align="right">

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

</div>
2025-11-02 14:39:28 +00:00
Coooolfan c1e7381a33 💄 style: add padding to TopicList component (#9994)
 fix: add padding to TopicList component
2025-11-02 22:24:21 +08:00
lobehubbot adad02a93c 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-02 14:21:53 +00:00
semantic-release-bot f966f7f4a5 🔖 chore(release): v2.0.0-next.11 [skip ci]
## [Version&nbsp;2.0.0-next.11](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.10...v2.0.0-next.11)
<sup>Released on **2025-11-02**</sup>

#### 💄 Styles

- **misc**: Smoothed model descriptions in ko-KR locales.

<br/>

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

#### Styles

* **misc**: Smoothed model descriptions in ko-KR locales, closes [#9998](https://github.com/lobehub/lobe-chat/issues/9998) ([fde1d8b](https://github.com/lobehub/lobe-chat/commit/fde1d8b))

</details>

<div align="right">

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

</div>
2025-11-02 14:20:40 +00:00
sunny1234597 fde1d8bfac 💄 style: smoothed model descriptions in ko-KR locales (#9998)
smoothed model descriptions in ko-KR locales 

Updated descriptions for various AI models in Korean.
2025-11-02 22:08:55 +08:00
Arvin Xu dc5917948c 👷 build: revert turbopack for bundling (#9999)
Revert "👷 build: switch to turbopack for bundling (#9990)"

This reverts commit 4565692cb9.
2025-11-02 22:03:18 +08:00
lobehubbot 9ab6935deb 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-02 10:39:37 +00:00
semantic-release-bot 2516b89c7c 🔖 chore(release): v2.0.0-next.10 [skip ci]
## [Version&nbsp;2.0.0-next.10](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.9...v2.0.0-next.10)
<sup>Released on **2025-11-02**</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-11-02 10:38:22 +00:00
Arvin Xu 4565692cb9 👷 build: switch to turbopack for bundling (#9990)
try turbopack
2025-11-02 18:24:35 +08:00
Rylan Cai 78df7a7e86 ♻️ Refactor(V2): Remove deprecate envs to reserve Namespace for better-auth (#9954) 2025-11-02 16:45:46 +08:00
Arvin Xu b99bb9a856 🔨 chore: fix desktop-pr workflow (#9992)
fix desktop
2025-11-02 14:28:32 +08:00
lobehubbot f110d79228 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-02 05:45:09 +00:00
semantic-release-bot 3513bf4363 🔖 chore(release): v2.0.0-next.9 [skip ci]
## [Version&nbsp;2.0.0-next.9](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.8...v2.0.0-next.9)
<sup>Released on **2025-11-02**</sup>

#### ♻ Code Refactoring

- **misc**: Remove dalle builtin plugin.

<br/>

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

#### Code refactoring

* **misc**: Remove dalle builtin plugin, closes [#9952](https://github.com/lobehub/lobe-chat/issues/9952) ([2d4d70a](https://github.com/lobehub/lobe-chat/commit/2d4d70a))

</details>

<div align="right">

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

</div>
2025-11-02 05:43:47 +00:00
Arvin Xu 2d4d70a66d ♻️ refactor: remove dalle builtin plugin (#9952)
* pre merge

* fix lint

* fix lint

* clean docker workflow

* fix tests

* fix docker

* fix tests

* fix tests

* fix tests

* fix docker

* update client db

* remove dalle

* fix tests

* fix tests

* improve tests

* fix tests
2025-11-02 13:31:01 +08:00
renovate[bot] 831948a305 Update GitHub Artifact Actions (major) (#9986)
Update GitHub Artifact Actions

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-02 11:26:30 +08:00
Arvin Xu 7eaa7ca326 🔨 chore: fix docker workflow (#9987)
fix docker workflow
2025-11-02 11:08:29 +08:00
renovate[bot] 08f97dcee4 Update actions/setup-node action to v6 (#9964)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-02 10:15:08 +08:00
renovate[bot] 5f4e1d37fb Update actions/checkout action to v5 (#9963)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-02 10:14:17 +08:00
semantic-release-bot a5e0e5acb2 🔖 chore(release): v2.0.0-next.8 [skip ci]
## [Version&nbsp;2.0.0-next.8](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.7...v2.0.0-next.8)
<sup>Released on **2025-11-02**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-11-02 02:13:27 +00:00
LobeHub Bot f49996cc84 🤖 style: update i18n (#9958) 2025-11-02 10:01:50 +08:00
lobehubbot 6b01095243 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-01 17:04:59 +00:00
semantic-release-bot 9bb717696b 🔖 chore(release): v2.0.0-next.7 [skip ci]
## [Version&nbsp;2.0.0-next.7](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.6...v2.0.0-next.7)
<sup>Released on **2025-11-01**</sup>

####  Features

- **misc**: Upgrade to Next 16.

<br/>

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

#### What's improved

* **misc**: Upgrade to Next 16, closes [#9851](https://github.com/lobehub/lobe-chat/issues/9851) ([abb71ec](https://github.com/lobehub/lobe-chat/commit/abb71ec))

</details>

<div align="right">

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

</div>
2025-11-01 17:03:54 +00:00
Arvin Xu abb71ec846 feat: upgrade to Next 16 (#9851)
* upgrade next 16

* try to fix

* try to fix

* upgrade

* fix sitemap build

* try to fix build

* try to fix build with next 16

* fix docker permission

* 🔒 fix(ci): fix code injection vulnerability and permissions in docker workflow

- Add pull-requests: write permission to allow PR comments
- Fix code injection vulnerability by using env variables instead of direct interpolation
- Prevent potential security risks from malicious branch names in pull_request_target events

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 🔧 chore(ci): change desktop pr build to use pull_request_target

- Change from pull_request to pull_request_target to access secrets and write permissions
- Update permissions from read-all to specific write permissions for contents and pull-requests
- This allows PR builds to create releases and comment on PRs from forks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* add comment

* fix on

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-02 00:53:13 +08:00
lobehubbot 39a7399765 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-31 16:40:36 +00:00
semantic-release-bot 57858916eb 🔖 chore(release): v2.0.0-next.6 [skip ci]
## [Version&nbsp;2.0.0-next.6](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.5...v2.0.0-next.6)
<sup>Released on **2025-10-31**</sup>

#### 🐛 Bug Fixes

- **AssistantStore**: Add missing identifier parameter.

<br/>

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

#### What's fixed

* **AssistantStore**: Add missing identifier parameter, closes [#9948](https://github.com/lobehub/lobe-chat/issues/9948) ([2e40855](https://github.com/lobehub/lobe-chat/commit/2e40855))

</details>

<div align="right">

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

</div>
2025-10-31 16:39:30 +00:00
XYenon 2e408554e2 🐛 fix(AssistantStore): add missing identifier parameter (#9948)
🐛 fix(AssistantStore): add missing identifier parameter in fallback fetch

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2025-11-01 00:28:12 +08:00
lobehubbot 86b5e9eb4c 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-31 04:54:07 +00:00
semantic-release-bot b3243cf6fb 🔖 chore(release): v2.0.0-next.5 [skip ci]
## [Version&nbsp;2.0.0-next.5](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.4...v2.0.0-next.5)
<sup>Released on **2025-10-31**</sup>

#### ♻ Code Refactoring

- **misc**: Migrating Firecrawl to v2.

<br/>

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

#### Code refactoring

* **misc**: Migrating Firecrawl to v2, closes [#9850](https://github.com/lobehub/lobe-chat/issues/9850) ([efb4c22](https://github.com/lobehub/lobe-chat/commit/efb4c22))

</details>

<div align="right">

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

</div>
2025-10-31 04:52:55 +00:00
sxjeru efb4c22aff ♻️ refactor: Migrating Firecrawl to v2 (#9850)
*  feat: 更新 Firecrawl API 版本,增强搜索功能和结果映射

*  feat: 更新 FirecrawlMetadata 和 FirecrawlResults 接口,添加可选字段并增强错误处理

* fix typo (native -> naive)

*  feat: 更新模型配置,移除 Claude 3.5 Sonnet 相关条目,添加 MiniMax M2 和 KAT-Dev 32B 模型

*  feat: 添加 MiniMax M2 模型并更新代理 URL

* fix test
2025-10-31 12:41:14 +08:00
Arvin Xu 8abfdecd54 ️ perf: improve db query performance (#9946)
* fix db performance issue

* fix tests
2025-10-31 12:39:59 +08:00
lobehubbot e73e877db1 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-31 03:32:07 +00:00
semantic-release-bot 4e7f383ff4 🔖 chore(release): v2.0.0-next.4 [skip ci]
## [Version&nbsp;2.0.0-next.4](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.3...v2.0.0-next.4)
<sup>Released on **2025-10-31**</sup>

#### ♻ Code Refactoring

- **misc**: Remove azure-ad auth provider.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Code refactoring

* **misc**: Remove azure-ad auth provider, closes [#9942](https://github.com/lobehub/lobe-chat/issues/9942) ([103c4d7](https://github.com/lobehub/lobe-chat/commit/103c4d7))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-31 03:30:54 +00:00
Arvin Xu 103c4d70fc ♻️ refactor: remove azure-ad auth provider (#9942)
remove azure ad
2025-10-31 11:19:39 +08:00
LobeHub Bot 3a6468ff48 🤖 style: update i18n (#9944)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-31 11:17:28 +08:00
Arvin Xu 7342315875 ♻️ refactor: improve access token duration (#9943)
update access token duaration
2025-10-31 02:06:53 +08:00
lobehubbot aa7f98c00d 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-30 17:27:33 +00:00
semantic-release-bot f78682c704 🔖 chore(release): v2.0.0-next.3 [skip ci]
## [Version&nbsp;2.0.0-next.3](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.2...v2.0.0-next.3)
<sup>Released on **2025-10-30**</sup>

#### ♻ Code Refactoring

- **misc**: Remove llm page.

#### 💄 Styles

- **misc**: Add new bedrock model support, add pricing info for Azure GPT-5 series models.

<br/>

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

#### Code refactoring

* **misc**: Remove llm page, closes [#9940](https://github.com/lobehub/lobe-chat/issues/9940) ([6ec01a3](https://github.com/lobehub/lobe-chat/commit/6ec01a3))

#### Styles

* **misc**: Add new bedrock model support, closes [#9826](https://github.com/lobehub/lobe-chat/issues/9826) ([1b8a981](https://github.com/lobehub/lobe-chat/commit/1b8a981))
* **misc**: Add pricing info for Azure GPT-5 series models, closes [#9833](https://github.com/lobehub/lobe-chat/issues/9833) ([39a80c5](https://github.com/lobehub/lobe-chat/commit/39a80c5))

</details>

<div align="right">

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

</div>
2025-10-30 17:26:18 +00:00
Arvin Xu 6ec01a3c83 ♻️ refactor: remove llm page (#9940)
remove llm page
2025-10-31 01:14:36 +08:00
Kevin Zhao 39a80c5604 💄 style: add pricing info for Azure GPT-5 series models (#9833)
* 💰 feat: add pricing info for Azure GPT-5 series models

Added comprehensive pricing information for all Azure OpenAI GPT-5 series models:
- GPT-5 Pro: $15/$120 per million tokens (input/output)
- GPT-5 Codex: $1.25/$10 per million tokens with cache support
- GPT-5: $1.25/$10 per million tokens with cache support
- GPT-5 Mini: $0.25/$2 per million tokens with cache support
- GPT-5 Nano: $0.05/$0.4 per million tokens with cache support
- GPT-5 Chat: $1.25/$10 per million tokens with cache support

Pricing aligns with OpenAI official rates and includes cache read pricing where applicable.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 🔥 feat: remove Azure GPT-5 series models

Removed all GPT-5 series model configurations from Azure provider:
- GPT-5 Pro
- GPT-5 Codex
- GPT-5
- GPT-5 Mini
- GPT-5 Nano
- GPT-5 Chat

These models are not yet officially released by Azure OpenAI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Zhao <zhaokm@ZhaodeMacBook-Pro.local>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Zhao <zhaokm@842f57833757mbpnetwork.lan>
2025-10-31 01:02:48 +08:00
Kevin Zhao 1b8a981e5b 💄 style: add new bedrock model support (#9826)
*  feat: add new bedrock model support

* 🔥 chore: remove model provider config per reviewer feedback

Removed Claude Sonnet 4.5 and Claude Haiku 4.5 model configurations from the Bedrock provider config file as per reviewer request.

The model definitions remain in the model bank (packages/model-bank/src/aiModels/bedrock.ts) and can be enabled once needed.

---------

Co-authored-by: Zhao <zhaokm@ZhaodeMacBook-Pro.local>
2025-10-31 01:01:59 +08:00
lobehubbot 44247fd1f6 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-30 16:45:31 +00:00
semantic-release-bot 1b837f7dd0 🔖 chore(release): v2.0.0-next.2 [skip ci]
## [Version&nbsp;2.0.0-next.2](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.1...v2.0.0-next.2)
<sup>Released on **2025-10-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Hide marketplace link from Plugin List when market disabled, OIDC error when connecting to self-host instance, only include input_fidelity parameter for gpt-image-1..

<br/>

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

#### What's fixed

* **misc**: Hide marketplace link from Plugin List when market disabled, closes [#9929](https://github.com/lobehub/lobe-chat/issues/9929) ([e303979](https://github.com/lobehub/lobe-chat/commit/e303979))
* **misc**: OIDC error when connecting to self-host instance, closes [#9916](https://github.com/lobehub/lobe-chat/issues/9916) ([7a2ca19](https://github.com/lobehub/lobe-chat/commit/7a2ca19))
* **misc**: Only include input_fidelity parameter for gpt-image-1., closes [#9920](https://github.com/lobehub/lobe-chat/issues/9920) ([65dbc63](https://github.com/lobehub/lobe-chat/commit/65dbc63))

</details>

<div align="right">

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

</div>
2025-10-30 16:44:24 +00:00
Aloxaf 7a2ca19d5b 🐛 fix: OIDC error when connecting to self-host instance (#9916)
fix: oidc/consent redirect header
(cherry picked from commit 2e2b9c4c88)
2025-10-31 00:27:06 +08:00
Taehyung Lee 65dbc6383d 🐛 fix: only include input_fidelity parameter for gpt-image-1. (#9920)
fix: only include input_fidelity parameter for gpt-image-1.

The input_fidelity parameter was incorrectly sent to all models during image editing, causing errors with DALL-E 2 and gpt-5-image-mini.
2025-10-31 00:24:24 +08:00
Michael Webb e303979e0f 🐛 fix: Hide marketplace link from Plugin List when market disabled (#9929)
Hide marketplace link from Plugin List when market disabled
2025-10-31 00:22:30 +08:00
lobehubbot f31b5294f3 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-30 13:56:06 +00:00
semantic-release-bot 9962f64eeb 🔖 chore(release): v2.0.0-next.1 [skip ci]
## [Version&nbsp;2.0.0-next.1](https://github.com/lobehub/lobe-chat/compare/v1.143.0-next.2...v2.0.0-next.1)
<sup>Released on **2025-10-30**</sup>

####  Features

- **misc**: 2.0 next baseline.

<br/>

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

#### What's improved

* **misc**: 2.0 next baseline ([8c57dfd](https://github.com/lobehub/lobe-chat/commit/8c57dfd))

</details>

#### 💥 BREAKING CHANGES

* **misc**: starting V2

<div align="right">

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

</div>
2025-10-30 13:55:04 +00:00
arvinxx 8c57dfd3fe 💥 feat: 2.0 next baseline
BREAKING CHANGE: starting V2
2025-10-30 21:33:52 +08:00
semantic-release-bot a1fc90d8b9 🔖 chore(release): v1.143.0-next.2 [skip ci]
## [Version&nbsp;1.143.0-next.2](https://github.com/lobehub/lobe-chat/compare/v1.143.0-next.1...v1.143.0-next.2)
<sup>Released on **2025-10-30**</sup>

####  Features

- **misc**: 2.0 next init.

<br/>

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

#### What's improved

* **misc**: 2.0 next init ([26daac5](https://github.com/lobehub/lobe-chat/commit/26daac5))

</details>

<div align="right">

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

</div>
2025-10-30 13:31:12 +00:00
arvinxx 26daac5a6d 💥 feat: 2.0 next init 2025-10-30 21:19:54 +08:00
arvinxx 1d95153960 update 2025-10-30 21:18:47 +08:00
lobehubbot 51d7d187e8 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-30 13:14:41 +00:00
semantic-release-bot 7c6805f819 🔖 chore(release): v1.143.0-next.1 [skip ci]
## [Version&nbsp;1.143.0-next.1](https://github.com/lobehub/lobe-chat/compare/v1.142.8...v1.143.0-next.1)
<sup>Released on **2025-10-30**</sup>

####  Features

- **misc**: Try 2.0 next.

<br/>

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

#### What's improved

* **misc**: Try 2.0 next ([e0af4e6](https://github.com/lobehub/lobe-chat/commit/e0af4e6))

</details>

#### 💥 BREAKING CHANGES

* **misc**: starting V2

<div align="right">

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

</div>
2025-10-30 13:13:38 +00:00
arvinxx 177f3f5589 update workflow 2025-10-30 21:02:42 +08:00
arvinxx e0af4e6c45 💥 feat: try 2.0 next
BREAKING CHANGE: starting V2
2025-10-30 20:59:48 +08:00
lobehubbot 7f7e571755 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-30 04:14:55 +00:00
semantic-release-bot 0df0378def 🔖 chore(release): v1.142.8 [skip ci]
### [Version&nbsp;1.142.8](https://github.com/lobehub/lobe-chat/compare/v1.142.7...v1.142.8)
<sup>Released on **2025-10-30**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-10-30 04:13:39 +00:00
dependabot[bot] 4376ba2bb2 👷 build(deps): bump next-auth from 5.0.0-beta.29 to 5.0.0-beta.30 (#9926)
build(deps): bump next-auth from 5.0.0-beta.29 to 5.0.0-beta.30

Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 5.0.0-beta.29 to 5.0.0-beta.30.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@5.0.0-beta.29...next-auth@5.0.0-beta.30)

---
updated-dependencies:
- dependency-name: next-auth
  dependency-version: 5.0.0-beta.30
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-30 12:02:12 +08:00
Shinji-Li 0fdf70944d 🔨 chore: support lobehub-marketPlace oidc in lobechat (#9922)
* chore: support market-oidc grant

* fix: update appEnv the env Market Base Url

* test: update test.ts & the oidc path

* feat: update the oidc-provider test
2025-10-30 09:59:04 +08:00
Arvin Xu 5db4f58d85 🔨 chore: pre-merge message group code (#9915)
* pre merge

* refactor

* clean

* fix types

* fix tests

* 🧪 test(plugin): update triggerToolCalls test expectations

- Update content expectation from LOADING_FLAT to empty string
- Add threadId and groupId fields to test assertions
- Use toHaveBeenNthCalledWith for clearer assertions
- Remove unused LOADING_FLAT import

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-29 09:44:58 +08:00
lobehubbot d4a5d4d443 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-28 16:25:03 +00:00
semantic-release-bot 267d4d80b1 🔖 chore(release): v1.142.7 [skip ci]
### [Version&nbsp;1.142.7](https://github.com/lobehub/lobe-chat/compare/v1.142.6...v1.142.7)
<sup>Released on **2025-10-28**</sup>

#### ♻ Code Refactoring

- **misc**: Change files page from RSC to SPA mode to improve performance.

#### 💄 Styles

- **aihubmix**: Update extendParams to include urlContext.
- **misc**: Update i18n.

<br/>

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

#### Code refactoring

* **misc**: Change files page from RSC to SPA mode to improve performance, closes [#9846](https://github.com/lobehub/lobe-chat/issues/9846) ([f46cc50](https://github.com/lobehub/lobe-chat/commit/f46cc50))

#### Styles

* **aihubmix**: Update extendParams to include urlContext, closes [#9914](https://github.com/lobehub/lobe-chat/issues/9914) ([5a8fd85](https://github.com/lobehub/lobe-chat/commit/5a8fd85))
* **misc**: Update i18n, closes [#9907](https://github.com/lobehub/lobe-chat/issues/9907) ([d149c4d](https://github.com/lobehub/lobe-chat/commit/d149c4d))

</details>

<div align="right">

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

</div>
2025-10-28 16:23:47 +00:00
Coooolfan 5a8fd853d7 💄 style(aihubmix): update extendParams to include urlContext (#9914)
 feat(aihubmix): update extendParams to include urlContext
2025-10-29 00:09:08 +08:00
LobeHub Bot d149c4dbdf 🤖 style: update i18n (#9907)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-29 00:07:48 +08:00
Shinji-Li f46cc50e15 ♻️ refactor: change files page from RSC to SPA mode to improve performance (#9846)
* feat: change files page to spa

* feat: add height 100%

* fix: delete useless code

* feat: update files preview from severs to client

* feat: change download action to detail right place

* feat: change the dir name and the path

* feat: change the useNavigate to the router outer

* style: use flex 1 to get all width

* feat: update files?filesId to get files loading

* feat: change all files and repo url to knowledge url

* feat: close the knowledge/base settings page & update createNew onSuccess into Modal

* feat: update the knowledge base open judge
2025-10-29 00:02:51 +08:00
lobehubbot 67cb0711d6 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-28 08:02:32 +00:00
semantic-release-bot 747c59c36a 🔖 chore(release): v1.142.6 [skip ci]
### [Version&nbsp;1.142.6](https://github.com/lobehub/lobe-chat/compare/v1.142.5...v1.142.6)
<sup>Released on **2025-10-28**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-10-28 08:01:28 +00:00
Neko 6c5caf9184 👷 build(database): improve user memory schema (#9822)
chore(database): improve user memory schema
2025-10-28 15:50:15 +08:00
lobehubbot 4684ee7f4c 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-27 10:05:01 +00:00
semantic-release-bot 09cbde3a3b 🔖 chore(release): v1.142.5 [skip ci]
### [Version&nbsp;1.142.5](https://github.com/lobehub/lobe-chat/compare/v1.142.4...v1.142.5)
<sup>Released on **2025-10-27**</sup>

#### 💄 Styles

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

<br/>

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

#### Styles

* **misc**: Add MiniMax-M2 model, closes [#9897](https://github.com/lobehub/lobe-chat/issues/9897) ([d6fded2](https://github.com/lobehub/lobe-chat/commit/d6fded2))

</details>

<div align="right">

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

</div>
2025-10-27 10:03:47 +00:00
sxjeru d6fded2973 💄 style: Add MiniMax-M2 model (#9897)
*  feat: 更新多个模型的描述、定价和能力,添加新模型支持

*  fix: 处理 <think> 标签的内容分割,优化思考状态管理

*  test: 添加测试以处理包含 </think> 标签的内容分割

* fix test
2025-10-27 17:39:20 +08:00
lobehubbot ed00394c6e 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-27 09:36:51 +00:00
semantic-release-bot 8558231037 🔖 chore(release): v1.142.4 [skip ci]
### [Version&nbsp;1.142.4](https://github.com/lobehub/lobe-chat/compare/v1.142.3...v1.142.4)
<sup>Released on **2025-10-27**</sup>

#### 💄 Styles

- **misc**: Pre render ModelSwitchPanel, The error details of the connectivity check lead to a layout problem.

<br/>

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

#### Styles

* **misc**: Pre render ModelSwitchPanel, closes [#9499](https://github.com/lobehub/lobe-chat/issues/9499) ([840382b](https://github.com/lobehub/lobe-chat/commit/840382b))
* **misc**: The error details of the connectivity check lead to a layout problem, closes [#9872](https://github.com/lobehub/lobe-chat/issues/9872) ([ea42e60](https://github.com/lobehub/lobe-chat/commit/ea42e60))

</details>

<div align="right">

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

</div>
2025-10-27 09:35:14 +00:00
Neko ef843c2b81 🔨 chore(ci): better renovate config with group and weekly strategy (#9466)
chore(ci): better revonate config with group and weekly strategy
2025-10-27 17:23:28 +08:00
EldestBard ea42e60ddb 💄 style: The error details of the connectivity check lead to a layout problem (#9872)
* give ProviderChecker's Error component a maxWidth

* add warp property to Highlighter

---------

Co-authored-by: daryl saxton <admin@dylsxtn.com>
2025-10-27 17:20:42 +08:00
sxjeru 840382b5b5 💄 style: Pre render ModelSwitchPanel (#9499)
 feat: (预渲染模型切换浮窗)支持 ActionDropdown 组件的预渲染功能
2025-10-27 17:18:17 +08:00
René Wang bf53c116dd 👷 build: Add editorData column on document table (#9899)
feat: Add rawData column
2025-10-27 17:12:55 +08:00
renovate[bot] fbb96eb4f8 Update dependency @opentelemetry/exporter-metrics-otlp-http to ^0.207.0 (#9879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 14:27:16 +08:00
renovate[bot] 6fa438c522 Update dependency @opentelemetry/instrumentation to ^0.207.0 (#9881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 14:27:08 +08:00
Arvin Xu 7fa6c749db 🔨 chore: pre-merge message group code (#9896)
* update

* update
2025-10-27 13:42:50 +08:00
lobehubbot b03d6cd940 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-27 02:40:38 +00:00
semantic-release-bot 01e009e89a 🔖 chore(release): v1.142.3 [skip ci]
### [Version&nbsp;1.142.3](https://github.com/lobehub/lobe-chat/compare/v1.142.2...v1.142.3)
<sup>Released on **2025-10-27**</sup>

#### 💄 Styles

- **misc**: Adjust modal setting form styles for improved layout and responsiveness, Unzip file when uploading in knowledge base [LOB-500].

<br/>

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

#### Styles

* **misc**: Adjust modal setting form styles for improved layout and responsiveness, closes [#9890](https://github.com/lobehub/lobe-chat/issues/9890) ([1997ec5](https://github.com/lobehub/lobe-chat/commit/1997ec5))
* **misc**: Unzip file when uploading in knowledge base [LOB-500], closes [#9854](https://github.com/lobehub/lobe-chat/issues/9854) ([e568ce6](https://github.com/lobehub/lobe-chat/commit/e568ce6))

</details>

<div align="right">

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

</div>
2025-10-27 02:39:04 +00:00
bbbugg 1997ec5fe2 💄 style: adjust modal setting form styles for improved layout and responsiveness (#9890)
fix: adjust modal styles for improved layout and responsiveness
2025-10-27 10:26:57 +08:00
René Wang e568ce6f31 💄 style: Unzip file when uploading in knowledge base [LOB-500] (#9854)
* feat: Unzip file

* feat: Limit max file upload limit

* fix: Remove unused test

* opti: Update translation

* style: Adjust padding

* feat: Update translation

* fix: Test error

* fix: Test erro

* fix: Test

* fix: test error

* fix: Test

* feat: Rremove message
2025-10-27 10:25:50 +08:00
renovate[bot] 1fe6a5997b Update dependency @opentelemetry/instrumentation-http to ^0.207.0 (#9773)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 21:27:29 +08:00
renovate[bot] e75ca3026b Update dependency @opentelemetry/winston-transport to ^0.18.0 (#9884)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 20:01:05 +08:00
renovate[bot] a8534da718 Update dependency @opentelemetry/sdk-node to ^0.207.0 (#9883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 20:00:57 +08:00
renovate[bot] 785b0e04f1 Update dependency @opentelemetry/instrumentation-pg to ^0.60.0 (#9882)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 20:00:49 +08:00
renovate[bot] 3e665a4f5c Update dependency @opentelemetry/exporter-trace-otlp-http to ^0.207.0 (#9880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 20:00:33 +08:00
renovate[bot] 2dd134e0b8 Update dependency @opentelemetry/auto-instrumentations-node to ^0.66.0 (#9878)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 20:00:19 +08:00
lobehubbot 12577ec03c 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-26 06:14:05 +00:00
semantic-release-bot 9d87676d6a 🔖 chore(release): v1.142.2 [skip ci]
### [Version&nbsp;1.142.2](https://github.com/lobehub/lobe-chat/compare/v1.142.1...v1.142.2)
<sup>Released on **2025-10-26**</sup>

#### 💄 Styles

- **misc**: Improve provider modal height when creating custom provider.

<br/>

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

#### Styles

* **misc**: Improve provider modal height when creating custom provider, closes [#9870](https://github.com/lobehub/lobe-chat/issues/9870) ([55d92c0](https://github.com/lobehub/lobe-chat/commit/55d92c0))

</details>

<div align="right">

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

</div>
2025-10-26 06:12:56 +00:00
EldestBard 55d92c0241 💄 style: improve provider modal height when creating custom provider (#9870)
Remove fixed height for create new provider modal

Co-authored-by: daryl saxton <admin@dylsxtn.com>
2025-10-26 14:01:18 +08:00
Arvin Xu dec137a21e 🔨 chore: refactor ui message type (#9877)
* rename ChatMessage To UIChatMessage
refactor db message items

* rename ChatMessage To UIChatMessage
refactor db message items
2025-10-26 13:31:53 +08:00
lobehubbot 863521105e 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-26 03:45:32 +00:00
semantic-release-bot 9faf4c6b52 🔖 chore(release): v1.142.1 [skip ci]
### [Version&nbsp;1.142.1](https://github.com/lobehub/lobe-chat/compare/v1.142.0...v1.142.1)
<sup>Released on **2025-10-26**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-26 03:44:08 +00:00
YuTengjing 932ceb218b 🔨 chore: sync some small fix changes form cloud (#9875)
* chore: sync some small fix changes form cloud

* 🐛 fix(image): fix recreateImage execution order and test assertions

- Check activeGenerationTopicId before accessing batch to prevent undefined errors
- Update test mock to include required generations array
- Use batch.generations.length in test assertions instead of hardcoded value
2025-10-26 11:31:37 +08:00
renovate[bot] 3c197360e1 Update dependency lucide-react to ^0.548.0 (#9886)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 11:31:08 +08:00
LobeHub Bot 8d3bc91e46 🤖 style: update i18n (#9862) 2025-10-26 11:22:37 +08:00
lobehubbot 2558b31963 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-25 16:24:48 +00:00
Arvin Xu 2ac1ff324b ♻️ chore: refactor message type (#9876)
* refactor message position

* refactor @/message to @lobechat/types

* refactor @lobechat/types

* fix lint
2025-10-26 00:13:10 +08:00
bbbugg 26533b4938 📝 docs: update "ENABLED_COMFYUI" and remove "ENABLED_BFL" "ENABLED_VERCELAIGATEWAY" in docs (#9858)
* add ENABLED_COMFYUI, ENABLED_AWS_BEDROCK, ENABLED_OPENAI and remove ENABLED_BFL and ENABLED_VERCELAIGATEWAY

* 🐛 fix: update AiHubMix links and API key documentation

* revert change AiHubMix url
2025-10-24 16:15:56 +08:00
lobehubbot 15dd7ecea4 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-24 04:21:37 +00:00
semantic-release-bot e264c3ab9d 🔖 chore(release): v1.142.0 [skip ci]
## [Version&nbsp;1.142.0](https://github.com/lobehub/lobe-chat/compare/v1.141.10...v1.142.0)
<sup>Released on **2025-10-24**</sup>

####  Features

- **misc**: Use env to control clerk allow origin feature.

<br/>

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

#### What's improved

* **misc**: Use env to control clerk allow origin feature, closes [#9863](https://github.com/lobehub/lobe-chat/issues/9863) ([490fee0](https://github.com/lobehub/lobe-chat/commit/490fee0))

</details>

<div align="right">

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

</div>
2025-10-24 04:20:25 +00:00
Shinji-Li 490fee002e feat: use env to control clerk allow origin feature (#9863)
feat: use clerk allow origin feature
2025-10-24 12:08:22 +08:00
lobehubbot 55c1149d95 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-23 10:07:48 +00:00
semantic-release-bot fbc8d20f94 🔖 chore(release): v1.141.10 [skip ci]
### [Version&nbsp;1.141.10](https://github.com/lobehub/lobe-chat/compare/v1.141.9...v1.141.10)
<sup>Released on **2025-10-23**</sup>

#### 🐛 Bug Fixes

- **misc**: Loadmore not work & navbar not show in pwa.

<br/>

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

#### What's fixed

* **misc**: Loadmore not work & navbar not show in pwa, closes [#9855](https://github.com/lobehub/lobe-chat/issues/9855) ([411f875](https://github.com/lobehub/lobe-chat/commit/411f875))

</details>

<div align="right">

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

</div>
2025-10-23 10:06:40 +00:00
Shinji-Li 411f875584 🐛 fix: loadmore not work & navbar not show in pwa (#9855)
fix: fix pwa loadmore not work & navbar not show in pwa
2025-10-23 17:53:31 +08:00
lobehubbot 8d34065833 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-23 09:27:04 +00:00
semantic-release-bot 11fb073e2a 🔖 chore(release): v1.141.9 [skip ci]
### [Version&nbsp;1.141.9](https://github.com/lobehub/lobe-chat/compare/v1.141.8...v1.141.9)
<sup>Released on **2025-10-23**</sup>

#### 💄 Styles

- **misc**: Improve local system tools render.

<br/>

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

#### Styles

* **misc**: Improve local system tools render, closes [#9853](https://github.com/lobehub/lobe-chat/issues/9853) ([295e8fc](https://github.com/lobehub/lobe-chat/commit/295e8fc))

</details>

<div align="right">

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

</div>
2025-10-23 09:25:55 +00:00
Arvin Xu 295e8fc3b2 💄 style: improve local system tools render (#9853)
* refactor the local system tools render

* fix build

* pre merge intervention
2025-10-23 17:14:35 +08:00
lobehubbot b2f8b4e191 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-23 08:31:18 +00:00
semantic-release-bot 263ba692cb 🔖 chore(release): v1.141.8 [skip ci]
### [Version&nbsp;1.141.8](https://github.com/lobehub/lobe-chat/compare/v1.141.7...v1.141.8)
<sup>Released on **2025-10-23**</sup>

#### 💄 Styles

- **misc**: Improvement for Agent Team After Alpha Launch [LOB-517].

<br/>

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

#### Styles

* **misc**: Improvement for Agent Team After Alpha Launch [LOB-517], closes [#9748](https://github.com/lobehub/lobe-chat/issues/9748) ([28245be](https://github.com/lobehub/lobe-chat/commit/28245be))

</details>

<div align="right">

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

</div>
2025-10-23 08:30:13 +00:00
René Wang 28245be7f3 💄 style: Improvement for Agent Team After Alpha Launch [LOB-517] (#9748)
* feat: Create group member shortcut

* feat: Hide sub topic mode in group chat

* fix: persist stop thinking tag

* feat: ALlow quick

* fix: No fallback header

* feat: Control in lab

* fix: tag style

* fix: Hide virtual in the member add modal

* fix: Ts error

* feat: Replace string

* feat: Update strings

* fix: Cannot turn off host

* feat: Delete member after remove group

* feat: Rename varibles and files

* fix: Update test snap
2025-10-23 16:18:18 +08:00
lobehubbot f723b38fa8 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-23 03:38:33 +00:00
semantic-release-bot 5382df8cf8 🔖 chore(release): v1.141.7 [skip ci]
### [Version&nbsp;1.141.7](https://github.com/lobehub/lobe-chat/compare/v1.141.6...v1.141.7)
<sup>Released on **2025-10-23**</sup>

#### 💄 Styles

- **misc**: Allow removal of `top_p` and similar request parameters.

<br/>

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

#### Styles

* **misc**: Allow removal of `top_p` and similar request parameters, closes [#9498](https://github.com/lobehub/lobe-chat/issues/9498) ([4c313ce](https://github.com/lobehub/lobe-chat/commit/4c313ce))

</details>

<div align="right">

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

</div>
2025-10-23 03:37:10 +00:00
sxjeru 4c313ced5e 💄 style: Allow removal of top_p and similar request parameters (#9498)
*  feat: 增强参数管理,支持删除 undefined 和 null 值的参数

*  feat: 将模型参数中的 null 值转换为 undefined,以防止向 API 发送 null 值

*  feat: 更新参数处理逻辑,使用 null 表示禁用标记,优化前端与后端的参数同步

*  feat: 更新 Novita 和 SiliconCloud 模型,添加新模型并优化定价信息

* 🔧 refactor: remove deprecated model and update ID format in AI models

* 🔧 feat: update pricing for novita models and add new Ling 1T model to siliconcloud

* 🔧 feat: remove deprecated ERNIE model and add DeepSeek V3.2 Exp models to siliconcloud

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-10-23 11:25:49 +08:00
Arvin Xu b6f1fc4a14 test: add BDD test framework and initial tests with Playwright and Cucumber (#9843)
* try with bdd test

* update

* update

* add workspace

* update

* fix

* ci

* ci

* fix

* update

* update

* update parallel

* update config

* ️ perf: increase e2e timeout to 120 seconds

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* update config

* more parallel

* fix parallel

* fix tests

* refactor to improve performance

* fix

* fix

* fix

* refactor with tsx

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-10-23 02:15:24 +08:00
lobehubbot 0dc112436b 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-22 16:53:21 +00:00
semantic-release-bot 24c42f6025 🔖 chore(release): v1.141.6 [skip ci]
### [Version&nbsp;1.141.6](https://github.com/lobehub/lobe-chat/compare/v1.141.5...v1.141.6)
<sup>Released on **2025-10-22**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-10-22 16:52:16 +00:00
Arvin Xu 48ee38cf9b 👷 build: fix build (#9847)
* fix build

* use pnpm install to keep lint stricter
2025-10-23 00:40:57 +08:00
lobehubbot 654064ff7d 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-22 15:48:53 +00:00
semantic-release-bot b5219c220a 🔖 chore(release): v1.141.5 [skip ci]
### [Version&nbsp;1.141.5](https://github.com/lobehub/lobe-chat/compare/v1.141.4...v1.141.5)
<sup>Released on **2025-10-22**</sup>

#### ♻ Code Refactoring

- **misc**: Change discover page from RSC to SPA to improve performance.

<br/>

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

#### Code refactoring

* **misc**: Change discover page from RSC to SPA to improve performance, closes [#9828](https://github.com/lobehub/lobe-chat/issues/9828) ([b59ee0a](https://github.com/lobehub/lobe-chat/commit/b59ee0a))

</details>

<div align="right">

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

</div>
2025-10-22 15:47:41 +00:00
Shinji-Li b59ee0aabe ♻️ refactor: change discover page from RSC to SPA to improve performance (#9828)
* feat: change discord page to spa

* fix: change locals

* feat: update router change

* fix: revert some files

* feat: add model provider detail page use link

* fix: add trpc back

* feat: update e2e timeout time

* feat: change discord page to spa

* fix: change locals

* feat: update router change

* fix: revert some files

* feat: add model provider detail page use link

* fix: add trpc back

* feat: update e2e timeout time

* fix: use reactrouter-dom link replace next link
2025-10-22 23:35:49 +08:00
Arvin Xu d481315a66 👷 chore: pin bun@1.2.23 to fix vercel build (#9839)
pin bun
2025-10-22 19:13:50 +08:00
lobehubbot 4f5d1ff6af 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-22 05:05:26 +00:00
semantic-release-bot 1bd46e0346 🔖 chore(release): v1.141.4 [skip ci]
### [Version&nbsp;1.141.4](https://github.com/lobehub/lobe-chat/compare/v1.141.3...v1.141.4)
<sup>Released on **2025-10-22**</sup>

#### ♻ Code Refactoring

- **misc**: Fix model runtime cost calculate with CNY.

<br/>

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

#### Code refactoring

* **misc**: Fix model runtime cost calculate with CNY, closes [#9834](https://github.com/lobehub/lobe-chat/issues/9834) ([2e911ea](https://github.com/lobehub/lobe-chat/commit/2e911ea))

</details>

<div align="right">

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

</div>
2025-10-22 05:04:18 +00:00
René Wang a8be073b65 💄 style: support files auto chunking (#9823)
* feat: Auto chunking

* feat: Auto chunking

* opti: Lazy loading for preview content
2025-10-22 12:52:11 +08:00
Arvin Xu 2e911ea9f5 ♻️ refactor: fix model runtime cost calculate with CNY (#9834)
* fix model runtime cost calculate

* add tests
2025-10-22 12:49:51 +08:00
lobehubbot a89f4c73b4 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-22 03:17:53 +00:00
semantic-release-bot ebf5a8f649 🔖 chore(release): v1.141.3 [skip ci]
### [Version&nbsp;1.141.3](https://github.com/lobehub/lobe-chat/compare/v1.141.2...v1.141.3)
<sup>Released on **2025-10-22**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-22 03:16:46 +00:00
LobeHub Bot 80b0999467 🤖 style: update i18n (#9832)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-22 11:05:01 +08:00
bbbugg be952f95fd 📝 docs: update GitHub stars link and tutorial URLs in README files (#9831) 2025-10-22 11:04:38 +08:00
lobehubbot d46bb9ad8b 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-21 15:21:23 +00:00
semantic-release-bot 8e7f541a0b 🔖 chore(release): v1.141.2 [skip ci]
### [Version&nbsp;1.141.2](https://github.com/lobehub/lobe-chat/compare/v1.141.1...v1.141.2)
<sup>Released on **2025-10-21**</sup>

#### 💄 Styles

- **settings**: Broadcast locale changes and update switchLocale action.

<br/>

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

#### Styles

* **settings**: Broadcast locale changes and update switchLocale action, closes [#9620](https://github.com/lobehub/lobe-chat/issues/9620) ([0eb02ca](https://github.com/lobehub/lobe-chat/commit/0eb02ca))

</details>

<div align="right">

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

</div>
2025-10-21 15:20:15 +00:00
𝑾𝒖𝒙𝒉 0eb02ca1c5 💄 style(settings): broadcast locale changes and update switchLocale action (#9620)
chore(locale): broadcast locale changes and update switchLocale action
2025-10-21 23:08:38 +08:00
Arvin Xu b90436421b build: pin posthog@1.278.0 to fix build (#9829) 2025-10-21 23:07:14 +08:00
lobehubbot e284330678 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-21 12:45:04 +00:00
semantic-release-bot ea9da27e72 🔖 chore(release): v1.141.1 [skip ci]
### [Version&nbsp;1.141.1](https://github.com/lobehub/lobe-chat/compare/v1.141.0...v1.141.1)
<sup>Released on **2025-10-21**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor context engine.

<br/>

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

#### Code refactoring

* **misc**: Refactor context engine, closes [#9821](https://github.com/lobehub/lobe-chat/issues/9821) ([e99f12f](https://github.com/lobehub/lobe-chat/commit/e99f12f))

</details>

<div align="right">

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

</div>
2025-10-21 12:43:58 +00:00
Arvin Xu e99f12f840 ♻️ refactor: refactor context engine (#9821)
* refactor context engine

* fix LocalSystem issue

* refactor mcp in local
2025-10-21 20:32:42 +08:00
lobehubbot bbc037912c 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-21 09:01:24 +00:00
semantic-release-bot 9881b7b303 🔖 chore(release): v1.141.0 [skip ci]
## [Version&nbsp;1.141.0](https://github.com/lobehub/lobe-chat/compare/v1.140.0...v1.141.0)
<sup>Released on **2025-10-21**</sup>

####  Features

- **misc**: Add PDF export functionality to share modal.

#### 🐛 Bug Fixes

- **misc**: Ignore abort signal errors in TRPC client, slove when pwa user info have code cannot be viewed in full.

#### 💄 Styles

- **misc**: Add knowledge base mansory layout [LOB-496], improve rich text link display.

<br/>

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

#### What's improved

* **misc**: Add PDF export functionality to share modal, closes [#9300](https://github.com/lobehub/lobe-chat/issues/9300) [#9299](https://github.com/lobehub/lobe-chat/issues/9299) ([2b7761c](https://github.com/lobehub/lobe-chat/commit/2b7761c))

#### What's fixed

* **misc**: Ignore abort signal errors in TRPC client, closes [#9809](https://github.com/lobehub/lobe-chat/issues/9809) [#9401](https://github.com/lobehub/lobe-chat/issues/9401) ([7f7dcfb](https://github.com/lobehub/lobe-chat/commit/7f7dcfb))
* **misc**: Slove when pwa user info have code cannot be viewed in full, closes [#9817](https://github.com/lobehub/lobe-chat/issues/9817) ([6734a47](https://github.com/lobehub/lobe-chat/commit/6734a47))

#### Styles

* **misc**: Add knowledge base mansory layout [LOB-496], closes [#9722](https://github.com/lobehub/lobe-chat/issues/9722) ([69f21da](https://github.com/lobehub/lobe-chat/commit/69f21da))
* **misc**: Improve rich text link display, closes [#9816](https://github.com/lobehub/lobe-chat/issues/9816) ([af33543](https://github.com/lobehub/lobe-chat/commit/af33543))

</details>

<div align="right">

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

</div>
2025-10-21 08:59:56 +00:00
Arvin Xu e9de9e3b52 test: fix tests (#9818)
fix tests
2025-10-21 16:48:24 +08:00
René Wang 69f21da3e1 💄 style: add knowledge base mansory layout [LOB-496] (#9722)
* feat: Add knowlwdge base entry

* feat: Bump dayjs

* style: Mansory

* feat: Persist state in URL

* lint: Remove unesd file

* feat: Skelton

* fix: Persist view preference

* fix: Chunk label

* fix: Lint error

* fix: Activate style

* fix: Image size
2025-10-21 16:42:58 +08:00
Shinji-Li 2b7761c36e feat: add PDF export functionality to share modal (#9300)
* feat: add PDF export functionality to share modal

- Create usePdfExport hook with jsPDF and html2canvas
- Add "Export as PDF" button to screenshot tab in share modal
- Support multi-page PDFs for long conversations
- Add required dependencies: jspdf@^2.5.2 and html2canvas@^1.4.1
- Add localization support for PDF export button

Fixes #9299

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: LobeHub Bot <lobehubbot@users.noreply.github.com>

* ♻️ refactor: convert PDF export to separate tab with backend generation

- Create new SharePdf tab component with PDF.js preview
- Move PDF generation from frontend to backend via tRPC
- Add server-side PDF generation using jsPDF
- Remove old PDF export button from ShareImage component
- Add proper loading states and error handling
- Update localization for PDF tab

Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>

* 🐛 fix: resolve unicorn/no-await-expression-member lint error in PDF exporter

Split await expression member access to avoid linting error in exporter.ts

Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>

* feat: add i18n

* feat: use pdfkit to export a pdf

* feat: add fullscreen preview

* feat: update pdf preview styles

* feat: add i18n locales

* feat: add single pdf share modal

* feat: update css & client mode cant use pdf genertate

* fix: mobile style fixed

* fix: delete console.log & useless packagejson

* feat: use online otf link

---------

Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>
2025-10-21 16:32:17 +08:00
Shinji-Li 6734a47759 🐛 fix: slove when pwa user info have code cannot be viewed in full (#9817)
fix: slove when pwa user info have code cCannot be viewed in full
2025-10-21 16:22:46 +08:00
Arvin Xu 7f7dcfbff9 🩹 fix: ignore abort signal errors in TRPC client (#9809)
- Add abort error detection in lambda client error handling link
- Prevent showing notifications for aborted requests (e.g., rapid settings updates)
- Check for various abort error patterns: 'aborted', 'AbortError', 'signal is aborted without reason'

Fixes #9401

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-10-21 16:17:18 +08:00
Arvin Xu af33543cba 💄 style: improve rich text link display (#9816)
* fix model runtime issue

* fix model runtime issue
2025-10-21 16:17:08 +08:00
lobehubbot 8b619f0a8e 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-21 07:47:09 +00:00
semantic-release-bot b81d8f79a4 🔖 chore(release): v1.140.0 [skip ci]
## [Version&nbsp;1.140.0](https://github.com/lobehub/lobe-chat/compare/v1.139.5...v1.140.0)
<sup>Released on **2025-10-21**</sup>

####  Features

- **misc**: Add ComfyUI integration Phase1(RFC-128).

<br/>

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

#### What's improved

* **misc**: Add ComfyUI integration Phase1(RFC-128), closes [#9043](https://github.com/lobehub/lobe-chat/issues/9043) ([15ffe28](https://github.com/lobehub/lobe-chat/commit/15ffe28))

</details>

<div align="right">

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

</div>
2025-10-21 07:46:07 +00:00
Maple Gao 15ffe289f5 feat: add ComfyUI integration Phase1(RFC-128) (#9043)
Co-authored-by: YuTengjing <ytj2713151713@gmail.com>
2025-10-21 15:34:57 +08:00
lobehubbot 2606f93146 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-21 07:28:40 +00:00
semantic-release-bot c882e75580 🔖 chore(release): v1.139.5 [skip ci]
### [Version&nbsp;1.139.5](https://github.com/lobehub/lobe-chat/compare/v1.139.4...v1.139.5)
<sup>Released on **2025-10-21**</sup>

#### 🐛 Bug Fixes

- **desktop**: Fix desktop open error in some edge cases.

<br/>

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

#### What's fixed

* **desktop**: Fix desktop open error in some edge cases, closes [#9813](https://github.com/lobehub/lobe-chat/issues/9813) ([6334f62](https://github.com/lobehub/lobe-chat/commit/6334f62))

</details>

<div align="right">

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

</div>
2025-10-21 07:27:27 +00:00
Arvin Xu 6334f62aa1 🐛 fix(desktop): fix desktop open error in some edge cases (#9813)
fix lock file bug
2025-10-21 15:16:10 +08:00
Shinji-Li 0af13ca057 fix: sub topic fetch branching topic id was used dynmic get (#9811)
* feat: when branching topic id was dynmic fetch

* fix: add topic id into callback dep
2025-10-21 14:16:40 +08:00
lobehubbot 68d6457659 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-21 05:06:36 +00:00
semantic-release-bot 3466055968 🔖 chore(release): v1.139.4 [skip ci]
### [Version&nbsp;1.139.4](https://github.com/lobehub/lobe-chat/compare/v1.139.3...v1.139.4)
<sup>Released on **2025-10-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Pass threadId to messages in sendMessageInServer.

<br/>

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

#### What's fixed

* **misc**: Pass threadId to messages in sendMessageInServer, closes [#9808](https://github.com/lobehub/lobe-chat/issues/9808) ([d99a3a8](https://github.com/lobehub/lobe-chat/commit/d99a3a8))

</details>

<div align="right">

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

</div>
2025-10-21 05:05:20 +00:00
Arvin Xu d99a3a80f8 🐛 fix: pass threadId to messages in sendMessageInServer (#9808)
* fix dev hydration

* 🐛 fix: pass threadId to messages in sendMessageInServer

- Add threadId parameter to CreateMessageParams interface
- Pass threadId when creating user and assistant messages in aiChat router
- Add comprehensive tests for threadId handling and outputJSON method

This ensures thread context is properly maintained across message creation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

*  test: add comprehensive tests for addUserMessage

- Test early return when activeId is undefined
- Test message creation with files
- Test threadId propagation when activeThreadId is set
- Test input message clearing after message creation
- Test handling messages without fileList

This ensures the addUserMessage action correctly handles all scenarios including thread context.

🤖 Generated with [Claude Code](https://claude.com/claude-code)



* fix thread fix

* move

* baseline

*  test: fix and improve message integration tests

- Mock FileService to avoid S3 initialization issues
- Mock getServerDB to use test database instance
- Add test for threadId parameter in message creation
- Fix pagination test to handle variable message counts
- Fix batchCreate test to skip rowCount assertion (undefined in PGlite)
- Skip topicId validation test (not currently enforced)

All 15 integration tests now passing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


* refactor

* improve
2025-10-21 12:54:52 +08:00
renovate[bot] cc37acb30b Update actions/download-artifact action to v5 (#8740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 12:14:18 +08:00
Arvin Xu eb708e04fe 📝 docs: fix outdated server-side database documentation (#9806)
- Update environment file setup instructions to use docker-compose/local/.env.example instead of .env.example.development
- Fix references to environment file locations in both English and Chinese documentation
- Align documentation with actual Docker Compose configuration that uses env_file: .env in docker-compose/local/ directory

Fixes #9525

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-10-21 11:24:12 +08:00
lobehubbot 11df190f36 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-21 02:42:55 +00:00
semantic-release-bot a094d5c04c 🔖 chore(release): v1.139.3 [skip ci]
### [Version&nbsp;1.139.3](https://github.com/lobehub/lobe-chat/compare/v1.139.2...v1.139.3)
<sup>Released on **2025-10-21**</sup>

#### 💄 Styles

- **misc**: Show message author in minimap.

<br/>

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

#### Styles

* **misc**: Show message author in minimap, closes [#9797](https://github.com/lobehub/lobe-chat/issues/9797) ([f6daefb](https://github.com/lobehub/lobe-chat/commit/f6daefb))

</details>

<div align="right">

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

</div>
2025-10-21 02:41:24 +00:00
René Wang f6daefb0a2 💄 style: Show message author in minimap (#9797)
* feat: Show message author

* fix: Use debug instead

* Update index.tsx
2025-10-21 10:30:34 +08:00
renovate[bot] b8c59be3a7 Update dependency openapi-fetch to ^0.14.0 (#5596)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 10:01:09 +08:00
renovate[bot] 284faf799b Update dependency @electron-toolkit/tsconfig to v2 (#9556)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 09:50:17 +08:00
lobehubbot 88d194c3b6 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-20 16:40:00 +00:00
semantic-release-bot 6c53a5f026 🔖 chore(release): v1.139.2 [skip ci]
### [Version&nbsp;1.139.2](https://github.com/lobehub/lobe-chat/compare/v1.139.1...v1.139.2)
<sup>Released on **2025-10-20**</sup>

#### 💄 Styles

- **misc**: Solve when desktop the sider agent list too long.

<br/>

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

#### Styles

* **misc**: Solve when desktop the sider agent list too long, closes [#9792](https://github.com/lobehub/lobe-chat/issues/9792) ([778dea3](https://github.com/lobehub/lobe-chat/commit/778dea3))

</details>

<div align="right">

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

</div>
2025-10-20 16:38:30 +00:00
renovate[bot] d430836f20 Update dependency @anthropic-ai/sdk to ^0.67.0 (#9771)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 00:27:21 +08:00
jjangga0214 7571b66284 👷 build(deps): missing deps for model-runtime (#9782) 2025-10-21 00:26:23 +08:00
Shinji-Li 3ec394d77a fix: slove when desktop 401 not pop up many message (#9789)
* fix: slove when desktop 401 not theathore many message

* fix: fixed desktop store login judge
2025-10-21 00:23:00 +08:00
Shinji-Li 778dea3853 💄 style: solve when desktop the sider agent list too long (#9792)
fix: solve when desktop the sider agent list too long
2025-10-21 00:22:30 +08:00
Rylan Cai f599617042 🔨 chore: remove logs in message action (#9800)
🔥 chore: remove logs in message action
2025-10-20 23:58:55 +08:00
YuTengjing cc8f5d0639 🔨 chore: improve bug report template with validations and client type field (#9795)
* 🔧 feat: improve bug report template with client type field

- Rename Platform to Deployment Platform and make it optional for Desktop App users
- Fix Deployment Mode typo and improve formatting
- Add Client Type field to distinguish Web/Desktop/Mobile access methods
- Improve overall template formatting with better spacing

* 🔧 feat: add validations and PR willingness to bug report template

- Add "Willing to Submit a PR?" dropdown field to encourage contributions
- Add validation checkboxes to ensure quality issue reports
- Include checks for docs reading, duplicate issues, and concrete bugs

* ♻️ refactor: reorder bug report fields to prioritize client type

- Move Client Type to the first field for better categorization
- Move Operating System to second field
- Prioritize platform-related fields before deployment details
2025-10-20 23:54:58 +08:00
jjangga0214 32d365b544 🔨 chore(i18n): rm {{systemRole}} from ko-KR (#9793)
🐛 fix(i18n): rm {{systemRole}} from ko-KR
2025-10-20 16:10:23 +08:00
renovate[bot] 0ff41dba9c Update dependency @opentelemetry/instrumentation to ^0.206.0 (#9772)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-20 15:04:15 +08:00
renovate[bot] fd68cc364c Update dependency @opentelemetry/sdk-node to ^0.206.0 (#9774)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-20 15:04:05 +08:00
lobehubbot ce7a74242f 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-20 02:56:09 +00:00
semantic-release-bot 7f9bfda652 🔖 chore(release): v1.139.1 [skip ci]
### [Version&nbsp;1.139.1](https://github.com/lobehub/lobe-chat/compare/v1.139.0...v1.139.1)
<sup>Released on **2025-10-20**</sup>

#### ♻ Code Refactoring

- **i18n**: Rm qa.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Code refactoring

* **i18n**: Rm qa, closes [#9783](https://github.com/lobehub/lobe-chat/issues/9783) ([6d14dfe](https://github.com/lobehub/lobe-chat/commit/6d14dfe))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-20 02:54:52 +00:00
jjangga0214 5f10aace5b 👷 build(deps): add transitive phantom dependencies (#9784) 2025-10-20 10:44:35 +08:00
jjangga0214 6d14dfe50d ♻️ refactor(i18n): rm qa (#9783) 2025-10-20 10:42:33 +08:00
sxjeru 12f54759df 🔨 chore: Enable webpackBuildWorker to optimize build memory (#9350)
Enable webpackBuildWorker in next.config.ts
2025-10-20 10:40:53 +08:00
LobeHub Bot b43d4b27ad 🤖 style: update i18n (#9787)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-20 10:32:04 +08:00
lobehubbot dab987f64b 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-19 12:06:08 +00:00
semantic-release-bot 2e24f72b2a 🔖 chore(release): v1.139.0 [skip ci]
## [Version&nbsp;1.139.0](https://github.com/lobehub/lobe-chat/compare/v1.138.5...v1.139.0)
<sup>Released on **2025-10-19**</sup>

####  Features

- **misc**: Support image generation for siliconcloud.

<br/>

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

#### What's improved

* **misc**: Support image generation for siliconcloud, closes [#9447](https://github.com/lobehub/lobe-chat/issues/9447) ([5ebcfa5](https://github.com/lobehub/lobe-chat/commit/5ebcfa5))

</details>

<div align="right">

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

</div>
2025-10-19 12:05:00 +00:00
WangYK 5ebcfa531e feat: support image generation for siliconcloud (#9447)
Co-authored-by: YuTengjing <ytj2713151713@gmail.com>
2025-10-19 19:54:11 +08:00
sxjeru 1b3f88346b 🔨 chore: Update HF provider support (#9751)
* feat: update Hugging Face integration with new model fetching logic and pricing support

* fix: format adjustments in convertOpenAIMessagesToHFFormat function and update max_tokens handling

* refactor: remove enabled property from huggingfaceChatModels and clean up related tests

* feat: 添加 Qwen3-VL-8B-Instruct 和 Qwen3-VL-8B-Thinking 模型,支持视觉理解和推理

* feat: 实现 OpenAI 消息格式转换为 Hugging Face 格式,并添加相关单元测试
2025-10-19 15:29:42 +08:00
renovate[bot] 808cb21b99 Update pnpm to v10.18.3 (#9770)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-19 15:26:09 +08:00
lobehubbot c6dd22eea6 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-18 09:21:51 +00:00
semantic-release-bot da5427ccdf 🔖 chore(release): v1.138.5 [skip ci]
### [Version&nbsp;1.138.5](https://github.com/lobehub/lobe-chat/compare/v1.138.4...v1.138.5)
<sup>Released on **2025-10-18**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor upload router into lambda and decide to remove it in V2.

<br/>

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

#### Code refactoring

* **misc**: Refactor upload router into lambda and decide to remove it in V2, closes [#9766](https://github.com/lobehub/lobe-chat/issues/9766) ([d1c7f41](https://github.com/lobehub/lobe-chat/commit/d1c7f41))

</details>

<div align="right">

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

</div>
2025-10-18 09:20:47 +00:00
Arvin Xu d1c7f41bd4 ♻️ refactor: refactor upload router into lambda and decide to remove it in V2 (#9766)
refactor edge router and decide to remove it in V2
2025-10-18 17:09:55 +08:00
lobehubbot 6681989fe6 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-18 08:50:51 +00:00
semantic-release-bot 48a7a08110 🔖 chore(release): v1.138.4 [skip ci]
### [Version&nbsp;1.138.4](https://github.com/lobehub/lobe-chat/compare/v1.138.3...v1.138.4)
<sup>Released on **2025-10-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix response API tools calling issue.

<br/>

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

#### What's fixed

* **misc**: Fix response API tools calling issue, closes [#9760](https://github.com/lobehub/lobe-chat/issues/9760) ([0596692](https://github.com/lobehub/lobe-chat/commit/0596692))

</details>

<div align="right">

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

</div>
2025-10-18 08:49:45 +00:00
Arvin Xu 0596692e95 🐛 fix: fix response API tools calling issue (#9760)
* fix response tools calling

* add log

* fix

* fix tests

* fix all text and lint and types

* refactor google context builder

* add tests
2025-10-18 16:39:22 +08:00
bbbugg 59ea77d746 test: add search unit test cases for merging the user model with the base model (#9764)
test: add search unit test cases for merging the user model with the base model.
2025-10-18 15:28:35 +08:00
lobehubbot 4aa570c904 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-18 05:48:48 +00:00
semantic-release-bot c9ea5336d3 🔖 chore(release): v1.138.3 [skip ci]
### [Version&nbsp;1.138.3](https://github.com/lobehub/lobe-chat/compare/v1.138.2...v1.138.3)
<sup>Released on **2025-10-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix topic fetch not correct in custom agent.

<br/>

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

#### What's fixed

* **misc**: Fix topic fetch not correct in custom agent, closes [#9761](https://github.com/lobehub/lobe-chat/issues/9761) ([ceffce2](https://github.com/lobehub/lobe-chat/commit/ceffce2))

</details>

<div align="right">

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

</div>
2025-10-18 05:47:20 +00:00
Arvin Xu ceffce27c3 🐛 fix: fix topic fetch not correct in custom agent (#9761)
* fix topic issue

* fix tests
2025-10-18 13:34:07 +08:00
bbbugg b56c9c51b8 🐛fix: update search settings handling based on explicit model search abilities (#9757) 2025-10-18 13:01:03 +08:00
Arvin Xu 97a6c8e172 🔨 chore: refactor the prompt engineering (#9744)
refactor the prompt engineering
2025-10-17 22:19:26 +08:00
renovate[bot] 727c92ad5b Update dependency @opentelemetry/auto-instrumentations-node to ^0.65.0 (#9669)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-17 17:27:40 +08:00
renovate[bot] 25e45a4cd4 Update dependency @opentelemetry/exporter-trace-otlp-http to ^0.206.0 (#9672)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-17 17:27:33 +08:00
renovate[bot] 296bad9fa4 Update dependency @opentelemetry/instrumentation-pg to ^0.59.0 (#9459)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-17 16:43:21 +08:00
renovate[bot] d8d28371d6 Update ghcr.io/grafana/xk6-client-tracing Docker tag to v0.0.9 (#9666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-17 16:14:08 +08:00
renovate[bot] a588319cf1 Update dependency @opentelemetry/exporter-metrics-otlp-http to ^0.206.0 (#9670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-17 16:13:35 +08:00
lobehubbot 527ab0add7 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-16 18:28:58 +00:00
semantic-release-bot f2230ae536 🔖 chore(release): v1.138.2 [skip ci]
### [Version&nbsp;1.138.2](https://github.com/lobehub/lobe-chat/compare/v1.138.1...v1.138.2)
<sup>Released on **2025-10-16**</sup>

#### 💄 Styles

- **misc**: Improve welcome message.

<br/>

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

#### Styles

* **misc**: Improve welcome message, closes [#9747](https://github.com/lobehub/lobe-chat/issues/9747) ([c83fe13](https://github.com/lobehub/lobe-chat/commit/c83fe13))

</details>

<div align="right">

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

</div>
2025-10-16 18:27:52 +00:00
Arvin Xu c83fe13d7c 💄 style: improve welcome message (#9747)
* add feishu

* update i18n

* refactor

* rename

* rename
2025-10-17 02:16:45 +08:00
lobehubbot f4b9d6795b 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-16 16:52:22 +00:00
semantic-release-bot 77bc2614a4 🔖 chore(release): v1.138.1 [skip ci]
### [Version&nbsp;1.138.1](https://github.com/lobehub/lobe-chat/compare/v1.138.0...v1.138.1)
<sup>Released on **2025-10-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Automatic topic creation switch does not work.

<br/>

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

#### What's fixed

* **misc**: Automatic topic creation switch does not work, closes [#9693](https://github.com/lobehub/lobe-chat/issues/9693) ([a02b301](https://github.com/lobehub/lobe-chat/commit/a02b301))

</details>

<div align="right">

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

</div>
2025-10-16 16:51:11 +00:00
sxjeru a02b301904 🐛 fix: Automatic topic creation switch does not work (#9693)
*  feat: 添加自动创建主题功能,支持根据消息数量和配置阈值决定是否创建新主题

* typo

* fix test

* 删除 GLM-4.6 模型的定义

*  feat: 添加 Ring-1T 和 Ling-1T 模型定义,扩展聊天模型库

*  feat: 添加 Qwen3 VL 模型,扩展聊天模型库并更新 Vercel AI Gateway 模型定价

* fix test
2025-10-17 00:41:02 +08:00
Arvin Xu 846a7a5986 🔨 chore: support Feishu OAuth Provider (#9745)
* feat: 添加 Feishu 作为新的 OAuth 认证提供者,并更新相关配置

* docs: 添加 Feishu 应用的环境变量配置说明

* refactor: 移除 Feishu 相关的环境变量配置,对齐 auth.js 环境变量规范

* improve docs

* add feishu

---------

Co-authored-by: 赵远景 <zhaoyuanjing@shouqianba.com>
2025-10-17 00:17:19 +08:00
lobehubbot bc7aa88a8f 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-16 14:28:33 +00:00
semantic-release-bot 85c4553821 🔖 chore(release): v1.138.0 [skip ci]
## [Version&nbsp;1.138.0](https://github.com/lobehub/lobe-chat/compare/v1.137.10...v1.138.0)
<sup>Released on **2025-10-16**</sup>

####  Features

- **misc**: Support Group Chat, Mention, and Multi-Agent Orchestration with feature flag.

<br/>

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

#### What's improved

* **misc**: Support Group Chat, Mention, and Multi-Agent Orchestration with feature flag, closes [#8976](https://github.com/lobehub/lobe-chat/issues/8976) ([03c2838](https://github.com/lobehub/lobe-chat/commit/03c2838))

</details>

<div align="right">

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

</div>
2025-10-16 14:27:25 +00:00
René Wang 03c28385e5 feat: support Group Chat, Mention, and Multi-Agent Orchestration with feature flag (#8976)
* feat: implement group chat functionality

* fix

* update

* revert pglite mock

* fix: Add missing test

* fix mention

* fix mention

* lint: Clear unused varibles

* fix: type check

* fix: Coverage

* build: Add missing test

* fix: add mention back

* fix: Add missing test

* fix: Add test for topic

* feat: Group chat fallback style

* fix: Revert unncessary files

* fix: circular deps

* feat: tool usage

* fix: Replace debug info

* feat: Update i18n

* opti: Better prompr

* fix claude

* feat: Filter model without function calling

* fix: DM reduction

* lint: Address build error

* fix: Test error

* feat: Store model info

* style: Clean up welcome messaeg

* feat: Use new welcome message

* fix: inbox not working

* fix: inbox not working

* fix: type error

* feat: Optimize prompt

* fix: Revert unintentional changes

* lint: Remove unused code

* fix: better test

* fix: Use debug

* refact: Move normalization postion

* opti: Better prompt

* opti: Better prompt

* opti: Better prompt

* lint: Clear console.log

* fix: Update test snap

* fix: test error

* fix: Unexpectly test fail

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-10-16 22:16:40 +08:00
lobehubbot e525cb2ed6 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-16 14:02:46 +00:00
semantic-release-bot ea44ef1b4c 🔖 chore(release): v1.137.10 [skip ci]
### [Version&nbsp;1.137.10](https://github.com/lobehub/lobe-chat/compare/v1.137.9...v1.137.10)
<sup>Released on **2025-10-16**</sup>

#### 💄 Styles

- **misc**: Add Claude Haiku 4.5 model.

<br/>

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

#### Styles

* **misc**: Add Claude Haiku 4.5 model, closes [#9735](https://github.com/lobehub/lobe-chat/issues/9735) ([1cfbc87](https://github.com/lobehub/lobe-chat/commit/1cfbc87))

</details>

<div align="right">

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

</div>
2025-10-16 14:01:35 +00:00
sxjeru 1cfbc878bd 💄 style: Add Claude Haiku 4.5 model (#9735)
* feat: 添加 Claude Haiku 4.5 模型及其相关配置

* fix: 修复模型 ID 格式并移除 Llama 4 Maverick 模型

* 添加 doubao-seed-1.6-lite;更新模型价格区间格式,调整价格单位为百万 tokens

* fix: Invalid combination of reasoning_effort and thinking type: low + disabled

* feat: 添加 Qwen3 VL Flash 和 Qwen3 Coder 30B A3B 模型,更新定价和发布信息
2025-10-16 21:50:32 +08:00
Rdmclin2 61bbd596f0 🔨 chore: mobile related server implementation pick from mobile app (#9691)
* server: sync from feat/mobile-app (exclude apps/mobile)

* Update package.json

* chore(mobile): update mobile router imports to use lambda

* chore(mobile): refactor mobile router

* chore: format tsconfig.json

* chore(mobile): simplify mobile router

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
Co-authored-by: Tsuki <976499226@qq.com>
2025-10-16 11:32:58 +07:00
lobehubbot 6508e2fcaf 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-15 16:12:31 +00:00
semantic-release-bot 7cef9d88ea 🔖 chore(release): v1.137.9 [skip ci]
### [Version&nbsp;1.137.9](https://github.com/lobehub/lobe-chat/compare/v1.137.8...v1.137.9)
<sup>Released on **2025-10-15**</sup>

#### 💄 Styles

- **misc**: Improve update notification.

<br/>

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

#### Styles

* **misc**: Improve update notification, closes [#9717](https://github.com/lobehub/lobe-chat/issues/9717) ([16de38a](https://github.com/lobehub/lobe-chat/commit/16de38a))

</details>

<div align="right">

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

</div>
2025-10-15 16:11:22 +00:00
Arvin Xu 16de38ae32 💄 style: improve update notification (#9717)
* refactor tool source

* Revert "refactor tool source"

This reverts commit a867118a52.

* improve update notification

* improve locale
2025-10-16 00:00:35 +08:00
lobehubbot c6257f1dba 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-15 14:51:34 +00:00
semantic-release-bot b2c28d0810 🔖 chore(release): v1.137.8 [skip ci]
### [Version&nbsp;1.137.8](https://github.com/lobehub/lobe-chat/compare/v1.137.7...v1.137.8)
<sup>Released on **2025-10-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix duplicate tools id issue and fix link dialog issue.

#### 💄 Styles

- **misc**: Add region support for Vertex AI provider.

<br/>

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

#### What's fixed

* **misc**: Fix duplicate tools id issue and fix link dialog issue, closes [#9731](https://github.com/lobehub/lobe-chat/issues/9731) ([0a8c80d](https://github.com/lobehub/lobe-chat/commit/0a8c80d))

#### Styles

* **misc**: Add region support for Vertex AI provider, closes [#9720](https://github.com/lobehub/lobe-chat/issues/9720) ([d17b50c](https://github.com/lobehub/lobe-chat/commit/d17b50c))

</details>

<div align="right">

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

</div>
2025-10-15 14:50:23 +00:00
Arvin Xu d17b50c6dc 💄 style: add region support for Vertex AI provider (#9720)
 feat: add region support for Vertex AI provider

- Add VertexAIKeyVault interface with region support
- Update UI to include region selector with 35+ regions
- Add vertexAIRegion field to ClientSecretPayload
- Update backend to use user-selected region with fallback
- Add i18n support for English and Chinese
- Fix issue with Gemini 2.5 models requiring global region
2025-10-15 22:39:36 +08:00
Arvin Xu 0a8c80dfd2 🐛 fix: fix duplicate tools id issue and fix link dialog issue (#9731)
* add

* baseline

*  test(store): add tests for discover store plugin and mcp slices

- Add comprehensive tests for discover/slices/plugin/action.ts (15 tests)
- Add comprehensive tests for discover/slices/mcp/action.ts (11 tests)
- Update test-coverage.md with new metrics and completed work
- Coverage: 74.24% overall (+26 tests, 2 new test files)
- Action files coverage: 29/40 tested (72.5%, +2 files)

Features tested:
- Plugin/MCP categories, detail, identifiers, and list fetching
- SWR key generation with locale and parameters
- SWR configuration verification
- Service integration with discoverService

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 📝 docs(testing): add SWR hooks testing guide and subagent workflow

Testing Guide Updates:
- Add comprehensive SWR hooks testing section with examples
- Document key differences from regular action tests
- Add examples for testing SWR key generation and configuration
- Add examples for testing conditional fetching
- Update references to include SWR hook test examples

Test Coverage Guide Updates:
- Add detailed subagent workflow for parallel testing
- Document when and how to use subagents for testing
- Add complete workflow example using subagents
- Add benefits and best practices for subagent usage
- Clarify that subagents should NOT commit or update docs
- Add step-by-step guide for launching parallel subagents

Key improvements:
- Better documentation for testing SWR-based store actions
- Clear workflow for efficient parallel testing using subagents
- Single atomic commit strategy after all subagents complete
- Improved testing efficiency and organization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ♻️ refactor(test): fix SWR mock strategy to properly test fetcher

Previously, tests were hardcoding return values instead of calling
the fetcher function. This bypassed the actual service call logic.

Changes:
- Fix useSWR mock to call fetcher and return its Promise
- Update assertions to await Promise results
- Update testing guide with correct mock pattern
- Add explanation of why this approach is correct

Before (incorrect):
```typescript
useSWRMock.mockImplementation(((key, fetcher) => {
  fetcher?.(); // Call but ignore result
  return { data: mockData }; // Hardcoded
}) as any);
expect(result.current.data).toEqual(mockData);
```

After (correct):
```typescript
useSWRMock.mockImplementation(((key, fetcher) => {
  const data = fetcher?.(); // Get Promise from fetcher
  return { data }; // Return Promise
}) as any);
const resolvedData = await result.current.data;
expect(resolvedData).toEqual(mockData);
```

Benefits:
-  Actually tests the fetcher function
-  Mirrors real SWR behavior (data is Promise)
-  Service calls are properly verified
-  Tests are more accurate and maintainable

Updated files:
- .cursor/rules/testing-guide/zustand-store-action-test.mdc
- src/store/discover/slices/plugin/action.test.ts
- src/store/discover/slices/mcp/action.test.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 🐛 fix(test): correct SWR mock strategy to match project standards

- Remove useSWR mocking, use real SWR implementation instead
- Only mock service methods (fetchers) with vi.spyOn
- Use waitFor for async assertions
- Update testing guide with correct SWR pattern
- Add reference to src/store/chat/slices/message/action.test.ts

This fixes the incorrect mocking approach from previous commits.
All 13 tests pass with the corrected strategy.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

*  test(store): add comprehensive tests for high priority action files

- Add mcpStore action tests (41 tests, 624 LOC covered)
  - MCP plugin installation flow (normal, resume, dependencies, config)
  - Connection testing (HTTP and STDIO)
  - Plugin lifecycle management
  - Error handling and cancellation flows

- Add fileManager action tests (35 tests, 205 LOC covered)
  - File upload and processing workflows
  - Chunk embedding and parsing
  - File list management and refresh
  - SWR data fetching

Testing approach:
- Used parallel subagents for efficient development
- Followed zustand testing patterns from guide
- Proper test layering and per-test mocking
- All tests pass type-check and lint

Coverage improvement: 74.24% → ~76% (+76 tests, 2 files)
Action files: 29/40 → 31/40 tested (77.5%)

🏆 Milestone: All high priority files (>200 LOC) now have tests!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

*  test(store): complete 100% action file coverage with 160 new tests

Added comprehensive tests for all remaining 9 medium-priority action files:

Discovery Store (33 tests):
- assistant/action.ts: 10 tests (SWR hooks, categories, detail, identifiers, list)
- provider/action.ts: 11 tests (SWR hooks, detail with readme, identifiers, list with filters)
- model/action.ts: 12 tests (SWR hooks, categories, detail, identifiers, list with params)

Knowledge Base Store (29 tests):
- crud/action.ts: 19 tests (create, update, remove, refresh, loading states, SWR hooks)
- content/action.ts: 10 tests (add files, remove files, error handling)

File Store (36 tests):
- upload/action.ts: 18 tests (base64 upload, file upload with progress, type detection, KB integration)
- chunk/action.ts: 18 tests (drawer management, highlight, semantic search)

AI Infrastructure Store (23 tests):
- aiModel/action.ts: 23 tests (CRUD, batch operations, remote sync, toggle enabled, SWR hooks)

Chat Store (39 tests):
- thread/action.ts: 39 tests (CRUD, messaging, AI title generation, validation, loading states)

Testing approach:
- Used 9 parallel subagents for efficient development
- Followed zustand testing patterns from guide
- SWR hook testing for discovery slices
- Complex async flows with proper error handling
- File operations with progress callbacks
- Semantic search and RAG integration

Coverage improvement: ~76% → ~80% (+160 tests, 9 files)
Action files: 31/40 → 40/40 tested (100%)

🎉 MILESTONE: All 40 action files now have comprehensive test coverage!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix test

* fix test

* fix context-engine

* add tests

* remove

* remove tools bar

* pin bun version

* fix

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-15 22:38:53 +08:00
lobehubbot 6fd337de18 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-15 12:58:39 +00:00
semantic-release-bot 6266a85cf1 🔖 chore(release): v1.137.7 [skip ci]
### [Version&nbsp;1.137.7](https://github.com/lobehub/lobe-chat/compare/v1.137.6...v1.137.7)
<sup>Released on **2025-10-15**</sup>

#### 💄 Styles

- **misc**: Use different favicon.ico in dev mode.

<br/>

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

#### Styles

* **misc**: Use different favicon.ico in dev mode, closes [#9723](https://github.com/lobehub/lobe-chat/issues/9723) ([2f7317b](https://github.com/lobehub/lobe-chat/commit/2f7317b))

</details>

<div align="right">

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

</div>
2025-10-15 12:57:27 +00:00
René Wang 2f7317b98f 🔨 style: Use different favicon.ico in dev mode (#9723) 2025-10-15 14:47:37 +02:00
Arvin Xu 317df489ce test(store): refactor generateAIChatV2 tests following V1 patterns (#9714)
- Introduce shared test helpers and fixtures
- Use TEST_IDS and TEST_CONTENT constants instead of hardcoded strings
- Organize tests by functionality (validation, message creation, RAG integration, error handling)
- Remove commented-out test code
- Maintain V2-specific features (isServerMode, aiChatService mock)
- All 28 tests passing
2025-10-14 23:48:06 +08:00
Arvin Xu ff41f4bb82 🔨 chore: improve Claude Code triage workflow (#9713)
* 🔨 chore: unify Claude Code workflows to use claude-code-action@main

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 🔧 chore: extract issue triage prompt to separate file

- Add .claude/prompts/issue-triage.md with comprehensive triage guide
- Update workflow to read from issue-triage.md instead of inline prompt
- Simplify workflow configuration for better maintainability
- Add provider detection rules including aihubmix

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-10-14 23:05:25 +08:00
Arvin Xu 60f43d90e5 🔨 chore: unify Claude Code workflows to use claude-code-action@main (#9712)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-10-14 21:49:52 +08:00
lobehubbot b8136ac17b 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-14 13:43:35 +00:00
semantic-release-bot f0e387fa29 🔖 chore(release): v1.137.6 [skip ci]
### [Version&nbsp;1.137.6](https://github.com/lobehub/lobe-chat/compare/v1.137.5...v1.137.6)
<sup>Released on **2025-10-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Update Claude workflows to use oauth token, vertext ai create image.

<br/>

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

#### What's fixed

* **misc**: Update Claude workflows to use oauth token, closes [#9711](https://github.com/lobehub/lobe-chat/issues/9711) ([8dcb00e](https://github.com/lobehub/lobe-chat/commit/8dcb00e))
* **misc**: Vertext ai create image, closes [#9710](https://github.com/lobehub/lobe-chat/issues/9710) ([790d8fd](https://github.com/lobehub/lobe-chat/commit/790d8fd))

</details>

<div align="right">

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

</div>
2025-10-14 13:42:24 +00:00
Arvin Xu 8dcb00e2c9 🔧 fix: update Claude workflows to use oauth token (#9711) 2025-10-14 21:31:25 +08:00
YuTengjing 790d8fd498 🐛 fix: vertext ai create image (#9710) 2025-10-14 21:26:26 +08:00
Arvin Xu 3719bf4d52 🔨 chore: add claude code powered workflows (#9709)
* add claude dedupe issue workflow

* add triage

* add auto close duplicate

* improve triage

* improve
2025-10-14 21:24:26 +08:00
Arvin Xu bba23bf5a3 test: refactor aiChat tests (#9708)
* refactor tests

* ♻️ refactor(test): improve test layering and fix type errors

Improved test architecture by fixing test layer violations:

1. **internal_coreProcessMessage tests**: Changed to spy on direct dependency `internal_fetchAIChatMessage` instead of lower-level `chatService.createAssistantMessageStream`

2. **internal_fetchAIChatMessage tests**: Fixed to mock correct service (`chatService` instead of global `fetch`)

3. **beforeEach cleanup**: Removed global `spyOnChatService()` to reduce implicit coupling - tests now spy `chatService` only when needed

4. **Type fixes**:
   - Fixed mockResolvedValue() to include required undefined arguments
   - Fixed ChatMessageError type to include required `type` property
   - Fixed MessageDispatch type guard for safer property access

Benefits:
 Clear test layers - each test only spies on direct dependencies
 Correct mocks matching actual implementation
 Coverage improved from 81.48% to 82.03%
 All 52 tests passing with no type errors
2025-10-14 20:45:14 +08:00
lobehubbot 509619ba15 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-14 10:27:29 +00:00
semantic-release-bot 5de9e9fea3 🔖 chore(release): v1.137.5 [skip ci]
### [Version&nbsp;1.137.5](https://github.com/lobehub/lobe-chat/compare/v1.137.4...v1.137.5)
<sup>Released on **2025-10-14**</sup>

#### 💄 Styles

- **misc**: Add imagen model to vertex ai.

<br/>

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

#### Styles

* **misc**: Add imagen model to vertex ai, closes [#9699](https://github.com/lobehub/lobe-chat/issues/9699) ([3b2a2c1](https://github.com/lobehub/lobe-chat/commit/3b2a2c1))

</details>

<div align="right">

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

</div>
2025-10-14 10:26:28 +00:00
YuTengjing 3b2a2c1c54 💄 style: add imagen model to vertex ai (#9699)
* ♻️ refactor: rename isLocalUrl to isDesktopLocalStaticServerUrl

Rename the function to better reflect its specific purpose of checking
desktop local static server URLs (127.0.0.1 only). Update all usages
across the codebase including imports, function calls, and test cases.

*  feat(model-bank): add Vertex AI image generation models

- Add Nano Banana (Gemini 2.5 Flash Image) models
- Add Imagen 4 series (Standard, Ultra, Fast, Preview variants)
- Export shared parameters for reuse across providers

*  test(context-engine): fix mock after function rename

Update test mock from isLocalUrl to isDesktopLocalStaticServerUrl

* ♻️ refactor: use submodule imports for @lobechat/utils

- Change from barrel imports to direct submodule imports
- Update test to mock only necessary functions (imageUrlToBase64)
- Fix test URL from localhost to 127.0.0.1 for isDesktopLocalStaticServerUrl
- Update package.json exports for utils submodules

*  test: update mocks after function rename

Update test mocks from isLocalUrl to isDesktopLocalStaticServerUrl

*  test(chat): fix mocks to use submodule imports
2025-10-14 18:15:58 +08:00
lobehubbot c07d900648 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-14 07:52:51 +00:00
semantic-release-bot 938cf6ba71 🔖 chore(release): v1.137.4 [skip ci]
### [Version&nbsp;1.137.4](https://github.com/lobehub/lobe-chat/compare/v1.137.3...v1.137.4)
<sup>Released on **2025-10-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Prevent Vertex AI JSON credentials from being split by comma.

<br/>

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

#### What's fixed

* **misc**: Prevent Vertex AI JSON credentials from being split by comma, closes [#9703](https://github.com/lobehub/lobe-chat/issues/9703) [#9477](https://github.com/lobehub/lobe-chat/issues/9477) ([189081d](https://github.com/lobehub/lobe-chat/commit/189081d))

</details>

<div align="right">

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

</div>
2025-10-14 07:51:42 +00:00
Arvin Xu 189081d546 🐛 fix: prevent Vertex AI JSON credentials from being split by comma (#9703)
- Add special case for VertexAI in getProviderAuthPayload to skip random API key selection
- Vertex AI uses JSON format credentials that contain commas, which should not be split
- Add test case to verify JSON credentials remain intact

Fixes the issue introduced in #9477 where random API key splitting broke Vertex AI authentication

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-10-14 15:00:44 +08:00
bbbugg 96e2ccd3fb 🐛fix(mobile): enable conditional fetching of AI provider list based on mobile view (#9621)
🐛fix: enable conditional fetching of AI provider list based on mobile view
2025-10-14 13:35:23 +08:00
Arvin Xu 8693d95e0d 🔨 chore: add e2e workflow (#9677)
* add e2e test

* Potential fix for code scanning alert no. 137: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* remove

* update

* fix tests

* add e2e

* update

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-10-14 13:32:52 +08:00
lobehubbot 543db87745 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-14 03:10:43 +00:00
semantic-release-bot e31e7b5d2d 🔖 chore(release): v1.137.3 [skip ci]
### [Version&nbsp;1.137.3](https://github.com/lobehub/lobe-chat/compare/v1.137.2...v1.137.3)
<sup>Released on **2025-10-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix mcp server connect issue and refactor web search implement, fix tools calling long name length >64 issue.

<br/>

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

#### What's fixed

* **misc**: Fix mcp server connect issue and refactor web search implement, closes [#9694](https://github.com/lobehub/lobe-chat/issues/9694) ([15ebcb4](https://github.com/lobehub/lobe-chat/commit/15ebcb4))
* **misc**: Fix tools calling long name length >64 issue, closes [#9697](https://github.com/lobehub/lobe-chat/issues/9697) ([cb98604](https://github.com/lobehub/lobe-chat/commit/cb98604))

</details>

<div align="right">

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

</div>
2025-10-14 03:09:37 +00:00
Arvin Xu 15ebcb414b 🐛 fix: fix mcp server connect issue and refactor web search implement (#9694)
* add

* clean

* refactor

* refactor

* add test

* fix style

* refactor to improve search performance

* refactor types

* refactor types

* refactor types

* fix mcp retry issue

* add more tests

* fix test and types

* fix test

* fix desktop remote streamable http

* add local

* fix tests

* update
2025-10-14 10:58:47 +08:00
Arvin Xu cb986040d5 🐛 fix: fix tools calling long name length >64 issue (#9697)
* add ToolNameResolver

* fix ToolName generate tests

* fix tests
2025-10-14 10:54:40 +08:00
lobehubbot ad0fae3c2a 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-14 02:28:05 +00:00
semantic-release-bot 79955e8f8d 🔖 chore(release): v1.137.2 [skip ci]
### [Version&nbsp;1.137.2](https://github.com/lobehub/lobe-chat/compare/v1.137.1...v1.137.2)
<sup>Released on **2025-10-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix the Worker URL cross-origin issue.

<br/>

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

#### What's fixed

* **misc**: Fix the Worker URL cross-origin issue, closes [#9624](https://github.com/lobehub/lobe-chat/issues/9624) ([d379112](https://github.com/lobehub/lobe-chat/commit/d379112))

</details>

<div align="right">

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

</div>
2025-10-14 02:27:04 +00:00
peerless-hero d379112d74 🐛 fix: fix the Worker URL cross-origin issue (#9624)
When the origin of the Worker script is different from the current page, reconstruct the URL relative to the current origin to avoid cross-origin errors.
2025-10-14 10:16:33 +08:00
lobehubbot c1a0868ac3 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-14 02:10:13 +00:00
semantic-release-bot af71a7933a 🔖 chore(release): v1.137.1 [skip ci]
### [Version&nbsp;1.137.1](https://github.com/lobehub/lobe-chat/compare/v1.137.0...v1.137.1)
<sup>Released on **2025-10-14**</sup>

#### 💄 Styles

- **misc**: Change the user chatItem maxWidth should use flex 1.

<br/>

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

#### Styles

* **misc**: Change the user chatItem maxWidth should use flex 1, closes [#9689](https://github.com/lobehub/lobe-chat/issues/9689) ([cfd5221](https://github.com/lobehub/lobe-chat/commit/cfd5221))

</details>

<div align="right">

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

</div>
2025-10-14 02:08:56 +00:00
Shinji-Li cfd52210d5 💄 style: change the user chatItem maxWidth should use flex 1 (#9689)
* feat: change the user chatitem max flex 1

* feat: add when editing not show actions
2025-10-14 09:58:39 +08:00
iBenzene 166d715f17 🔨 chore: add Clerk authentication related variables and some other variables in Dockerfile (#9640)
* chore(docker): add Clerk authentication related variables in Dockerfile

* chore(docker): add ENABLED_FAL, S3_ENABLE_PATH_STYLE, and S3_SET_ACL environment variables to Dockerfile

* chore(docker): add CLERK_WEBHOOK_SECRET environment variable

* revert(docker): fix indentation that was mistakenly modified due to. vscode settings

* chore(docker): add ENABLE_AUTH_PROTECTION environment variable to Dockerfiles

---------

Co-authored-by: bbbugg <daming20120101@163.com>
2025-10-14 09:53:43 +08:00
Arvin Xu 1238d7fbd5 🔨 chore: output JSON support tools calling mode (#9696)
* support tools calling in generateObject method

* fix tests
2025-10-14 09:51:38 +08:00
Arvin Xu 06507fea7f test: add model runtime testing (#9683)
* baseline test docs

* batch 2

* add more tests

* baseline 2

* baseline 3

* baseline 4

* baseline 5

* baseline 6

* baseline 7

* add core tests

* fix tests
2025-10-13 10:18:13 +08:00
Arvin Xu 4b7e838008 test: add tests for agent-runtime and mode-runtime (#9682)
* update agent runtime

* update agent runtime

* add model runtime tests

* add tests

* add more tests

* add more tests
2025-10-13 00:09:07 +08:00
lobehubbot 9e09099313 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-12 16:07:27 +00:00
semantic-release-bot e2c5e4f5a6 🔖 chore(release): v1.137.0 [skip ci]
## [Version&nbsp;1.137.0](https://github.com/lobehub/lobe-chat/compare/v1.136.13...v1.137.0)
<sup>Released on **2025-10-12**</sup>

####  Features

- **misc**: Add new setting for default image num.

<br/>

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

#### What's improved

* **misc**: Add new setting for default image num, closes [#9618](https://github.com/lobehub/lobe-chat/issues/9618) ([de7368b](https://github.com/lobehub/lobe-chat/commit/de7368b))

</details>

<div align="right">

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

</div>
2025-10-12 16:06:18 +00:00
YuTengjing de7368bc25 feat: add new setting for default image num (#9618) 2025-10-12 23:56:17 +08:00
Arvin Xu 941b6ec4cb test: add tests for context-engine (#9679) 2025-10-12 16:31:15 +02:00
Arvin Xu 3cf7df5748 test: add tests for file-loaders packages (#9678)
add tests
2025-10-12 19:43:08 +08:00
lobehubbot d0e2acac13 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-12 08:22:18 +00:00
semantic-release-bot 7a16e7e539 🔖 chore(release): v1.136.13 [skip ci]
### [Version&nbsp;1.136.13](https://github.com/lobehub/lobe-chat/compare/v1.136.12...v1.136.13)
<sup>Released on **2025-10-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix input cannot send markdown.

#### 💄 Styles

- **misc**: Optimize OpenRouter modelFetch endpoint, update i18n.

<br/>

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

#### What's fixed

* **misc**: Fix input cannot send markdown, closes [#9674](https://github.com/lobehub/lobe-chat/issues/9674) ([2518d7e](https://github.com/lobehub/lobe-chat/commit/2518d7e))

#### Styles

* **misc**: Optimize OpenRouter modelFetch endpoint, closes [#9671](https://github.com/lobehub/lobe-chat/issues/9671) ([0038a64](https://github.com/lobehub/lobe-chat/commit/0038a64))
* **misc**: Update i18n, closes [#9665](https://github.com/lobehub/lobe-chat/issues/9665) ([02096ea](https://github.com/lobehub/lobe-chat/commit/02096ea))

</details>

<div align="right">

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

</div>
2025-10-12 08:20:59 +00:00
Arvin Xu 2518d7eabf 🐛 fix: fix input cannot send markdown (#9674)
* fix claude json output

* refactor to remove langchain in file-loaders

* support deepseek tools calling

* use peer

* use peer

* move files

* fix test

* add local-system placeholder

* fix markdown editing

* fix markdown editing

* refactor doc parse
2025-10-12 16:11:02 +08:00
sxjeru 0038a64819 💄 style: Optimize OpenRouter modelFetch endpoint (#9671)
* 🔧 refactor: Update OpenRouter API endpoint and enhance model data structure

* 🐛 fix: 修正模型名称处理逻辑以避免不必要的前缀去除
2025-10-12 16:07:30 +08:00
LobeHub Bot 02096ea82d 🤖 style: update i18n (#9665)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-12 16:07:23 +08:00
Stella Wang d330cf4e94 🔨 chore(ci): Improve Claude translator prompt to prevent hallucination (#9673)
🐛 fix(ci): Improve Claude translator prompt to prevent hallucination

Add critical rules to prevent translation hallucination issues:
- Enforce exact preservation of original content without modification
- Ensure code blocks, error logs, and JSON appear in both sections
- Clarify that only natural language should be translated
- Add verification step to check original content accuracy
- Prevent dropping or hallucinating end-of-comment sentences

This addresses issues where the translator was hallucinating content
in the "Original Content" section and incorrectly handling large
technical blocks like error logs and JSON structures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-12 16:03:52 +08:00
renovate[bot] 5c2e1faa94 Update pnpm to v10.18.2 (#9667) 2025-10-12 05:05:20 +02:00
lobehubbot 590a9275ce 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-11 17:44:30 +00:00
semantic-release-bot 9242e83824 🔖 chore(release): v1.136.12 [skip ci]
### [Version&nbsp;1.136.12](https://github.com/lobehub/lobe-chat/compare/v1.136.11...v1.136.12)
<sup>Released on **2025-10-11**</sup>

#### 💄 Styles

- **misc**: Add more AWS regions, Update infini-ai models.

<br/>

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

#### Styles

* **misc**: Add more AWS regions, closes [#9644](https://github.com/lobehub/lobe-chat/issues/9644) ([4a82daf](https://github.com/lobehub/lobe-chat/commit/4a82daf))
* **misc**: Update infini-ai models, closes [#9646](https://github.com/lobehub/lobe-chat/issues/9646) ([5274225](https://github.com/lobehub/lobe-chat/commit/5274225))

</details>

<div align="right">

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

</div>
2025-10-11 17:43:26 +00:00
sxjeru 52742254d6 💄 style: Update infini-ai models (#9646)
* fix: update models and refactor InfiniAI model handling

* fix: enable models and update InfiniAI configuration

* fix: update DeepSeek model versions and descriptions in modelscope
2025-10-12 01:32:11 +08:00
edwnhoffmann 4a82daf329 💄 style: add more AWS regions (#9644)
add more regions
2025-10-12 01:32:05 +08:00
lobehubbot 84baabc1b4 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-11 17:29:08 +00:00
semantic-release-bot 7ef16b73f3 🔖 chore(release): v1.136.11 [skip ci]
### [Version&nbsp;1.136.11](https://github.com/lobehub/lobe-chat/compare/v1.136.10...v1.136.11)
<sup>Released on **2025-10-11**</sup>

#### 💄 Styles

- **misc**: Add capability inference for web search, image output and video recognition in model parsing and update UI form items to support search, imageOutput and video abilities.

<br/>

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

#### Styles

* **misc**: Add capability inference for web search, image output and video recognition in model parsing and update UI form items to support search, imageOutput and video abilities, closes [#9022](https://github.com/lobehub/lobe-chat/issues/9022) ([4e44569](https://github.com/lobehub/lobe-chat/commit/4e44569))

</details>

<div align="right">

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

</div>
2025-10-11 17:27:57 +00:00
bbbugg 4e445690f1 💄 style: Add capability inference for web search, image output and video recognition in model parsing and update UI form items to support search, imageOutput and video abilities (#9022)
* 🐛 fix: add searchKeywords support and imageOutput match to model parsing logic

* 🐛 fix: add imageOutputKeywords support to model parsing logic

* 🐛 fix: test

* 🐛 fix: enhance model parsing to support local enabled

* 🐛 fix: refine model parsing by removing unnecessary properties from image models

* 💄 style: update form items to support search and imageOutput abilities

* 🐛 fix: improve model parsing logic to conditionally display search options for Perplexity and Jina

* 🐛 fix: parsing imageOutput model will get other abilities

* style: add model search setting when search ability = true and remove when false

* 🐛 fix: prevent 'internal' search models use fcSearch

* 🐛 fix: update search mode handling for internal models in Controls component

* 🐛 fix: test

* 🐛 fix: refine model parsing by updating keyword matching and removing redundant checks

* 🐛 fix: enhance model search configuration by incorporating internal model checks

* 🐛 fix: streamline settings cleanup by using destructuring to remove unused properties

* 💄 style: add video support to model configuration and parsing
2025-10-12 01:17:11 +08:00
semantic-release-bot eb0c0696d0 🔖 chore(release): v1.136.10 [skip ci]
### [Version&nbsp;1.136.10](https://github.com/lobehub/lobe-chat/compare/v1.136.9...v1.136.10)
<sup>Released on **2025-10-11**</sup>

#### 💄 Styles

- **misc**: Improve search experience.

<br/>

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

#### Styles

* **misc**: Improve search experience, closes [#9661](https://github.com/lobehub/lobe-chat/issues/9661) ([8624f84](https://github.com/lobehub/lobe-chat/commit/8624f84))

</details>

<div align="right">

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

</div>
2025-10-11 17:05:57 +00:00
Arvin Xu 8624f84c8d 💄 style: improve search experience (#9661)
* add placeholder structure

* improve searching

* improve search result content

* fix tests

* improve error

* improve crawler multi page style

* improve crawler multi page content

* improve styles

* fix tests

* make url max twoline
2025-10-12 00:56:17 +08:00
lobehubbot 6db99c090d 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-11 10:19:02 +00:00
semantic-release-bot cd337011fa 🔖 chore(release): v1.136.9 [skip ci]
### [Version&nbsp;1.136.9](https://github.com/lobehub/lobe-chat/compare/v1.136.8...v1.136.9)
<sup>Released on **2025-10-11**</sup>

#### 💄 Styles

- **misc**: Add lab to support disable/enable rich text.

<br/>

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

#### Styles

* **misc**: Add lab to support disable/enable rich text, closes [#9652](https://github.com/lobehub/lobe-chat/issues/9652) ([658c294](https://github.com/lobehub/lobe-chat/commit/658c294))

</details>

<div align="right">

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

</div>
2025-10-11 10:17:59 +00:00
Arvin Xu 236b8f53cc 🔨 chore: add i18n (#9657)
* add i18n

* add i18n
2025-10-11 18:08:12 +08:00
Arvin Xu 658c2945a0 💄 style: add lab to support disable/enable rich text (#9652)
* add abstract chunk prompt eval

* add labs page
2025-10-11 18:03:56 +08:00
lobehubbot f71d1f48cd 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-11 09:19:55 +00:00
semantic-release-bot 515dee110e 🔖 chore(release): v1.136.8 [skip ci]
### [Version&nbsp;1.136.8](https://github.com/lobehub/lobe-chat/compare/v1.136.7...v1.136.8)
<sup>Released on **2025-10-11**</sup>

#### 🐛 Bug Fixes

- **provider**: Add deepseek-v3.1-terminus to THINKING_MODELS.

<br/>

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

#### What's fixed

* **provider**: Add deepseek-v3.1-terminus to THINKING_MODELS, closes [#9653](https://github.com/lobehub/lobe-chat/issues/9653) [#9648](https://github.com/lobehub/lobe-chat/issues/9648) ([e9b5c69](https://github.com/lobehub/lobe-chat/commit/e9b5c69))

</details>

<div align="right">

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

</div>
2025-10-11 09:18:47 +00:00
Shinji-Li e9b5c692c7 🐛 fix(provider): add deepseek-v3.1-terminus to THINKING_MODELS (#9653)
🐛 fix(nvidia): add deepseek-v3.1-terminus to THINKING_MODELS

Add missing deepseek-ai/deepseek-v3.1-terminus model to THINKING_MODELS array
to enable Deep-Think functionality for DeepSeek V3.1 Terminus via NVIDIA NIM.

Fixes #9648

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>
2025-10-11 17:09:07 +08:00
renovate[bot] ba3c890f62 Update actions/github-script action to v8 (#9554)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 16:19:15 +08:00
lobehubbot 639032e201 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-11 08:11:16 +00:00
semantic-release-bot 321b414931 🔖 chore(release): v1.136.7 [skip ci]
### [Version&nbsp;1.136.7](https://github.com/lobehub/lobe-chat/compare/v1.136.6...v1.136.7)
<sup>Released on **2025-10-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Disable rich text in markdown editor.

<br/>

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

#### What's fixed

* **misc**: Disable rich text in markdown editor, closes [#9637](https://github.com/lobehub/lobe-chat/issues/9637) ([9349ce2](https://github.com/lobehub/lobe-chat/commit/9349ce2))

</details>

<div align="right">

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

</div>
2025-10-11 08:10:14 +00:00
Arvin Xu 9349ce2d2f 🐛 fix: disable rich text in markdown editor (#9637)
* clean

* update

* add labs

* fix

* improve

* update

* fix

* hide lab

* improve workflow
2025-10-11 15:59:56 +08:00
lobehubbot 3985c13488 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-11 07:20:51 +00:00
semantic-release-bot 8e3494857d 🔖 chore(release): v1.136.6 [skip ci]
### [Version&nbsp;1.136.6](https://github.com/lobehub/lobe-chat/compare/v1.136.5...v1.136.6)
<sup>Released on **2025-10-11**</sup>

#### 🐛 Bug Fixes

- **bedrock**: Add parameter conflict handling for Claude 4+ models.

<br/>

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

#### What's fixed

* **bedrock**: Add parameter conflict handling for Claude 4+ models, closes [#9627](https://github.com/lobehub/lobe-chat/issues/9627) [#9523](https://github.com/lobehub/lobe-chat/issues/9523) ([54b6217](https://github.com/lobehub/lobe-chat/commit/54b6217))

</details>

<div align="right">

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

</div>
2025-10-11 07:19:42 +00:00
renovate[bot] 55d5ae91ee Update dependency happy-dom to v20 [SECURITY] (#9647)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 15:09:05 +08:00
Arvin Xu 54b6217256 🐛 fix(bedrock): add parameter conflict handling for Claude 4+ models (#9627)
* fix(bedrock): add parameter conflict handling for Claude 4+ models

- Add logic to prevent sending both temperature and top_p for Claude 4+ models
- Matches existing implementation in Anthropic provider
- Fixes ValidationException error for Claude 4.5 models via Bedrock
- Includes support for both standard and Bedrock-specific model IDs

Fixes #9523

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* 🧪 test(bedrock): add parameter conflict handling tests

Add comprehensive tests for Claude 4+ models parameter conflict detection:
- Test temperature preference over top_p when both provided
- Test top_p usage when temperature not provided
- Test both parameters allowed for non-Claude-4+ models
- Test standard and Bedrock-specific model ID formats
- Test US region model IDs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* 🔧 fix: make temperature optional in ChatStreamPayload interface

The temperature property should be optional to support test cases and scenarios where only top_p is provided. This resolves TypeScript error TS2741 in Bedrock provider tests.

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* 🔧 fix: correct test assertions to handle JSON.stringify undefined omission

- Remove undefined properties from test expectations since JSON.stringify omits them
- Fix temperature/top_p conflict test assertions for Claude 4+ models
- Ensure tests match actual JSON serialization behavior

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* 🔧 fix: add null safety checks for optional temperature parameter

- Added proper undefined checks before temperature arithmetic operations in anthropic and bedrock providers
- Added null checks before temperature comparisons in groq, perplexity, and search1api providers
- Resolves TS18048 errors where temperature is possibly undefined
- Maintains existing logic while satisfying TypeScript strict null checks

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* refactor with parameterResolver

* upgrade

* upgrade swr

* refactor context-builder

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-10-11 15:08:26 +08:00
lobehubbot 020ef51141 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-11 06:33:11 +00:00
semantic-release-bot fa07f44436 🔖 chore(release): v1.136.5 [skip ci]
### [Version&nbsp;1.136.5](https://github.com/lobehub/lobe-chat/compare/v1.136.4...v1.136.5)
<sup>Released on **2025-10-11**</sup>

#### 🐛 Bug Fixes

- **plugin-store**: Fix search functionality for old plugin store.

<br/>

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

#### What's fixed

* **plugin-store**: Fix search functionality for old plugin store, closes [#9651](https://github.com/lobehub/lobe-chat/issues/9651) [#9645](https://github.com/lobehub/lobe-chat/issues/9645) ([522fc09](https://github.com/lobehub/lobe-chat/commit/522fc09))

</details>

<div align="right">

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

</div>
2025-10-11 06:32:09 +00:00
Shinji-Li 522fc09a85 🐛 fix(plugin-store): fix search functionality for old plugin store (#9651)
- Update Search component to handle different search keywords based on current tab (MCP vs Plugin)
- Add missing useEffect in Plugin List to reset list when search keywords change
- Fixes issue where typing in search bar didn't trigger plugin filtering

Fixes #9645

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>
2025-10-11 14:22:31 +08:00
lobehubbot 72fcc7afab 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-10 09:52:19 +00:00
semantic-release-bot 05c0ef084a 🔖 chore(release): v1.136.4 [skip ci]
### [Version&nbsp;1.136.4](https://github.com/lobehub/lobe-chat/compare/v1.136.3...v1.136.4)
<sup>Released on **2025-10-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Add 'gemini-2.5-flash-image' to disabled models Thinking.

<br/>

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

#### What's fixed

* **misc**: Add 'gemini-2.5-flash-image' to disabled models Thinking, closes [#9633](https://github.com/lobehub/lobe-chat/issues/9633) ([771b585](https://github.com/lobehub/lobe-chat/commit/771b585))

</details>

<div align="right">

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

</div>
2025-10-10 09:51:12 +00:00
Neko 23d61aebc9 🔨 chore(database): add user memory db schemas (#9371)
*  feat(database): user memory db schemas

* feat: migrations

* fix: id

* fix: syntax id

* update

* revert

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-10-10 17:41:14 +08:00
bailu 771b585f3a 🐛 fix: Add 'gemini-2.5-flash-image' to disabled models Thinking (#9633)
Add 'gemini-2.5-flash-image' to disabled models Thinking
2025-10-10 17:40:06 +08:00
lobehubbot 65c8dbb525 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-10 03:19:37 +00:00
semantic-release-bot a11925fbb2 🔖 chore(release): v1.136.3 [skip ci]
### [Version&nbsp;1.136.3](https://github.com/lobehub/lobe-chat/compare/v1.136.2...v1.136.3)
<sup>Released on **2025-10-10**</sup>

#### 💄 Styles

- **misc**: Add delete & regenerate hotkeys.

<br/>

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

#### Styles

* **misc**: Add delete & regenerate hotkeys, closes [#9538](https://github.com/lobehub/lobe-chat/issues/9538) ([d948580](https://github.com/lobehub/lobe-chat/commit/d948580))

</details>

<div align="right">

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

</div>
2025-10-10 03:18:33 +00:00
sxjeru d9485809a1 💄 style: Add delete & regenerate hotkeys (#9538)
* 🐛 fix(zhipu): update maxOutput and contextWindowTokens for various models

*  feat(hotkeys): add delete last message and delete & regenerate message hotkeys
2025-10-10 11:08:02 +08:00
Arvin Xu 143784b474 🔨 chore: improve code (#9626)
* improve code

* fix tests
2025-10-10 11:07:35 +08:00
lobehubbot 26504d0017 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-10 02:18:59 +00:00
semantic-release-bot fa2f9d4eb4 🔖 chore(release): v1.136.2 [skip ci]
### [Version&nbsp;1.136.2](https://github.com/lobehub/lobe-chat/compare/v1.136.1...v1.136.2)
<sup>Released on **2025-10-10**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-10 02:17:56 +00:00
LobeHub Bot 70d356d524 🤖 style: update i18n (#9625)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-10 10:08:21 +08:00
Kim SooHyun 8d59583dca Merge commit from fork
Co-authored-by: root <root@DESKTOP-FSUSL5A.localdomain>
2025-10-10 10:06:16 +08:00
Tsuki c609c77f24 🔧 chore: export plugin module and clean up imports in toolCall (#9619) 2025-10-09 18:48:21 +08:00
lobehubbot c050c39c45 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-09 10:04:26 +00:00
semantic-release-bot ac75d30e0d 🔖 chore(release): v1.136.1 [skip ci]
### [Version&nbsp;1.136.1](https://github.com/lobehub/lobe-chat/compare/v1.136.0...v1.136.1)
<sup>Released on **2025-10-09**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-10-09 10:03:26 +00:00
Arvin Xu b2a1dc66d5 👷 build: Update Dockerfile.database (#9617)
Update Dockerfile.database
2025-10-09 17:53:04 +08:00
lobehubbot 954c6343d2 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-09 07:38:24 +00:00
semantic-release-bot d3afc75c59 🔖 chore(release): v1.136.0 [skip ci]
## [Version&nbsp;1.136.0](https://github.com/lobehub/lobe-chat/compare/v1.135.6...v1.136.0)
<sup>Released on **2025-10-09**</sup>

####  Features

- **misc**: Add new provider Cerebras.

#### 🐛 Bug Fixes

- **misc**: Fix standalone plugin rerender issue.

<br/>

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

#### What's improved

* **misc**: Add new provider Cerebras, closes [#9559](https://github.com/lobehub/lobe-chat/issues/9559) ([9cceaad](https://github.com/lobehub/lobe-chat/commit/9cceaad))

#### What's fixed

* **misc**: Fix standalone plugin rerender issue, closes [#9611](https://github.com/lobehub/lobe-chat/issues/9611) [#9396](https://github.com/lobehub/lobe-chat/issues/9396) ([7ab30fc](https://github.com/lobehub/lobe-chat/commit/7ab30fc))

</details>

<div align="right">

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

</div>
2025-10-09 07:37:10 +00:00
sxjeru 9cceaad241 feat: Add new provider Cerebras (#9559)
*  feat: 添加 Cerebras 模型支持,包括模型定义和配置

*  feat: 添加 Cerebras 模型支持,包括环境变量和模型描述

*  feat: 在 OllamaCloud 模型中添加 GLM-4.6,增强推理和编码能力

*  feat: 移除过时的 Grok 模型定义,优化模型列表
2025-10-09 15:27:12 +08:00
blueskyxi3 7ab30fc77e 🐛 fix: fix standalone plugin rerender issue (#9611)
🐛 fix: standalone 插件当发布生产后多次渲染 (#9396)

Co-authored-by: Vincent Zou <vincentzou@citictel.com>
2025-10-09 15:26:50 +08:00
Daniel Hofheinz 7ce0d1fbc4 📝 docs(dev): clarify feature organization patterns in tutorial (#9608)
- Distinguish between global (src/features/) and page-specific features
- Update code example to show page-specific pattern
- Add explanatory note on when to use each pattern

Fixes #9585
2025-10-09 10:48:52 +08:00
lobehubbot 8f1b38a24e 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-08 15:41:09 +00:00
semantic-release-bot bf57bfe59f 🔖 chore(release): v1.135.6 [skip ci]
### [Version&nbsp;1.135.6](https://github.com/lobehub/lobe-chat/compare/v1.135.5...v1.135.6)
<sup>Released on **2025-10-08**</sup>

#### 🐛 Bug Fixes

- **desktop**: Macos26 small icon.

<br/>

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

#### What's fixed

* **desktop**: Macos26 small icon, closes [#9421](https://github.com/lobehub/lobe-chat/issues/9421) ([ca03342](https://github.com/lobehub/lobe-chat/commit/ca03342))

</details>

<div align="right">

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

</div>
2025-10-08 15:40:07 +00:00
YuTengjing ca033420b9 🐛 fix(desktop): macos26 small icon (#9421)
* 🐛 fix(desktop): macos26 icon small

* Revert "🐛 fix(desktop): macos26 icon small"

This reverts commit 4a4b7b230c.

*  feat(desktop): support Liquid Glass icons for macOS 26

- Add pre-generated Assets.car files for all build variants
- Configure afterPack hook to copy Assets.car during build
- Maintain backward compatibility with .icns fallback for older macOS

Reference: https://github.com/electron-userland/electron-builder/issues/9254

* docs: optimize comments

* fix: update deprecated macos-13 to macos-15-intel

* docs: optimize ai rules
2025-10-08 23:30:35 +08:00
lobehubbot d8bfec02ad 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-08 05:35:31 +00:00
semantic-release-bot 992ecdfdef 🔖 chore(release): v1.135.5 [skip ci]
### [Version&nbsp;1.135.5](https://github.com/lobehub/lobe-chat/compare/v1.135.4...v1.135.5)
<sup>Released on **2025-10-08**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-08 05:34:32 +00:00
LobeHub Bot ed267a4d96 🤖 style: update i18n (#9602)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-08 13:24:29 +08:00
lobehubbot d9da405ff1 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-07 15:43:49 +00:00
semantic-release-bot f0f132696a 🔖 chore(release): v1.135.4 [skip ci]
### [Version&nbsp;1.135.4](https://github.com/lobehub/lobe-chat/compare/v1.135.3...v1.135.4)
<sup>Released on **2025-10-07**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor chat item.

#### 💄 Styles

- **misc**: Add GPT-5 pro model.

<br/>

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

#### Code refactoring

* **misc**: Refactor chat item, closes [#9599](https://github.com/lobehub/lobe-chat/issues/9599) ([1f36158](https://github.com/lobehub/lobe-chat/commit/1f36158))

#### Styles

* **misc**: Add GPT-5 pro model, closes [#9594](https://github.com/lobehub/lobe-chat/issues/9594) ([775f30b](https://github.com/lobehub/lobe-chat/commit/775f30b))

</details>

<div align="right">

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

</div>
2025-10-07 15:42:48 +00:00
sxjeru 775f30b614 💄 style: Add GPT-5 pro model (#9594)
*  feat: 添加输入缓存读取和写入定价支持,更新相关接口和定价格式

*  feat: 添加 GPT-5 pro 模型及其定价信息,更新模型集合

*  feat: 添加 GPT Image 1 Mini 模型及其定价信息,更新模型参数和定价策略

*  feat: 更新价格格式化函数,允许价格为 undefined,调整模型定价接口的可选属性

*  feat: 更新 DeepSeek V3.1 模型信息,添加新模型及其参数,调整模型 ID

*  feat: 添加 GPT-5 pro 模型,更新其能力、定价和描述信息

*  feat: 强制 gpt-5 pro 使用 high 推理等级,优化推理负担处理逻辑
2025-10-07 23:33:08 +08:00
Arvin Xu 1f36158a2f ♻️ refactor: refactor chat item (#9599)
* wip

* refactor user message

* fix user messages

* refactor

* refactor user and actions

* update

* refactor chat item

* refactor

* revert

* fix tests

* update

* fix thread display
2025-10-07 23:27:19 +08:00
lobehubbot 18bcd08327 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-07 11:27:02 +00:00
semantic-release-bot f13c4598c3 🔖 chore(release): v1.135.3 [skip ci]
### [Version&nbsp;1.135.3](https://github.com/lobehub/lobe-chat/compare/v1.135.2...v1.135.3)
<sup>Released on **2025-10-07**</sup>

#### 💄 Styles

- **misc**: Improve Korean translate.

<br/>

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

#### Styles

* **misc**: Improve Korean translate, closes [#9597](https://github.com/lobehub/lobe-chat/issues/9597) ([319fbfb](https://github.com/lobehub/lobe-chat/commit/319fbfb))

</details>

<div align="right">

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

</div>
2025-10-07 11:25:52 +00:00
Arvin Xu 319fbfb6fd 💄 style: improve Korean translate (#9597)
* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update
2025-10-07 19:15:56 +08:00
renovate[bot] 892844a17f Update dependency @testing-library/jest-dom to ~6.9.0 (#9549)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-07 18:42:25 +08:00
Daniel Hofheinz 219250c7bb 📝 docs: remove outdated nextauth server database warning (#9593) 2025-10-07 06:20:17 +02:00
lobehubbot b7d51c51dd 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-06 16:29:03 +00:00
semantic-release-bot 94d447b563 🔖 chore(release): v1.135.2 [skip ci]
### [Version&nbsp;1.135.2](https://github.com/lobehub/lobe-chat/compare/v1.135.1...v1.135.2)
<sup>Released on **2025-10-06**</sup>

#### 💄 Styles

- **image**: Optimize UX and fix fal pricing.

<br/>

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

#### Styles

* **image**: Optimize UX and fix fal pricing, closes [#9592](https://github.com/lobehub/lobe-chat/issues/9592) ([dddbfcd](https://github.com/lobehub/lobe-chat/commit/dddbfcd))

</details>

<div align="right">

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

</div>
2025-10-06 16:28:03 +00:00
YuTengjing dddbfcd094 💄 style(image): optimize UX and fix fal pricing (#9592) 2025-10-07 00:17:32 +08:00
lobehubbot 5719e4ff90 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-06 15:47:07 +00:00
semantic-release-bot 1725f7d3ee 🔖 chore(release): v1.135.1 [skip ci]
### [Version&nbsp;1.135.1](https://github.com/lobehub/lobe-chat/compare/v1.135.0...v1.135.1)
<sup>Released on **2025-10-06**</sup>

#### 💄 Styles

- **misc**: Improve styles and fix tools calling condition.

<br/>

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

#### Styles

* **misc**: Improve styles and fix tools calling condition, closes [#9591](https://github.com/lobehub/lobe-chat/issues/9591) ([1695f2f](https://github.com/lobehub/lobe-chat/commit/1695f2f))

</details>

<div align="right">

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

</div>
2025-10-06 15:46:09 +00:00
Arvin Xu 1695f2f289 💄 style: improve styles and fix tools calling condition (#9591)
* clean and refactor

* improve

* update

* update

* fix tools engine
2025-10-06 23:36:15 +08:00
lobehubbot 2ffced0773 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-06 14:32:26 +00:00
semantic-release-bot 8cc70ddf38 🔖 chore(release): v1.135.0 [skip ci]
## [Version&nbsp;1.135.0](https://github.com/lobehub/lobe-chat/compare/v1.134.7...v1.135.0)
<sup>Released on **2025-10-06**</sup>

####  Features

- **misc**: Huanyuan text-to-image 3.

<br/>

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

#### What's improved

* **misc**: Huanyuan text-to-image 3, closes [#9589](https://github.com/lobehub/lobe-chat/issues/9589) ([1dd0e5e](https://github.com/lobehub/lobe-chat/commit/1dd0e5e))

</details>

<div align="right">

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

</div>
2025-10-06 14:31:23 +00:00
YuTengjing 1dd0e5efce feat: huanyuan text-to-image 3 (#9589) 2025-10-06 22:21:11 +08:00
YuTengjing 08ea8561f9 fix: qwen image inside new api (#9587) 2025-10-06 21:46:22 +08:00
lobehubbot 20be3cfb38 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-06 04:36:05 +00:00
semantic-release-bot 562ef7fd8e 🔖 chore(release): v1.134.7 [skip ci]
### [Version&nbsp;1.134.7](https://github.com/lobehub/lobe-chat/compare/v1.134.6...v1.134.7)
<sup>Released on **2025-10-06**</sup>

#### 🐛 Bug Fixes

- **security**: Sanitize Azure provider error responses to prevent API key exposure.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's fixed

* **security**: Sanitize Azure provider error responses to prevent API key exposure, closes [#9583](https://github.com/lobehub/lobe-chat/issues/9583) ([af59bfe](https://github.com/lobehub/lobe-chat/commit/af59bfe))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-06 04:34:49 +00:00
Arvin Xu af59bfe013 🔒 fix(security): Sanitize Azure provider error responses to prevent API key exposure (#9583) 2025-10-06 06:24:27 +02:00
LobeHub Bot c0974ea955 🤖 style: update i18n (#9580) 2025-10-06 06:23:38 +02:00
Arvin Xu c83d7afbe6 📝 docs: update app directory structure documentation (#9582)
- Update folder-structure.mdx and zh-CN version to reflect current Next.js 13+ App Router architecture
- Replace outdated simple desktop/mobile structure with actual complex structure
- Add documentation for (backend), [variants], @modal, and desktop route groups
- Include API architecture explanation with tRPC and REST endpoints
- Document platform organization and deployment targets

Fixes #9522

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-10-06 12:13:28 +08:00
Daniel Hofheinz 210a41bb8b 📝 docs: update Zustand import syntax for v5 compatibility (#9581) 2025-10-06 05:53:44 +02:00
lobehubbot e8c08335c3 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-05 16:20:54 +00:00
semantic-release-bot cf82bc0628 🔖 chore(release): v1.134.6 [skip ci]
### [Version&nbsp;1.134.6](https://github.com/lobehub/lobe-chat/compare/v1.134.5...v1.134.6)
<sup>Released on **2025-10-05**</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-10-05 16:19:56 +00:00
Arvin Xu e702064e39 👷 build: fix docker build (#9576)
fix build
2025-10-06 00:09:58 +08:00
lobehubbot d14debc7d7 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-05 16:00:14 +00:00
semantic-release-bot 8231aea1c7 🔖 chore(release): v1.134.5 [skip ci]
### [Version&nbsp;1.134.5](https://github.com/lobehub/lobe-chat/compare/v1.134.4...v1.134.5)
<sup>Released on **2025-10-05**</sup>

#### 🐛 Bug Fixes

- **database**: Prevent empty array insertion in aiModel batch operations.

<br/>

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

#### What's fixed

* **database**: Prevent empty array insertion in aiModel batch operations, closes [#9491](https://github.com/lobehub/lobe-chat/issues/9491) [#9429](https://github.com/lobehub/lobe-chat/issues/9429) [#9429](https://github.com/lobehub/lobe-chat/issues/9429) ([eb50c8b](https://github.com/lobehub/lobe-chat/commit/eb50c8b))

</details>

<div align="right">

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

</div>
2025-10-05 15:59:11 +00:00
Arvin Xu af274190a8 🔨 chore: add group-messages database schema (#9543)
* add group messages

* update

* add migrations

* ♻️ refactor: refactor message group

* fix

* fix

* update schema
2025-10-05 23:49:27 +08:00
Arvin Xu eb50c8b781 🐛 fix(database): prevent empty array insertion in aiModel batch operations (#9491)
* 🐛 fix(database): prevent empty array insertion in aiModel batch operations

- Add validation to batchUpdateAiModels to return early if models array is empty
- Add validation to batchToggleAiModels to return early if models array is empty
- Add validation to updateModelsOrder to return early if sortMap array is empty
- Fixes 'values() must be called with at least one value' error when OpenRouter returns empty model list

Fixes #9429

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

*  test(database): add tests for empty array validation in aiModel batch operations

- Add test for batchUpdateAiModels with empty array returning empty result
- Add test for batchToggleAiModels with empty array returning early
- Add test for updateModelsOrder with empty sortMap returning early

These tests verify the fix for issue #9429 where empty arrays caused
"values() must be called with at least one value" database errors.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* 🐛 fix(test): remove invalid sort property access in aiModel test

- Remove test assertion accessing sort property on AiProviderModelListItem
- AiProviderModelListItem interface doesn't include sort property
- Fix TypeScript error: Property 'sort' does not exist on type 'AiProviderModelListItem'

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* ♻️ refactor(database): extract shared validation helper for empty arrays

- Add private isEmptyArray() helper method to AiModelModel class
- Replace duplicate empty array checks in batch methods with shared helper
- Improve code maintainability and reduce duplication
- Address Sourcery AI feedback for better code organization

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* 🐛 fix(database): respect enabled parameter in aiModel create method

The create method was forcing enabled: true regardless of input.
This fix allows explicit enabled: false while maintaining true as default.

Fixes failing test: batchToggleAiModels empty array validation.

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-10-05 23:42:39 +08:00
lobehubbot c25492e377 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-05 14:35:07 +00:00
semantic-release-bot 082b641270 🔖 chore(release): v1.134.4 [skip ci]
### [Version&nbsp;1.134.4](https://github.com/lobehub/lobe-chat/compare/v1.134.3...v1.134.4)
<sup>Released on **2025-10-05**</sup>

#### 💄 Styles

- **misc**: Add promptfoo to improve prompts quality.

<br/>

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

#### Styles

* **misc**: Add promptfoo to improve prompts quality, closes [#9568](https://github.com/lobehub/lobe-chat/issues/9568) ([33874c2](https://github.com/lobehub/lobe-chat/commit/33874c2))

</details>

<div align="right">

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

</div>
2025-10-05 14:34:01 +00:00
Arvin Xu 33874c20d1 💄 style: add promptfoo to improve prompts quality (#9568)
* add promptfoo

* finish pipeline of promptfoo

* improve translate prompt

* improve summary title

* improve summary-title prompt

* refactor emoji-picker and language-detection

* refactor emoji-picker prompt

* improve emoji picker

* improve providers

* improve knowledge qa promptfoo

* improve knowledge qa prompts

* update

* update
2025-10-05 22:24:30 +08:00
Arvin Xu 0d48ebddd9 🔧 chore: fix workflows does not contain permissions (#9544)
* Potential fix for code scanning alert no. 39: Workflow does not contain permissions

* update permissions

---------
2025-10-05 20:05:10 +08:00
lobehubbot 95393ec093 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-05 10:57:44 +00:00
semantic-release-bot 565e0d9a39 🔖 chore(release): v1.134.3 [skip ci]
### [Version&nbsp;1.134.3](https://github.com/lobehub/lobe-chat/compare/v1.134.2...v1.134.3)
<sup>Released on **2025-10-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Type not preserved when model is sorted.

<br/>

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

#### What's fixed

* **misc**: Type not preserved when model is sorted, closes [#9561](https://github.com/lobehub/lobe-chat/issues/9561) ([5fe2518](https://github.com/lobehub/lobe-chat/commit/5fe2518))

</details>

<div align="right">

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

</div>
2025-10-05 10:56:32 +00:00
sxjeru 5fe2518dae 🐛 fix: type not preserved when model is sorted (#9561) 2025-10-05 12:45:14 +02:00
lobehubbot 1cb36da520 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-05 09:49:07 +00:00
semantic-release-bot cdded292f4 🔖 chore(release): v1.134.2 [skip ci]
### [Version&nbsp;1.134.2](https://github.com/lobehub/lobe-chat/compare/v1.134.1...v1.134.2)
<sup>Released on **2025-10-05**</sup>

#### 💄 Styles

- **misc**: Allow switching model `type`.

<br/>

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

#### Styles

* **misc**: Allow switching model `type`, closes [#9529](https://github.com/lobehub/lobe-chat/issues/9529) ([9b62685](https://github.com/lobehub/lobe-chat/commit/9b62685))

</details>

<div align="right">

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

</div>
2025-10-05 09:48:01 +00:00
sxjeru 9b62685b08 💄 style: Allow switching model type (#9529) 2025-10-05 11:38:02 +02:00
renovate[bot] 249b46e5cf Update codecov/codecov-action action to v5 (#4714) 2025-10-05 11:37:16 +02:00
renovate[bot] dbe7d7ef7c Update actions/checkout action to v5 (#9553) 2025-10-05 11:36:11 +02:00
lobehubbot 1e4011e489 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-05 06:38:57 +00:00
semantic-release-bot 3a8229a2c6 🔖 chore(release): v1.134.1 [skip ci]
### [Version&nbsp;1.134.1](https://github.com/lobehub/lobe-chat/compare/v1.134.0...v1.134.1)
<sup>Released on **2025-10-05**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-10-05 06:37:56 +00:00
LobeHub Bot ed8174fc3d 🤖 style: update i18n (#9546)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-05 14:27:53 +08:00
renovate[bot] 304e6c13d8 Update pnpm to v10.18.0 (#9552)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-05 14:27:05 +08:00
lobehubbot a63485d915 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-04 19:12:57 +00:00
semantic-release-bot 01d66a9368 🔖 chore(release): v1.134.0 [skip ci]
## [Version&nbsp;1.134.0](https://github.com/lobehub/lobe-chat/compare/v1.133.6...v1.134.0)
<sup>Released on **2025-10-04**</sup>

####  Features

- **misc**: Support double-click to open multi agent window on the desktop.

<br/>

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

#### What's improved

* **misc**: Support double-click to open multi agent window on the desktop, closes [#9331](https://github.com/lobehub/lobe-chat/issues/9331) ([a060901](https://github.com/lobehub/lobe-chat/commit/a060901))

</details>

<div align="right">

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

</div>
2025-10-04 19:11:56 +00:00
René Wang 794748373b 🔨 chore: enhance EdgeConfig with per-user feature flags support (#9541)
*  feat: enhance EdgeConfig with per-user feature flags support

- Add EdgeConfigKeys constants for better maintainability
- Add getFeatureFlags() and getFlagByKey() methods to EdgeConfig
- Enhance isEnabled() with debugging console logs
- Implement per-user feature flag evaluation logic
- Add EdgeConfig integration for feature flags with env var fallback
- Support feature flags as boolean or array of user IDs
- Export IFeatureFlagsState type for type safety

* update log

* refactor

* refactor schema

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-10-05 02:49:36 +08:00
Shinji-Li a060901c65 feat: support double-click to open multi agent window on the desktop (#9331)
* feat: add single pannel

* feat: add openTopicInNewWindow to global windows

* feat: use ueIsSingleMode hook to replace useSearchParams judge

* feat: add session pannel double click & drag create new window

* feat: add supensed out in SideBar

* fix: update test.ts

* feat: add ts define

* feat: loading singlemode not render draggablePannel
2025-10-05 02:42:20 +08:00
lobehubbot 7a34c8babe 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-04 15:31:24 +00:00
semantic-release-bot 63e3b70681 🔖 chore(release): v1.133.6 [skip ci]
### [Version&nbsp;1.133.6](https://github.com/lobehub/lobe-chat/compare/v1.133.5...v1.133.6)
<sup>Released on **2025-10-04**</sup>

#### 🐛 Bug Fixes

- **misc**: `type` not preserved when model is disabled or sorted.

#### 💄 Styles

- **misc**: Nano banana support `aspect_ratio`.

<br/>

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

#### What's fixed

* **misc**: `type` not preserved when model is disabled or sorted, closes [#9530](https://github.com/lobehub/lobe-chat/issues/9530) ([476b897](https://github.com/lobehub/lobe-chat/commit/476b897))

#### Styles

* **misc**: Nano banana support `aspect_ratio`, closes [#9528](https://github.com/lobehub/lobe-chat/issues/9528) ([ae3ed6e](https://github.com/lobehub/lobe-chat/commit/ae3ed6e))

</details>

<div align="right">

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

</div>
2025-10-04 15:30:23 +00:00
sxjeru 476b897fe0 🐛 fix: type not preserved when model is disabled or sorted (#9530)
 feat: add model type support in AiModelModel and related tests
2025-10-04 23:20:15 +08:00
sxjeru ae3ed6ec47 💄 style: nano banana support aspect_ratio (#9528)
*  feat: add nano banana model parameters and update image generation config

*  feat: 添加 Nano Banana 模型参数和图像生成定价配置
2025-10-04 23:19:59 +08:00
lobehubbot 5a69857e09 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-04 11:40:42 +00:00
semantic-release-bot e01c72cf03 🔖 chore(release): v1.133.5 [skip ci]
### [Version&nbsp;1.133.5](https://github.com/lobehub/lobe-chat/compare/v1.133.4...v1.133.5)
<sup>Released on **2025-10-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Custom provider fails when client requests are enabled.

#### 💄 Styles

- **misc**: Optimized `extendParams` UI, update i18n.

<br/>

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

#### What's fixed

* **misc**: Custom provider fails when client requests are enabled, closes [#9534](https://github.com/lobehub/lobe-chat/issues/9534) ([8b12fdf](https://github.com/lobehub/lobe-chat/commit/8b12fdf))

#### Styles

* **misc**: Optimized `extendParams` UI, closes [#9457](https://github.com/lobehub/lobe-chat/issues/9457) ([582f6d1](https://github.com/lobehub/lobe-chat/commit/582f6d1))
* **misc**: Update i18n, closes [#9514](https://github.com/lobehub/lobe-chat/issues/9514) ([6430f57](https://github.com/lobehub/lobe-chat/commit/6430f57))

</details>

<div align="right">

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

</div>
2025-10-04 11:39:19 +00:00
renovate[bot] 95d4a3a4be Update dependency @huggingface/tasks to ^0.19.0 (#6427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 19:29:11 +08:00
LobeHub Bot 6430f57665 🤖 style: update i18n (#9514)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-10-04 19:25:35 +08:00
YuTengjing 99ded4ac33 chore: sync some update (#9539)
* chore: remove legacy files

* 🔧 fix: correct and simplify tps calc

* 🔧 fix: remove unnecessary console log in createRuntime function
2025-10-04 19:23:57 +08:00
sxjeru 582f6d1fbf 💄 style: Optimized extendParams UI (#9457)
*  feat: 调整滑块参数和步长逻辑以优化用户体验

*  feat: 添加 resolveModelThinkingBudget 函数以优化 Gemini 模型思维预算逻辑

*  feat: 添加 DeepSeek V3.1 Terminus 模型

*  feat: 更新 DeepSeek 模型至 V3.2,调整参数和描述以反映最新功能

*  feat: 更新 DeepSeek 和 Hunyuan 模型,调整描述和发布时间以反映最新信息

*  feat: 添加 DeepSeek V3.2 模型及其定价信息,更新模型解析配置以支持新版本

* Update google.ts

* feat: 添加 GLM-4.6 聊天模型,增强推理能力和上下文处理
2025-10-04 19:20:58 +08:00
sxjeru 8b12fdfb82 🐛 fix: Custom provider fails when client requests are enabled (#9534)
*  fix: (启用客户端请求,自定义服务商未遵循指定请求格式) 更新 initializeWithClientStore 函数,支持通过选项对象传递 provider 和 payload,增强代码可读性

*  feat: 添加 runtimeProvider 支持,优化模型服务的提供者初始化逻辑

* add test
2025-10-04 19:15:59 +08:00
lobehubbot ba3f67f7d4 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-01 21:07:14 +00:00
semantic-release-bot 0a6d3ad3f9 🔖 chore(release): v1.133.4 [skip ci]
### [Version&nbsp;1.133.4](https://github.com/lobehub/lobe-chat/compare/v1.133.3...v1.133.4)
<sup>Released on **2025-10-01**</sup>

#### 🐛 Bug Fixes

- **misc**: OllamaCloud error.

#### 💄 Styles

- **misc**: Fix chat minimap overflow.

<br/>

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

#### What's fixed

* **misc**: OllamaCloud error, closes [#9481](https://github.com/lobehub/lobe-chat/issues/9481) ([55c45a5](https://github.com/lobehub/lobe-chat/commit/55c45a5))

#### Styles

* **misc**: Fix chat minimap overflow, closes [#9507](https://github.com/lobehub/lobe-chat/issues/9507) ([d835c33](https://github.com/lobehub/lobe-chat/commit/d835c33))

</details>

<div align="right">

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

</div>
2025-10-01 21:06:07 +00:00
Arvin Xu e10aa05a11 🔨 chore: improve github workflow (#9511)
* improve workflow file

* clean

* update
2025-10-02 04:56:34 +08:00
René Wang d835c33699 💄 style: fix chat minimap overflow (#9507)
fix: Minimap overflow
2025-10-02 04:47:12 +08:00
sxjeru 55c45a5197 🐛 fix: OllamaCloud error (#9481)
* fix: update Ollama Cloud base URL and add CORS error handling

*  feat: 添加 Claude Sonnet 4.5 模型并更新其他模型的发布信息

*  feat: 更新 Novita 模型定价和输入模态,增强模型信息

* Update index.ts

* fix: 移除不必要的测试用例

*  feat: 更新智谱模型,添加 GLM-4.6,优化定价策略,移除过时模型

*  feat: 为 GLM-4.6 模型添加定价策略,优化定价单位和参数

* fix: 修复 DeepSeek 模型显示名称逻辑,确保短名称不包含 DeepSeek 时正确显示

* feat: 添加 DeepSeek V3.2 Exp 模型,提升长文本处理效率
2025-10-02 04:46:59 +08:00
lobehubbot b51839fc54 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-01 19:41:54 +00:00
semantic-release-bot 1e9b05d7ce 🔖 chore(release): v1.133.3 [skip ci]
### [Version&nbsp;1.133.3](https://github.com/lobehub/lobe-chat/compare/v1.133.2...v1.133.3)
<sup>Released on **2025-10-01**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor a `ssrf-safe-fetch` module.

#### 🐛 Bug Fixes

- **misc**: Fix frontend random API key config not work.

<br/>

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

#### Code refactoring

* **misc**: Refactor a `ssrf-safe-fetch` module, closes [#9474](https://github.com/lobehub/lobe-chat/issues/9474) ([92da716](https://github.com/lobehub/lobe-chat/commit/92da716))

#### What's fixed

* **misc**: Fix frontend random API key config not work, closes [#9477](https://github.com/lobehub/lobe-chat/issues/9477) [#9255](https://github.com/lobehub/lobe-chat/issues/9255) ([a194d48](https://github.com/lobehub/lobe-chat/commit/a194d48))

</details>

<div align="right">

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

</div>
2025-10-01 19:40:38 +00:00
Arvin Xu 92da716028 ♻️ refactor: refactor a ssrf-safe-fetch module (#9474)
* add ssrf-safe-fetch

* fix web-crawler

* add tests

* revert

* Update index.ts

* fix tests
2025-10-02 03:31:20 +08:00
renovate[bot] 635d0d649b Update dependency @opentelemetry/exporter-trace-otlp-http to ^0.205.0 (#9455)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-01 14:54:05 +08:00
renovate[bot] 3ae352b79e Update dependency @opentelemetry/instrumentation-http to ^0.205.0 (#9458)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-01 14:53:58 +08:00
Arvin Xu a194d48545 🐛 fix: fix frontend random API key config not work (#9477)
*  feat: add frontend random API key selection support

- Implement ClientApiKeyManager for random selection from comma-separated keys
- Update getProviderAuthPayload to use random key picking for all providers
- Add comprehensive tests for the new functionality
- Mirror existing server-side implementation for consistency

Closes #9255

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: LobeHub Bot <lobehubbot@users.noreply.github.com>

* fix tests

* fix implement

* fix test

* fix test
2025-10-01 05:46:24 +08:00
YuTengjing 0ee4f18d89 📝 docs(i18n): add image quality translations for multiple languages (#9495) 2025-09-30 21:17:47 +08:00
YuTengjing 49ea508cc4 🔨 chore: support chat api and create image cost caculate (#9492) 2025-09-30 21:09:56 +08:00
lobehubbot 88592d3f08 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-30 09:05:58 +00:00
semantic-release-bot 7e0b715e22 🔖 chore(release): v1.133.2 [skip ci]
### [Version&nbsp;1.133.2](https://github.com/lobehub/lobe-chat/compare/v1.133.1...v1.133.2)
<sup>Released on **2025-09-30**</sup>

#### 💄 Styles

- **misc**: Add minimap to chat list for quick navigation.

<br/>

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

#### Styles

* **misc**: Add minimap to chat list for quick navigation, closes [#9470](https://github.com/lobehub/lobe-chat/issues/9470) ([8db47eb](https://github.com/lobehub/lobe-chat/commit/8db47eb))

</details>

<div align="right">

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

</div>
2025-09-30 09:04:58 +00:00
René Wang 8db47eb816 💄 style: Add minimap to chat list for quick navigation (#9470)
* feat: Add minimap to chat list

* style: Tweak style

* style: Hover to reveal the arrow

* style: Hover to reveal the arrow

* feat: Message anchor detection

* fix: Type error

* style: Remove drag handle for topic panel

* fix: type error

* fix: Anchor position

* fix: Scroll

* feat: Add missing translation

* fix: Offset

* fix: Offset

* feat: Remove test files
2025-09-30 16:55:17 +08:00
YuTengjing 6325602480 📝 docs(rules): optimize agent rules and documentation structure (#9486) 2025-09-30 16:07:32 +08:00
lobehubbot b745f11873 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-30 04:46:57 +00:00
semantic-release-bot 7f31eba0d9 🔖 chore(release): v1.133.1 [skip ci]
### [Version&nbsp;1.133.1](https://github.com/lobehub/lobe-chat/compare/v1.133.0...v1.133.1)
<sup>Released on **2025-09-30**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-30 04:45:58 +00:00
LobeHub Bot dfeb42ce1c 🤖 style: update i18n (#9480)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-30 12:36:35 +08:00
renovate[bot] 138071d0e3 Update dependency ollama to ^0.6.0 (#9461)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-30 12:32:00 +08:00
lobehubbot 1aaa5f5152 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-29 20:33:43 +00:00
semantic-release-bot e1acbf21fd 🔖 chore(release): v1.133.0 [skip ci]
## [Version&nbsp;1.133.0](https://github.com/lobehub/lobe-chat/compare/v1.132.19...v1.133.0)
<sup>Released on **2025-09-29**</sup>

####  Features

- **misc**: Add builtin Python plugin, add Claude Sonnet 4.5 model to AI chat models.

<br/>

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

#### What's improved

* **misc**: Add builtin Python plugin, closes [#8873](https://github.com/lobehub/lobe-chat/issues/8873) ([fa6ef94](https://github.com/lobehub/lobe-chat/commit/fa6ef94))
* **misc**: Add Claude Sonnet 4.5 model to AI chat models, closes [#9476](https://github.com/lobehub/lobe-chat/issues/9476) ([a30a65c](https://github.com/lobehub/lobe-chat/commit/a30a65c))

</details>

<div align="right">

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

</div>
2025-09-29 20:32:18 +00:00
Arvin Xu 79bc08a076 🔨 chore: add claude translator and improve issue template (#9479)
* add translator

* use claude translator
2025-09-30 04:22:01 +08:00
Aloxaf fa6ef94067 feat: add builtin Python plugin (#8873)
* feat: 初步完成

* chore: type

* feat: 图片功能

* feat: 文件下载功能

* refactor: 简化代码

* chore: 清理代码

* chore: clean

* chore: 清理代码

* chore: 清理代码

* chore: 小改进

* fix: 上传完成前图片无法显示

* refactor: 增加 python-interpreter package

* chore: 清理

* feat: 传入上下文中的文件

* chore: 小优化

* chore: 中文字体

* chore: clean

* fix: 服务端部署

* fix: 重复文件检查

* test: 增加 interpreter.test.ts

* test: add worker.test.ts

* style: fix import

* test: fix

* style: fix import

* style: move env file to envs

* style: 限制代码框高度

* style: 重命名

* misc: 小修小补

* refactor: 重命名为 code-interpreter

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-09-30 04:20:57 +08:00
YuTengjing a30a65cd4c feat: add Claude Sonnet 4.5 model to AI chat models (#9476) 2025-09-30 04:20:51 +08:00
Arvin Xu 2e6018a496 🔨 chore: fix types (#9478)
fix types
2025-09-30 03:54:12 +08:00
Arvin Xu 1776a24943 🔨 chore: add auto close issues workflow (#9473)
* add auto close issues

* update
2025-09-30 02:14:47 +08:00
renovate[bot] 27d133a417 Update dependency @opentelemetry/exporter-metrics-otlp-http to ^0.205.0 (#9454)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 18:49:24 +08:00
renovate[bot] de3478b17a Update dependency @opentelemetry/instrumentation to ^0.205.0 (#9456)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 18:49:05 +08:00
renovate[bot] 694cdbea8f Update dependency @opentelemetry/sdk-node to ^0.205.0 (#9460)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 18:48:26 +08:00
lobehubbot ffbb804b3f 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-29 08:18:20 +00:00
semantic-release-bot 5947148c01 🔖 chore(release): v1.132.19 [skip ci]
### [Version&nbsp;1.132.19](https://github.com/lobehub/lobe-chat/compare/v1.132.18...v1.132.19)
<sup>Released on **2025-09-29**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-09-29 08:17:23 +00:00
René Wang b0cb96e5c2 👷 build: Add virtual column to agent table (#9464) 2025-09-29 10:07:19 +02:00
lobehubbot f1d732d166 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-28 05:29:59 +00:00
semantic-release-bot c6de50e385 🔖 chore(release): v1.132.18 [skip ci]
### [Version&nbsp;1.132.18](https://github.com/lobehub/lobe-chat/compare/v1.132.17...v1.132.18)
<sup>Released on **2025-09-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Refactor tools-engine and fix search token count.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's fixed

* **misc**: Refactor tools-engine and fix search token count, closes [#9448](https://github.com/lobehub/lobe-chat/issues/9448) ([e82d4b7](https://github.com/lobehub/lobe-chat/commit/e82d4b7))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-28 05:28:51 +00:00
LobeHub Bot b04a5d7906 🤖 style: update i18n (#9449)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-28 13:18:26 +08:00
renovate[bot] 088cc2c56c Update pnpm to v10.17.1 (#9450)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-28 13:13:23 +08:00
renovate[bot] acb49c1393 Update dependency @anthropic-ai/sdk to ^0.64.0 (#9451)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-28 13:12:25 +08:00
Arvin Xu e82d4b7274 🐛 fix: refactor tools-engine and fix search token count (#9448)
* init toolsEngine

* clean implement

* refactor with tools-engine

* add more tests

* update

* rename

* refactor the tools engine

* refactor code

* refactor helpers

* fix tools is empty issue

* fix tests

* refactor to remove enabledSchema

* support defaultToolIds

* fix tests

* fix tests
2025-09-28 13:12:14 +08:00
lobehubbot 2dc03b47d6 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-27 05:58:05 +00:00
semantic-release-bot 3e64ee659e 🔖 chore(release): v1.132.17 [skip ci]
### [Version&nbsp;1.132.17](https://github.com/lobehub/lobe-chat/compare/v1.132.16...v1.132.17)
<sup>Released on **2025-09-27**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix input empty group name.

<br/>

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

#### What's fixed

* **misc**: Fix input empty group name, closes [#9441](https://github.com/lobehub/lobe-chat/issues/9441) ([f653ce1](https://github.com/lobehub/lobe-chat/commit/f653ce1))

</details>

<div align="right">

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

</div>
2025-09-27 05:57:02 +00:00
huangkairan f653ce1737 🐛 fix: fix input empty group name (#9441)
fix: cant input empty group name
2025-09-27 07:47:21 +02:00
Arvin Xu eeabb69088 ️ perf: fix battery usage (#9444) 2025-09-27 07:46:18 +02:00
sxjeru 356cf029dd feat: Add new provider Ollama Cloud (#9435) 2025-09-27 07:45:47 +02:00
lobehubbot 6e7b420347 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-26 15:43:27 +00:00
semantic-release-bot ee464838ac 🔖 chore(release): v1.132.16 [skip ci]
### [Version&nbsp;1.132.16](https://github.com/lobehub/lobe-chat/compare/v1.132.15...v1.132.16)
<sup>Released on **2025-09-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Resolve qwen-image-edit imageUrls conversion issue.

<br/>

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

#### What's fixed

* **misc**: Resolve qwen-image-edit imageUrls conversion issue, closes [#9414](https://github.com/lobehub/lobe-chat/issues/9414) ([ec5af1b](https://github.com/lobehub/lobe-chat/commit/ec5af1b))

</details>

<div align="right">

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

</div>
2025-09-26 15:42:22 +00:00
Maple Gao ec5af1b4c7 🐛 fix: resolve qwen-image-edit imageUrls conversion issue (#9414)
* 🔧 fix: resolve missing imageurls convertion

*  test: add comprehensive tests for qwen-image-edit imageUrls conversion

- Add tests for imageUrls array to imageUrl conversion
- Add tests for multiple elements using first element
- Add tests for empty array error handling
- Add tests for imageUrl priority over imageUrls
- Add tests for missing parameters error handling
- All 20 test cases pass (5 new + 15 existing)

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-09-26 17:32:18 +02:00
Arvin Xu 273e0277d1 🔨 chore: pre-merge group chat relative implement (#9432)
* pre-merge code

* fix tests

* fix circular

* remove redirectUri

* fix types

* improve sql

* fix docs

* fix lint

* update model runtime
2025-09-26 03:47:25 +08:00
lobehubbot 4fb18ac6a8 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-25 19:45:50 +00:00
semantic-release-bot 74c8ef2686 🔖 chore(release): v1.132.15 [skip ci]
### [Version&nbsp;1.132.15](https://github.com/lobehub/lobe-chat/compare/v1.132.14...v1.132.15)
<sup>Released on **2025-09-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Add proxyUrl configuration for NEW API provider.

<br/>

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

#### What's fixed

* **misc**: Add proxyUrl configuration for NEW API provider, closes [#9426](https://github.com/lobehub/lobe-chat/issues/9426) [#9420](https://github.com/lobehub/lobe-chat/issues/9420) ([e35e378](https://github.com/lobehub/lobe-chat/commit/e35e378))

</details>

<div align="right">

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

</div>
2025-09-25 19:44:50 +00:00
Maple Gao e35e3787c0 🐛 fix: add proxyUrl configuration for NEW API provider (#9426)
This fixes the missing API URL configuration field in the NEW API provider settings UI.

The showEndpoint logic requires either proxyUrl or isCustom to be true for the
configuration field to be displayed. Since NEW API is a built-in provider
(not custom), it needs the proxyUrl field defined in its configuration.

This enables users to configure the API endpoint through the UI as originally
intended, while maintaining compatibility with existing NEWAPI_PROXY_URL
environment variable configuration.

Closes #9420
2025-09-26 03:34:18 +08:00
lobehubbot c0e5a1d6e3 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-25 19:25:45 +00:00
semantic-release-bot abba6a9eff 🔖 chore(release): v1.132.14 [skip ci]
### [Version&nbsp;1.132.14](https://github.com/lobehub/lobe-chat/compare/v1.132.13...v1.132.14)
<sup>Released on **2025-09-25**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-25 19:24:40 +00:00
LobeHub Bot 4ea45b18d0 🤖 style: update i18n (#9413)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-26 03:14:36 +08:00
Guanyu Zhang a21e71833b 📝 docs: add missing environment variables in online-search docs (#9424)
docs: add missing environment variables in online-search docs (en & zh-CN)

Co-authored-by: evan <evancodeforfun@gmail.com>
2025-09-26 03:12:02 +08:00
peerless-hero dd9bbdc362 🔨 chore(config): add assetPrefix to nextConfig for environment variable support (#9427)
*  feat(config): add assetPrefix to nextConfig for environment variable support

*  feat(docs): add NEXT_PUBLIC_ASSET_PREFIX environment variable for CDN support
2025-09-26 02:57:18 +08:00
lobehubbot 1a443e8d8a 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-25 08:15:27 +00:00
semantic-release-bot 4a00672f9b 🔖 chore(release): v1.132.13 [skip ci]
### [Version&nbsp;1.132.13](https://github.com/lobehub/lobe-chat/compare/v1.132.12...v1.132.13)
<sup>Released on **2025-09-25**</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-09-25 08:14:27 +00:00
Zhijie He 3db2a39585 👷 build: fix UNABLE_TO_GET_ISSUER_CERT_LOCALLY error with docker image (#9422)
* fix: fix `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` error

* build: update node version to 24
2025-09-25 16:01:28 +08:00
lobehubbot 9a4939cca9 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-25 07:59:41 +00:00
semantic-release-bot 5c8b48efee 🔖 chore(release): v1.132.12 [skip ci]
### [Version&nbsp;1.132.12](https://github.com/lobehub/lobe-chat/compare/v1.132.11...v1.132.12)
<sup>Released on **2025-09-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Slove setting proxy page with style error.

<br/>

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

#### What's fixed

* **misc**: Slove setting proxy page with style error, closes [#9417](https://github.com/lobehub/lobe-chat/issues/9417) ([6d3e5d1](https://github.com/lobehub/lobe-chat/commit/6d3e5d1))

</details>

<div align="right">

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

</div>
2025-09-25 07:58:44 +00:00
Shinji-Li 6d3e5d1a80 🐛 fix: slove setting proxy page with style error (#9417)
fix: slove setting proxy page style
2025-09-25 15:48:52 +08:00
lobehubbot 67401c07aa 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-24 21:21:43 +00:00
semantic-release-bot cf81abc909 🔖 chore(release): v1.132.11 [skip ci]
### [Version&nbsp;1.132.11](https://github.com/lobehub/lobe-chat/compare/v1.132.10...v1.132.11)
<sup>Released on **2025-09-24**</sup>

#### 💄 Styles

- **misc**: Enhanced Nvidia NIM chat experience, OpenAI models in AiHubMix use Responses API.

<br/>

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

#### Styles

* **misc**: Enhanced Nvidia NIM chat experience, closes [#9408](https://github.com/lobehub/lobe-chat/issues/9408) ([13e936f](https://github.com/lobehub/lobe-chat/commit/13e936f))
* **misc**: OpenAI models in AiHubMix use Responses API, closes [#9251](https://github.com/lobehub/lobe-chat/issues/9251) ([8636fe4](https://github.com/lobehub/lobe-chat/commit/8636fe4))

</details>

<div align="right">

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

</div>
2025-09-24 21:20:36 +00:00
sxjeru 13e936fbe0 💄 style: Enhanced Nvidia NIM chat experience (#9408)
*  feat: 添加 DeepSeek V3.1 模型并更新思维模型处理逻辑

* feat: 更新 ollamaChatModels,添加 DeepSeek V3.1 模型及其描述,调整上下文窗口大小
2025-09-25 05:10:17 +08:00
sxjeru 8636fe45e3 💄 style: OpenAI models in AiHubMix use Responses API (#9251)
* feat: 添加预处理功能以增强聊天完成选项

* 暴露实例级预处理钩子

* feat: 更新响应API路由控制,支持模型匹配和实例覆盖

* Update index.ts

* add tests

* regex

* test: mock chat completion stream to prevent hanging in response model tests

* del Dolphin Mixtral 8x22B

* update models

* del models

* feat: 添加新的模型配置和关键词支持

*  feat: 更新音频模型和定价结构,添加 GPT Audio 和 GPT Realtime 模型支持

*  feat: 添加 Grok 4 Fast 模型支持,更新 xaiChatModels 列表

*  feat: 更新 Grok 4 Fast 定价策略为分层定价,添加非推理关键词支持

*  feat: 添加 Grok 4 Fast 和 Grok 4 Fast (Non-Reasoning) 聊天模型

*  feat: 更新 Novita 和 SiliconCloud 聊天模型,增加新模型并调整参数

* 更新 Novita 聊天模型,调整上下文窗口令牌和最大输出限制

* 更新 DeepSeek V3.1 模型,增加新参数并添加 Longcat 模型配置

* feat: 更新 Novita 和 SiliconCloud 模型,增加 maxOutput 参数并添加新聊天模型配置

* feat: 添加 GPT-5 Codex 模型,更新相关参数并调整 Deepseek 部署名称

* feat: 添加 Qwen3 VL Plus 模型,更新相关参数并优化思维预算逻辑

* feat: 添加 Qwen3 VL 模型,更新相关参数并调整 Qwen3 Coder Plus 的上下文窗口大小
2025-09-25 05:10:08 +08:00
Arvin Xu 1a77d9f9c6 🔨 chore: add api for structure output (#9382)
*  feat: 实现 structure output

* add tests

*  feat: 实现 structure output

* add support for structure output in chat completions

* add support for structure output in router runtime

* improve test

* add google generateObject

* add google generateObject tests

* add Anthropic generateObject
2025-09-25 04:51:21 +08:00
lobehubbot 8616977253 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-24 04:50:03 +00:00
semantic-release-bot 1e17da19d9 🔖 chore(release): v1.132.10 [skip ci]
### [Version&nbsp;1.132.10](https://github.com/lobehub/lobe-chat/compare/v1.132.9...v1.132.10)
<sup>Released on **2025-09-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Macos desktop sign.

<br/>

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

#### What's fixed

* **misc**: Macos desktop sign, closes [#9400](https://github.com/lobehub/lobe-chat/issues/9400) ([4349ad9](https://github.com/lobehub/lobe-chat/commit/4349ad9))

</details>

<div align="right">

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

</div>
2025-09-24 04:49:06 +00:00
YuTengjing 4349ad955d 🐛 fix: macos desktop sign (#9400) 2025-09-24 12:38:58 +08:00
lobehubbot 7d619cc0c1 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-23 07:45:24 +00:00
semantic-release-bot af003c5efa 🔖 chore(release): v1.132.9 [skip ci]
### [Version&nbsp;1.132.9](https://github.com/lobehub/lobe-chat/compare/v1.132.8...v1.132.9)
<sup>Released on **2025-09-23**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-09-23 07:44:28 +00:00
Neko d54113036a 👷 build: integrated otel for instrumenting backend side of Next.js (#9073) 2025-09-23 09:34:48 +02:00
lobehubbot 652e0ff415 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-23 07:02:59 +00:00
semantic-release-bot 800528d459 🔖 chore(release): v1.132.8 [skip ci]
### [Version&nbsp;1.132.8](https://github.com/lobehub/lobe-chat/compare/v1.132.7...v1.132.8)
<sup>Released on **2025-09-23**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor all `@/types` in model runtime to `@lobechat/types`.

<br/>

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

#### Code refactoring

* **misc**: Refactor all `@/types` in model runtime to `@lobechat/types`, closes [#9383](https://github.com/lobehub/lobe-chat/issues/9383) ([b050bd7](https://github.com/lobehub/lobe-chat/commit/b050bd7))

</details>

<div align="right">

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

</div>
2025-09-23 07:02:01 +00:00
Arvin Xu b050bd7b9f ♻️ refactor: refactor all @/types in model runtime to @lobechat/types (#9383) 2025-09-23 08:51:55 +02:00
lobehubbot 0719f18af1 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-23 06:24:56 +00:00
semantic-release-bot c2dfed6f7b 🔖 chore(release): v1.132.7 [skip ci]
### [Version&nbsp;1.132.7](https://github.com/lobehub/lobe-chat/compare/v1.132.6...v1.132.7)
<sup>Released on **2025-09-23**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-09-23 06:23:59 +00:00
Arvin Xu 02566b1a95 👷 build: pin @aws-sdk/client-s3@3.893.0 to fix build (#9389)
* pin aws sdk client s3

* Update package.json
2025-09-23 08:13:48 +02:00
lobehubbot 8f9464acf8 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-23 03:06:01 +00:00
semantic-release-bot a21472724b 🔖 chore(release): v1.132.6 [skip ci]
### [Version&nbsp;1.132.6](https://github.com/lobehub/lobe-chat/compare/v1.132.5...v1.132.6)
<sup>Released on **2025-09-23**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-09-23 03:05:02 +00:00
YuTengjing 20ef12443d 👷 build: don't sign macos desktop when missing sign secrets (#9379) 2025-09-23 10:54:36 +08:00
lobehubbot 4a24df9155 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-22 11:34:04 +00:00
semantic-release-bot dbec6b6776 🔖 chore(release): v1.132.5 [skip ci]
### [Version&nbsp;1.132.5](https://github.com/lobehub/lobe-chat/compare/v1.132.4...v1.132.5)
<sup>Released on **2025-09-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move the ModelProvider to model-bank.

<br/>

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

#### Code refactoring

* **misc**: Move the ModelProvider to model-bank, closes [#9374](https://github.com/lobehub/lobe-chat/issues/9374) ([d9a4361](https://github.com/lobehub/lobe-chat/commit/d9a4361))

</details>

<div align="right">

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

</div>
2025-09-22 11:33:04 +00:00
Arvin Xu d9a4361994 ♻️ refactor: move the ModelProvider to model-bank (#9374)
* move the ModelProvider to model-bank

* fix tests

* fix deps

* clean deps
2025-09-22 19:23:26 +08:00
Shinji-Li 1251548120 refactor: refactor the settings page to improve the experience & change ssr as csr (#8961) 2025-09-22 11:30:47 +08:00
lobehubbot 6b0f8eddb5 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-22 01:47:27 +00:00
semantic-release-bot 18e4c04fb9 🔖 chore(release): v1.132.4 [skip ci]
### [Version&nbsp;1.132.4](https://github.com/lobehub/lobe-chat/compare/v1.132.3...v1.132.4)
<sup>Released on **2025-09-22**</sup>

#### 💄 Styles

- **misc**: Enable thinkingBudget control for Vertex Gemini 2.5 models, update i18n.

<br/>

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

#### Styles

* **misc**: Enable thinkingBudget control for Vertex Gemini 2.5 models, closes [#8223](https://github.com/lobehub/lobe-chat/issues/8223) ([c665646](https://github.com/lobehub/lobe-chat/commit/c665646))
* **misc**: Update i18n, closes [#9363](https://github.com/lobehub/lobe-chat/issues/9363) ([785d5d7](https://github.com/lobehub/lobe-chat/commit/785d5d7))

</details>

<div align="right">

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

</div>
2025-09-22 01:46:29 +00:00
LobeHub Bot 785d5d7647 🤖 style: update i18n (#9363) 2025-09-22 09:36:42 +08:00
afon c665646534 💄 style: Enable thinkingBudget control for Vertex Gemini 2.5 models (#8223) 2025-09-22 09:36:21 +08:00
lobehubbot ebd924c371 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 17:16:55 +00:00
semantic-release-bot b52183cdbf 🔖 chore(release): v1.132.3 [skip ci]
### [Version&nbsp;1.132.3](https://github.com/lobehub/lobe-chat/compare/v1.132.2...v1.132.3)
<sup>Released on **2025-09-21**</sup>

#### 💄 Styles

- **misc**: Added `AUTH_MICROSOFT_ENTRA_ID_BASE_URL` routing.

<br/>

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

#### Styles

* **misc**: Added `AUTH_MICROSOFT_ENTRA_ID_BASE_URL` routing, closes [#9293](https://github.com/lobehub/lobe-chat/issues/9293) ([78a2f9e](https://github.com/lobehub/lobe-chat/commit/78a2f9e))

</details>

<div align="right">

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

</div>
2025-09-21 17:15:58 +00:00
Jim Seiwert 78a2f9e874 💄 style: Added AUTH_MICROSOFT_ENTRA_ID_BASE_URL routing (#9293)
Added AUTH_MICROSOFT_ENTRA_ID_BASE_URL routing
2025-09-22 01:05:58 +08:00
lobehubbot 8f274aeba9 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 17:02:45 +00:00
semantic-release-bot 9146362c9b 🔖 chore(release): v1.132.2 [skip ci]
### [Version&nbsp;1.132.2](https://github.com/lobehub/lobe-chat/compare/v1.132.1...v1.132.2)
<sup>Released on **2025-09-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix non stream mode in OpenAI Response API.

<br/>

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

#### What's fixed

* **misc**: Fix non stream mode in OpenAI Response API, closes [#9360](https://github.com/lobehub/lobe-chat/issues/9360) ([1c61b21](https://github.com/lobehub/lobe-chat/commit/1c61b21))

</details>

<div align="right">

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

</div>
2025-09-21 17:01:47 +00:00
Arvin Xu 1c61b21133 🐛 fix: fix non stream mode in OpenAI Response API (#9360)
* fix

* fix non stream

*  test: add comprehensive unit tests for nonStreamToStream functions

- Add tests for transformResponseToStream covering ChatCompletion conversion, reasoning content, tool calls, and edge cases
- Add tests for transformResponseAPIToStream covering Response API conversion, missing outputs, and error cases
- Tests verify complete event arrays as requested, not partial verification
- Tests will help expose issues with tool call handling and Response API compatibility

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* 🧪 test: fix nonStreamToStream test array comparisons and TypeScript errors

- Change test assertions to use array comparisons instead of individual equals
- Add missing refusal property to ChatCompletionMessage objects
- Fix Response API object types and add missing usage properties
- Resolve all TypeScript build errors in test file

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* fix

* fix tests
2025-09-22 00:51:39 +08:00
lobehubbot c14d165124 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 16:24:44 +00:00
semantic-release-bot 69817182a0 🔖 chore(release): v1.132.1 [skip ci]
### [Version&nbsp;1.132.1](https://github.com/lobehub/lobe-chat/compare/v1.132.0...v1.132.1)
<sup>Released on **2025-09-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix missing provider in server message.

<br/>

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

#### What's fixed

* **misc**: Fix missing provider in server message, closes [#9361](https://github.com/lobehub/lobe-chat/issues/9361) ([4099dfd](https://github.com/lobehub/lobe-chat/commit/4099dfd))

</details>

<div align="right">

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

</div>
2025-09-21 16:23:46 +00:00
Arvin Xu 4099dfd955 🐛 fix: fix missing provider in server message (#9361)
fix
2025-09-22 00:13:28 +08:00
lobehubbot 48ad272f90 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 13:47:34 +00:00
semantic-release-bot 9352a9c80e 🔖 chore(release): v1.132.0 [skip ci]
## [Version&nbsp;1.132.0](https://github.com/lobehub/lobe-chat/compare/v1.131.4...v1.132.0)
<sup>Released on **2025-09-21**</sup>

####  Features

- **misc**: Support google video understanding.

<br/>

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

#### What's improved

* **misc**: Support google video understanding, closes [#8761](https://github.com/lobehub/lobe-chat/issues/8761) ([f02d43b](https://github.com/lobehub/lobe-chat/commit/f02d43b))

</details>

<div align="right">

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

</div>
2025-09-21 13:46:39 +00:00
Arvin Xu f02d43b8d3 feat: support google video understanding (#8761)
* refactor

improve upload

fix tests

clean client mode

add video

support google image understand

* update

* fix tests
2025-09-21 21:37:06 +08:00
lobehubbot 6808099ce9 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 13:29:33 +00:00
semantic-release-bot 08347bbe01 🔖 chore(release): v1.131.4 [skip ci]
### [Version&nbsp;1.131.4](https://github.com/lobehub/lobe-chat/compare/v1.131.3...v1.131.4)
<sup>Released on **2025-09-21**</sup>

#### 💄 Styles

- **misc**: Enhanced AkashChat experience.

<br/>

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

#### Styles

* **misc**: Enhanced AkashChat experience, closes [#9330](https://github.com/lobehub/lobe-chat/issues/9330) ([47ec2d8](https://github.com/lobehub/lobe-chat/commit/47ec2d8))

</details>

<div align="right">

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

</div>
2025-09-21 13:28:36 +00:00
sxjeru 47ec2d81dc 💄 style: Enhanced AkashChat experience (#9330)
* 🔧 refactor: update akashChat models to use settings and enhance payload handling

*  feat: 添加视觉支持和更新描述,增强 Mistral 模型信息
2025-09-21 21:18:15 +08:00
lobehubbot 541d0f46b2 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 11:38:24 +00:00
semantic-release-bot af3daa4022 🔖 chore(release): v1.131.3 [skip ci]
### [Version&nbsp;1.131.3](https://github.com/lobehub/lobe-chat/compare/v1.131.2...v1.131.3)
<sup>Released on **2025-09-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Update Responses search tool to web_search.

<br/>

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

#### What's fixed

* **misc**: Update Responses search tool to web_search, closes [#9354](https://github.com/lobehub/lobe-chat/issues/9354) ([58d34ff](https://github.com/lobehub/lobe-chat/commit/58d34ff))

</details>

<div align="right">

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

</div>
2025-09-21 11:37:26 +00:00
sxjeru 58d34ff53f 🐛 fix: Update Responses search tool to web_search (#9354)
*  feat: 更新搜索工具为 web_search

* Update index.test.ts
2025-09-21 19:27:39 +08:00
lobehubbot b5389e44a2 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 10:23:22 +00:00
semantic-release-bot e827f286e6 🔖 chore(release): v1.131.2 [skip ci]
### [Version&nbsp;1.131.2](https://github.com/lobehub/lobe-chat/compare/v1.131.1...v1.131.2)
<sup>Released on **2025-09-21**</sup>

#### 💄 Styles

- **misc**: Use ID as name if provider name is empty.

<br/>

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

#### Styles

* **misc**: Use ID as name if provider name is empty, closes [#9356](https://github.com/lobehub/lobe-chat/issues/9356) ([7f60544](https://github.com/lobehub/lobe-chat/commit/7f60544))

</details>

<div align="right">

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

</div>
2025-09-21 10:22:24 +00:00
sxjeru 7f60544950 💄 style: Use ID as name if provider name is empty (#9356)
Use ID as name if provider name is empty
2025-09-21 18:11:34 +08:00
lobehubbot 116af84640 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-21 09:22:59 +00:00
semantic-release-bot 764fd4fa78 🔖 chore(release): v1.131.1 [skip ci]
### [Version&nbsp;1.131.1](https://github.com/lobehub/lobe-chat/compare/v1.131.0...v1.131.1)
<sup>Released on **2025-09-21**</sup>

#### ♻ Code Refactoring

- **misc**: Improve codebase.

#### 💄 Styles

- **misc**: Extend custom provider runtime options, Optimized modelFetch for Vercel AI Gateway, update i18n.

<br/>

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

#### Code refactoring

* **misc**: Improve codebase, closes [#9353](https://github.com/lobehub/lobe-chat/issues/9353) ([7dc000e](https://github.com/lobehub/lobe-chat/commit/7dc000e))

#### Styles

* **misc**: Extend custom provider runtime options, closes [#9278](https://github.com/lobehub/lobe-chat/issues/9278) ([a94e881](https://github.com/lobehub/lobe-chat/commit/a94e881))
* **misc**: Optimized modelFetch for Vercel AI Gateway, closes [#9342](https://github.com/lobehub/lobe-chat/issues/9342) ([45b7a43](https://github.com/lobehub/lobe-chat/commit/45b7a43))
* **misc**: Update i18n, closes [#9338](https://github.com/lobehub/lobe-chat/issues/9338) ([d2ff75c](https://github.com/lobehub/lobe-chat/commit/d2ff75c))

</details>

<div align="right">

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

</div>
2025-09-21 09:21:29 +00:00
renovate[bot] f37ec1d4c2 Update dependency ts-md5 to v2 (#9348)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 17:11:28 +08:00
Arvin Xu a94e8810a3 💄 style: extend custom provider runtime options (#9278)
*  support more runtimes for custom providers

* Update customProviderSdkOptions.ts
2025-09-21 17:05:33 +08:00
sxjeru 45b7a43170 💄 style: Optimized modelFetch for Vercel AI Gateway (#9342)
* Refactor VercelAIGateway integration: Enhance model card structure and error handling

*  feat(vercelaigateway): Update model card structure and change check model to GPT-5

*  feat(vercelaigateway): 添加模型设置以支持推理努力和文本详细程度参数
2025-09-21 17:03:17 +08:00
Arvin Xu 7dc000e10c ♻️ refactor: improve codebase (#9353)
refactor
2025-09-21 16:57:16 +08:00
Arvin Xu f25fda6de2 📝 docs: renamed license to LobeHub Community License (#9355)
update license
2025-09-21 16:53:12 +08:00
LobeHub Bot d2ff75cc05 🤖 style: update i18n (#9338)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-21 16:43:57 +08:00
renovate[bot] 8de927a419 Update dependency request-filtering-agent to v3 (#9346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 16:43:35 +08:00
renovate[bot] fe9d4afa05 Update dependency @types/uuid to v11 (#9345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 16:41:56 +08:00
renovate[bot] 54704b1247 Update dependency @anthropic-ai/sdk to ^0.63.0 (#9343)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 16:41:44 +08:00
renovate[bot] 65d2c0c2ea Update pnpm to v10.17.0 (#9344)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 16:41:03 +08:00
renovate[bot] 9f99b0bc2a Update dependency tokenx to v1 (#9347)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 16:40:54 +08:00
lobehubbot a78fc1fd24 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-19 13:10:52 +00:00
semantic-release-bot 4e0e99e503 🔖 chore(release): v1.131.0 [skip ci]
## [Version&nbsp;1.131.0](https://github.com/lobehub/lobe-chat/compare/v1.130.1...v1.131.0)
<sup>Released on **2025-09-19**</sup>

####  Features

- **misc**: Qwen provider add qwen-image-edit model support.

<br/>

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

#### What's improved

* **misc**: Qwen provider add qwen-image-edit model support, closes [#9311](https://github.com/lobehub/lobe-chat/issues/9311) ([a0074fc](https://github.com/lobehub/lobe-chat/commit/a0074fc))

</details>

<div align="right">

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

</div>
2025-09-19 13:09:57 +00:00
Maple Gao a0074fc280 feat: qwen provider add qwen-image-edit model support (#9311) 2025-09-19 21:00:09 +08:00
lobehubbot 6c01f21cec 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-18 12:58:27 +00:00
semantic-release-bot 8f4a98fed0 🔖 chore(release): v1.130.1 [skip ci]
### [Version&nbsp;1.130.1](https://github.com/lobehub/lobe-chat/compare/v1.130.0...v1.130.1)
<sup>Released on **2025-09-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix oidc open direct issue.

<br/>

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

#### What's fixed

* **misc**: Fix oidc open direct issue, closes [#9315](https://github.com/lobehub/lobe-chat/issues/9315) ([70f52a3](https://github.com/lobehub/lobe-chat/commit/70f52a3))

</details>

<div align="right">

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

</div>
2025-09-18 12:57:25 +00:00
Arvin Xu 70f52a3c1f 🐛 fix: fix oidc open direct issue (#9315)
* add tests

* fix open direct

* update
2025-09-18 20:47:49 +08:00
Arvin Xu 8711ea244c 🔨 chore: fix nextjs@15.5.x runtime warning (#9063)
* update

fix tools

Update route.ts

Update next dependency version to ^15.5.0

更新 package.json

test prebuild type-check

try

* Change 'next' dependency version in package.json

Updated 'next' dependency version from ^15.5.3 to ~15.3.5.
2025-09-18 19:13:36 +08:00
lobehubbot 255a89c9f3 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-18 09:13:52 +00:00
semantic-release-bot b8c4c4e927 🔖 chore(release): v1.130.0 [skip ci]
## [Version&nbsp;1.130.0](https://github.com/lobehub/lobe-chat/compare/v1.129.4...v1.130.0)
<sup>Released on **2025-09-18**</sup>

####  Features

- **misc**: Add scroll support for pinned assistants using ScrollShadow.

<br/>

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

#### What's improved

* **misc**: Add scroll support for pinned assistants using ScrollShadow, closes [#9319](https://github.com/lobehub/lobe-chat/issues/9319) [#9316](https://github.com/lobehub/lobe-chat/issues/9316) ([54c0ac4](https://github.com/lobehub/lobe-chat/commit/54c0ac4))

</details>

<div align="right">

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

</div>
2025-09-18 09:12:51 +00:00
Shinji-Li 54c0ac4426 feat: Add scroll support for pinned assistants using ScrollShadow (#9319)
*  feat: Add scroll support for pinned assistants using ScrollShadow

- Import ScrollShadow component from @lobehub/ui
- Wrap pinned assistants list with ScrollShadow for vertical scrolling
- Remove 9-item limitation to show all pinned assistants
- Maintain hotkey support for first 9 items
- Add proper styling and padding for consistent layout

Fixes #9316

Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>

* fix: add some style

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>
2025-09-18 17:02:43 +08:00
lobehubbot b7e7186229 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-18 05:05:00 +00:00
semantic-release-bot 0d1086fe55 🔖 chore(release): v1.129.4 [skip ci]
### [Version&nbsp;1.129.4](https://github.com/lobehub/lobe-chat/compare/v1.129.3...v1.129.4)
<sup>Released on **2025-09-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix svg xss issue.

<br/>

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

#### What's fixed

* **misc**: Fix svg xss issue, closes [#9313](https://github.com/lobehub/lobe-chat/issues/9313) ([9f044ed](https://github.com/lobehub/lobe-chat/commit/9f044ed))

</details>

<div align="right">

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

</div>
2025-09-18 05:03:52 +00:00
Arvin Xu 9f044edd07 🐛 fix: fix svg xss issue (#9313)
* fix svg xss

* fix svg xss

* update

* improve

* fix
2025-09-18 12:53:56 +08:00
YuTengjing 1762dc9148 ♻️ chore: refactor router runtime (#9306) 2025-09-17 23:30:04 +08:00
Shinji-Li 2e928cd587 fix:fixed when plugins unistall & install both take problem (#9296)
* 🐛 fix: prevent plugin re-installation bug by disabling from agent on uninstall

- Fix plugin uninstall not removing plugin from agent configuration
- Add confirmation modal warning when uninstalling enabled plugins
- Automatically disable plugin from current agent before uninstall
- Apply fix to all plugin uninstall actions (PluginList, InstalledList, McpList)

Fixes #9279

Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>

* 🐛 fix: remove warning content from plugin uninstall confirmation dialog

Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Shinji-Li <ONLY-yours@users.noreply.github.com>
2025-09-17 12:02:41 +08:00
lobehubbot 0ea738222d 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-17 03:35:43 +00:00
semantic-release-bot 25a5be639a 🔖 chore(release): v1.129.3 [skip ci]
### [Version&nbsp;1.129.3](https://github.com/lobehub/lobe-chat/compare/v1.129.2...v1.129.3)
<sup>Released on **2025-09-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Add qwen provider support for image-edit model.

<br/>

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

#### What's fixed

* **misc**: Add qwen provider support for image-edit model, closes [#9277](https://github.com/lobehub/lobe-chat/issues/9277) [#9184](https://github.com/lobehub/lobe-chat/issues/9184) ([e137b33](https://github.com/lobehub/lobe-chat/commit/e137b33))

</details>

<div align="right">

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

</div>
2025-09-17 03:34:44 +00:00
Maple Gao e137b33c8d 🐛 fix: add qwen provider support for image-edit model (#9277)
* 🐛 fix: add qwen provider support for image-edit model

- Register qwen provider in baseRuntimeMap
- Add qwen routing support in NewAPI provider
- Implement qwen-image-edit model with correct multimodal API
- Fix API endpoint and request format for image-to-image generation

Fixes #9184

* Update packages/model-runtime/src/providers/qwen/createImage.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-17 11:24:21 +08:00
lobehubbot 47c6e7fc17 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-17 03:19:07 +00:00
semantic-release-bot 046138b32c 🔖 chore(release): v1.129.2 [skip ci]
### [Version&nbsp;1.129.2](https://github.com/lobehub/lobe-chat/compare/v1.129.1...v1.129.2)
<sup>Released on **2025-09-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve db migrations sql.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's fixed

* **misc**: Improve db migrations sql, closes [#9295](https://github.com/lobehub/lobe-chat/issues/9295) ([96ff5aa](https://github.com/lobehub/lobe-chat/commit/96ff5aa))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-17 03:17:56 +00:00
LobeHub Bot c018f3d05b 🤖 style: update i18n (#9294)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-17 11:07:02 +08:00
Arvin Xu 96ff5aa461 🐛 fix: improve db migrations sql (#9295)
improve db migrations sql
2025-09-17 11:06:37 +08:00
lobehubbot 9f29869fd2 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-16 11:47:59 +00:00
semantic-release-bot e3afca3678 🔖 chore(release): v1.129.1 [skip ci]
### [Version&nbsp;1.129.1](https://github.com/lobehub/lobe-chat/compare/v1.129.0...v1.129.1)
<sup>Released on **2025-09-16**</sup>

#### ♻ Code Refactoring

- **misc**: Improve db sql performance.

#### 💄 Styles

- **misc**: Update SiliconCloud reasoning models.

<br/>

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

#### Code refactoring

* **misc**: Improve db sql performance, closes [#9283](https://github.com/lobehub/lobe-chat/issues/9283) ([cee555a](https://github.com/lobehub/lobe-chat/commit/cee555a))

#### Styles

* **misc**: Update SiliconCloud reasoning models, closes [#9287](https://github.com/lobehub/lobe-chat/issues/9287) ([b47bb5b](https://github.com/lobehub/lobe-chat/commit/b47bb5b))

</details>

<div align="right">

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

</div>
2025-09-16 11:47:02 +00:00
WangYK b47bb5b3aa 💄 style: update SiliconCloud reasoning models (#9287)
💄 style: update siliconcloud reasoning models
2025-09-16 19:37:14 +08:00
Arvin Xu cee555a0f0 ♻️ refactor: improve db sql performance (#9283)
* improve sql

* improve db index

* improve db index

* improve db index
2025-09-16 19:33:35 +08:00
lobehubbot 28f84d5cb4 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-16 09:00:29 +00:00
semantic-release-bot d0063f809a 🔖 chore(release): v1.129.0 [skip ci]
## [Version&nbsp;1.129.0](https://github.com/lobehub/lobe-chat/compare/v1.128.10...v1.129.0)
<sup>Released on **2025-09-16**</sup>

####  Features

- **misc**: Support Vercel AI Gateway provider.

<br/>

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

#### What's improved

* **misc**: Support Vercel AI Gateway provider, closes [#8883](https://github.com/lobehub/lobe-chat/issues/8883) ([5a4b0fd](https://github.com/lobehub/lobe-chat/commit/5a4b0fd))

</details>

<div align="right">

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

</div>
2025-09-16 08:59:32 +00:00
WangYK 5a4b0fd344 feat: support Vercel AI Gateway provider (#8883)
*  feat: support Vercel AI Gateway provider

* fix: add `vercelaigateway` to package.json.exports

* chore: 把 runtime 挪到 providers 目录下
2025-09-16 16:49:54 +08:00
lobehubbot 47874ac6c7 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-16 07:37:32 +00:00
semantic-release-bot dfdcdce298 🔖 chore(release): v1.128.10 [skip ci]
### [Version&nbsp;1.128.10](https://github.com/lobehub/lobe-chat/compare/v1.128.9...v1.128.10)
<sup>Released on **2025-09-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix azure ai runtime error.

<br/>

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

#### What's fixed

* **misc**: Fix azure ai runtime error, closes [#9276](https://github.com/lobehub/lobe-chat/issues/9276) ([c21c14e](https://github.com/lobehub/lobe-chat/commit/c21c14e))

</details>

<div align="right">

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

</div>
2025-09-16 07:36:28 +00:00
Arvin Xu 72443783a1 🔨 chore: update dbschema workflow (#9282)
update workflow
2025-09-16 15:25:55 +08:00
Arvin Xu c21c14e715 🐛 fix: fix azure ai runtime error (#9276)
* fix azure ai

* improve agent schema

* improve agent schema

* improve header size

* remove sentry

* remove sentry

* fix

* clean

* fix tests
2025-09-16 15:19:55 +08:00
huangkairan 46f2a28ee7 🔨 chore: lint error (#9268)
fix: lint error
2025-09-15 15:40:10 +08:00
CanisMinor 11ceb8b346 🔧 chore: Migrating from Sentry NextJS SDK 7.x to 10.x (#9264)
* 🔧 chore: Migrating from Sentry JavaScript SDK 7.x to 8.x

* 🔧 chore: Migrating from Sentry JavaScript SDK 7.x to 8.x

* 🔧 chore: Migrate sentry v10
2025-09-15 15:35:36 +08:00
lobehubbot 01103e7d1f 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-15 05:21:12 +00:00
semantic-release-bot 37f7028c4c 🔖 chore(release): v1.128.9 [skip ci]
### [Version&nbsp;1.128.9](https://github.com/lobehub/lobe-chat/compare/v1.128.8...v1.128.9)
<sup>Released on **2025-09-15**</sup>

#### 💄 Styles

- **misc**: Improve error handle with agent config, support `.doc` file parse.

<br/>

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

#### Styles

* **misc**: Improve error handle with agent config, closes [#9263](https://github.com/lobehub/lobe-chat/issues/9263) ([6656217](https://github.com/lobehub/lobe-chat/commit/6656217))
* **misc**: Support `.doc` file parse, closes [#8182](https://github.com/lobehub/lobe-chat/issues/8182) ([ed42753](https://github.com/lobehub/lobe-chat/commit/ed42753))

</details>

<div align="right">

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

</div>
2025-09-15 05:20:07 +00:00
Arvin Xu d1f68c5b9f test: fix tests (#9265)
fix
2025-09-15 13:10:05 +08:00
bbbugg 9568eafd76 🐛Fix: non streaming not displaying token usage and thinking content (#9087)
* 🐛 fix: add usage data to chat completion chunk for stream = false

* 🐛 fix: ensure reasoning_content is included in chat completion chunks for non-stream responses

* 🐛 fix: include reasoning content and usage data in non-streaming chat completion responses

* 🐛 fix: test

* 🐛 fix: non stream Deeply Thought stop correctly

* 🐛 fix: test

* 🐛 fix: test
2025-09-15 11:28:28 +08:00
Arvin Xu 66562170ac 💄 style: improve error handle with agent config (#9263)
fix
2025-09-15 11:23:13 +08:00
copialot ed42753fe5 💄 style: support .doc file parse (#8182)
*  feat: support .doc file parse

*  feat: support .doc file parse

---------

Co-authored-by: admin <admin@punch.local>
2025-09-15 11:22:00 +08:00
lobehubbot cc67b5443d 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-15 03:10:05 +00:00
semantic-release-bot 20e026c9f1 🔖 chore(release): v1.128.8 [skip ci]
### [Version&nbsp;1.128.8](https://github.com/lobehub/lobe-chat/compare/v1.128.7...v1.128.8)
<sup>Released on **2025-09-15**</sup>

#### 💄 Styles

- **misc**: Enable toggling search on/off via search button click & historyCount button.

<br/>

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

#### Styles

* **misc**: Enable toggling search on/off via search button click & historyCount button, closes [#9173](https://github.com/lobehub/lobe-chat/issues/9173) ([240c7b7](https://github.com/lobehub/lobe-chat/commit/240c7b7))

</details>

<div align="right">

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

</div>
2025-09-15 03:09:01 +00:00
sxjeru 240c7b7f4f 💄 style: Enable toggling search on/off via search button click & historyCount button (#9173)
*  feat: Enhance Search Action with mobile support and update agent chat config

*  feat: Update History component to support mobile interactions and enhance Controls with form handling
2025-09-15 10:59:27 +08:00
Arvin Xu b73d0972b2 ️ perf: fix search agent slow (#9261)
* try to fix search agent issue

* Update session.ts
2025-09-15 10:56:03 +08:00
Arvin Xu d942a635b3 🔨 chore: add agent-runtime (#9206)
* add agent runtime

* add agent runtime

* support finish reason

* update workflow

* 支持中断

* 支持 token usage 统计

* refactor

* add example

* add docs

* update
2025-09-14 17:29:19 +08:00
renovate[bot] a47ec04f20 Update dependency electron to v38 (#9248)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 16:42:44 +08:00
lobehubbot 20eb99534c 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-14 04:52:52 +00:00
semantic-release-bot 96b9c9705a 🔖 chore(release): v1.128.7 [skip ci]
### [Version&nbsp;1.128.7](https://github.com/lobehub/lobe-chat/compare/v1.128.6...v1.128.7)
<sup>Released on **2025-09-14**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-09-14 04:51:56 +00:00
Arvin Xu 3f42ee3dfe 👷 build: fix electron build (#9250)
Remove linting from prebuild:electron script
2025-09-14 12:41:44 +08:00
semantic-release-bot 0f9755bbd7 🔖 chore(release): v1.128.6 [skip ci]
### [Version&nbsp;1.128.6](https://github.com/lobehub/lobe-chat/compare/v1.128.5...v1.128.6)
<sup>Released on **2025-09-14**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-14 04:40:46 +00:00
renovate[bot] 87ae85f7c7 Update dependency fix-path to v5 (#9249)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 12:30:41 +08:00
LobeHub Bot 04764ad1cb 🤖 style: update i18n (#9243)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-14 12:27:38 +08:00
renovate[bot] e8044e3eca Update dependency @vercel/functions to v3 (#9247)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 12:27:21 +08:00
renovate[bot] e9412f146c Update pnpm to v10.16.1 (#9246)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 12:27:03 +08:00
renovate[bot] 6c72681b26 Update dependency @anthropic-ai/sdk to ^0.62.0 (#9244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 12:26:55 +08:00
renovate[bot] 31d2cb8fd7 Update dependency lucide-react to ^0.544.0 (#9245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 12:26:44 +08:00
lobehubbot 1cf371f418 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-13 16:12:02 +00:00
semantic-release-bot ebc205a8ae 🔖 chore(release): v1.128.5 [skip ci]
### [Version&nbsp;1.128.5](https://github.com/lobehub/lobe-chat/compare/v1.128.4...v1.128.5)
<sup>Released on **2025-09-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Google stream error unable to abort request.

<br/>

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

#### What's fixed

* **misc**: Google stream error unable to abort request, closes [#9180](https://github.com/lobehub/lobe-chat/issues/9180) ([78eaead](https://github.com/lobehub/lobe-chat/commit/78eaead))

</details>

<div align="right">

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

</div>
2025-09-13 16:11:00 +00:00
sxjeru 78eaead0d2 🐛 fix: Google stream error unable to abort request (#9180)
* 🐛 fix: 优化 Gemini 流处理中的错误注入和终止事件管理

* 🐛 fix: 在流处理过程中注入提供者信息以增强错误报告

* 提取 lobe_error;添加单测

* fix test

* 修复单元测试

* 优化 LobeGoogleAI 中的错误日志记录,使用 debug 替代 console.log;更新单元测试以验证流处理的错误和数据块

* 增强 createSSEProtocolTransformer,添加 requireTerminalEvent 选项以控制终端事件的强制要求;更新相关单元测试以验证新行为

* revert tests

* fix test
2025-09-14 00:00:31 +08:00
bbbugg 45fa4e01ae 🐛fix: update check model and mark deprecated models (#9214)
🐛fix: update checkModel values and remove deprecated models
2025-09-13 18:29:10 +08:00
lobehubbot 504b14dd3f 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-13 09:56:31 +00:00
semantic-release-bot d753169b69 🔖 chore(release): v1.128.4 [skip ci]
### [Version&nbsp;1.128.4](https://github.com/lobehub/lobe-chat/compare/v1.128.3...v1.128.4)
<sup>Released on **2025-09-13**</sup>

#### 💄 Styles

- **misc**: Fix discover plugin link.

<br/>

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

#### Styles

* **misc**: Fix discover plugin link, closes [#9240](https://github.com/lobehub/lobe-chat/issues/9240) ([cfb2246](https://github.com/lobehub/lobe-chat/commit/cfb2246))

</details>

<div align="right">

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

</div>
2025-09-13 09:55:30 +00:00
keep cfb2246492 💄 style: fix discover plugin link (#9240)
修复Discover
2025-09-13 17:45:24 +08:00
renovate[bot] 3a0b0d2173 Update dependency @formkit/auto-animate to ^0.9.0 (#9149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-13 17:45:14 +08:00
Neko 7f1b631c35 🔨 chore(model-runtime): openai stream error not inherited correctly (#9102)
* fix(model-runtime,utils): openai stream error not inherited correctly

* fix: test
2025-09-13 17:37:29 +08:00
lobehubbot eca41d33bf 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-13 09:14:21 +00:00
semantic-release-bot c8dea6322d 🔖 chore(release): v1.128.3 [skip ci]
### [Version&nbsp;1.128.3](https://github.com/lobehub/lobe-chat/compare/v1.128.2...v1.128.3)
<sup>Released on **2025-09-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix open chat page with float link modal.

<br/>

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

#### What's fixed

* **misc**: Fix open chat page with float link modal, closes [#9235](https://github.com/lobehub/lobe-chat/issues/9235) ([2c677e5](https://github.com/lobehub/lobe-chat/commit/2c677e5))

</details>

<div align="right">

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

</div>
2025-09-13 09:13:24 +00:00
Arvin Xu 2c677e597a 🐛 fix: fix open chat page with float link modal (#9235)
* refactor @lobechat/database

* move config/file and llm to envs

* move config/auth to envs

* refactor

* fix tests

* fix tests

* upgrade
2025-09-13 17:03:10 +08:00
lobehubbot a1f7bff302 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-13 04:06:34 +00:00
semantic-release-bot e00ee6c6d1 🔖 chore(release): v1.128.2 [skip ci]
### [Version&nbsp;1.128.2](https://github.com/lobehub/lobe-chat/compare/v1.128.1...v1.128.2)
<sup>Released on **2025-09-13**</sup>

#### 💄 Styles

- **misc**: Update i18n, Update model configs.

<br/>

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

#### Styles

* **misc**: Update i18n, closes [#9237](https://github.com/lobehub/lobe-chat/issues/9237) ([642dc3b](https://github.com/lobehub/lobe-chat/commit/642dc3b))
* **misc**: Update model configs, closes [#9170](https://github.com/lobehub/lobe-chat/issues/9170) ([f89b730](https://github.com/lobehub/lobe-chat/commit/f89b730))

</details>

<div align="right">

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

</div>
2025-09-13 04:05:34 +00:00
sxjeru f89b73059d 💄 style: Update model configs (#9170)
* 🐛 fix: 更新深度寻求和谷歌模型的定价,修复模型显示名称

* 🐛 fix: 更新模型配置,增加最大输出限制并移除冗余模型信息

* 🐛 fix: 更新谷歌模型定价策略,将缓存读取的定价从固定改为分层定价

* 🐛 fix: 更新 Kimi K2 模型信息,增加新版本及定价策略,修正显示名称

* 🐛 fix: 更新深度寻求和谷歌模型的定价,修复模型显示名称

* 🐛 fix: 更新模型配置,增加最大输出限制并移除冗余模型信息

* 🐛 fix: 更新谷歌模型定价策略,将缓存读取的定价从固定改为分层定价

* 🐛 fix: 添加新模型 Qwen MT Plus 和 Ling Mini 2.0,更新定价策略

* 🐛 fix: 更新模型配置,调整上下文窗口大小并添加最大输出限制

*  feat: 添加新的聊天模型 Qwen3 Next 80B A3B Thinking 和 Qwen3 Next 80B A3B Instruct

*  feat: 添加 GLM-4.5 和 GLM-4.5-Air 聊天模型,支持推理能力和定价策略

*  feat: 更新聊天模型配置,添加 Qwen3 Next 80B A3B Thinking 和 Qwen3 Next 80B A3B Instruct,调整 Kimi K2 部署名称及参数
2025-09-13 11:54:58 +08:00
LobeHub Bot 642dc3b6c9 🤖 style: update i18n (#9237)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-13 11:52:21 +08:00
lobehubbot e33c84bcae 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-12 16:24:17 +00:00
semantic-release-bot fd84da415b 🔖 chore(release): v1.128.1 [skip ci]
### [Version&nbsp;1.128.1](https://github.com/lobehub/lobe-chat/compare/v1.128.0...v1.128.1)
<sup>Released on **2025-09-12**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor message proccesser to the context engine.

<br/>

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

#### Code refactoring

* **misc**: Refactor message proccesser to the context engine, closes [#9230](https://github.com/lobehub/lobe-chat/issues/9230) ([dacfffd](https://github.com/lobehub/lobe-chat/commit/dacfffd))

</details>

<div align="right">

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

</div>
2025-09-12 16:23:15 +00:00
Arvin Xu dacfffdb63 ♻️ refactor: refactor message proccesser to the context engine (#9230)
* init context engine

* refactor

* refactor

* move

* refactor

* refactor PlaceholderVariables

* refactor name

* refactor

* update

* fix tests

* update workflow

* clean code

* add test

* move from store into service

* implement the HistoryTruncate and Input Template into context engine

* fix history truncate

* clean
2025-09-13 00:12:53 +08:00
Arvin Xu c38079d36f 🔨 chore: improve build process (#9227)
* update

* update
2025-09-12 19:11:42 +08:00
Arvin Xu cf0272cc1b 🔨 chore: upgrade deps (#9228)
upgrade deps
2025-09-12 16:04:05 +08:00
lobehubbot 35da7651b7 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-12 06:57:14 +00:00
semantic-release-bot b2c1209eb7 🔖 chore(release): v1.128.0 [skip ci]
## [Version&nbsp;1.128.0](https://github.com/lobehub/lobe-chat/compare/v1.127.4...v1.128.0)
<sup>Released on **2025-09-12**</sup>

####  Features

- **misc**: ChatInput support resize.

<br/>

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

#### What's improved

* **misc**: ChatInput support resize, closes [#9215](https://github.com/lobehub/lobe-chat/issues/9215) ([5e814e0](https://github.com/lobehub/lobe-chat/commit/5e814e0))

</details>

<div align="right">

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

</div>
2025-09-12 06:56:07 +00:00
CanisMinor 5e814e017d feat: ChatInput support resize (#9215)
*  feat: ChatInput support resize

* 💄 style: Update resizeMaxHeightOffset

* 💄 style: Update ChatInput and fix some issues

* 📝 docs: Fix i18n
2025-09-12 14:45:06 +08:00
yliu7949 9a804b5df5 💄 style: add Qwen3-Next-80B-A3B models  (#9223)
update qwen.ts
2025-09-12 12:48:39 +08:00
lobehubbot 0d4264e9ad 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-11 16:31:00 +00:00
semantic-release-bot 419557a2df 🔖 chore(release): v1.127.4 [skip ci]
### [Version&nbsp;1.127.4](https://github.com/lobehub/lobe-chat/compare/v1.127.3...v1.127.4)
<sup>Released on **2025-09-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve OpenAIStream processing to emit usage data for chunks lacking choices.

<br/>

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

#### What's fixed

* **misc**: Improve OpenAIStream processing to emit usage data for chunks lacking choices, closes [#9220](https://github.com/lobehub/lobe-chat/issues/9220) ([8ba662c](https://github.com/lobehub/lobe-chat/commit/8ba662c))

</details>

<div align="right">

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

</div>
2025-09-11 16:29:56 +00:00
Arvin Xu 8ba662c9de 🐛 fix: Improve OpenAIStream processing to emit usage data for chunks lacking choices (#9220)
* add

* update
2025-09-12 00:19:51 +08:00
Arvin Xu 43a455549c 🔨 chore: Update vite version to ^7.1.5 (#9211)
Update vite version to ^7.1.5
2025-09-11 13:20:34 +08:00
Arvin Xu 58f1a52eb9 🔨 chore(model-runtime): improve export type (#9213)
* improve exports

* improve provider
2025-09-11 13:13:04 +08:00
lobehubbot 4b134968bf 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-11 03:41:15 +00:00
semantic-release-bot 937dd85c6b 🔖 chore(release): v1.127.3 [skip ci]
### [Version&nbsp;1.127.3](https://github.com/lobehub/lobe-chat/compare/v1.127.2...v1.127.3)
<sup>Released on **2025-09-11**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor model runtime folder structure and add more tests.

<br/>

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

#### Code refactoring

* **misc**: Refactor model runtime folder structure and add more tests, closes [#9210](https://github.com/lobehub/lobe-chat/issues/9210) ([7fe17e4](https://github.com/lobehub/lobe-chat/commit/7fe17e4))

</details>

<div align="right">

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

</div>
2025-09-11 03:40:13 +00:00
Neko bed591c559 👷 chore: added docker-compose configuration files for Grafana, Prometheus, and Tempo, Otel stacks (#9071)
* feat: added docker-compose configuration files for Grafana, Prometheus, and Tempo, Otel stacks

* fix: datasource uid
2025-09-11 11:27:24 +08:00
Neko 9089e2683e 📝 docs: added docs for deploying production level Grafana stack (#9072)
* docs: added docs for deploying production level Grafana stack

* fix: use absolute path
2025-09-11 11:25:52 +08:00
Arvin Xu 7fe17e4028 ♻️ refactor: refactor model runtime folder structure and add more tests (#9210)
* add test

* fix tests

* fix tests

* revert tests

* refactor model runtime folder

* refactor model runtime folder and remove @/libs/model-runtime

* fix lint

* move

* fix tests
2025-09-11 11:22:05 +08:00
lobehubbot 6ace931e52 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-11 03:18:49 +00:00
semantic-release-bot 76de2a20c1 🔖 chore(release): v1.127.2 [skip ci]
### [Version&nbsp;1.127.2](https://github.com/lobehub/lobe-chat/compare/v1.127.1...v1.127.2)
<sup>Released on **2025-09-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Delete files should delete chunks、embedings、fileChunk.

<br/>

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

#### What's fixed

* **misc**: Delete files should delete chunks、embedings、fileChunk, closes [#9196](https://github.com/lobehub/lobe-chat/issues/9196) ([4ee1d29](https://github.com/lobehub/lobe-chat/commit/4ee1d29))

</details>

<div align="right">

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

</div>
2025-09-11 03:17:54 +00:00
Shinji-Li 4ee1d292ff 🐛 fix: delete files should delete chunks、embedings、fileChunk (#9196)
* fix: delete files should delete chunk and documentChunks,embeddings

* feat: add try catch

* feat: add files test

* fix: change chunkid to uuid

* fix: change test embeddings to 1024w

* fix: delete documentchunk
2025-09-11 10:47:22 +08:00
lobehubbot b6aad3b1bc 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-11 01:24:32 +00:00
semantic-release-bot b980c3d702 🔖 chore(release): v1.127.1 [skip ci]
### [Version&nbsp;1.127.1](https://github.com/lobehub/lobe-chat/compare/v1.127.0...v1.127.1)
<sup>Released on **2025-09-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix not remove message with server mode.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's fixed

* **misc**: Fix not remove message with server mode, closes [#9207](https://github.com/lobehub/lobe-chat/issues/9207) ([790af5f](https://github.com/lobehub/lobe-chat/commit/790af5f))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-11 01:23:30 +00:00
LobeHub Bot 987fbf2adf 🤖 style: update i18n (#9208)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-11 09:12:03 +08:00
Arvin Xu 790af5ff40 🐛 fix: fix not remove message with server mode (#9207)
* fix remove message

* make wideScreen default false

* improve topic generate and add tests for delete

* refactor

* fix tests
2025-09-11 09:11:36 +08:00
Maple Gao 3eaeb6c531 📝 docs: consolidate image generation docs with server database setup (#9096)
♻️ refactor: consolidate image generation docs with server database setup

- Merge image-generation-setup content into work-with-server-side-database docs
- Remove duplicate image-generation-setup documentation files
- Add server-side database links to setup-development guides
- Add missing .env.development copy step to setup instructions
- Add .env.development to .gitignore for security

The setup script approach has been replaced by Docker Compose configuration
with .env.example.development file, eliminating documentation duplication
and providing a unified server-side development workflow.
2025-09-11 01:16:58 +08:00
lobehubbot aa841a3879 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-10 13:27:08 +00:00
semantic-release-bot a49422b322 🔖 chore(release): v1.127.0 [skip ci]
## [Version&nbsp;1.127.0](https://github.com/lobehub/lobe-chat/compare/v1.126.3...v1.127.0)
<sup>Released on **2025-09-10**</sup>

####  Features

- **misc**: Seedream 4.0.

#### 💄 Styles

- **misc**: Add hotkey tooltip to typobar actions.

<br/>

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

#### What's improved

* **misc**: Seedream 4.0, closes [#9198](https://github.com/lobehub/lobe-chat/issues/9198) ([26a743f](https://github.com/lobehub/lobe-chat/commit/26a743f))

#### Styles

* **misc**: Add hotkey tooltip to typobar actions, closes [#9203](https://github.com/lobehub/lobe-chat/issues/9203) ([e372875](https://github.com/lobehub/lobe-chat/commit/e372875))

</details>

<div align="right">

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

</div>
2025-09-10 13:26:06 +00:00
CanisMinor e3728750af 💄 style: Add hotkey tooltip to typobar actions (#9203)
* 💄 style: Add hotkey tooltip to typobar actions

* 💄 style: Udpate input style

* 💄 style: Add toggleExpandInputActionbar to GlobalStore
2025-09-10 21:15:57 +08:00
YuTengjing 26a743f3bd feat: Seedream 4.0 (#9198) 2025-09-10 19:51:43 +08:00
lobehubbot bfbf38d106 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-10 02:45:00 +00:00
semantic-release-bot f8eb891d3b 🔖 chore(release): v1.126.3 [skip ci]
### [Version&nbsp;1.126.3](https://github.com/lobehub/lobe-chat/compare/v1.126.2...v1.126.3)
<sup>Released on **2025-09-10**</sup>

#### 💄 Styles

- **misc**: Add CometAPI model provider and chat models, update i18n.

<br/>

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

#### Styles

* **misc**: Add CometAPI model provider and chat models, closes [#9065](https://github.com/lobehub/lobe-chat/issues/9065) ([575e334](https://github.com/lobehub/lobe-chat/commit/575e334))
* **misc**: Update i18n, closes [#9146](https://github.com/lobehub/lobe-chat/issues/9146) ([e6fc02e](https://github.com/lobehub/lobe-chat/commit/e6fc02e))

</details>

<div align="right">

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

</div>
2025-09-10 02:43:57 +00:00
renovate[bot] 52ec64dfd4 Update dependency @anthropic-ai/sdk to ^0.61.0 (#9148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-10 10:33:28 +08:00
LobeHub Bot e6fc02eb9d 🤖 style: update i18n (#9146)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-10 10:26:40 +08:00
TensorNull 575e334d7f 💄 style: Add CometAPI model provider and chat models (#9065)
*  feat: 添加 CometAPI 模型支持及相关配置

* 🐛 fix: 移除 CometAPI 中的 chatModels 列表以简化配置
2025-09-10 10:26:20 +08:00
lobehubbot a4ed5a053f 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-09 15:23:51 +00:00
semantic-release-bot dbb49337b4 🔖 chore(release): v1.126.2 [skip ci]
### [Version&nbsp;1.126.2](https://github.com/lobehub/lobe-chat/compare/v1.126.1...v1.126.2)
<sup>Released on **2025-09-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix editor key handling.

<br/>

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

#### What's fixed

* **misc**: Fix editor key handling, closes [#9189](https://github.com/lobehub/lobe-chat/issues/9189) ([8be822b](https://github.com/lobehub/lobe-chat/commit/8be822b))

</details>

<div align="right">

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

</div>
2025-09-09 15:22:49 +00:00
CanisMinor 8be822b0b7 🐛 fix: Fix editor key handling (#9189)
* 🐛 fix: Fix editor send key handling

* 🐛 fix: Fix editor key handle
2025-09-09 23:12:02 +08:00
renovate[bot] 5a999c0fbc Update pnpm to v10.15.1 (#9147)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 11:35:34 +08:00
lobehubbot 9abeb7b545 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-09 03:23:18 +00:00
semantic-release-bot 8751141c7c 🔖 chore(release): v1.126.1 [skip ci]
### [Version&nbsp;1.126.1](https://github.com/lobehub/lobe-chat/compare/v1.126.0...v1.126.1)
<sup>Released on **2025-09-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix Assistant List error message.

<br/>

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

#### What's fixed

* **misc**: Fix Assistant List error message, closes [#9178](https://github.com/lobehub/lobe-chat/issues/9178) ([3519cb2](https://github.com/lobehub/lobe-chat/commit/3519cb2))

</details>

<div align="right">

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

</div>
2025-09-09 03:22:23 +00:00
Arvin Xu 3519cb20d9 🐛 fix: fix Assistant List error message (#9178)
* fix

* fix tests
2025-09-09 11:12:53 +08:00
lobehubbot e135e2bb87 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-08 15:58:41 +00:00
semantic-release-bot a494af8e7f 🔖 chore(release): v1.126.0 [skip ci]
## [Version&nbsp;1.126.0](https://github.com/lobehub/lobe-chat/compare/v1.125.0...v1.126.0)
<sup>Released on **2025-09-08**</sup>

####  Features

- **image**: Implement model selection memory functionality.

<br/>

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

#### What's improved

* **image**: Implement model selection memory functionality, closes [#9160](https://github.com/lobehub/lobe-chat/issues/9160) ([b00e6d7](https://github.com/lobehub/lobe-chat/commit/b00e6d7))

</details>

<div align="right">

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

</div>
2025-09-08 15:57:35 +00:00
YuTengjing ea819a3421 feat: support mac intel desktop (#9136) 2025-09-08 23:46:57 +08:00
YuTengjing b00e6d7817 feat(image): implement model selection memory functionality (#9160) 2025-09-08 23:46:47 +08:00
lobehubbot 58378fd10f 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-08 11:46:52 +00:00
semantic-release-bot c0736ead54 🔖 chore(release): v1.125.0 [skip ci]
## [Version&nbsp;1.125.0](https://github.com/lobehub/lobe-chat/compare/v1.124.4...v1.125.0)
<sup>Released on **2025-09-08**</sup>

####  Features

- **misc**: Add Math and TaskList to Editor.

<br/>

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

#### What's improved

* **misc**: Add Math and TaskList to Editor, closes [#9165](https://github.com/lobehub/lobe-chat/issues/9165) ([9e0621f](https://github.com/lobehub/lobe-chat/commit/9e0621f))

</details>

<div align="right">

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

</div>
2025-09-08 11:45:52 +00:00
CanisMinor 9e0621f873 feat: Add Math and TaskList to Editor (#9165)
*  feat: Add Math and TaskList to Editor

* 🔧 chore: Update editor version

* 🐛 fix: Fix code plugin
2025-09-08 19:35:32 +08:00
René Wang 082898825c 🔨 chore: Branching input component for incoming group chat (#9163)
feat: Branching input component
2025-09-08 12:13:01 +08:00
lobehubbot 7832287abd 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-06 16:32:27 +00:00
semantic-release-bot 5fe229c600 🔖 chore(release): v1.124.4 [skip ci]
### [Version&nbsp;1.124.4](https://github.com/lobehub/lobe-chat/compare/v1.124.3...v1.124.4)
<sup>Released on **2025-09-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Revert V1 Mobile.

<br/>

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

#### What's fixed

* **misc**: Revert V1 Mobile, closes [#9143](https://github.com/lobehub/lobe-chat/issues/9143) ([b385602](https://github.com/lobehub/lobe-chat/commit/b385602))

</details>

<div align="right">

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

</div>
2025-09-06 16:31:26 +00:00
bbbugg 6b9337b8ae 🐛fix: Qwen 3 Max Preview model with search capability (#9132)
fix: Qwen 3 Max Preview with search capability
2025-09-07 00:21:17 +08:00
Arvin Xu b3856026d2 🐛 fix: revert V1 Mobile (#9143)
revert V1 Mobile
2025-09-07 00:20:24 +08:00
bbbugg 8dbcbd8c4b 🐛fix: update back navigation logic for provider settings in mobile view (#9141)
🐛 fix: update back navigation logic for provider settings in mobile view
2025-09-06 23:57:02 +08:00
lobehubbot a5b6aadc1f 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-06 10:55:25 +00:00
semantic-release-bot 3690724751 🔖 chore(release): v1.124.3 [skip ci]
### [Version&nbsp;1.124.3](https://github.com/lobehub/lobe-chat/compare/v1.124.2...v1.124.3)
<sup>Released on **2025-09-06**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to remove edge runtime and add more tests.

<br/>

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

#### Code refactoring

* **misc**: Refactor to remove edge runtime and add more tests, closes [#9133](https://github.com/lobehub/lobe-chat/issues/9133) ([6f87034](https://github.com/lobehub/lobe-chat/commit/6f87034))

</details>

<div align="right">

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

</div>
2025-09-06 10:54:26 +00:00
Arvin Xu 6f87034303 ♻️ refactor: refactor to remove edge runtime and add more tests (#9133)
* refactor to add more tests

* refactor the add

* update

* remove edge runtime

* improve types

* remove edge runtime

* fix

* revert auth part

* revert auth part

* revert auth part
2025-09-06 18:44:19 +08:00
Arvin Xu ae28f1794c ️ build : Revert "support mac intel chip" (#9134)
Revert "feat(desktop): support mac intel chip (#9084)"

This reverts commit 1a75f4a6b5.
2025-09-06 16:14:42 +08:00
lobehubbot 68783fd2f7 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-06 07:10:23 +00:00
semantic-release-bot 9e43c1d6e0 🔖 chore(release): v1.124.2 [skip ci]
### [Version&nbsp;1.124.2](https://github.com/lobehub/lobe-chat/compare/v1.124.1...v1.124.2)
<sup>Released on **2025-09-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix ChatInput send command switch.

<br/>

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

#### What's fixed

* **misc**: Fix ChatInput send command switch, closes [#9131](https://github.com/lobehub/lobe-chat/issues/9131) ([4d5246a](https://github.com/lobehub/lobe-chat/commit/4d5246a))

</details>

<div align="right">

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

</div>
2025-09-06 07:09:17 +00:00
Arvin Xu 4d5246acd8 🐛 fix: fix ChatInput send command switch (#9131)
fix command enter switch
2025-09-06 14:59:26 +08:00
Arvin Xu f813d0c429 test: add model runtime tests (#9128)
* fix

* refactor to remove model runtime alias in tests
2025-09-06 14:57:14 +08:00
YuTengjing 1a75f4a6b5 feat(desktop): support mac intel chip (#9084) 2025-09-06 14:03:16 +08:00
Arvin Xu f4c3002b55 test: refactor to improve utils tests and add more tests (#9124)
* refactor to improve utils code

* refactor to improve const code

* refactor to improve types code

* add web crawler tests

* refactor citation item

* add electron server ipc tests

* fix tests

* add more tests

* add timeout
2025-09-06 12:21:58 +08:00
lobehubbot e3aacfcdce 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-06 03:42:14 +00:00
semantic-release-bot 67ad3c42cc 🔖 chore(release): v1.124.1 [skip ci]
### [Version&nbsp;1.124.1](https://github.com/lobehub/lobe-chat/compare/v1.124.0...v1.124.1)
<sup>Released on **2025-09-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Enhance NewAPI with environment variables and fix routers compatibility.

#### 💄 Styles

- **misc**: Update doubao-seed-1.6-vision models.

<br/>

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

#### What's fixed

* **misc**: Enhance NewAPI with environment variables and fix routers compatibility, closes [#9110](https://github.com/lobehub/lobe-chat/issues/9110) ([a66856d](https://github.com/lobehub/lobe-chat/commit/a66856d))

#### Styles

* **misc**: Update doubao-seed-1.6-vision models, closes [#9052](https://github.com/lobehub/lobe-chat/issues/9052) ([df2d001](https://github.com/lobehub/lobe-chat/commit/df2d001))

</details>

<div align="right">

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

</div>
2025-09-06 03:41:13 +00:00
sxjeru df2d001336 💄 style: Update doubao-seed-1.6-vision models (#9052)
*  feat: 更新 Hunyuan、Novita 和 VolcEngine 模型的参数和描述

*  feat: 添加 DeepSeek V3.1 的思考模式和非思考模式模型,更新描述和显示名称

*  feat: 更新 Groq 模型的描述和显示名称,调整 ID 格式

*  feat: 更新 Novita 模型的上下文窗口令牌和定价策略

*  feat: 添加 Gemma 3 12B 和 Seed OSS 36B Instruct 模型,更新描述、定价和上下文窗口令牌

*  feat: 更新 Novita 模型的定价策略,调整输入和输出的费率

*  feat: 移除 Gemini 2.5 Flash 实验模型,更新模型列表

*  feat: 添加 Kimi K2 0905 模型,更新上下文窗口令牌和定价策略

* update groq

*  feat: 添加 Kimi K2 0905 模型,更新上下文窗口令牌和定价策略

*  feat: 更新 Doubao Seed 模型的部署名称和最大输出,调整上下文窗口令牌

*  feat: 添加 Qwen3 Max Preview 模型,更新上下文窗口令牌和定价策略
2025-09-06 11:30:46 +08:00
Maple Gao a66856dc83 🐛 fix: enhance NewAPI with environment variables and fix routers compatibility (#9110)
 feat: enhance NewAPI with environment variables and fix routers compatibility

- Add NEWAPI_API_KEY and NEWAPI_PROXY_URL environment variable support
- Update documentation for NewAPI configuration options
- Fix routers baseURL handling to prevent duplicate version paths
- Remove /v1 baseURL requirement to avoid SDK compatibility issues
- Auto-detect model capabilities based on provider detection
- Support dynamic routing to correct provider endpoints

This resolves URL duplication issues like /v1beta/v1beta/ and ensures
proper routing to Anthropic, Google, OpenAI, and XAI endpoints.
2025-09-06 11:30:12 +08:00
Arvin Xu e7036af61e test: add test for v2 genai (#9123)
* add more tests

* update tests

* improve
2025-09-06 11:16:30 +08:00
lobehubbot 86ff95ff15 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-06 02:03:08 +00:00
semantic-release-bot 926577302e 🔖 chore(release): v1.124.0 [skip ci]
## [Version&nbsp;1.124.0](https://github.com/lobehub/lobe-chat/compare/v1.123.4...v1.124.0)
<sup>Released on **2025-09-06**</sup>

####  Features

- **misc**: ChatInput support rich text and support parallel send.

<br/>

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

#### What's improved

* **misc**: ChatInput support rich text and support parallel send, closes [#8964](https://github.com/lobehub/lobe-chat/issues/8964) ([38d9d98](https://github.com/lobehub/lobe-chat/commit/38d9d98))

</details>

<div align="right">

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

</div>
2025-09-06 02:02:12 +00:00
CanisMinor 38d9d98b97 feat: ChatInput support rich text and support parallel send (#8964)
*  feat: Add LobeEditor

* fix tests

* fix mobile

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-09-06 09:51:52 +08:00
lobehubbot e2448eb091 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-05 14:23:34 +00:00
semantic-release-bot 5747239625 🔖 chore(release): v1.123.4 [skip ci]
### [Version&nbsp;1.123.4](https://github.com/lobehub/lobe-chat/compare/v1.123.3...v1.123.4)
<sup>Released on **2025-09-05**</sup>

#### ♻ Code Refactoring

- **misc**: Remove edge runtime.

<br/>

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

#### Code refactoring

* **misc**: Remove edge runtime, closes [#9085](https://github.com/lobehub/lobe-chat/issues/9085) ([d3544f9](https://github.com/lobehub/lobe-chat/commit/d3544f9))

</details>

<div align="right">

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

</div>
2025-09-05 14:22:34 +00:00
Arvin Xu d3544f90d3 ♻️ refactor: remove edge runtime (#9085)
* remove edge runtime

* refactor
2025-09-05 22:12:34 +08:00
Arvin Xu 3e537cd01d ♻️ refactor: refactor to use trpc client link chain (#9107)
* refactor

* Update lambda.ts
2025-09-05 21:53:31 +08:00
lobehubbot 72e77b497c 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-05 09:58:40 +00:00
semantic-release-bot 285e2f35f7 🔖 chore(release): v1.123.3 [skip ci]
### [Version&nbsp;1.123.3](https://github.com/lobehub/lobe-chat/compare/v1.123.2...v1.123.3)
<sup>Released on **2025-09-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix mobile header title to loog not ellipsis.

<br/>

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

#### What's fixed

* **misc**: Fix mobile header title to loog not ellipsis, closes [#9109](https://github.com/lobehub/lobe-chat/issues/9109) ([9b8435b](https://github.com/lobehub/lobe-chat/commit/9b8435b))

</details>

<div align="right">

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

</div>
2025-09-05 09:57:45 +00:00
Shinji-Li 9b8435b024 🐛 fix: fix mobile header title to loog not ellipsis (#9109)
fix: fix mobile header title to loog not ellipsis
2025-09-05 17:47:37 +08:00
lobehubbot c7c4ab55b1 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-05 06:58:09 +00:00
semantic-release-bot 350e66a320 🔖 chore(release): v1.123.2 [skip ci]
### [Version&nbsp;1.123.2](https://github.com/lobehub/lobe-chat/compare/v1.123.1...v1.123.2)
<sup>Released on **2025-09-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Not use branch topic when this topic is not save.

<br/>

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

#### What's fixed

* **misc**: Not use branch topic when this topic is not save, closes [#9083](https://github.com/lobehub/lobe-chat/issues/9083) ([f534d19](https://github.com/lobehub/lobe-chat/commit/f534d19))

</details>

<div align="right">

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

</div>
2025-09-05 06:57:16 +00:00
Shinji-Li f534d19338 🐛 fix: not use branch topic when this topic is not save (#9083)
fix: not use branch topic when this topic is not save
2025-09-05 14:47:34 +08:00
lobehubbot b15e90e1ae 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-05 02:34:26 +00:00
semantic-release-bot 55079fc321 🔖 chore(release): v1.123.1 [skip ci]
### [Version&nbsp;1.123.1](https://github.com/lobehub/lobe-chat/compare/v1.123.0...v1.123.1)
<sup>Released on **2025-09-05**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-05 02:33:30 +00:00
LobeHub Bot 1080ff33aa 🤖 style: update i18n (#9095)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-05 10:23:31 +08:00
lobehubbot 837065f08a 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 15:58:10 +00:00
semantic-release-bot 305e910e98 🔖 chore(release): v1.123.0 [skip ci]
## [Version&nbsp;1.123.0](https://github.com/lobehub/lobe-chat/compare/v1.122.7...v1.123.0)
<sup>Released on **2025-09-04**</sup>

####  Features

- **misc**: Add NewAPI as a router provider for multi-model aggregation.

<br/>

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

#### What's improved

* **misc**: Add NewAPI as a router provider for multi-model aggregation, closes [#9041](https://github.com/lobehub/lobe-chat/issues/9041) [/github.com/lobehub/lobe-chat/pull/9041#pullrequestreview-3183464594](https://github.com//github.com/lobehub/lobe-chat/pull/9041/issues/pullrequestreview-3183464594) ([7e291c2](https://github.com/lobehub/lobe-chat/commit/7e291c2))

</details>

<div align="right">

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

</div>
2025-09-04 15:57:02 +00:00
Maple Gao 7e291c23f7 feat: add NewAPI as a router provider for multi-model aggregation (#9041)
*  feat: add NewAPI as a router provider for multi-model aggregation

* Update packages/model-runtime/src/newapi/index.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/model-runtime/src/newapi/index.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/model-runtime/src/newapi/index.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/model-runtime/src/newapi/index.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* 🐛 fix: correct baseURL configuration and add comprehensive tests for NewAPI

- Fix baseURL handling to avoid double /v1 path
- Add url-join for proper URL concatenation
- Simplify router models functions using Array.from and filter
- Add comprehensive test coverage with 100% branch coverage
- Fix TypeScript type issues in tests

* 🧪 test: implement 100% branch coverage for NewAPI runtime

- Add comprehensive test suite with 44 test cases
- Achieve 100% branch coverage for all conditional logic
- Test all provider detection, pricing calculation, and data handling branches
- Fix TypeScript type errors with proper type annotations
- Maintain all 44 tests passing with zero errors
- Cover handlePayload, getProviderFromOwnedBy, and models function branches
- No business code modifications - test-only changes

* 🔨 fix: adjust for review comment https://github.com/lobehub/lobe-chat/pull/9041#pullrequestreview-3183464594

* 🐛 fix: resolve NewAPI baseURL transmission issue with dynamic routers configuration

- Extend RouterRuntime to support dynamic routers: RouterInstance[] | ((options) => RouterInstance[])
- Refactor NewAPI from IIFE closure to dynamic configuration function
- Fix timing issue where routers were configured before baseURL was available
- Add comprehensive tests for dynamic routers functionality
- Resolve 'Invalid URL input: v1/models' error by ensuring user baseURL propagates correctly
- Maintain backward compatibility with static routers arrays

Tests: NewAPI (44→45), RouterRuntime (15→17), all passing
2025-09-04 23:47:18 +08:00
lobehubbot 7634f511bf 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 13:54:41 +00:00
semantic-release-bot 5e611f2fba 🔖 chore(release): v1.122.7 [skip ci]
### [Version&nbsp;1.122.7](https://github.com/lobehub/lobe-chat/compare/v1.122.6...v1.122.7)
<sup>Released on **2025-09-04**</sup>

#### ♻ Code Refactoring

- **misc**: Make LobeNextAuthDBAdapter Edge Compatible.

<br/>

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

#### Code refactoring

* **misc**: Make LobeNextAuthDBAdapter Edge Compatible, closes [#9088](https://github.com/lobehub/lobe-chat/issues/9088) ([411f88e](https://github.com/lobehub/lobe-chat/commit/411f88e))

</details>

<div align="right">

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

</div>
2025-09-04 13:53:39 +00:00
Rylan Cai 411f88eca1 ♻️ refactor: make LobeNextAuthDBAdapter Edge Compatible (#9088)
* ♻️ refactor: make adapter edge compatible

* ♻️ refactor: cascade changes

* 🐛 fix: default callbackUrl

* ♻️ refactor: use adapter & strategy control

* ♻️ refactor: migreate

* ♻️ refactor: immediate return

* ♻️ refactor: improve codes & remove tests

*  test: update auth test

* 🐛 fix: date conversation err

* 🐛 fix: naming

* ♻️ refactor: cascade changes

*  test: no longer need not impl err

* 🐛 fix: only init db adapter in server service
2025-09-04 21:42:39 +08:00
Arvin Xu 0e38ce159e 🔨 chore: rename example development (#9090)
rename example development
2025-09-04 20:51:59 +08:00
lobehubbot 27bcf18c4c 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 11:49:14 +00:00
semantic-release-bot 298cd4f8c9 🔖 chore(release): v1.122.6 [skip ci]
### [Version&nbsp;1.122.6](https://github.com/lobehub/lobe-chat/compare/v1.122.5...v1.122.6)
<sup>Released on **2025-09-04**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-09-04 11:48:19 +00:00
Arvin Xu 7bd25d96fe 👷 build: Revert "♻️ refactor: make LobeNextAuthDBAdapter Edge Compatible" (#9086)
Revert "♻️ refactor: make LobeNextAuthDBAdapter Edge Compatible (#8188)"

This reverts commit f456e91d7b.
2025-09-04 19:36:03 +08:00
lobehubbot 3d7ce4a18a 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 11:24:06 +00:00
semantic-release-bot 56f55da260 🔖 chore(release): v1.122.5 [skip ci]
### [Version&nbsp;1.122.5](https://github.com/lobehub/lobe-chat/compare/v1.122.4...v1.122.5)
<sup>Released on **2025-09-04**</sup>

#### ♻ Code Refactoring

- **misc**: Make LobeNextAuthDBAdapter Edge Compatible.

<br/>

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

#### Code refactoring

* **misc**: Make LobeNextAuthDBAdapter Edge Compatible, closes [#8188](https://github.com/lobehub/lobe-chat/issues/8188) ([f456e91](https://github.com/lobehub/lobe-chat/commit/f456e91))

</details>

<div align="right">

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

</div>
2025-09-04 11:23:12 +00:00
Rylan Cai f456e91d7b ♻️ refactor: make LobeNextAuthDBAdapter Edge Compatible (#8188)
* ♻️ refactor: make adapter edge compatible

* ♻️ refactor: cascade changes

* 🐛 fix: default callbackUrl

* ♻️ refactor: use adapter & strategy control

* ♻️ refactor: migreate

* ♻️ refactor: immediate return

* ♻️ refactor: improve codes & remove tests

*  test: update auth test

* 🐛 fix: date conversation err

* 🐛 fix: naming

* ♻️ refactor: cascade changes

*  test: no longer need not impl err
2025-09-04 17:32:20 +08:00
lobehubbot 2fa57ff557 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 08:53:43 +00:00
semantic-release-bot 3d671740a3 🔖 chore(release): v1.122.4 [skip ci]
### [Version&nbsp;1.122.4](https://github.com/lobehub/lobe-chat/compare/v1.122.3...v1.122.4)
<sup>Released on **2025-09-04**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-04 08:52:45 +00:00
LobeHub Bot 970ece0498 🤖 style: update i18n (#9062)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-04 16:41:20 +08:00
Arvin Xu c5ed5fdf2e test: add more tests (#9074)
* fix

try to fix

add v2 test

try to fix docker build issue

fix lint

add tests

replace

* fix

* fix
2025-09-04 16:41:10 +08:00
lobehubbot e8db8b9b99 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 08:06:05 +00:00
semantic-release-bot 759f30e5b7 🔖 chore(release): v1.122.3 [skip ci]
### [Version&nbsp;1.122.3](https://github.com/lobehub/lobe-chat/compare/v1.122.2...v1.122.3)
<sup>Released on **2025-09-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Support base64 image from markdown image syntax.

#### 💄 Styles

- **misc**: Update the price of the o3 model in OpenRouter.

<br/>

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

#### What's fixed

* **misc**: Support base64 image from markdown image syntax, closes [#9054](https://github.com/lobehub/lobe-chat/issues/9054) ([d013a16](https://github.com/lobehub/lobe-chat/commit/d013a16))

#### Styles

* **misc**: Update the price of the o3 model in OpenRouter, closes [#9075](https://github.com/lobehub/lobe-chat/issues/9075) ([43ef47c](https://github.com/lobehub/lobe-chat/commit/43ef47c))

</details>

<div align="right">

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

</div>
2025-09-04 08:05:04 +00:00
Lumia 43ef47c522 💄 style: Update the price of the o3 model in OpenRouter (#9075)
Update openrouter o3 price
2025-09-04 15:51:47 +08:00
sxjeru d013a166ce 🐛 fix: Support base64 image from markdown image syntax (#9054)
*  feat: add support for handling base64 images in markdown content within OpenAI stream

*  feat: 支持在非思考模式下解析 markdown 中的 base64 图片并按顺序输出

* fix: 从结果中去除 markdown data:image

*  feat: 合并提取和清理 markdown 中 base64 图片的功能

* fix test
2025-09-04 15:51:18 +08:00
lobehubbot 86fc3912e0 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 07:50:29 +00:00
semantic-release-bot 6d438262b0 🔖 chore(release): v1.122.2 [skip ci]
### [Version&nbsp;1.122.2](https://github.com/lobehub/lobe-chat/compare/v1.122.1...v1.122.2)
<sup>Released on **2025-09-04**</sup>

#### 🐛 Bug Fixes

- **modelProvider**: Add lmstudio to provider whitelist to enable fetchOnClient toggle.

<br/>

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

#### What's fixed

* **modelProvider**: Add lmstudio to provider whitelist to enable fetchOnClient toggle, closes [#9067](https://github.com/lobehub/lobe-chat/issues/9067) ([e58864f](https://github.com/lobehub/lobe-chat/commit/e58864f))

</details>

<div align="right">

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

</div>
2025-09-04 07:49:16 +00:00
wano e58864f361 🐛 fix(modelProvider): add lmstudio to provider whitelist to enable fetchOnClient toggle (#9067)
- Add 'lmstudio' to providerWhitelist in both user and aiInfra store selectors
- Fix issue where LMStudio's client fetch mode toggle was non-functional
- Users can now properly control client/server request mode for LMStudio
- Resolves forced client mode when only baseURL is configured

Fixes client request mode control for LMStudio provider
2025-09-04 15:37:52 +08:00
Arvin Xu 9c2b411493 📝 docs: update README (#9079)
update docs
2025-09-04 15:37:31 +08:00
lobehubbot da2c0a2c57 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 07:19:58 +00:00
semantic-release-bot 14ac6d1515 🔖 chore(release): v1.122.1 [skip ci]
### [Version&nbsp;1.122.1](https://github.com/lobehub/lobe-chat/compare/v1.122.0...v1.122.1)
<sup>Released on **2025-09-04**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-09-04 07:19:03 +00:00
Arvin Xu 8b9fced111 👷 build: fix docker build issue (#9070)
* try to fix docker build issue

* replace

* fix build
2025-09-04 15:08:27 +08:00
lobehubbot eea96605cf 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 05:09:08 +00:00
semantic-release-bot 612866dea1 🔖 chore(release): v1.122.0 [skip ci]
## [Version&nbsp;1.122.0](https://github.com/lobehub/lobe-chat/compare/v1.121.1...v1.122.0)
<sup>Released on **2025-09-04**</sup>

####  Features

- **misc**: Refactor to speed up send message in server mode.

<br/>

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

#### What's improved

* **misc**: Refactor to speed up send message in server mode, closes [#9046](https://github.com/lobehub/lobe-chat/issues/9046) ([4813b6d](https://github.com/lobehub/lobe-chat/commit/4813b6d))

</details>

<div align="right">

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

</div>
2025-09-04 05:08:10 +00:00
Arvin Xu a9c660c26e 🔨 chore: fix webpack build OOM (#9066)
fix build
2025-09-04 12:57:50 +08:00
Arvin Xu 4813b6df27 feat: refactor to speed up send message in server mode (#9046)
* refactor send message

* support message rag data

* fix

* fix tests

* fix lint

* add tests

* fix bug
2025-09-04 12:53:55 +08:00
lobehubbot 0a1dcf943e 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-03 10:40:14 +00:00
semantic-release-bot 9eec81c551 🔖 chore(release): v1.121.1 [skip ci]
### [Version&nbsp;1.121.1](https://github.com/lobehub/lobe-chat/compare/v1.121.0...v1.121.1)
<sup>Released on **2025-09-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix socks5 proxy not work problem, fix virtuaso minheight was null.

<br/>

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

#### What's fixed

* **misc**: Fix socks5 proxy not work problem, closes [#9053](https://github.com/lobehub/lobe-chat/issues/9053) ([b13563c](https://github.com/lobehub/lobe-chat/commit/b13563c))
* **misc**: Fix virtuaso minheight was null, closes [#9055](https://github.com/lobehub/lobe-chat/issues/9055) ([ef79721](https://github.com/lobehub/lobe-chat/commit/ef79721))

</details>

<div align="right">

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

</div>
2025-09-03 10:39:16 +00:00
Shinji-Li b13563cb34 🐛 fix: fix socks5 proxy not work problem (#9053) 2025-09-03 18:28:55 +08:00
Shinji-Li ef79721828 🐛 fix: fix virtuaso minheight was null (#9055) 2025-09-03 18:28:32 +08:00
lobehubbot 20a53cbd34 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-03 08:39:57 +00:00
semantic-release-bot a76ad2344d 🔖 chore(release): v1.121.0 [skip ci]
## [Version&nbsp;1.121.0](https://github.com/lobehub/lobe-chat/compare/v1.120.7...v1.121.0)
<sup>Released on **2025-09-03**</sup>

####  Features

- **misc**: Add nano banana Chinese prompt notify.

<br/>

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

#### What's improved

* **misc**: Add nano banana Chinese prompt notify, closes [#9038](https://github.com/lobehub/lobe-chat/issues/9038) ([58e19f8](https://github.com/lobehub/lobe-chat/commit/58e19f8))

</details>

<div align="right">

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

</div>
2025-09-03 08:39:00 +00:00
YuTengjing 58e19f856c feat: add nano banana Chinese prompt notify (#9038) 2025-09-03 16:29:13 +08:00
Asuka109 d1c5645517 🔨 chore: add docker compose to setup local services for development (#8608)
* 👷 build: add docker compose to setup local services for development

* 👷 build: setup dotenv-expand for all the npm scripts

* 🐛 fix: remove useless comments

* 📚 docs: add server-side database setup guide with i18n support

- Add comprehensive server-side database setup documentation
- Include step-by-step Docker service configuration
- Add Chinese localization for better developer experience
- Cover environment setup, database migration, and verification steps
2025-09-02 17:06:01 +08:00
lobehubbot 0884747bb3 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-02 03:38:26 +00:00
semantic-release-bot 8169eae189 🔖 chore(release): v1.120.7 [skip ci]
### [Version&nbsp;1.120.7](https://github.com/lobehub/lobe-chat/compare/v1.120.6...v1.120.7)
<sup>Released on **2025-09-02**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-09-02 03:37:29 +00:00
LobeHub Bot 650e552aa8 🤖 style: update i18n (#9033)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-09-02 11:25:39 +08:00
lobehubbot 11b27e5bf7 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-01 06:23:49 +00:00
semantic-release-bot a6367a5166 🔖 chore(release): v1.120.6 [skip ci]
### [Version&nbsp;1.120.6](https://github.com/lobehub/lobe-chat/compare/v1.120.5...v1.120.6)
<sup>Released on **2025-09-01**</sup>

#### 💄 Styles

- **misc**: Add upload hint for non-visual model.

<br/>

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

#### Styles

* **misc**: Add upload hint for non-visual model, closes [#7969](https://github.com/lobehub/lobe-chat/issues/7969) ([1224f4e](https://github.com/lobehub/lobe-chat/commit/1224f4e))

</details>

<div align="right">

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

</div>
2025-09-01 06:22:54 +00:00
Arvin Xu 1224f4e4a7 💄 style: add upload hint for non-visual model (#7969)
* add upload hint

* fix tests
2025-09-01 14:11:41 +08:00
lobehubbot 1e1dbb7829 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-01 04:12:35 +00:00
semantic-release-bot 49fd419b72 🔖 chore(release): v1.120.5 [skip ci]
### [Version&nbsp;1.120.5](https://github.com/lobehub/lobe-chat/compare/v1.120.4...v1.120.5)
<sup>Released on **2025-09-01**</sup>

#### 🐛 Bug Fixes

- **ai-image**: Save config.imageUrl with fullUrl instead of key.

<br/>

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

#### What's fixed

* **ai-image**: Save config.imageUrl with fullUrl instead of key, closes [#9016](https://github.com/lobehub/lobe-chat/issues/9016) ([bad009a](https://github.com/lobehub/lobe-chat/commit/bad009a))

</details>

<div align="right">

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

</div>
2025-09-01 04:11:34 +00:00
YuTengjing bad009a43c 🐛 fix(ai-image): save config.imageUrl with fullUrl instead of key (#9016) 2025-09-01 11:59:51 +08:00
renovate[bot] 987e87ad8b Update dependency gpt-tokenizer to v3 (#9009)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 10:44:00 +08:00
lobehubbot b36d8c7466 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-01 02:08:53 +00:00
semantic-release-bot 2590d72ae3 🔖 chore(release): v1.120.4 [skip ci]
### [Version&nbsp;1.120.4](https://github.com/lobehub/lobe-chat/compare/v1.120.3...v1.120.4)
<sup>Released on **2025-09-01**</sup>

#### 💄 Styles

- **misc**: Adjust ControlsForm component to adapt to mobile phone display.

<br/>

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

#### Styles

* **misc**: Adjust ControlsForm component to adapt to mobile phone display, closes [#9013](https://github.com/lobehub/lobe-chat/issues/9013) ([c6038c0](https://github.com/lobehub/lobe-chat/commit/c6038c0))

</details>

<div align="right">

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

</div>
2025-09-01 02:07:56 +00:00
bbbugg c6038c0670 💄 style: adjust ControlsForm component to adapt to mobile phone display (#9013)
* 🐛 fix: adjust ControlsForm component to use responsive widths for descriptions

* 🐛 fix: update ControlsForm component for responsive description widths on narrow screens
2025-09-01 09:56:23 +08:00
lobehubbot 4ccf4c341b 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-01 01:51:29 +00:00
semantic-release-bot c922ff2d68 🔖 chore(release): v1.120.3 [skip ci]
### [Version&nbsp;1.120.3](https://github.com/lobehub/lobe-chat/compare/v1.120.2...v1.120.3)
<sup>Released on **2025-09-01**</sup>

#### 💄 Styles

- **misc**: Support new provider Nebius.

<br/>

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

#### Styles

* **misc**: Support new provider Nebius, closes [#8903](https://github.com/lobehub/lobe-chat/issues/8903) ([c15791d](https://github.com/lobehub/lobe-chat/commit/c15791d))

</details>

<div align="right">

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

</div>
2025-09-01 01:50:34 +00:00
sxjeru c15791d852 💄 style: Support new provider Nebius (#8903)
* feat: add Nebius model support and configuration

* feat(nebius): enhance model definitions and add support for image and embedding models

* Implement code changes to enhance functionality and improve performance

* feat(nebius): remove 'created' field from model standardization

* feat(novita): format model pricing and enhance model data structure

* feat: 更新模型处理逻辑,优化模型字段和定价格式

* feat(openrouter): 更新模型接口,优化价格格式和上下文窗口大小

* feat: 添加定价格式化功能,更新模型接口以支持新的定价结构

* fix test

* feat: 添加Hermes-4-70B和Hermes-4-405B模型,更新定价结构

* feat: add functionCall, reasoning, and vision properties to model list

* 拆分 pr

* Delete src/config/aiModels/nebius.ts

* Delete src/config/aiModels/index.ts

* Delete src/config/aiModels/openrouter.ts

* add change

* 添加 nebius 模型的导出路径

* Update providers.tsx

* 更新 Gemini 2.5 Flash Image Preview 模型名称为 "Nano Banana"

* fix

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-09-01 09:38:59 +08:00
lobehubbot 7ffb30713e 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-31 16:42:21 +00:00
semantic-release-bot 18d2e6d50b 🔖 chore(release): v1.120.2 [skip ci]
### [Version&nbsp;1.120.2](https://github.com/lobehub/lobe-chat/compare/v1.120.1...v1.120.2)
<sup>Released on **2025-08-31**</sup>

#### ♻ Code Refactoring

- **misc**: Remove base path.

<br/>

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

#### Code refactoring

* **misc**: Remove base path, closes [#9015](https://github.com/lobehub/lobe-chat/issues/9015) ([2a5f8d7](https://github.com/lobehub/lobe-chat/commit/2a5f8d7))

</details>

<div align="right">

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

</div>
2025-08-31 16:41:22 +00:00
Arvin Xu 2a5f8d712f ♻️ refactor: remove base path (#9015)
* clean

* remove

* fix

* move config to envs

* remove envs
2025-09-01 00:30:13 +08:00
renovate[bot] 82f5abf83b Update dependency file-type to v21 (#9008)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-31 20:05:38 +08:00
renovate[bot] 332e06ee6b Update dependency happy-dom to v18 (#9010)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-31 20:04:51 +08:00
lobehubbot f1cddf9802 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-31 11:54:19 +00:00
semantic-release-bot 2525740b9d 🔖 chore(release): v1.120.1 [skip ci]
### [Version&nbsp;1.120.1](https://github.com/lobehub/lobe-chat/compare/v1.120.0...v1.120.1)
<sup>Released on **2025-08-31**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-08-31 11:53:25 +00:00
renovate[bot] a6b2a19b0e Update dependency lucide-react to ^0.542.0 (#9006)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-31 16:37:51 +08:00
LobeHub Bot 63760f9059 🤖 style: update i18n (#9005)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-08-31 16:37:28 +08:00
lobehubbot 043e7da368 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-30 17:42:29 +00:00
semantic-release-bot f594fe16b1 🔖 chore(release): v1.120.0 [skip ci]
## [Version&nbsp;1.120.0](https://github.com/lobehub/lobe-chat/compare/v1.119.2...v1.120.0)
<sup>Released on **2025-08-30**</sup>

#### ♻ Code Refactoring

- **misc**: Remove webrtc sync feature flag.

####  Features

- **misc**: Rename Gemini 2.5 flash image to Nano Banana.

<br/>

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

#### Code refactoring

* **misc**: Remove webrtc sync feature flag, closes [#9002](https://github.com/lobehub/lobe-chat/issues/9002) ([0924d98](https://github.com/lobehub/lobe-chat/commit/0924d98))

#### What's improved

* **misc**: Rename Gemini 2.5 flash image to Nano Banana, closes [#9004](https://github.com/lobehub/lobe-chat/issues/9004) ([dac5a6f](https://github.com/lobehub/lobe-chat/commit/dac5a6f))

</details>

<div align="right">

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

</div>
2025-08-30 17:41:09 +00:00
Arvin Xu 0924d98f5e ♻️ refactor: remove webrtc sync feature flag (#9002)
* refactor to clean code

* clean yjs

* upgrade icons

* Update package.json

* fix tests

* fix tests

* fix tests
2025-08-31 01:28:44 +08:00
YuTengjing dac5a6f22d feat: rename Gemini 2.5 flash image to Nano Banana (#9004) 2025-08-31 01:26:01 +08:00
bbbugg 44ffe14b9f 🐛fix: Qwen & SiliconCloud DeepSeek V3.1 Model Ability (#8999)
* 🐛 fix: remove functionCall ability from Qwen DeepSeek V3.1 models

* 🐛 fix: add 'deepseek-v3.1' to model keyword checks and extend parameters for reasoning

* 🐛 fix: add reasoning to 'DeepSeek-V3.1'
2025-08-31 01:21:58 +08:00
lobehubbot ddba451027 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-30 16:24:23 +00:00
semantic-release-bot bd5fb75efc 🔖 chore(release): v1.119.2 [skip ci]
### [Version&nbsp;1.119.2](https://github.com/lobehub/lobe-chat/compare/v1.119.1...v1.119.2)
<sup>Released on **2025-08-30**</sup>

#### ♻ Code Refactoring

- **model-runtime**: Refactor model-runtime dependencies and clean code.

<br/>

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

#### Code refactoring

* **model-runtime**: Refactor model-runtime dependencies and clean code, closes [#8997](https://github.com/lobehub/lobe-chat/issues/8997) ([9f7677d](https://github.com/lobehub/lobe-chat/commit/9f7677d))

</details>

<div align="right">

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

</div>
2025-08-30 16:23:22 +00:00
Arvin Xu d7294ddebc 🔨 chore: fix types (#9003)
fix types
2025-08-31 00:11:37 +08:00
sxjeru b0e163cb2b 🔨 chore: Optimized model owner parse (#9000)
* Update modelParse.ts

* Update modelParse.test.ts
2025-08-30 23:53:12 +08:00
Arvin Xu 9f7677d560 ♻️ refactor(model-runtime): refactor model-runtime dependencies and clean code (#8997)
* refactor and clean code

* refactor to remove circular deps

* refactor to clean code

* refactor to clean code

* refactor model-runtime

* refactor image const

* refactor model-runtime import

* fix lint circular

* refactor the @/lib/model-runtime

* fix tests

* refactor to clean code
2025-08-30 23:52:42 +08:00
lobehubbot 999a63f648 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-30 12:28:34 +00:00
semantic-release-bot d8531ab120 🔖 chore(release): v1.119.1 [skip ci]
### [Version&nbsp;1.119.1](https://github.com/lobehub/lobe-chat/compare/v1.119.0...v1.119.1)
<sup>Released on **2025-08-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Update enableStreaming name.

<br/>

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

#### What's fixed

* **misc**: Update enableStreaming name, closes [#8995](https://github.com/lobehub/lobe-chat/issues/8995) ([7c7de40](https://github.com/lobehub/lobe-chat/commit/7c7de40))

</details>

<div align="right">

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

</div>
2025-08-30 12:27:35 +00:00
Rylan Cai 099965a78f 🔨 chore(model-runtime): add ChatMethods ChatMethodOptions merge helper (#8998)
* :recyel: refactor: add ChatMethodOptions merger

* 📝 docs: expose methods
2025-08-30 20:16:20 +08:00
bbbugg 7c7de40007 🐛 fix: update enableStreaming name (#8995) 2025-08-30 20:15:58 +08:00
lobehubbot 5b043d81b1 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-30 11:06:25 +00:00
semantic-release-bot f326e8989e 🔖 chore(release): v1.119.0 [skip ci]
## [Version&nbsp;1.119.0](https://github.com/lobehub/lobe-chat/compare/v1.118.8...v1.119.0)
<sup>Released on **2025-08-30**</sup>

####  Features

- **misc**: Added support for Azure OpenAI Image Generation.

<br/>

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

#### What's improved

* **misc**: Added support for Azure OpenAI Image Generation, closes [#8898](https://github.com/lobehub/lobe-chat/issues/8898) ([6042340](https://github.com/lobehub/lobe-chat/commit/6042340))

</details>

<div align="right">

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

</div>
2025-08-30 11:05:32 +00:00
Jamie Stivala 604234029c feat: Added support for Azure OpenAI Image Generation (#8898) 2025-08-30 18:54:00 +08:00
lobehubbot a6d929bc2d 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-30 05:28:26 +00:00
semantic-release-bot 54b6062c2e 🔖 chore(release): v1.118.8 [skip ci]
### [Version&nbsp;1.118.8](https://github.com/lobehub/lobe-chat/compare/v1.118.7...v1.118.8)
<sup>Released on **2025-08-30**</sup>

#### 💄 Styles

- **misc**: Update DeepSeek V3.1 & Gemini 2.5 Flash Image Preview models.

<br/>

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

#### Styles

* **misc**: Update DeepSeek V3.1 & Gemini 2.5 Flash Image Preview models, closes [#8878](https://github.com/lobehub/lobe-chat/issues/8878) ([5d538a2](https://github.com/lobehub/lobe-chat/commit/5d538a2))

</details>

<div align="right">

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

</div>
2025-08-30 05:27:24 +00:00
sxjeru 5d538a235a 💄 style: update DeepSeek V3.1 & Gemini 2.5 Flash Image Preview models (#8878)
* 🔨 refactor: update DeepSeek model configurations and processing logic

* 🔨 feat: 添加 DeepSeek V3.1 聊天模型配置

* 🔨 feat: 添加 DeepSeek V3.1 聊天模型到 openrouter 配置

* update

* 🔨 feat: 更新 DeepSeek V3.1 模型配置,添加新模型并调整描述

* 🔨 feat: 更新 DeepSeek V3.1 模型配置,增加描述和定价信息,调整上下文窗口大小

* Update qwen.ts

* 🔨 feat: 添加 DeepSeek V3.1 聊天模型,更新模型描述和定价信息

* fix

* Update deepseek.ts

* 🔨 feat(google): 添加 Gemini 2.5 Flash 实验模型,支持图像生成

* 🔨 feat(aihubmix): 添加 Gemini 2.5 Flash 实验模型,支持图像生成

* 🔨 feat(aihubmix): 添加 Grok 4 模型,增强自然语言处理和推理能力

* 🔨 feat(qwen): 调整 textInput_cacheRead 定价策略,优化定价计算

* 🔨 feat(google): 添加 gemini-2.5-flash-image-preview 模型到模型集合中,更新思考配置逻辑

* 🔨 feat(vertexai): 添加 Gemini 2.5 Flash 实验模型,支持图像生成

* 🔨 feat(google): 增强 Google 生成 AI 流处理,兼容性改进文本提取逻辑
🔨 feat(xai): 添加 Grok Code Fast 1 模型,优化逻辑任务处理能力

* 🔨 feat(google): 增强 Google 生成 AI 流处理,支持文本和图像数据的返回

* 去除重复

* pull main

* ♻️ fix: avoid duplicate 'stop' chunk in Google AI stream; handle missing usage metadata

* update novita

* ♻️ fix: update  snapshot

* Update xai.ts

* Update modelParse.ts

* fix: update snapshot
2025-08-30 13:16:22 +08:00
lobehubbot 33050d6abe 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-30 03:31:17 +00:00
semantic-release-bot 00822ef502 🔖 chore(release): v1.118.7 [skip ci]
### [Version&nbsp;1.118.7](https://github.com/lobehub/lobe-chat/compare/v1.118.6...v1.118.7)
<sup>Released on **2025-08-30**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-08-30 03:30:22 +00:00
LobeHub Bot 136bc5a917 🤖 style: update i18n (#8990) 2025-08-30 11:18:24 +08:00
lobehubbot 3e1b360186 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 18:58:54 +00:00
semantic-release-bot cc882be4ef 🔖 chore(release): v1.118.6 [skip ci]
### [Version&nbsp;1.118.6](https://github.com/lobehub/lobe-chat/compare/v1.118.5...v1.118.6)
<sup>Released on **2025-08-29**</sup>

#### 💄 Styles

- **misc**: Support non-stream mode.

<br/>

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

#### Styles

* **misc**: Support non-stream mode, closes [#8751](https://github.com/lobehub/lobe-chat/issues/8751) ([ce623bb](https://github.com/lobehub/lobe-chat/commit/ce623bb))

</details>

<div align="right">

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

</div>
2025-08-29 18:57:50 +00:00
Arvin Xu ce623bb280 💄 style: support non-stream mode (#8751)
* support non-stream mode

* improve streaming part

* fix tests
2025-08-30 02:46:06 +08:00
lobehubbot e56e475331 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 18:00:57 +00:00
semantic-release-bot 41d7efcf54 🔖 chore(release): v1.118.5 [skip ci]
### [Version&nbsp;1.118.5](https://github.com/lobehub/lobe-chat/compare/v1.118.4...v1.118.5)
<sup>Released on **2025-08-29**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the `model-bank` package from `src/config/aiModels`.

#### 💄 Styles

- **misc**: Fix clerk scrollBox style, ModelFetcher support getting prices.

<br/>

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

#### Code refactoring

* **misc**: Refactor the `model-bank` package from `src/config/aiModels`, closes [#8983](https://github.com/lobehub/lobe-chat/issues/8983) ([c65eb09](https://github.com/lobehub/lobe-chat/commit/c65eb09))

#### Styles

* **misc**: Fix clerk scrollBox style, closes [#8989](https://github.com/lobehub/lobe-chat/issues/8989) ([b25b5a0](https://github.com/lobehub/lobe-chat/commit/b25b5a0))
* **misc**: ModelFetcher support getting prices, closes [#8985](https://github.com/lobehub/lobe-chat/issues/8985) ([58b73ec](https://github.com/lobehub/lobe-chat/commit/58b73ec))

</details>

<div align="right">

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

</div>
2025-08-29 17:59:53 +00:00
sxjeru 58b73ecc95 💄 style: ModelFetcher support getting prices (#8985)
* 拆分

* fix test
2025-08-30 01:47:48 +08:00
Arvin Xu b25b5a0657 💄 style: fix clerk scrollBox style (#8989)
fix clerk scrollBox style
2025-08-30 01:36:13 +08:00
Arvin Xu c65eb095ba ♻️ refactor: refactor the model-bank package from src/config/aiModels (#8983)
* move

* refactor with model banks

* refactor with model banks

* refactor @/config/aiModels to model-bank

* refactor @/config/aiModels to model-bank

* fix model bank exports

* clean

* add test workflow

* try again

* fix

* add exports tests

* fix model bank alias

* Update tsconfig.json

* fix import issue

* clean unused code

* fix tests
2025-08-30 01:28:16 +08:00
lobehubbot 323425bd90 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 16:02:07 +00:00
semantic-release-bot 4cb831c15a 🔖 chore(release): v1.118.4 [skip ci]
### [Version&nbsp;1.118.4](https://github.com/lobehub/lobe-chat/compare/v1.118.3...v1.118.4)
<sup>Released on **2025-08-29**</sup>

#### 💄 Styles

- **misc**: Fix chat session part switch theme issue.

<br/>

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

#### Styles

* **misc**: Fix chat session part switch theme issue, closes [#8987](https://github.com/lobehub/lobe-chat/issues/8987) ([b7111be](https://github.com/lobehub/lobe-chat/commit/b7111be))

</details>

<div align="right">

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

</div>
2025-08-29 16:01:08 +00:00
Arvin Xu b7111be400 💄 style: fix chat session part switch theme issue (#8987)
fix theme issue
2025-08-29 23:49:05 +08:00
lobehubbot 548c4e2ac2 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 13:41:16 +00:00
semantic-release-bot 1dc82d0184 🔖 chore(release): v1.118.3 [skip ci]
### [Version&nbsp;1.118.3](https://github.com/lobehub/lobe-chat/compare/v1.118.2...v1.118.3)
<sup>Released on **2025-08-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Correct totalOutputTokens calculation for XAI provider.

<br/>

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

#### What's fixed

* **misc**: Correct totalOutputTokens calculation for XAI provider, closes [#8984](https://github.com/lobehub/lobe-chat/issues/8984) ([09ce90a](https://github.com/lobehub/lobe-chat/commit/09ce90a))

</details>

<div align="right">

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

</div>
2025-08-29 13:40:22 +00:00
bbbugg 09ce90a35a 🐛 fix: correct totalOutputTokens calculation for XAI provider (#8984) 2025-08-29 21:28:41 +08:00
孤独豹猫 2071d27335 🐛 fix: improve ollama capability and improve search config (#8848)
* fix(model): 修复 Ollama 模型卡片信息

- 修复Zod schema 的 search 能力的可选布尔字段
- 修正 Ollama 模型运行时中 vision 能力的选项重复/错误

* Update index.ts
2025-08-29 20:49:02 +08:00
lobehubbot c4fd337288 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 12:34:08 +00:00
semantic-release-bot 276e7d7bb4 🔖 chore(release): v1.118.2 [skip ci]
### [Version&nbsp;1.118.2](https://github.com/lobehub/lobe-chat/compare/v1.118.1...v1.118.2)
<sup>Released on **2025-08-29**</sup>

#### 💄 Styles

- **misc**: Add Grok Code Fast 1 model.

<br/>

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

#### Styles

* **misc**: Add Grok Code Fast 1 model, closes [#8982](https://github.com/lobehub/lobe-chat/issues/8982) ([dbcec3d](https://github.com/lobehub/lobe-chat/commit/dbcec3d))

</details>

<div align="right">

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

</div>
2025-08-29 12:33:14 +00:00
bbbugg dbcec3d07e 💄 style: add Grok Code Fast 1 model (#8982)
*  feat: add Grok Code Fast 1 model

* 🐛 fix(xai): comment out unsupported settings for reasoningEffort parameter
2025-08-29 20:21:58 +08:00
lobehubbot 85f9ca5c40 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 09:35:24 +00:00
semantic-release-bot 34f88cdaab 🔖 chore(release): v1.118.1 [skip ci]
### [Version&nbsp;1.118.1](https://github.com/lobehub/lobe-chat/compare/v1.118.0...v1.118.1)
<sup>Released on **2025-08-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Add Content-Security-Policy env.

#### 💄 Styles

- **misc**: Support Gemini URL context tool.

<br/>

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

#### What's fixed

* **misc**: Add Content-Security-Policy env, closes [#8752](https://github.com/lobehub/lobe-chat/issues/8752) ([9250540](https://github.com/lobehub/lobe-chat/commit/9250540))

#### Styles

* **misc**: Support Gemini URL context tool, closes [#8731](https://github.com/lobehub/lobe-chat/issues/8731) ([5d4ed11](https://github.com/lobehub/lobe-chat/commit/5d4ed11))

</details>

<div align="right">

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

</div>
2025-08-29 09:34:26 +00:00
sxjeru 5d4ed11ad6 💄 style: Support Gemini URL context tool (#8731)
* feat: 添加 urlContext 支持到多个模型和配置接口

* feat: 在 googleChatModels 中添加 urlContext 参数支持

* feat: 调整 ControlsForm 中的最小宽度,更新 urlContext 标签样式,优化 LobeGoogleAI 中的工具调用逻辑

* feat: 调整 ControlsForm 中思维预算滑块和 urlContext 的最小宽度及样式

* fix

*  feat: 添加 URL 上下文提取功能描述

* i18n

* Update chat.ts

* update i18n

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-08-29 17:23:09 +08:00
Shinji-Li 9250540912 🐛 fix: add Content-Security-Policy env (#8752)
* fix: add Content-Security-Policy

* feat: add env to control csp open or not

* update env
2025-08-29 17:14:04 +08:00
lobehubbot 0220e81a92 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 08:06:46 +00:00
semantic-release-bot d9024085ed 🔖 chore(release): v1.118.0 [skip ci]
## [Version&nbsp;1.118.0](https://github.com/lobehub/lobe-chat/compare/v1.117.1...v1.118.0)
<sup>Released on **2025-08-29**</sup>

####  Features

- **misc**: Add new provider AkashChat.

<br/>

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

#### What's improved

* **misc**: Add new provider AkashChat, closes [#8923](https://github.com/lobehub/lobe-chat/issues/8923) ([2f3bf0f](https://github.com/lobehub/lobe-chat/commit/2f3bf0f))

</details>

<div align="right">

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

</div>
2025-08-29 08:05:49 +00:00
sxjeru 2f3bf0fedf feat: Add new provider AkashChat (#8923)
* feat: 添加 AkashChat 模型及相关配置

* feat: 更新 AkashChat 模型处理逻辑,添加嵌入模型关键词支持

* fix test

* Update akashchat.ts
2025-08-29 15:53:57 +08:00
René Wang 30bb028a09 📝 docs: add agents md (#8971)
* build: Add agents.md

* feat: Add agents md

* 📝 docs: address tjx666's review comments on AGENTS.md

- Fix build tools description to reflect actual Next.js setup (Turbopack/Webpack)
- Remove incorrect Turborepo reference
- Improve TypeScript practices description for clarity

Co-authored-by: René Wang <RiverTwilight@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: René Wang <RiverTwilight@users.noreply.github.com>
2025-08-29 15:52:02 +08:00
lobehubbot 3ac3b8304e 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 03:13:13 +00:00
semantic-release-bot d6a3a26e4d 🔖 chore(release): v1.117.1 [skip ci]
### [Version&nbsp;1.117.1](https://github.com/lobehub/lobe-chat/compare/v1.117.0...v1.117.1)
<sup>Released on **2025-08-29**</sup>

#### ♻ Code Refactoring

- **misc**: Move chat item into chat.

<br/>

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

#### Code refactoring

* **misc**: Move chat item into chat, closes [#8970](https://github.com/lobehub/lobe-chat/issues/8970) ([e09817e](https://github.com/lobehub/lobe-chat/commit/e09817e))

</details>

<div align="right">

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

</div>
2025-08-29 03:12:18 +00:00
Arvin Xu e09817e7a6 ♻️ refactor: move chat item into chat (#8970)
move chat item into
2025-08-29 11:00:25 +08:00
lobehubbot df5d0d07f9 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 02:51:19 +00:00
semantic-release-bot eafe75bc20 🔖 chore(release): v1.117.0 [skip ci]
## [Version&nbsp;1.117.0](https://github.com/lobehub/lobe-chat/compare/v1.116.4...v1.117.0)
<sup>Released on **2025-08-29**</sup>

####  Features

- **misc**: Ai image support Gemini 2.5 Flash Image, Support Gemini 2.5 Flash Image Preview in OpenRouter.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's improved

* **misc**: Ai image support Gemini 2.5 Flash Image, closes [#8966](https://github.com/lobehub/lobe-chat/issues/8966) ([64b969e](https://github.com/lobehub/lobe-chat/commit/64b969e))
* **misc**: Support Gemini 2.5 Flash Image Preview in OpenRouter, closes [#8944](https://github.com/lobehub/lobe-chat/issues/8944) ([23dcf4c](https://github.com/lobehub/lobe-chat/commit/23dcf4c))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-08-29 02:50:13 +00:00
sxjeru 23dcf4c617 feat: Support Gemini 2.5 Flash Image Preview in OpenRouter (#8944)
* feat: 添加 Gemini 2.5 Flash 图像生成模型并支持 OpenRouter 的 base64_image 处理

* feat: 更新 Gemini 2.5 Flash 模型的图像输出定价和发布日期

* add tests

* 修复 usage

* feat: 重构对 Gemini 2.5 Flash 模型图像输出的支持,更新相关 usage 计费逻辑

* feat: 更新 Gemini AI 流的输出令牌计算,支持图像和文本的分离统计

* add test

* fix test

* fix: 更新 GoogleGenerativeAIStream 测试用例,添加输出图像令牌统计
2025-08-29 10:38:26 +08:00
semantic-release-bot 3fa2573207 🔖 chore(release): v1.117.0 [skip ci]
## [Version&nbsp;1.117.0](https://github.com/lobehub/lobe-chat/compare/v1.116.4...v1.117.0)
<sup>Released on **2025-08-29**</sup>

####  Features

- **misc**: Ai image support Gemini 2.5 Flash Image.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's improved

* **misc**: Ai image support Gemini 2.5 Flash Image, closes [#8966](https://github.com/lobehub/lobe-chat/issues/8966) ([64b969e](https://github.com/lobehub/lobe-chat/commit/64b969e))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-08-29 00:42:45 +00:00
LobeHub Bot 68727985d1 🤖 style: update i18n (#8975)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-08-29 08:31:01 +08:00
semantic-release-bot d3dad7973d 🔖 chore(release): v1.117.0 [skip ci]
## [Version&nbsp;1.117.0](https://github.com/lobehub/lobe-chat/compare/v1.116.4...v1.117.0)
<sup>Released on **2025-08-28**</sup>

####  Features

- **misc**: Ai image support Gemini 2.5 Flash Image.

<br/>

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

#### What's improved

* **misc**: Ai image support Gemini 2.5 Flash Image, closes [#8966](https://github.com/lobehub/lobe-chat/issues/8966) ([64b969e](https://github.com/lobehub/lobe-chat/commit/64b969e))

</details>

<div align="right">

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

</div>
2025-08-28 17:59:29 +00:00
YuTengjing 64b969ec35 feat: ai image support Gemini 2.5 Flash Image (#8966) 2025-08-29 01:48:01 +08:00
Arvin Xu 3336dca328 🔨 chore: upgrade xlsx to latest (#8973)
upgrade xlsx
2025-08-29 01:44:06 +08:00
lobehubbot 8737f675f4 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-28 16:38:25 +00:00
semantic-release-bot 836546f235 🔖 chore(release): v1.116.4 [skip ci]
### [Version&nbsp;1.116.4](https://github.com/lobehub/lobe-chat/compare/v1.116.3...v1.116.4)
<sup>Released on **2025-08-28**</sup>

#### 💄 Styles

- **misc**: Support html preview.

<br/>

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

#### Styles

* **misc**: Support html preview, closes [#8969](https://github.com/lobehub/lobe-chat/issues/8969) ([82abf6d](https://github.com/lobehub/lobe-chat/commit/82abf6d))

</details>

<div align="right">

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

</div>
2025-08-28 16:37:12 +00:00
Arvin Xu 7164b4c9ab 🔨 chore: update workflow (#8972)
fix ci token
2025-08-29 00:25:35 +08:00
Arvin Xu 82abf6d7d0 💄 style: support html preview (#8969)
* support preview html

* add html

* refactor some code
2025-08-28 23:12:56 +08:00
renovate[bot] 4b3f8d4abb Update dependency dotenv to v17 (#8909)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-28 21:02:17 +08:00
renovate[bot] 5989a022dd Update dependency cross-env to v10 (#8821)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-28 20:53:32 +08:00
renovate[bot] de9d479f28 Update dependency diff to v8 (#8822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-28 20:53:02 +08:00
Arvin Xu f900f7ce4e test: add unit tests for @lobechat/prompts (#8967)
* add test and refactor

* update

* move

* fix test

* improve config

* refactor utils server import

* move

* refactor @/utils/server to @lobechat/utils/server

* improve config

* fix tests
2025-08-28 20:44:28 +08:00
lobehubbot d847e44ef7 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-28 11:01:24 +00:00
semantic-release-bot 4872cc1c41 🔖 chore(release): v1.116.3 [skip ci]
### [Version&nbsp;1.116.3](https://github.com/lobehub/lobe-chat/compare/v1.116.2...v1.116.3)
<sup>Released on **2025-08-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop route error.

<br/>

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

#### What's fixed

* **misc**: Fix desktop route error, closes [#8962](https://github.com/lobehub/lobe-chat/issues/8962) ([27a4b34](https://github.com/lobehub/lobe-chat/commit/27a4b34))

</details>

<div align="right">

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

</div>
2025-08-28 11:00:30 +00:00
Arvin Xu 27a4b34612 🐛 fix: fix desktop route error (#8962)
* fix issue

* add test
2025-08-28 18:48:23 +08:00
lobehubbot dbeca5da70 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-28 06:53:27 +00:00
semantic-release-bot b836d0398d 🔖 chore(release): v1.116.2 [skip ci]
### [Version&nbsp;1.116.2](https://github.com/lobehub/lobe-chat/compare/v1.116.1...v1.116.2)
<sup>Released on **2025-08-28**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-08-28 06:52:31 +00:00
Shinji-Li ccdbbb927e ️ perf: Improve settings page rendering performance to prevent re-rendering (#8877) 2025-08-28 14:41:11 +08:00
lobehubbot 8d479074fd 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-27 16:02:06 +00:00
semantic-release-bot 5cbf9136ff 🔖 chore(release): v1.116.1 [skip ci]
### [Version&nbsp;1.116.1](https://github.com/lobehub/lobe-chat/compare/v1.116.0...v1.116.1)
<sup>Released on **2025-08-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-08-27 16:00:45 +00:00
René Wang 17472aa7a5 👷 build: add group chat db schema (#8916)
* feat: merge database changes from group-chat feature

* fix

* fix

* fix

* fix tests

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-08-27 23:49:22 +08:00
Arvin Xu 0778fb5548 🔨 chore: fix import warning (#8952)
fix import warning
2025-08-27 23:22:16 +08:00
YuTengjing 2eeab57c1e docs: update bfl doc cover image url (#8951) 2025-08-27 22:20:18 +08:00
René Wang a397a4eed7 🔨 chore: Revert claude model specification in claude workflow (#8946) 2025-08-27 16:40:06 +08:00
Aloxaf 885fbbe024 fix: non-Latin characters in PDF viewer (#8927) 2025-08-27 16:18:32 +08:00
sxjeru 26c2dd68de chore: modelParse support Millisecond time stamp (#8939) 2025-08-27 16:00:52 +08:00
lobehubbot be388b8433 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-27 07:51:51 +00:00
semantic-release-bot afd05a2364 🔖 chore(release): v1.116.0 [skip ci]
## [Version&nbsp;1.116.0](https://github.com/lobehub/lobe-chat/compare/v1.115.0...v1.116.0)
<sup>Released on **2025-08-27**</sup>

####  Features

- **misc**: Add gemini 2.5 flash image for vertex ai.

<br/>

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

#### What's improved

* **misc**: Add gemini 2.5 flash image for vertex ai, closes [#8943](https://github.com/lobehub/lobe-chat/issues/8943) ([74d9bb5](https://github.com/lobehub/lobe-chat/commit/74d9bb5))

</details>

<div align="right">

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

</div>
2025-08-27 07:50:40 +00:00
YuTengjing 74d9bb5b6a feat: add gemini 2.5 flash image for vertex ai (#8943) 2025-08-27 15:38:19 +08:00
afon c9a65f78c5 🐛 chrore: fix qwen-image model and standardize image size format (#8935) 2025-08-27 15:29:51 +08:00
YuTengjing 9832bf758b feat: add gemini 2.5 flash image model (#8940) 2025-08-27 12:42:16 +08:00
YuTengjing 9a6657e52e 📝 docs(workflow): optimize documentation structure and development setup (#8934) 2025-08-26 18:21:22 +08:00
YuTengjing 45f05a0169 📝 docs: add BFL provider documentation (#8933) 2025-08-26 17:26:45 +08:00
lobehubbot 29137c74d1 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-26 08:02:38 +00:00
semantic-release-bot 1eb64328e8 🔖 chore(release): v1.115.0 [skip ci]
## [Version&nbsp;1.115.0](https://github.com/lobehub/lobe-chat/compare/v1.114.6...v1.115.0)
<sup>Released on **2025-08-26**</sup>

####  Features

- **image**: Polish ai image.

<br/>

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

#### What's improved

* **image**: Polish ai image, closes [#8915](https://github.com/lobehub/lobe-chat/issues/8915) ([0efe28d](https://github.com/lobehub/lobe-chat/commit/0efe28d))

</details>

<div align="right">

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

</div>
2025-08-26 08:01:40 +00:00
YuTengjing 0efe28d122 feat(image): polish ai image (#8915) 2025-08-25 22:38:41 +08:00
renovate[bot] 33611397b2 Update dependency lucide-react to ^0.541.0 (#8907)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-25 14:16:02 +08:00
lobehubbot 0a398a8f82 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-22 16:45:00 +00:00
semantic-release-bot 1a2aa249fb 🔖 chore(release): v1.114.6 [skip ci]
### [Version&nbsp;1.114.6](https://github.com/lobehub/lobe-chat/compare/v1.114.5...v1.114.6)
<sup>Released on **2025-08-22**</sup>

#### 🐛 Bug Fixes

- **files**: Remove force-static rendering to enable session access.

<br/>

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

#### What's fixed

* **files**: Remove force-static rendering to enable session access, closes [#8900](https://github.com/lobehub/lobe-chat/issues/8900) ([6100d21](https://github.com/lobehub/lobe-chat/commit/6100d21))

</details>

<div align="right">

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

</div>
2025-08-22 16:44:01 +00:00
YuTengjing 6100d21038 🐛 fix(files): remove force-static rendering to enable session access (#8900) 2025-08-23 00:33:36 +08:00
YuTengjing ccc733dac5 chore: support set more image constrints (#8896) 2025-08-22 22:04:51 +08:00
lobehubbot c7e94e7446 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-22 06:35:49 +00:00
semantic-release-bot d4eb117b0c 🔖 chore(release): v1.114.5 [skip ci]
### [Version&nbsp;1.114.5](https://github.com/lobehub/lobe-chat/compare/v1.114.4...v1.114.5)
<sup>Released on **2025-08-22**</sup>

#### 💄 Styles

- **misc**: Update mistral model vision ability.

<br/>

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

#### Styles

* **misc**: Update mistral model vision ability, closes [#8885](https://github.com/lobehub/lobe-chat/issues/8885) ([915c0ff](https://github.com/lobehub/lobe-chat/commit/915c0ff))

</details>

<div align="right">

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

</div>
2025-08-22 06:34:55 +00:00
番茄摔成番茄酱 915c0ff5d7 💄 style: Update mistral model vision ability (#8885)
Update mistral.ts

Mistral Small与Mistral Medium模型具有图片识别能力
2025-08-22 14:24:31 +08:00
lobehubbot a47347d95a 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-22 06:16:24 +00:00
semantic-release-bot c9163bc9e8 🔖 chore(release): v1.114.4 [skip ci]
### [Version&nbsp;1.114.4](https://github.com/lobehub/lobe-chat/compare/v1.114.3...v1.114.4)
<sup>Released on **2025-08-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move database to packages.

<br/>

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

#### Code refactoring

* **misc**: Move database to packages, closes [#8874](https://github.com/lobehub/lobe-chat/issues/8874) ([af1f715](https://github.com/lobehub/lobe-chat/commit/af1f715))

</details>

<div align="right">

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

</div>
2025-08-22 06:15:28 +00:00
Arvin Xu 8dedc2d3e1 ♻️ refactor: move utils to separate package (#8889)
* move utils

* move utils

* move utils

* update

* update

* update

* update

* update

* refactor to clean the tests

* fix release workflow

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* try to fix client db migration issue

* fix tests
2025-08-22 14:05:01 +08:00
Arvin Xu af1f71572f ♻️ refactor: move database to packages (#8874)
* move db

* refactor db import

* refactor eval types

* fix tests

* fix tests

* fix tests

* fix db migration issues

* fix docker issue

* fix tests

* update alias

* fix tests

* update db test for client and server

* refactor db

* update codecov

* update codecov

* update codecov

* add docker pr comments
2025-08-22 11:09:03 +08:00
lobehubbot 7e68cc5b5a 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-21 15:57:59 +00:00
semantic-release-bot 91e081885c 🔖 chore(release): v1.114.3 [skip ci]
### [Version&nbsp;1.114.3](https://github.com/lobehub/lobe-chat/compare/v1.114.2...v1.114.3)
<sup>Released on **2025-08-21**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-08-21 15:57:01 +00:00
Maple Gao 3ae5134984 📝 docs: Add image generation development environment setup (#8859)
* 🔨 chore: add image generation development environment setup

- Add setup-image-generation-dev.sh script for automated environment configuration
- Add English and Chinese documentation for image generation development setup
- Configure PostgreSQL and MinIO for local development with automatic bucket creation
- Include database migration and S3 environment variable configuration

* Update scripts/setup-image-generation-dev.sh
2025-08-21 23:44:21 +08:00
Maple Gao df97d76c36 👷 build(desktop): add comprehensive Linux package format support (#8867)
 feat(desktop): add comprehensive Linux package format support

- Add rpm and tar.gz targets to electron-builder configuration
- Update GitHub Actions workflows to upload all Linux package formats
- Support for Ubuntu/Debian (.deb), Snap (.snap), RPM-based distributions (.rpm)
- Include universal tar.gz archives for maximum Linux distribution compatibility
- Ensure proper artifact collection and release publishing for all formats

This enables desktop app distribution across major Linux ecosystems including
Ubuntu, CentOS, openSUSE, Arch Linux, and Chinese domestic OS like UOS and Kylin.
2025-08-21 23:40:05 +08:00
lobehubbot 95246c5ee2 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-21 14:57:47 +00:00
semantic-release-bot 133fd564f1 🔖 chore(release): v1.114.2 [skip ci]
### [Version&nbsp;1.114.2](https://github.com/lobehub/lobe-chat/compare/v1.114.1...v1.114.2)
<sup>Released on **2025-08-21**</sup>

#### 🐛 Bug Fixes

- **misc**: Can't load custom provider config.

<br/>

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

#### What's fixed

* **misc**: Can't load custom provider config, closes [#8880](https://github.com/lobehub/lobe-chat/issues/8880) ([9ec3315](https://github.com/lobehub/lobe-chat/commit/9ec3315))

</details>

<div align="right">

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

</div>
2025-08-21 14:56:45 +00:00
YuTengjing 9ec3315595 🐛 fix: can't load custom provider config (#8880) 2025-08-21 22:43:55 +08:00
Arvin Xu d07e2acae8 🔨 chore: improve test workflow (#8876)
* test workflow

* test workflow

* add test workflow

* add test workflow

* add test config

* add test config

* add test config

* add test config

* add test config

* update

* refactor tests

* fix tests

* fix tests

* exclude packages

* improve test

* fix test

* add a new package
2025-08-21 20:39:29 +08:00
lobehubbot 499a9ca53e 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-21 11:12:14 +00:00
semantic-release-bot 9f1069a51f 🔖 chore(release): v1.114.1 [skip ci]
### [Version&nbsp;1.114.1](https://github.com/lobehub/lobe-chat/compare/v1.114.0...v1.114.1)
<sup>Released on **2025-08-21**</sup>

#### ♻ Code Refactoring

- **misc**: Move chain into `@lobechat/prompts`.

<br/>

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

#### Code refactoring

* **misc**: Move chain into `@lobechat/prompts`, closes [#8875](https://github.com/lobehub/lobe-chat/issues/8875) ([c576b97](https://github.com/lobehub/lobe-chat/commit/c576b97))

</details>

<div align="right">

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

</div>
2025-08-21 11:11:11 +00:00
Arvin Xu c576b971ad ♻️ refactor: move chain into @lobechat/prompts (#8875)
* move chains

* move usage

* move and replace

* refactor import and usage
2025-08-21 18:55:52 +08:00
renovate[bot] 1a71188a1d Update actions/checkout action to v5 (#8818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-20 11:18:37 +08:00
Maple Gao 79c81bb954 🔨 chore: update lint and TypeScript configs to exclude temporary directories (#8856)
- Add tmp, temp, .temp directories to .eslintignore
- Add .local, .cache, .claude, .serena directories to .eslintignore
- Create .stylelintignore with same ignore patterns
- Update tsconfig.json to exclude temporary directories from type checking
- Prevents linting and type checking of temporary and AI tool directories
2025-08-20 11:06:24 +08:00
Arvin Xu 1ee6724168 🔨 chore: update github workflow (#8808)
* Update docker/build-push-action action to v6

* update

* fix workflow

* fix workflow

* fix workflow

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-20 02:40:25 +08:00
lobehubbot f36f6f7724 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-19 14:10:24 +00:00
semantic-release-bot 6d214d7bef 🔖 chore(release): v1.114.0 [skip ci]
## [Version&nbsp;1.114.0](https://github.com/lobehub/lobe-chat/compare/v1.113.3...v1.114.0)
<sup>Released on **2025-08-19**</sup>

####  Features

- **models**: Add Qwen Image Edit model.

<br/>

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

#### What's improved

* **models**: Add Qwen Image Edit model, closes [#8851](https://github.com/lobehub/lobe-chat/issues/8851) ([4d7a060](https://github.com/lobehub/lobe-chat/commit/4d7a060))

</details>

<div align="right">

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

</div>
2025-08-19 14:09:23 +00:00
YuTengjing 4d7a060268 feat(models): Add Qwen Image Edit model (#8851) 2025-08-19 21:54:12 +08:00
YuTengjing 64a5d51f87 fix: image models support for aihubmix (#8838) 2025-08-19 14:44:55 +08:00
YuTengjing 88c8c2dc12 🐛 chore: fix provider data fetch time (#8844) 2025-08-19 14:05:52 +08:00
lobehubbot ce4969698b 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-19 05:55:54 +00:00
semantic-release-bot 3c408e444b 🔖 chore(release): v1.113.3 [skip ci]
### [Version&nbsp;1.113.3](https://github.com/lobehub/lobe-chat/compare/v1.113.2...v1.113.3)
<sup>Released on **2025-08-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Support Grok thinking models in AiHubMix, The 'stream_options' parameter is only allowed when 'stream' is enabled.

<br/>

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

#### What's fixed

* **misc**: Support Grok thinking models in AiHubMix, closes [#8713](https://github.com/lobehub/lobe-chat/issues/8713) ([ffa9b1b](https://github.com/lobehub/lobe-chat/commit/ffa9b1b))
* **misc**: The 'stream_options' parameter is only allowed when 'stream' is enabled, closes [#8778](https://github.com/lobehub/lobe-chat/issues/8778) ([fcc32d5](https://github.com/lobehub/lobe-chat/commit/fcc32d5))

</details>

<div align="right">

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

</div>
2025-08-19 05:54:48 +00:00
sxjeru ffa9b1b909 🐛 fix: Support Grok thinking models in AiHubMix (#8713)
* 🐛 fix: 添加对 xai 模型的支持到 baseRuntimeMap 和 LobeAiHubMixAI

* 添加 GLM-4.5V 视觉语言模型到 siliconcloud

* update Qwen

* fix lint

* 更新 Qwen VL Plus 模型配置,调整部署名称和上下文窗口令牌数,优化定价策略

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-08-19 13:38:04 +08:00
sxjeru fcc32d5e0a 🐛 fix: The 'stream_options' parameter is only allowed when 'stream' is enabled (#8778)
*  feat: add support for service tier flex in OpenAI model handling

* 移除 responsesAPIModels 中的 gpt-5 和 gpt-5-mini 模型

* update groq
2025-08-19 13:37:44 +08:00
Arvin Xu 07a9b341b4 🔨 chore: reducing the tracing scope (#8846)
* fix workflow

* fix

* Update discover.ts
2025-08-19 13:37:24 +08:00
lobehubbot b4b00f7c70 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-18 09:21:57 +00:00
semantic-release-bot 78a6483630 🔖 chore(release): v1.113.2 [skip ci]
### [Version&nbsp;1.113.2](https://github.com/lobehub/lobe-chat/compare/v1.113.1...v1.113.2)
<sup>Released on **2025-08-18**</sup>

#### 🐛 Bug Fixes

- **mcp**: Use customParams for environment settings fallback.

<br/>

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

#### What's fixed

* **mcp**: Use customParams for environment settings fallback, closes [#8814](https://github.com/lobehub/lobe-chat/issues/8814) ([ab043d4](https://github.com/lobehub/lobe-chat/commit/ab043d4))

</details>

<div align="right">

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

</div>
2025-08-18 09:21:01 +00:00
Coooolfan ab043d45f2 🐛 fix(mcp): use customParams for environment settings fallback (#8814) 2025-08-18 17:06:03 +08:00
lobehubbot 1b8b86d8a5 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-18 03:09:08 +00:00
Shinji-Li 927055871b 📝 docs: change the default modal provider list rank (#8833)
docs: change the default modal provider list rank
2025-08-18 10:53:50 +08:00
lobehubbot 7562bf4acf 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-17 11:16:47 +00:00
semantic-release-bot 2564ebd6d5 🔖 chore(release): v1.113.1 [skip ci]
### [Version&nbsp;1.113.1](https://github.com/lobehub/lobe-chat/compare/v1.113.0...v1.113.1)
<sup>Released on **2025-08-17**</sup>

#### 🐛 Bug Fixes

- **db**: Desktop local db can't vectorization.

<br/>

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

#### What's fixed

* **db**: Desktop local db can't vectorization, closes [#8830](https://github.com/lobehub/lobe-chat/issues/8830) ([a00fd9d](https://github.com/lobehub/lobe-chat/commit/a00fd9d))

</details>

<div align="right">

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

</div>
2025-08-17 11:15:51 +00:00
YuTengjing a00fd9d236 🐛 fix(db): desktop local db can't vectorization (#8830) 2025-08-17 19:01:02 +08:00
renovate[bot] 24a5e0d419 Update dependency @anthropic-ai/sdk to ^0.60.0 (#8817)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-17 18:28:00 +08:00
lobehubbot a7b9bcd78f 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-17 06:06:15 +00:00
semantic-release-bot 5689dd8656 🔖 chore(release): v1.113.0 [skip ci]
## [Version&nbsp;1.113.0](https://github.com/lobehub/lobe-chat/compare/v1.112.5...v1.113.0)
<sup>Released on **2025-08-17**</sup>

####  Features

- **provider**: Add BFL provider support for image generation.

<br/>

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

#### What's improved

* **provider**: Add BFL provider support for image generation, closes [#8806](https://github.com/lobehub/lobe-chat/issues/8806) ([519e03e](https://github.com/lobehub/lobe-chat/commit/519e03e))

</details>

<div align="right">

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

</div>
2025-08-17 06:05:20 +00:00
YuTengjing 519e03e87a feat(provider): add BFL provider support for image generation (#8806) 2025-08-17 13:50:05 +08:00
lobehubbot 6ac6ca59da 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-17 05:38:19 +00:00
semantic-release-bot 4d164ae083 🔖 chore(release): v1.112.5 [skip ci]
### [Version&nbsp;1.112.5](https://github.com/lobehub/lobe-chat/compare/v1.112.4...v1.112.5)
<sup>Released on **2025-08-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Improve mcp tracing with user config.

<br/>

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

#### What's fixed

* **misc**: Improve mcp tracing with user config, closes [#8827](https://github.com/lobehub/lobe-chat/issues/8827) ([5cab2ee](https://github.com/lobehub/lobe-chat/commit/5cab2ee))

</details>

<div align="right">

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

</div>
2025-08-17 05:37:26 +00:00
Arvin Xu 5cab2ee5b5 🐛 fix: improve mcp tracing with user config (#8827)
* improve plugin result report

* improve plugin result report
2025-08-17 13:22:36 +08:00
lobehubbot 65dddfa47f 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-16 16:26:17 +00:00
semantic-release-bot dfa2a2c279 🔖 chore(release): v1.112.4 [skip ci]
### [Version&nbsp;1.112.4](https://github.com/lobehub/lobe-chat/compare/v1.112.3...v1.112.4)
<sup>Released on **2025-08-16**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor prompts folder to the `@lobechat/prompts` pacakge.

<br/>

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

#### Code refactoring

* **misc**: Refactor prompts folder to the `@lobechat/prompts` pacakge, closes [#8810](https://github.com/lobehub/lobe-chat/issues/8810) ([d82e7bb](https://github.com/lobehub/lobe-chat/commit/d82e7bb))

</details>

<div align="right">

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

</div>
2025-08-16 16:25:24 +00:00
Arvin Xu d82e7bb9b0 ♻️ refactor: refactor prompts folder to the @lobechat/prompts pacakge (#8810)
* move prompts

* refactor prompts
2025-08-17 00:10:28 +08:00
lobehubbot 3fbbfc6d96 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-16 12:20:08 +00:00
semantic-release-bot faefe71c9a 🔖 chore(release): v1.112.3 [skip ci]
### [Version&nbsp;1.112.3](https://github.com/lobehub/lobe-chat/compare/v1.112.2...v1.112.3)
<sup>Released on **2025-08-16**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor const folder to a new package.

<br/>

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

#### Code refactoring

* **misc**: Refactor const folder to a new package, closes [#8756](https://github.com/lobehub/lobe-chat/issues/8756) ([30a4734](https://github.com/lobehub/lobe-chat/commit/30a4734))

</details>

<div align="right">

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

</div>
2025-08-16 12:19:14 +00:00
Arvin Xu 30a4734577 ♻️ refactor: refactor const folder to a new package (#8756)
* refactor

* update

* refactor
2025-08-16 20:04:21 +08:00
lobehubbot 9e7bea6d88 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-16 10:50:25 +00:00
semantic-release-bot d0ceab9dd6 🔖 chore(release): v1.112.2 [skip ci]
### [Version&nbsp;1.112.2](https://github.com/lobehub/lobe-chat/compare/v1.112.1...v1.112.2)
<sup>Released on **2025-08-16**</sup>

#### ♻ Code Refactoring

- **misc**: 重构 ArgsInput 组件.

<br/>

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

#### Code refactoring

* **misc**: 重构 ArgsInput 组件, closes [#8765](https://github.com/lobehub/lobe-chat/issues/8765) ([0905559](https://github.com/lobehub/lobe-chat/commit/0905559))

</details>

<div align="right">

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

</div>
2025-08-16 10:49:27 +00:00
Coooolfan 09055595e4 ♻️ refactor: 重构ArgsInput组件 (#8765)
* ♻️ refactor(utils): extract args parsing logic from ArgsInput component
- Extract parseArgs and argsToString functions to src/utils/args.ts
- Add comprehensive test suite with 19 test cases covering edge cases
- Fix escaped quote handling in parseArgs function
- Replace String.replace() with String.replaceAll() for better readability
- Improve code reusability and maintainability following project best practices

* 📝 docs(utils): improve JSDoc comments and clean up redundant comments
- Add comprehensive JSDoc with @param and @returns for args functions
- Translate inline comments to English for consistency
- Remove redundant comments in ArgsInput component
- Keep only essential comments and improve code clarity
- Improve code documentation quality and IDE support

* ♻️ refactor(ArgsInput): completely redesign as array editor
- Replace single input with individual argument inputs
- Add visual array structure with add/remove buttons
- Support keyboard shortcuts (Enter to add, Backspace to delete)
- Improve UX with proper array operations and indexing
- Remove dependency on args parsing utils for better performance

* 🌐 i18n: add ArgsInput internationalization support
- Add ArgsInput translations for en-US and zh-CN
- Add TypeScript type definitions for new translation keys
- Support dynamic placeholder with argument index
- Fix TypeScript error for missing translation keys
2025-08-16 18:34:14 +08:00
renovate[bot] 86a28d9615 Update dependency dbdocs to ^0.16.0 (#7572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-16 18:31:57 +08:00
lobehubbot 164c8b344e 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-16 10:13:42 +00:00
semantic-release-bot 9b354af18c 🔖 chore(release): v1.112.1 [skip ci]
### [Version&nbsp;1.112.1](https://github.com/lobehub/lobe-chat/compare/v1.112.0...v1.112.1)
<sup>Released on **2025-08-16**</sup>

#### 💄 Styles

- **misc**: Add Imagen 4 GA models, style improve auth sign in box loading.

<br/>

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

#### Styles

* **misc**: Add Imagen 4 GA models, closes [#8799](https://github.com/lobehub/lobe-chat/issues/8799) ([2e9ad20](https://github.com/lobehub/lobe-chat/commit/2e9ad20))
* **misc**: Style improve auth sign in box loading, closes [#8805](https://github.com/lobehub/lobe-chat/issues/8805) ([62f5a1b](https://github.com/lobehub/lobe-chat/commit/62f5a1b))

</details>

<div align="right">

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

</div>
2025-08-16 10:12:44 +00:00
Arvin Xu 62f5a1b93c 💄 style: style improve auth sign in box loading (#8805) 2025-08-16 17:57:44 +08:00
afon 2e9ad20675 💄 style: add Imagen 4 GA models (#8799)
* add Google Imagen 4 GA models

* address review comments
2025-08-16 17:56:34 +08:00
lobehubbot 15e15e84ca 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-15 04:16:49 +00:00
semantic-release-bot 05cb6bb7de 🔖 chore(release): v1.112.0 [skip ci]
## [Version&nbsp;1.112.0](https://github.com/lobehub/lobe-chat/compare/v1.111.12...v1.112.0)
<sup>Released on **2025-08-15**</sup>

####  Features

- **feature-flags**: Add ai_image flag to control AI painting UI.

<br/>

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

#### What's improved

* **feature-flags**: Add ai_image flag to control AI painting UI, closes [#8797](https://github.com/lobehub/lobe-chat/issues/8797) ([a1c66c8](https://github.com/lobehub/lobe-chat/commit/a1c66c8))

</details>

<div align="right">

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

</div>
2025-08-15 04:15:54 +00:00
YuTengjing a1c66c81fc feat(feature-flags): add ai_image flag to control AI painting UI (#8797) 2025-08-15 12:01:18 +08:00
lobehubbot c1ddb6fa23 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-14 12:31:11 +00:00
semantic-release-bot 439fb6eb9d 🔖 chore(release): v1.111.12 [skip ci]
### [Version&nbsp;1.111.12](https://github.com/lobehub/lobe-chat/compare/v1.111.11...v1.111.12)
<sup>Released on **2025-08-14**</sup>

<br/>

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

</details>

<div align="right">

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

</div>
2025-08-14 12:30:08 +00:00
YuTengjing 27d48e89e9 👷 build: optimize claude action workflow and add vscode settings (#8796) 2025-08-14 20:14:54 +08:00
YuTengjing 54b08fd139 🐛 chore: upload image generated by ai painting failed (#8792) 2025-08-14 14:14:55 +08:00
huangkairan 8e2d47d595 🐛 chore: update gpt-5, gpt-5-nano imageOutput (#8782) 2025-08-14 11:50:31 +08:00
lobehubbot 75bde54d95 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-13 10:12:00 +00:00
semantic-release-bot b69e75cfca 🔖 chore(release): v1.111.11 [skip ci]
### [Version&nbsp;1.111.11](https://github.com/lobehub/lobe-chat/compare/v1.111.10...v1.111.11)
<sup>Released on **2025-08-13**</sup>

#### 💄 Styles

- **misc**: Update Mistral AI models & Optimize many model providers fetching.

<br/>

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

#### Styles

* **misc**: Update Mistral AI models & Optimize many model providers fetching, closes [#8644](https://github.com/lobehub/lobe-chat/issues/8644) ([1d466e5](https://github.com/lobehub/lobe-chat/commit/1d466e5))

</details>

<div align="right">

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

</div>
2025-08-13 10:10:57 +00:00
sxjeru 1d466e514f 💄 style: Update Mistral AI models & Optimize many model providers fetching (#8644)
*  feat(models): 添加新的模型和更新现有模型的描述与定价

*  feat(models): 添加 Kimi K2 Turbo 模型及其定价信息

*  feat(models): 添加 Qwen3 Coder 30B A3B Instruct 模型及其定价信息,更新模型解析设置

*  feat(models): 更新 Mistral 模型的上下文窗口和显示名称,添加 Magistral Medium 模型,调整 Codestral 模型的显示名称和发布日期

*  feat(types): 添加模型设置属性到 AiFullModelCard 和 ChatModelCard 接口

* Revert " feat(types): 添加模型设置属性到 AiFullModelCard 和 ChatModelCard 接口"

This reverts commit fccd6acc6f.

*  feat(mistral): 添加禁用浏览器请求设置;优化思维块内容处理逻辑

*  feat(modelProviders): 优化模型标签添加;优化 AiHubMix 模型抓取处理逻辑

* Update index.ts

*  feat(modelParse): 优化模型查找逻辑以支持本地特定提供商模型配置

* fix

*  feat(createRuntime): 支持函数式模型配置并优化模型显示名称处理,支持模型名称获取

* fix test

*  feat(aihubmix): 更新模型配置,增加新模型并优化现有模型描述和能力

*  feat: 更新多个模型配置抓取逻辑,优化模型处理逻辑,增加 releasedAt 字段处理,更新快照

*  feat: 更新 GithubModelCard 接口,优化模型处理逻辑,增加模型描述和能力处理

* fix test

*  feat: 更新 aihubmix 模型配置,增加推理能力和新模型,优化描述及能力处理;更新 handlePayload 函数以简化代码结构;添加图像模型关键词配置

*  feat: 更新 aihubmix 模型配置

* fix: 更新模型默认启用处理逻辑;使用最后一个 runtime 的 client 进行函数调用

* fix test

* feat: 为多个模型处理函数添加提供商 ID 参数

* fix test

* feat: 更新 siliconcloud 模型,添加 Step 3 多模态推理模型并修改发布日期

* fix: Anthropic model fetch

* fix: 移除 zhipu 部分模型 search 能力

* update groq

* update aihubmix

* feat: 更新 Qwen 模型,调整上下文窗口令牌数量并添加新模型 Qwen Flash

* update openai

* update groq

*  feat(pricing): Update pricing structure for AI models to use tiered and fixed units

* update groq

* fix lint

* update

* add GLM-4.5V chat model and update vision keywords

* update v0
2025-08-13 17:55:42 +08:00
YuTengjing a51b33f154 📝 docs: fix eslint irregular whitespace issues (#8777) 2025-08-12 23:30:40 +08:00
YuTengjing 485e6cf47e chore: update some models pricing (#8764) 2025-08-12 16:18:37 +08:00
lobehubbot b0d59f8b1b 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-12 04:48:21 +00:00
semantic-release-bot 8ceb25f8c2 🔖 chore(release): v1.111.10 [skip ci]
### [Version&nbsp;1.111.10](https://github.com/lobehub/lobe-chat/compare/v1.111.9...v1.111.10)
<sup>Released on **2025-08-12**</sup>

#### 💄 Styles

- **misc**: Adjust near bottom size on thinking scroll.

<br/>

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

#### Styles

* **misc**: Adjust near bottom size on thinking scroll, closes [#8772](https://github.com/lobehub/lobe-chat/issues/8772) ([1fae490](https://github.com/lobehub/lobe-chat/commit/1fae490))

</details>

<div align="right">

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

</div>
2025-08-12 04:47:26 +00:00
CanisMinor 1fae49042d 💄 style: Adjust near bottom size on thinking scroll (#8772) 2025-08-12 12:32:15 +08:00
lobehubbot 96ae8034fb 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-12 02:10:30 +00:00
semantic-release-bot b3120167ce 🔖 chore(release): v1.111.9 [skip ci]
### [Version&nbsp;1.111.9](https://github.com/lobehub/lobe-chat/compare/v1.111.8...v1.111.9)
<sup>Released on **2025-08-12**</sup>

#### 💄 Styles

- **misc**: Improve Gemini error display with promptFeedback.

<br/>

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

#### Styles

* **misc**: Improve Gemini error display with promptFeedback, closes [#8707](https://github.com/lobehub/lobe-chat/issues/8707) ([51ad399](https://github.com/lobehub/lobe-chat/commit/51ad399))

</details>

<div align="right">

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

</div>
2025-08-12 02:09:35 +00:00
sxjeru 51ad3998e4 💄 style: improve Gemini error display with promptFeedback (#8707)
* 增加对带有阻止原因(PROHIBITED_CONTENT)的 promptFeedback 的处理

* update

* 增加对 Google AI 阻止原因的本地化处理,更新错误消息以提供更友好的用户反馈
2025-08-12 09:52:05 +08:00
lobehubbot 6435935f10 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-11 18:16:03 +00:00
semantic-release-bot 45f71478c4 🔖 chore(release): v1.111.8 [skip ci]
### [Version&nbsp;1.111.8](https://github.com/lobehub/lobe-chat/compare/v1.111.7...v1.111.8)
<sup>Released on **2025-08-11**</sup>

#### 💄 Styles

- **misc**: Support new GPT-5 Verbosity params.

<br/>

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

#### Styles

* **misc**: Support new GPT-5 Verbosity params, closes [#8715](https://github.com/lobehub/lobe-chat/issues/8715) ([0a724aa](https://github.com/lobehub/lobe-chat/commit/0a724aa))

</details>

<div align="right">

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

</div>
2025-08-11 18:15:08 +00:00
sxjeru 0a724aae32 💄 style: Support new GPT-5 Verbosity params (#8715)
*  feat: add GPT-5 reasoning effort slider and update related configurations

*  feat: 添加 GPT-5 推理强度和文本详细程度控制选项

* fix lint

* fix

* i18n
2025-08-12 01:59:59 +08:00
lobehubbot 1cf4355e94 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-11 16:35:43 +00:00
semantic-release-bot 74a702a5ff 🔖 chore(release): v1.111.7 [skip ci]
### [Version&nbsp;1.111.7](https://github.com/lobehub/lobe-chat/compare/v1.111.6...v1.111.7)
<sup>Released on **2025-08-11**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor model-runtime to a seperated package.

<br/>

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

#### Code refactoring

* **misc**: Refactor model-runtime to a seperated package, closes [#8763](https://github.com/lobehub/lobe-chat/issues/8763) ([e5eb7a2](https://github.com/lobehub/lobe-chat/commit/e5eb7a2))

</details>

<div align="right">

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

</div>
2025-08-11 16:34:34 +00:00
Rylan Cai 6c83807218 🔨 chore: Migrate self-hosting auth to Casdoor@v2 (#8767)
* 🔨 chore: update casdoor to v2

* 🐛 fix: enable signin

* 🐛 fix: webhook hostname diag failed
2025-08-12 00:19:29 +08:00
Arvin Xu e5eb7a280d ♻️ refactor: refactor model-runtime to a seperated package (#8763)
* move model-runtime

* refactor import from @/libs/model-runtime to @lobechat/model-runtime

* move deps

* refactor types
2025-08-12 00:08:52 +08:00
renovate[bot] a21c05bf64 Update dependency @anthropic-ai/sdk to ^0.59.0 (#8735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 13:51:47 +08:00
lobehubbot 1e61e79034 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-11 04:07:12 +00:00
semantic-release-bot 4556bdf1c2 🔖 chore(release): v1.111.6 [skip ci]
### [Version&nbsp;1.111.6](https://github.com/lobehub/lobe-chat/compare/v1.111.5...v1.111.6)
<sup>Released on **2025-08-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Solve the cache problem caused by the same dom id when sharing pictures.

<br/>

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

#### What's fixed

* **misc**: Solve the cache problem caused by the same dom id when sharing pictures, closes [#8704](https://github.com/lobehub/lobe-chat/issues/8704) ([68aad95](https://github.com/lobehub/lobe-chat/commit/68aad95))

</details>

<div align="right">

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

</div>
2025-08-11 04:06:14 +00:00
Arvin Xu dbc4b10837 Add Claude Code GitHub Workflow (#8753)
* Claude PR Assistant workflow

* Claude Code Review workflow
2025-08-11 11:51:04 +08:00
renovate[bot] 0f10efcb5d Update pnpm to v10.14.0 (#8739)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 11:48:47 +08:00
Shinji-Li 68aad95c04 🐛 fix: Solve the cache problem caused by the same dom id when sharing pictures (#8704) 2025-08-11 11:22:24 +08:00
lobehubbot 7b12e54646 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-10 16:22:31 +00:00
semantic-release-bot e10a433610 🔖 chore(release): v1.111.5 [skip ci]
### [Version&nbsp;1.111.5](https://github.com/lobehub/lobe-chat/compare/v1.111.4...v1.111.5)
<sup>Released on **2025-08-10**</sup>

#### 💄 Styles

- **misc**: Add mask effect to thinking scroll, update i18n.

<br/>

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

#### Styles

* **misc**: Add mask effect to thinking scroll, closes [#8729](https://github.com/lobehub/lobe-chat/issues/8729) ([4cefafd](https://github.com/lobehub/lobe-chat/commit/4cefafd))
* **misc**: Update i18n, closes [#8734](https://github.com/lobehub/lobe-chat/issues/8734) ([327a564](https://github.com/lobehub/lobe-chat/commit/327a564))

</details>

<div align="right">

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

</div>
2025-08-10 16:21:23 +00:00
LobeHub Bot 327a56474e 💄 style: update i18n (#8734)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-08-11 00:05:59 +08:00
renovate[bot] abb93a6f79 Update dependency lucide-react to ^0.539.0 (#8736)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 00:05:46 +08:00
renovate[bot] d861bb0421 Update dependency react-scan to ^0.4.0 (#8738)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 00:05:33 +08:00
Arvin Xu 7f00b530fa 👷 build: pin swr@2.3.4 to fix next build (#8746) 2025-08-11 00:02:49 +08:00
CanisMinor 4cefafd5c5 💄 style: Add mask effect to thinking scroll (#8729) 2025-08-09 18:13:56 +08:00
lobehubbot 135c9bea7f 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-09 06:23:28 +00:00
semantic-release-bot 862ab713e1 🔖 chore(release): v1.111.4 [skip ci]
### [Version&nbsp;1.111.4](https://github.com/lobehub/lobe-chat/compare/v1.111.3...v1.111.4)
<sup>Released on **2025-08-09**</sup>

#### 🐛 Bug Fixes

- **pricing**: Adjust cachedInput values for GPT-5 models.

<br/>

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

#### What's fixed

* **pricing**: Adjust cachedInput values for GPT-5 models, closes [#8723](https://github.com/lobehub/lobe-chat/issues/8723) ([652bf08](https://github.com/lobehub/lobe-chat/commit/652bf08))

</details>

<div align="right">

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

</div>
2025-08-09 06:22:33 +00:00
Morax e1424ad797 📝 docs: add info callout for desktop client access in Cloudflare R2 configuration (#8728) 2025-08-09 14:07:28 +08:00
bbbugg 652bf08ab8 🐛 fix(pricing): adjust cachedInput values for GPT-5 models (#8723) 2025-08-09 14:01:14 +08:00
lobehubbot 025d00202c 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-09 05:10:04 +00:00
semantic-release-bot 04db9c59ff 🔖 chore(release): v1.111.3 [skip ci]
### [Version&nbsp;1.111.3](https://github.com/lobehub/lobe-chat/compare/v1.111.2...v1.111.3)
<sup>Released on **2025-08-09**</sup>

#### 💄 Styles

- **misc**: Improve thinking auto scroll style, Support session switch shortcut key, update i18n.

<br/>

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

#### Styles

* **misc**: Improve thinking auto scroll style, closes [#8719](https://github.com/lobehub/lobe-chat/issues/8719) ([acec55f](https://github.com/lobehub/lobe-chat/commit/acec55f))
* **misc**: Support session switch shortcut key, closes [#8626](https://github.com/lobehub/lobe-chat/issues/8626) ([efc7eaf](https://github.com/lobehub/lobe-chat/commit/efc7eaf))
* **misc**: Update i18n, closes [#8725](https://github.com/lobehub/lobe-chat/issues/8725) ([d9642fc](https://github.com/lobehub/lobe-chat/commit/d9642fc))

</details>

<div align="right">

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

</div>
2025-08-09 05:09:02 +00:00
LobeHub Bot d9642fc6c5 💄 style: update i18n (#8725)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-08-09 12:54:00 +08:00
𝑾𝒖𝒙𝒉 efc7eaf537 💄 style: Support session switch shortcut key (#8626)
*  feat: Support session switch shortcut key

Duplicate of https://github.com/lobehub/lobe-chat/pull/8366

* chore: update
2025-08-09 12:43:28 +08:00
Arvin Xu acec55f605 💄 style: improve thinking auto scroll style (#8719)
* improve thinking auto scroll style

* improve style
2025-08-09 12:39:05 +08:00
lobehubbot e96750cff3 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-08 16:37:24 +00:00
semantic-release-bot 4eee917d45 🔖 chore(release): v1.111.2 [skip ci]
### [Version&nbsp;1.111.2](https://github.com/lobehub/lobe-chat/compare/v1.111.1...v1.111.2)
<sup>Released on **2025-08-08**</sup>

#### ♻ Code Refactoring

- **pricing**: Introduce new pricing system.

<br/>

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

#### Code refactoring

* **pricing**: Introduce new pricing system, closes [#8681](https://github.com/lobehub/lobe-chat/issues/8681) ([96b7508](https://github.com/lobehub/lobe-chat/commit/96b7508))

</details>

<div align="right">

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

</div>
2025-08-08 16:36:30 +00:00
YuTengjing 96b7508e01 refactor(pricing): Introduce new pricing system (#8681) 2025-08-09 00:21:07 +08:00
lobehubbot f44bf9180b 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-08 16:08:29 +00:00
semantic-release-bot 18eee1f75d 🔖 chore(release): v1.111.1 [skip ci]
### [Version&nbsp;1.111.1](https://github.com/lobehub/lobe-chat/compare/v1.111.0...v1.111.1)
<sup>Released on **2025-08-08**</sup>

#### 💄 Styles

- **misc**: Add descriptions for the FLUX.1 Krea and Qwen Image.

<br/>

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

#### Styles

* **misc**: Add descriptions for the FLUX.1 Krea and Qwen Image, closes [#8678](https://github.com/lobehub/lobe-chat/issues/8678) ([769fda0](https://github.com/lobehub/lobe-chat/commit/769fda0))

</details>

<div align="right">

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

</div>
2025-08-08 16:07:33 +00:00
ExDragine 769fda060d 💄 style: Add descriptions for the FLUX.1 Krea and Qwen Image (#8678) 2025-08-08 23:52:01 +08:00
lobehubbot 8a88bd099b 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-08 03:00:57 +00:00
semantic-release-bot 6b0a411caf 🔖 chore(release): v1.111.0 [skip ci]
## [Version&nbsp;1.111.0](https://github.com/lobehub/lobe-chat/compare/v1.110.7...v1.111.0)
<sup>Released on **2025-08-08**</sup>

####  Features

- **misc**: Add GPT-5 series models.

<br/>

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

#### What's improved

* **misc**: Add GPT-5 series models, closes [#8711](https://github.com/lobehub/lobe-chat/issues/8711) ([600c29b](https://github.com/lobehub/lobe-chat/commit/600c29b))

</details>

<div align="right">

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

</div>
2025-08-08 03:00:02 +00:00
Arvin Xu 600c29b13f feat: add GPT-5 series models (#8711)
* add gpt 5

* fix tests

* fix tests

* update models

* fix tests

* add reasoningEffort

* make gpt-5 response api

* add models

* fix tests
2025-08-08 10:44:31 +08:00
lobehubbot 2b93efff5a 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-07 19:05:36 +00:00
semantic-release-bot 05b99d6c97 🔖 chore(release): v1.110.7 [skip ci]
### [Version&nbsp;1.110.7](https://github.com/lobehub/lobe-chat/compare/v1.110.6...v1.110.7)
<sup>Released on **2025-08-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Missing languages it-IT, pl-PL, nl-NL.

<br/>

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

#### What's fixed

* **misc**: Missing languages it-IT, pl-PL, nl-NL, closes [#8710](https://github.com/lobehub/lobe-chat/issues/8710) ([b46fa8e](https://github.com/lobehub/lobe-chat/commit/b46fa8e))

</details>

<div align="right">

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

</div>
2025-08-07 19:04:43 +00:00
Arvin Xu b46fa8ee99 🐛 fix: missing languages it-IT, pl-PL, nl-NL (#8710)
* fix: missing languages it-IT, pl-PL, nl-NL

* fix tests

---------

Co-authored-by: Daniele Sarnari <daniele.sarnari@beliven.com>
2025-08-08 02:49:14 +08:00
lobehubbot b764c4258d 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-07 17:31:16 +00:00
semantic-release-bot 7b726f2846 🔖 chore(release): v1.110.6 [skip ci]
### [Version&nbsp;1.110.6](https://github.com/lobehub/lobe-chat/compare/v1.110.5...v1.110.6)
<sup>Released on **2025-08-07**</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-08-07 17:30:05 +00:00
Arvin Xu ff94ef0fea ️ perf: support no animation mode (#8705)
* support no animation mode

* support update animation

* clean code

* fix lint

* fix tests
2025-08-08 01:14:10 +08:00
renovate[bot] dfe300622e Update dependency electron to ^37.2.0 (#8415)
* Update dependency electron to ~37.2.0

* Update package.json

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-08-07 14:15:30 +08:00
renovate[bot] 2b4d657f28 Update dependency tsx to ^4.20.0 (#8246)
* Update dependency tsx to ~4.20.0

* Update package.json

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-08-07 13:56:37 +08:00
renovate[bot] 47227cc486 Update dependency i18next to v25 (#7485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 13:36:09 +08:00
renovate[bot] 0ee89ff96f Update dependency @auth/core to ^0.40.0 (#7569)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 13:31:38 +08:00
renovate[bot] 0b37014c95 Update dependency @t3-oss/env-nextjs to ^0.13.0 (#7571)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 13:31:06 +08:00
lobehubbot 6cc49259c2 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-07 05:01:55 +00:00
semantic-release-bot 8e8505702e 🔖 chore(release): v1.110.5 [skip ci]
### [Version&nbsp;1.110.5](https://github.com/lobehub/lobe-chat/compare/v1.110.4...v1.110.5)
<sup>Released on **2025-08-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Optimize Gemini error message display & Filter empty messages.

<br/>

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

#### What's fixed

* **misc**: Optimize Gemini error message display & Filter empty messages, closes [#8489](https://github.com/lobehub/lobe-chat/issues/8489) ([5b409cc](https://github.com/lobehub/lobe-chat/commit/5b409cc))

</details>

<div align="right">

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

</div>
2025-08-07 05:01:00 +00:00
sxjeru 5b409ccfa2 🐛 fix: Optimize Gemini error message display & Filter empty messages (#8489)
* Update index.ts

* 修剪错误消息换行符

* 筛除空消息

* 修复错误类型判断逻辑以正确处理无效API密钥错误

* fix

* fix test

* fix test

* fix

* 提取 Google 错误解析功能并添加相关单元测试
2025-08-07 12:45:29 +08:00
lobehubbot b525728da9 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-06 17:57:54 +00:00
semantic-release-bot 76d8d502e9 🔖 chore(release): v1.110.4 [skip ci]
### [Version&nbsp;1.110.4](https://github.com/lobehub/lobe-chat/compare/v1.110.3...v1.110.4)
<sup>Released on **2025-08-06**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor trace type.

<br/>

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

#### Code refactoring

* **misc**: Refactor trace type, closes [#8699](https://github.com/lobehub/lobe-chat/issues/8699) ([4e71af7](https://github.com/lobehub/lobe-chat/commit/4e71af7))

</details>

<div align="right">

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

</div>
2025-08-06 17:57:00 +00:00
Arvin Xu 4e71af77f5 ♻️ refactor: refactor trace type (#8699)
* refactor trace type

* refactor lobechat type

* refactor types
2025-08-07 01:41:22 +08:00
lobehubbot 7abeee2416 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-06 16:51:22 +00:00
semantic-release-bot f7effe92a2 🔖 chore(release): v1.110.3 [skip ci]
### [Version&nbsp;1.110.3](https://github.com/lobehub/lobe-chat/compare/v1.110.2...v1.110.3)
<sup>Released on **2025-08-06**</sup>

#### 💄 Styles

- **misc**: Fix provider setting page hydration error.

<br/>

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

#### Styles

* **misc**: Fix provider setting page hydration error, closes [#8695](https://github.com/lobehub/lobe-chat/issues/8695) ([88e7d2a](https://github.com/lobehub/lobe-chat/commit/88e7d2a))

</details>

<div align="right">

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

</div>
2025-08-06 16:50:20 +00:00
Arvin Xu 88e7d2ada1 💄 style: fix provider setting page hydration error (#8695)
* fix layout

goback

尝试开启生产环境react debug 模式

try to fix scroll issue

try to log settings layout pathname

try skip path

Revert "尝试移除 modal"

This reverts commit 7ffac36dcb680d5a9fdda6c675ad0adb66ed13d2.

remove debug

try to fix again

use InnerLink

fix

add InnerLink.tsx

add debug

* clean code

* fix modal cancel issue
2025-08-07 00:34:36 +08:00
huangkairan 8c0101e67c 🔨 chore: fix MenuCtr test type error (#8696) 2025-08-06 19:41:47 +08:00
huangkairan d796b85ee8 🔨 chore: update author github url (#8694) 2025-08-06 17:44:24 +08:00
lobehubbot 641dfca67c 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-06 09:08:52 +00:00
semantic-release-bot aa126fe06f 🔖 chore(release): v1.110.2 [skip ci]
### [Version&nbsp;1.110.2](https://github.com/lobehub/lobe-chat/compare/v1.110.1...v1.110.2)
<sup>Released on **2025-08-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix fail to fetch aihubmix model on client mode.

#### 💄 Styles

- **misc**: Add context menu for desktop, support different model tabs.

<br/>

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

#### What's fixed

* **misc**: Fix fail to fetch aihubmix model on client mode, closes [#8689](https://github.com/lobehub/lobe-chat/issues/8689) ([3dcc5da](https://github.com/lobehub/lobe-chat/commit/3dcc5da))

#### Styles

* **misc**: Add context menu for desktop, closes [#8691](https://github.com/lobehub/lobe-chat/issues/8691) ([0b30d05](https://github.com/lobehub/lobe-chat/commit/0b30d05))
* **misc**: Support different model tabs, closes [#8693](https://github.com/lobehub/lobe-chat/issues/8693) ([6d531d7](https://github.com/lobehub/lobe-chat/commit/6d531d7))

</details>

<div align="right">

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

</div>
2025-08-06 09:07:52 +00:00
Arvin Xu 3dcc5da11a 🐛 fix: fix fail to fetch aihubmix model on client mode (#8689)
* fix dockerfile

* update gitignore

* refactor some @/types to @lobechat/types

* improve apikey url

* fix aihubmix provider
2025-08-06 16:52:21 +08:00
Arvin Xu 6d531d7cc1 💄 style: support different model tabs (#8693) 2025-08-06 16:49:12 +08:00
Arvin Xu 0b30d05aaa 💄 style: add context menu for desktop (#8691)
* update state

* clean code

* improve menu
2025-08-06 15:39:03 +08:00
lobehubbot c13e11ce3f 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-06 07:10:03 +00:00
semantic-release-bot 8777a4e42a 🔖 chore(release): v1.110.1 [skip ci]
### [Version&nbsp;1.110.1](https://github.com/lobehub/lobe-chat/compare/v1.110.0...v1.110.1)
<sup>Released on **2025-08-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix remote avatar broken in desktop again.

<br/>

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

#### What's fixed

* **misc**: Fix remote avatar broken in desktop again, closes [#8688](https://github.com/lobehub/lobe-chat/issues/8688) ([41b4363](https://github.com/lobehub/lobe-chat/commit/41b4363))

</details>

<div align="right">

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

</div>
2025-08-06 07:09:09 +00:00
Bryan 41b4363802 🐛 fix: fix remote avatar broken in desktop again (#8688) 2025-08-06 14:53:44 +08:00
lobehubbot d34ba6496e 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-06 05:40:28 +00:00
semantic-release-bot 6bdc75781f 🔖 chore(release): v1.110.0 [skip ci]
## [Version&nbsp;1.110.0](https://github.com/lobehub/lobe-chat/compare/v1.109.1...v1.110.0)
<sup>Released on **2025-08-06**</sup>

####  Features

- **misc**: Support mcp plugin install from web.

<br/>

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

#### What's improved

* **misc**: Support mcp plugin install from web, closes [#8680](https://github.com/lobehub/lobe-chat/issues/8680) ([022d858](https://github.com/lobehub/lobe-chat/commit/022d858))

</details>

<div align="right">

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

</div>
2025-08-06 05:39:32 +00:00
Arvin Xu 022d858cbc feat: support mcp plugin install from web (#8680)
* refactor modal

* improve mcp plugin display

* fix marketplace modal

* refactor install modal

* support official install

* fix types

* clean

* clean

* clean

* fix types

* fix protocol condition

* update state
2025-08-06 13:23:27 +08:00
lobehubbot f7302b5886 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-06 02:31:31 +00:00
semantic-release-bot 2077251a16 🔖 chore(release): v1.109.1 [skip ci]
### [Version&nbsp;1.109.1](https://github.com/lobehub/lobe-chat/compare/v1.109.0...v1.109.1)
<sup>Released on **2025-08-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix ollama model output without thinking.

#### 💄 Styles

- **misc**: Add Claude Opus 4.1 model, update i18n.

<br/>

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

#### What's fixed

* **misc**: Fix ollama model output without thinking, closes [#8686](https://github.com/lobehub/lobe-chat/issues/8686) ([d95c7f4](https://github.com/lobehub/lobe-chat/commit/d95c7f4))

#### Styles

* **misc**: Add Claude Opus 4.1 model, closes [#8683](https://github.com/lobehub/lobe-chat/issues/8683) ([ceb5289](https://github.com/lobehub/lobe-chat/commit/ceb5289))
* **misc**: Update i18n, closes [#8684](https://github.com/lobehub/lobe-chat/issues/8684) ([926fa9a](https://github.com/lobehub/lobe-chat/commit/926fa9a))

</details>

<div align="right">

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

</div>
2025-08-06 02:30:32 +00:00
Arvin Xu d95c7f4142 🐛 fix: fix ollama model output without thinking (#8686) 2025-08-06 10:15:13 +08:00
sxjeru ceb5289d57 💄 style: Add Claude Opus 4.1 model (#8683)
* Update anthropic.ts

* Update anthropic.ts

* Update aihubmix.ts

* fix: `temperature` and `top_p` cannot both be specified for this model. Please use only one.

* update

* 更新 Groq 模型
2025-08-06 10:14:51 +08:00
LobeHub Bot 926fa9a1a2 💄 style: update i18n (#8684)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-08-06 10:14:28 +08:00
lobehubbot d2fba0fb7f 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-05 18:16:27 +00:00
semantic-release-bot c883ad1a13 🔖 chore(release): v1.109.0 [skip ci]
## [Version&nbsp;1.109.0](https://github.com/lobehub/lobe-chat/compare/v1.108.2...v1.109.0)
<sup>Released on **2025-08-05**</sup>

####  Features

- **misc**: Support gpt-oss in ollama provider.

<br/>

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

#### What's improved

* **misc**: Support gpt-oss in ollama provider, closes [#8682](https://github.com/lobehub/lobe-chat/issues/8682) ([6e0c386](https://github.com/lobehub/lobe-chat/commit/6e0c386))

</details>

<div align="right">

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

</div>
2025-08-05 18:15:34 +00:00
Arvin Xu 6e0c386090 feat: support gpt-oss in ollama provider (#8682)
* add gpt-oss models

* update gpt-oss models
2025-08-06 02:00:24 +08:00
lobehubbot ef599cff43 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-05 13:53:25 +00:00
semantic-release-bot 151e75ef60 🔖 chore(release): v1.108.2 [skip ci]
### [Version&nbsp;1.108.2](https://github.com/lobehub/lobe-chat/compare/v1.108.1...v1.108.2)
<sup>Released on **2025-08-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Provider config checker uses outdated API key.

<br/>

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

#### What's fixed

* **misc**: Provider config checker uses outdated API key, closes [#8666](https://github.com/lobehub/lobe-chat/issues/8666) ([3a3e73e](https://github.com/lobehub/lobe-chat/commit/3a3e73e))

</details>

<div align="right">

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

</div>
2025-08-05 13:52:28 +00:00
YuTengjing 3a3e73e419 🐛 fix: provider config checker uses outdated API key (#8666) 2025-08-05 21:36:07 +08:00
Tsuki 539932af69 🔨 chore: Add ga4 analytics provider (#8672) 2025-08-05 19:43:38 +08:00
lobehubbot de94b3ecd0 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-05 09:57:23 +00:00
semantic-release-bot 2a7e8a89e0 🔖 chore(release): v1.108.1 [skip ci]
### [Version&nbsp;1.108.1](https://github.com/lobehub/lobe-chat/compare/v1.108.0...v1.108.1)
<sup>Released on **2025-08-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix remote avatar broken in desktop.

#### 💄 Styles

- **misc**: Update mask style.

<br/>

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

#### What's fixed

* **misc**: Fix remote avatar broken in desktop, closes [#8673](https://github.com/lobehub/lobe-chat/issues/8673) ([7eae430](https://github.com/lobehub/lobe-chat/commit/7eae430))

#### Styles

* **misc**: Update mask style, closes [#8555](https://github.com/lobehub/lobe-chat/issues/8555) ([b4ac89d](https://github.com/lobehub/lobe-chat/commit/b4ac89d))

</details>

<div align="right">

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

</div>
2025-08-05 09:55:16 +00:00
Bryan 7eae4308ec 🐛 fix: fix remote avatar broken in desktop (#8673) 2025-08-05 17:39:47 +08:00
CanisMinor b4ac89d281 💄 style: Update mask style (#8555)
* 💄 style: Update mask style

* Update antdOverride.ts

* Update antdOverride.ts

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-08-05 17:28:06 +08:00
renovate[bot] 223b0c7fa9 Update dependency drizzle-orm to ^0.44.0 (#7483)
* Update dependency drizzle-orm to ^0.44.0

* refactor drizzle orm

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-08-05 17:25:27 +08:00
huangkairan 9ed268cd36 🔨 chore: clean desktop trpc log (#8677) 2025-08-05 17:19:51 +08:00
lobehubbot 7c33ccaf53 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-05 08:06:24 +00:00
semantic-release-bot 0a5ae9f1a8 🔖 chore(release): v1.108.0 [skip ci]
## [Version&nbsp;1.108.0](https://github.com/lobehub/lobe-chat/compare/v1.107.6...v1.108.0)
<sup>Released on **2025-08-05**</sup>

####  Features

- **misc**: Support 302ai provider.

<br/>

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

#### What's improved

* **misc**: Support 302ai provider, closes [#8362](https://github.com/lobehub/lobe-chat/issues/8362) ([e172055](https://github.com/lobehub/lobe-chat/commit/e172055))

</details>

<div align="right">

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

</div>
2025-08-05 08:05:31 +00:00
JI4JUN e172055a52 feat: support 302ai provider (#8362)
*  feat: support 302.AI provider

* 📝 docs: update docs of 302.AI

* 🐛 fix: error 404 of images in ai302.mdx and ai302.zh-CN.mdx

* 🐛 fix: fix issue of failing tests
2025-08-05 15:50:13 +08:00
lobehubbot db57461337 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-05 03:56:04 +00:00
semantic-release-bot 2c6df10136 🔖 chore(release): v1.107.6 [skip ci]
### [Version&nbsp;1.107.6](https://github.com/lobehub/lobe-chat/compare/v1.107.5...v1.107.6)
<sup>Released on **2025-08-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Break line for Gemini Artifacts.

<br/>

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

#### What's fixed

* **misc**: Break line for Gemini Artifacts, closes [#8627](https://github.com/lobehub/lobe-chat/issues/8627) ([65609dd](https://github.com/lobehub/lobe-chat/commit/65609dd))

</details>

<div align="right">

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

</div>
2025-08-05 03:55:02 +00:00
AmAzing- 65609dd1e9 🐛 fix: Break line for Gemini Artifacts (#8627)
* 🐛 fix: Break line for Gemini Artifacts

* 🔧 chore: Add an idempotency test to processWithArtifact
2025-08-05 11:39:34 +08:00
YuTengjing f97c62e196 chore: improve plugin result rendering with smart content detection (#8664) 2025-08-04 21:37:21 +08:00
YuTengjing 526e0bf473 🐛 chore: clear prompt input after successful image creation (#8663) 2025-08-04 21:35:12 +08:00
lobehubbot 0a3ff2ce9e 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-04 10:04:30 +00:00
semantic-release-bot e208b01472 🔖 chore(release): v1.107.5 [skip ci]
### [Version&nbsp;1.107.5](https://github.com/lobehub/lobe-chat/compare/v1.107.4...v1.107.5)
<sup>Released on **2025-08-04**</sup>

#### 💄 Styles

- **misc**: Update models.

<br/>

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

#### Styles

* **misc**: Update models, closes [#8657](https://github.com/lobehub/lobe-chat/issues/8657) ([904ee13](https://github.com/lobehub/lobe-chat/commit/904ee13))

</details>

<div align="right">

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

</div>
2025-08-04 10:03:31 +00:00
Arvin Xu 904ee138ba 💄 style: update models (#8657) 2025-08-04 17:48:09 +08:00
lobehubbot 1e3597200b 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-04 09:46:20 +00:00
semantic-release-bot 89b93b396d 🔖 chore(release): v1.107.4 [skip ci]
### [Version&nbsp;1.107.4](https://github.com/lobehub/lobe-chat/compare/v1.107.3...v1.107.4)
<sup>Released on **2025-08-04**</sup>

#### 🐛 Bug Fixes

- **misc**: When s3 files not exist , global files should delete.

<br/>

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

#### What's fixed

* **misc**: When s3 files not exist , global files should delete ([7c1ca41](https://github.com/lobehub/lobe-chat/commit/7c1ca41))

</details>

<div align="right">

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

</div>
2025-08-04 09:45:20 +00:00
Shinji-Li 9c28a88561 Revert "fix: when s3 files not exist , global files should delete" (#8661) 2025-08-04 17:29:49 +08:00
Shinji-Li 7c1ca41c53 🐛 fix: when s3 files not exist , global files should delete
fix: when s3 files not exist , global files should delete
2025-08-04 17:25:21 +08:00
ONLY-yours 740a28e4aa fix: merge main 2025-08-04 11:05:00 +08:00
Maple Gao ddddb1e881 🔨 chore: improve gitignore for Ubuntu Dev Env (#8655) 2025-08-04 10:16:22 +08:00
lobehubbot bba3179b47 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-03 14:01:39 +00:00
semantic-release-bot ce159a33f0 🔖 chore(release): v1.107.3 [skip ci]
### [Version&nbsp;1.107.3](https://github.com/lobehub/lobe-chat/compare/v1.107.2...v1.107.3)
<sup>Released on **2025-08-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Aihubmix provider request headers.

<br/>

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

#### What's fixed

* **misc**: Aihubmix provider request headers, closes [#8654](https://github.com/lobehub/lobe-chat/issues/8654) ([af07101](https://github.com/lobehub/lobe-chat/commit/af07101))

</details>

<div align="right">

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

</div>
2025-08-03 14:00:40 +00:00
renovate[bot] b0be9be7c0 Update dependency lucide-react to ^0.536.0 (#8648)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-03 21:45:07 +08:00
renovate[bot] 6db157ed64 Update dependency @anthropic-ai/sdk to ^0.57.0 (#8647)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-03 21:43:37 +08:00
Arvin Xu af071015d0 🐛 fix: aihubmix provider request headers (#8654)
* fix headers issue

* update provider
2025-08-03 21:43:20 +08:00
lobehubbot 0458190d16 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-02 16:40:34 +00:00
semantic-release-bot 4306558781 🔖 chore(release): v1.107.2 [skip ci]
### [Version&nbsp;1.107.2](https://github.com/lobehub/lobe-chat/compare/v1.107.1...v1.107.2)
<sup>Released on **2025-08-02**</sup>

#### ♻ Code Refactoring

- **misc**: Move types to separate package.

#### 🐛 Bug Fixes

- **desktop**: Settings window can't exit when fullscreen.

<br/>

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

#### Code refactoring

* **misc**: Move types to separate package, closes [#8635](https://github.com/lobehub/lobe-chat/issues/8635) ([3cc4a54](https://github.com/lobehub/lobe-chat/commit/3cc4a54))

#### What's fixed

* **desktop**: Settings window can't exit when fullscreen, closes [#8633](https://github.com/lobehub/lobe-chat/issues/8633) ([954eb2c](https://github.com/lobehub/lobe-chat/commit/954eb2c))

</details>

<div align="right">

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

</div>
2025-08-02 16:39:38 +00:00
YuTengjing 954eb2cb18 🐛 fix(desktop): settings window can't exit when fullscreen (#8633)
* 🐛 fix: settings window can't exit when fullscreen

* 🐛 fix: refactor macOS fullscreen hide to prevent black screen

- Unified fullscreen handling in Browser.hide() method
- Fixed black screen issue when hiding fullscreen windows on macOS
- Simplified close event handler by removing duplicate logic
- Updated toggleVisible() to use consistent hide() method
- Added platform check to only apply fix on macOS

Fixes: https://github.com/electron/electron/issues/20263

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-03 00:23:40 +08:00
Arvin Xu 3cc4a54d6f ♻️ refactor: move types to separate package (#8635)
* move types

* fix tests

* fix tests
2025-08-03 00:22:49 +08:00
ONLY-yours bb1a3d9a08 fix: 修复单元测试失败的问题 2025-08-01 17:07:59 +08:00
lobehubbot adcedf41ca 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-01 05:03:51 +00:00
semantic-release-bot d79f2f99fd 🔖 chore(release): v1.107.1 [skip ci]
### [Version&nbsp;1.107.1](https://github.com/lobehub/lobe-chat/compare/v1.107.0...v1.107.1)
<sup>Released on **2025-08-01**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-08-01 05:02:49 +00:00
LobeHub Bot 3b87fe70b2 💄 style: update i18n (#8629)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-08-01 12:47:28 +08:00
Arvin Xu 29417d5e18 🔨 chore: fix type in some scripts (#8631)
* upgrade types

* fix types

* fix types
2025-08-01 12:42:55 +08:00
lobehubbot 9b74e172a0 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-01 02:08:20 +00:00
semantic-release-bot 0c00c89374 🔖 chore(release): v1.107.0 [skip ci]
## [Version&nbsp;1.107.0](https://github.com/lobehub/lobe-chat/compare/v1.106.8...v1.107.0)
<sup>Released on **2025-08-01**</sup>

####  Features

- **misc**: Support aihubmix provider.

<br/>

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

#### What's improved

* **misc**: Support aihubmix provider, closes [#8038](https://github.com/lobehub/lobe-chat/issues/8038) ([4db6485](https://github.com/lobehub/lobe-chat/commit/4db6485))

</details>

<div align="right">

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

</div>
2025-08-01 02:07:27 +00:00
hedeqiang 4db6485410 feat: support aihubmix provider (#8038)
* feata: support aihubmix provider

* style: update aihubmix

* style: update LobeOpenAICompatibleFactory

* Delete docs/usage/providers/aihubmix.mdx

* style: update model list

* style: i18n

* Update aihubmix.zh-CN.mdx

* Update aihubmix.ts

* ♻️ refactor: rename agent runtime to model runtime

*  feat: support aihubmix as router runtime

* update App header

* update

* update models

* update models link

* update i18n

* fix

* fix

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-08-01 09:52:11 +08:00
lobehubbot 1257d905c7 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-31 03:37:39 +00:00
semantic-release-bot 896020a7ba 🔖 chore(release): v1.106.8 [skip ci]
### [Version&nbsp;1.106.8](https://github.com/lobehub/lobe-chat/compare/v1.106.7...v1.106.8)
<sup>Released on **2025-07-31**</sup>

#### 💄 Styles

- **misc**: Support SenseNova V6.5 models.

<br/>

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

#### Styles

* **misc**: Support SenseNova V6.5 models, closes [#8569](https://github.com/lobehub/lobe-chat/issues/8569) ([411ed7e](https://github.com/lobehub/lobe-chat/commit/411ed7e))

</details>

<div align="right">

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

</div>
2025-07-31 03:36:45 +00:00
sxjeru 411ed7eac1 💄 style: Support SenseNova V6.5 models (#8569)
*  feat: 添加 SenseNova V6.5 Pro 和 V6.5 Turbo 模型,并更新聊天处理逻辑以支持思考参数

*  feat: 更新模型 ID 格式并添加 Qwen3 模型,增强聊天处理能力
2025-07-31 11:21:04 +08:00
lobehubbot c36ec9bdbd 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-31 02:44:15 +00:00
semantic-release-bot b8d51a9c87 🔖 chore(release): v1.106.7 [skip ci]
### [Version&nbsp;1.106.7](https://github.com/lobehub/lobe-chat/compare/v1.106.6...v1.106.7)
<sup>Released on **2025-07-31**</sup>

#### 💄 Styles

- **misc**: Update Aliyun Bailian models.

<br/>

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

#### Styles

* **misc**: Update Aliyun Bailian models, closes [#8612](https://github.com/lobehub/lobe-chat/issues/8612) ([433e679](https://github.com/lobehub/lobe-chat/commit/433e679))

</details>

<div align="right">

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

</div>
2025-07-31 02:43:18 +00:00
sxjeru 433e679844 💄 style: update Aliyun Bailian models (#8612)
* Update qwen.ts

*  feat: 添加 Qwen3-30B-A3B-Instruct-2507 聊天模型

*  feat: 更新 Qwen 模型配置,添加新能力和调整参数

*  feat: 更新推理预算令牌的处理逻辑,支持在未启用推理时使用
2025-07-31 10:28:06 +08:00
lobehubbot fe7062f796 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-31 02:19:56 +00:00
semantic-release-bot b278458f2d 🔖 chore(release): v1.106.6 [skip ci]
### [Version&nbsp;1.106.6](https://github.com/lobehub/lobe-chat/compare/v1.106.5...v1.106.6)
<sup>Released on **2025-07-31**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix oidc oauth callback pages 404.

<br/>

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

#### What's fixed

* **misc**: Fix oidc oauth callback pages 404, closes [#8620](https://github.com/lobehub/lobe-chat/issues/8620) ([d136b6e](https://github.com/lobehub/lobe-chat/commit/d136b6e))

</details>

<div align="right">

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

</div>
2025-07-31 02:19:02 +00:00
Arvin Xu d136b6eb55 🐛 fix: fix oidc oauth callback pages 404 (#8620) 2025-07-31 10:03:42 +08:00
lobehubbot ef42644d03 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-30 16:32:39 +00:00
semantic-release-bot dfb8687f0e 🔖 chore(release): v1.106.5 [skip ci]
### [Version&nbsp;1.106.5](https://github.com/lobehub/lobe-chat/compare/v1.106.4...v1.106.5)
<sup>Released on **2025-07-30**</sup>

#### 💄 Styles

- **misc**: Improve mcp plugin calling and display.

<br/>

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

#### Styles

* **misc**: Improve mcp plugin calling and display, closes [#8619](https://github.com/lobehub/lobe-chat/issues/8619) ([14c41c4](https://github.com/lobehub/lobe-chat/commit/14c41c4))

</details>

<div align="right">

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

</div>
2025-07-30 16:31:46 +00:00
Arvin Xu 14c41c488f 💄 style: improve mcp plugin calling and display (#8619)
* improve mcp tools calling loading state

* improve Arguments display

* improve mcp display

* improve close delay
2025-07-31 00:16:14 +08:00
lobehubbot bc984529a6 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-30 11:17:10 +00:00
semantic-release-bot f72eadee09 🔖 chore(release): v1.106.4 [skip ci]
### [Version&nbsp;1.106.4](https://github.com/lobehub/lobe-chat/compare/v1.106.3...v1.106.4)
<sup>Released on **2025-07-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix mcp calling missing array content.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### What's fixed

* **misc**: Fix mcp calling missing array content, closes [#8615](https://github.com/lobehub/lobe-chat/issues/8615) ([b7f8e6e](https://github.com/lobehub/lobe-chat/commit/b7f8e6e))

#### Styles

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

</details>

<div align="right">

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

</div>
2025-07-30 11:16:14 +00:00
LobeHub Bot 21cac39e72 💄 style: update i18n (#8609)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-30 19:00:55 +08:00
Arvin Xu b7f8e6e521 🐛 fix: fix mcp calling missing array content (#8615) 2025-07-30 19:00:48 +08:00
lobehubbot 6e7035e1e5 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 18:03:49 +00:00
semantic-release-bot 0dd157b2f6 🔖 chore(release): v1.106.3 [skip ci]
### [Version&nbsp;1.106.3](https://github.com/lobehub/lobe-chat/compare/v1.106.2...v1.106.3)
<sup>Released on **2025-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Moonshot assistant messages must not be empty.

#### 💄 Styles

- **misc**: Add volcengine kimi-k2 model, Add Zhipu GLM-4.5 models.

<br/>

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

#### What's fixed

* **misc**: Moonshot assistant messages must not be empty, closes [#8419](https://github.com/lobehub/lobe-chat/issues/8419) ([a796495](https://github.com/lobehub/lobe-chat/commit/a796495))

#### Styles

* **misc**: Add volcengine kimi-k2 model, closes [#8591](https://github.com/lobehub/lobe-chat/issues/8591) ([9630167](https://github.com/lobehub/lobe-chat/commit/9630167))
* **misc**: Add Zhipu GLM-4.5 models, closes [#8590](https://github.com/lobehub/lobe-chat/issues/8590) ([4f4620c](https://github.com/lobehub/lobe-chat/commit/4f4620c))

</details>

<div align="right">

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

</div>
2025-07-29 18:02:42 +00:00
sxjeru a796495e1c 🐛 fix: moonshot assistant messages must not be empty (#8419)
* 🔧 fix(moonshot): 处理空的 assistant 消息并添加浏览器请求禁用设置

* 🔧 feat(siliconcloud): 添加 Kimi K2 Instruct 模型及其相关信息

* 🔧 feat(hunyuan): 添加 Hunyuan T1 模型及其相关信息
🔧 fix(moonshot): 为 assistant 空消息添加一个空格以优化消息处理

* 🔧 feat(siliconcloud): 添加 Kimi K2 Instruct 模型及其相关信息

* 🔧 feat(groq): 添加 Kimi K2 Instruct 模型及其相关信息

* 🔧 refactor(stepfun): 移除过时的模型配置

*  feat(moonshot): 添加流式响应处理以支持特殊响应格式

* fix

* 移除模型内置搜索

*  feat(qwen): 添加 Kimi K2 Instruct 模型并更新现有模型的部署名称和输出限制

* remove gemini-2.5-flash-preview-04-17

*  feat(qwen): 添加多个基于Qwen3的模型,增强代码生成能力和描述信息

*  feat: 添加 Qwen3 235B A22B Instruct 2507 模型及更新定价信息

*  feat: 添加 Qwen3 235B Thinking 2507 模型及更新 Qwen3 A22B Instruct 2507 描述

* fix Gemini 2.5 Flash-Lite

*  feat: 添加 GLM-4.5、GLM-4.5-Air 和 Qwen3 235B A22B Thinking 2507 模型到 siliconcloudChatModels

*  feat: 为 qwen3-coder-plus 模型添加 functionCall 能力

* opti
2025-07-30 01:46:56 +08:00
sxjeru 4f4620c3c3 💄 style: Add Zhipu GLM-4.5 models (#8590)
*  feat(zhipu): 添加多个GLM-4.5模型并更新模型参数

* add

*  feat(zhipu): 添加流处理功能以修正智谱模型的工具调用索引

* Update index.ts
2025-07-30 01:35:43 +08:00
hedeqiang 96301670c4 💄 style: add volcengine kimi-k2 model (#8591) 2025-07-30 01:31:56 +08:00
lobehubbot d7763c38c5 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 16:33:37 +00:00
semantic-release-bot b1e01d377a 🔖 chore(release): v1.106.2 [skip ci]
### [Version&nbsp;1.106.2](https://github.com/lobehub/lobe-chat/compare/v1.106.1...v1.106.2)
<sup>Released on **2025-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop auth redirect url error.

<br/>

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

#### What's fixed

* **misc**: Fix desktop auth redirect url error, closes [#8597](https://github.com/lobehub/lobe-chat/issues/8597) ([0ed7368](https://github.com/lobehub/lobe-chat/commit/0ed7368))

</details>

<div align="right">

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

</div>
2025-07-29 16:32:35 +00:00
Arvin Xu 0ed73685dc 🐛 fix: fix desktop auth redirect url error (#8597)
* try to fix cloudflare issue

* fix 0.0.0.0

* fix route

* fix desktop callback

* update pkg

* try to fix again

* try to fix route again
2025-07-30 00:17:23 +08:00
lobehubbot f92b86b194 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 14:11:44 +00:00
semantic-release-bot 1cf58899d8 🔖 chore(release): v1.106.1 [skip ci]
### [Version&nbsp;1.106.1](https://github.com/lobehub/lobe-chat/compare/v1.106.0...v1.106.1)
<sup>Released on **2025-07-29**</sup>

#### 💄 Styles

- **misc**: Support Minimax T2I models.

<br/>

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

#### Styles

* **misc**: Support Minimax T2I models, closes [#8583](https://github.com/lobehub/lobe-chat/issues/8583) ([f8a01aa](https://github.com/lobehub/lobe-chat/commit/f8a01aa))

</details>

<div align="right">

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

</div>
2025-07-29 14:10:47 +00:00
YuTengjing c1dfa7ab49 style: none login user access ai image page error (#8605) 2025-07-29 21:55:13 +08:00
Zhijie He f8a01aacb0 💄 style: support Minimax T2I models (#8583) 2025-07-29 21:54:56 +08:00
lobehubbot c29559cb2e 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 13:09:02 +00:00
semantic-release-bot 16dd71b5e9 🔖 chore(release): v1.106.0 [skip ci]
## [Version&nbsp;1.106.0](https://github.com/lobehub/lobe-chat/compare/v1.105.6...v1.106.0)
<sup>Released on **2025-07-29**</sup>

####  Features

- **misc**: Add support for Okta Authentication.

<br/>

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

#### What's improved

* **misc**: Add support for Okta Authentication, closes [#8547](https://github.com/lobehub/lobe-chat/issues/8547) ([67abdfe](https://github.com/lobehub/lobe-chat/commit/67abdfe))

</details>

<div align="right">

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

</div>
2025-07-29 13:08:05 +00:00
Arvin Xu ad8f5e451b 📝 docs: add chinese docs for okta provider (#8607)
Reverted a micro-change which was changed during some testing (back to original)

Removed Okta Test

Removed deprecated env variables

Add Okta support to auth config and tests
2025-07-29 20:52:02 +08:00
Jamie Stivala 67abdfe153 feat: Add support for Okta Authentication (#8547)
* Add Okta support to auth config and tests

* Added documentation

* Removed deprecated env variables

* Added Okta as SSO Provider

* Removed Okta Test

* Reverted a micro-change which was changed during some testing (back to original)

* Added Okta to SSO providers list
2025-07-29 20:48:52 +08:00
lobehubbot 672580737f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 12:21:49 +00:00
semantic-release-bot 778152f966 🔖 chore(release): v1.105.6 [skip ci]
### [Version&nbsp;1.105.6](https://github.com/lobehub/lobe-chat/compare/v1.105.5...v1.105.6)
<sup>Released on **2025-07-29**</sup>

#### 💄 Styles

- **misc**: Open new topic by tap Just Chat again.

<br/>

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

#### Styles

* **misc**: Open new topic by tap Just Chat again, closes [#8426](https://github.com/lobehub/lobe-chat/issues/8426) ([018ca75](https://github.com/lobehub/lobe-chat/commit/018ca75))

</details>

<div align="right">

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

</div>
2025-07-29 12:20:56 +00:00
René Wang 018ca7598c 💄 style: Open new topic by tap Just Chat again (#8426) 2025-07-29 20:05:29 +08:00
lobehubbot 6bfba72dce 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 11:28:43 +00:00
semantic-release-bot b7dbcfd310 🔖 chore(release): v1.105.5 [skip ci]
### [Version&nbsp;1.105.5](https://github.com/lobehub/lobe-chat/compare/v1.105.4...v1.105.5)
<sup>Released on **2025-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Reorder AppTheme and Locale to fix modal i18n.

<br/>

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

#### What's fixed

* **misc**: Reorder AppTheme and Locale to fix modal i18n, closes [#8600](https://github.com/lobehub/lobe-chat/issues/8600) ([3264cf2](https://github.com/lobehub/lobe-chat/commit/3264cf2))

</details>

<div align="right">

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

</div>
2025-07-29 11:27:39 +00:00
Zhaker 3264cf2106 🐛 fix: reorder AppTheme and Locale to fix modal i18n (#8600) 2025-07-29 19:12:09 +08:00
lobehubbot 9a372f622d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 10:36:16 +00:00
semantic-release-bot de05d4165f 🔖 chore(release): v1.105.4 [skip ci]
### [Version&nbsp;1.105.4](https://github.com/lobehub/lobe-chat/compare/v1.105.3...v1.105.4)
<sup>Released on **2025-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Revert jose to ^5 to fix auth issue on desktop.

<br/>

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

#### What's fixed

* **misc**: Revert jose to ^5 to fix auth issue on desktop, closes [#8603](https://github.com/lobehub/lobe-chat/issues/8603) ([57118b0](https://github.com/lobehub/lobe-chat/commit/57118b0))

</details>

<div align="right">

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

</div>
2025-07-29 10:35:23 +00:00
Arvin Xu 57118b031e 🐛 fix: revert jose to ^5 to fix auth issue on desktop (#8603) 2025-07-29 18:20:16 +08:00
lobehubbot c4b2bb59c3 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 09:57:47 +00:00
semantic-release-bot 2211cd7632 🔖 chore(release): v1.105.3 [skip ci]
### [Version&nbsp;1.105.3](https://github.com/lobehub/lobe-chat/compare/v1.105.2...v1.105.3)
<sup>Released on **2025-07-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix subscription plan tag display.

<br/>

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

#### What's fixed

* **misc**: Fix subscription plan tag display, closes [#8599](https://github.com/lobehub/lobe-chat/issues/8599) ([2a3754a](https://github.com/lobehub/lobe-chat/commit/2a3754a))

</details>

<div align="right">

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

</div>
2025-07-29 09:56:53 +00:00
Arvin Xu 2a3754a436 🐛 fix: fix subscription plan tag display (#8599) 2025-07-29 17:41:42 +08:00
lobehubbot e448d52d5c 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 07:12:06 +00:00
semantic-release-bot 04edfca6e0 🔖 chore(release): v1.105.2 [skip ci]
### [Version&nbsp;1.105.2](https://github.com/lobehub/lobe-chat/compare/v1.105.1...v1.105.2)
<sup>Released on **2025-07-29**</sup>

#### ♻ Code Refactoring

- **misc**: Clean mcp sitemap, refactor jose-JWT to xor obfuscation.

#### 💄 Styles

- **misc**: Add more OpenAI SDK Text2Image providers, update i18n.

<br/>

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

#### Code refactoring

* **misc**: Clean mcp sitemap, closes [#8596](https://github.com/lobehub/lobe-chat/issues/8596) ([b9e3e66](https://github.com/lobehub/lobe-chat/commit/b9e3e66))
* **misc**: Refactor jose-JWT to xor obfuscation, closes [#8595](https://github.com/lobehub/lobe-chat/issues/8595) ([be98d56](https://github.com/lobehub/lobe-chat/commit/be98d56))

#### Styles

* **misc**: Add more OpenAI SDK Text2Image providers, closes [#8573](https://github.com/lobehub/lobe-chat/issues/8573) ([403aebd](https://github.com/lobehub/lobe-chat/commit/403aebd))
* **misc**: Update i18n, closes [#8593](https://github.com/lobehub/lobe-chat/issues/8593) ([356cf0c](https://github.com/lobehub/lobe-chat/commit/356cf0c))

</details>

<div align="right">

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

</div>
2025-07-29 07:11:05 +00:00
Arvin Xu b9e3e6633e ♻️ refactor: clean mcp sitemap (#8596) 2025-07-29 14:55:46 +08:00
Zhijie He 403aebd52e 💄 style: add more OpenAI SDK Text2Image providers (#8573) 2025-07-29 14:45:19 +08:00
LobeHub Bot 356cf0c392 💄 style: update i18n (#8593)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-29 14:37:29 +08:00
Arvin Xu be98d56ef4 ♻️ refactor: refactor jose-JWT to xor obfuscation (#8595)
* refactor jose-jwt to xor obfuscation

* rename JWTPayload type to ClientSecretPayload

* fix tests

* revert next version
2025-07-29 14:37:01 +08:00
lobehubbot 3fae1b2638 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 04:07:54 +00:00
semantic-release-bot ee4cc6c2e0 🔖 chore(release): v1.105.1 [skip ci]
### [Version&nbsp;1.105.1](https://github.com/lobehub/lobe-chat/compare/v1.105.0...v1.105.1)
<sup>Released on **2025-07-29**</sup>

#### 💄 Styles

- **misc**: Support more Text2Image from Qwen.

<br/>

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

#### Styles

* **misc**: Support more Text2Image from Qwen, closes [#8574](https://github.com/lobehub/lobe-chat/issues/8574) ([b8c0e2d](https://github.com/lobehub/lobe-chat/commit/b8c0e2d))

</details>

<div align="right">

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

</div>
2025-07-29 04:07:02 +00:00
Zhijie He b8c0e2d639 💄 style: support more Text2Image from Qwen (#8574) 2025-07-29 11:51:40 +08:00
lobehubbot 74d20bdbe8 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-28 09:12:32 +00:00
semantic-release-bot 7bab44e74c 🔖 chore(release): v1.105.0 [skip ci]
## [Version&nbsp;1.105.0](https://github.com/lobehub/lobe-chat/compare/v1.104.5...v1.105.0)
<sup>Released on **2025-07-28**</sup>

####  Features

- **misc**: Implement API Key management functionality.

<br/>

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

#### What's improved

* **misc**: Implement API Key management functionality, closes [#8535](https://github.com/lobehub/lobe-chat/issues/8535) ([fdaa725](https://github.com/lobehub/lobe-chat/commit/fdaa725))

</details>

<div align="right">

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

</div>
2025-07-28 09:11:38 +00:00
Zephyr fdaa72564c feat: Implement API Key management functionality (#8535)
*  feat: Implement API Key management functionality

- Added new components for API Key management including creation, deletion, and display.
- Introduced a new database schema for storing API Keys.
- Implemented server and client services for API Key operations.
- Integrated API Key management into the profile section with appropriate routing and feature flags.
- Enhanced localization support for API Key related UI elements.

This commit lays the groundwork for managing API Keys within the application, allowing users to create, view, and manage their keys effectively.

* fix: server config unit test

*  feat(database): Create api_keys table with conditional existence check

- Added a conditional check to create the "api_keys" table only if it does not already exist.
- Ensured the foreign key constraint for "user_id" references the "users" table remains intact.

This change enhances the migration process by preventing errors during table creation if the table already exists.

* feat: Implement API Key management interface

- Introduced a new Client component for managing API keys, including creation, updating, and deletion functionalities.
- Replaced the previous page component with the new Client component in the API key management page.
- Removed obsolete client and server service files related to API key management, streamlining the service layer.

This update enhances the user experience by providing a dedicated interface for API key operations.
2025-07-28 16:55:57 +08:00
lobehubbot 7d85151cb6 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-28 08:53:48 +00:00
semantic-release-bot 23ef2eea59 🔖 chore(release): v1.104.5 [skip ci]
### [Version&nbsp;1.104.5](https://github.com/lobehub/lobe-chat/compare/v1.104.4...v1.104.5)
<sup>Released on **2025-07-28**</sup>

#### 💄 Styles

- **misc**: Fix setting window layout when in desktop was disappear.

<br/>

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

#### Styles

* **misc**: Fix setting window layout when in desktop was disappear, closes [#8585](https://github.com/lobehub/lobe-chat/issues/8585) ([74ab822](https://github.com/lobehub/lobe-chat/commit/74ab822))

</details>

<div align="right">

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

</div>
2025-07-28 08:52:59 +00:00
Shinji-Li 74ab822140 💄 style: fix setting window layout when in desktop was disappear (#8585) 2025-07-28 16:37:45 +08:00
lobehubbot d726ff108d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-28 02:37:48 +00:00
semantic-release-bot dd7b661140 🔖 chore(release): v1.104.4 [skip ci]
### [Version&nbsp;1.104.4](https://github.com/lobehub/lobe-chat/compare/v1.104.3...v1.104.4)
<sup>Released on **2025-07-28**</sup>

#### 💄 Styles

- **misc**: Fix setting window layout size, update i18n.

<br/>

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

#### Styles

* **misc**: Fix setting window layout size, closes [#8483](https://github.com/lobehub/lobe-chat/issues/8483) ([4902341](https://github.com/lobehub/lobe-chat/commit/4902341))
* **misc**: Update i18n, closes [#8579](https://github.com/lobehub/lobe-chat/issues/8579) ([2eccbc7](https://github.com/lobehub/lobe-chat/commit/2eccbc7))

</details>

<div align="right">

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

</div>
2025-07-28 02:36:53 +00:00
Shinji-Li 49023419cf 💄 style: fix setting window layout size (#8483) 2025-07-28 10:21:30 +08:00
LobeHub Bot 2eccbc79eb 💄 style: update i18n (#8579)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-28 10:19:46 +08:00
lobehubbot 3527cb65f1 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-26 09:48:50 +00:00
semantic-release-bot 1731c841d8 🔖 chore(release): v1.104.3 [skip ci]
### [Version&nbsp;1.104.3](https://github.com/lobehub/lobe-chat/compare/v1.104.2...v1.104.3)
<sup>Released on **2025-07-26**</sup>

#### 💄 Styles

- **misc**: Add Gemini 2.5 Flash-Lite GA model.

<br/>

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

#### Styles

* **misc**: Add Gemini 2.5 Flash-Lite GA model, closes [#8539](https://github.com/lobehub/lobe-chat/issues/8539) ([404ac21](https://github.com/lobehub/lobe-chat/commit/404ac21))

</details>

<div align="right">

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

</div>
2025-07-26 09:47:57 +00:00
afon 404ac21229 💄 style: Add Gemini 2.5 Flash-Lite GA model (#8539) 2025-07-26 17:32:34 +08:00
Arvin Xu 2eaa2dbea0 🔨 chore: add react scan debugger and bump deps (#8576)
* add REACT_SCAN debug

* upgrade lobehub/ui

* clean

* head

* update
2025-07-26 16:32:55 +08:00
lobehubbot 50c0ed168d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-26 07:32:43 +00:00
semantic-release-bot 780e231afa 🔖 chore(release): v1.104.2 [skip ci]
### [Version&nbsp;1.104.2](https://github.com/lobehub/lobe-chat/compare/v1.104.1...v1.104.2)
<sup>Released on **2025-07-26**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix update hotkey invalid when input mod in desktop.

<br/>

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

#### What's fixed

* **misc**: Fix update hotkey invalid when input mod in desktop, closes [#8572](https://github.com/lobehub/lobe-chat/issues/8572) ([07f3e6a](https://github.com/lobehub/lobe-chat/commit/07f3e6a))

</details>

<div align="right">

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

</div>
2025-07-26 07:31:53 +00:00
Arvin Xu 07f3e6a4c4 🐛 fix: fix update hotkey invalid when input mod in desktop (#8572)
* fix hotkey with mod

* fix invalid hotkeys

* add tests
2025-07-26 15:16:45 +08:00
lobehubbot 3c35edced5 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-25 09:59:34 +00:00
semantic-release-bot 15770f188f 🔖 chore(release): v1.104.1 [skip ci]
### [Version&nbsp;1.104.1](https://github.com/lobehub/lobe-chat/compare/v1.104.0...v1.104.1)
<sup>Released on **2025-07-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider.

<br/>

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

#### What's fixed

* **misc**: Update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider, closes [#8557](https://github.com/lobehub/lobe-chat/issues/8557) ([d1e4a54](https://github.com/lobehub/lobe-chat/commit/d1e4a54))

</details>

<div align="right">

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

</div>
2025-07-25 09:58:34 +00:00
YuTengjing 9d7c6014fd chore: improve image display quality (#8571) 2025-07-25 17:42:23 +08:00
sxjeru d1e4a54b01 🐛 fix: update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider (#8557) 2025-07-25 16:16:54 +08:00
lobehubbot 1bc8815fb4 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-24 17:20:43 +00:00
semantic-release-bot 284826bed0 🔖 chore(release): v1.104.0 [skip ci]
## [Version&nbsp;1.104.0](https://github.com/lobehub/lobe-chat/compare/v1.103.2...v1.104.0)
<sup>Released on **2025-07-24**</sup>

####  Features

- **misc**: Support custom hotkey on desktop.

<br/>

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

#### What's improved

* **misc**: Support custom hotkey on desktop, closes [#8559](https://github.com/lobehub/lobe-chat/issues/8559) ([b50f121](https://github.com/lobehub/lobe-chat/commit/b50f121))

</details>

<div align="right">

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

</div>
2025-07-24 17:19:53 +00:00
Arvin Xu b50f1212cb feat: support custom hotkey on desktop (#8559)
* support custom hotkey

* update tests

* clean

* fix tests
2025-07-25 01:04:18 +08:00
lobehubbot 946517a52e 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-24 04:20:29 +00:00
semantic-release-bot d30cc62acf 🔖 chore(release): v1.103.2 [skip ci]
### [Version&nbsp;1.103.2](https://github.com/lobehub/lobe-chat/compare/v1.103.1...v1.103.2)
<sup>Released on **2025-07-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix chat stream in desktop and update shortcut.

#### 💄 Styles

- **misc**: Add cached token count to usage of GoogleAI and VertexAI, fix desktop titlebar style in window, fix sub topic width in md responsive.

<br/>

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

#### What's fixed

* **misc**: Fix chat stream in desktop and update shortcut, closes [#8520](https://github.com/lobehub/lobe-chat/issues/8520) ([0192140](https://github.com/lobehub/lobe-chat/commit/0192140))

#### Styles

* **misc**: Add cached token count to usage of GoogleAI and VertexAI, closes [#8545](https://github.com/lobehub/lobe-chat/issues/8545) ([66dbb24](https://github.com/lobehub/lobe-chat/commit/66dbb24))
* **misc**: Fix desktop titlebar style in window, closes [#8439](https://github.com/lobehub/lobe-chat/issues/8439) ([fd7662c](https://github.com/lobehub/lobe-chat/commit/fd7662c))
* **misc**: Fix sub topic width in md responsive, closes [#8443](https://github.com/lobehub/lobe-chat/issues/8443) ([9bae13b](https://github.com/lobehub/lobe-chat/commit/9bae13b))

</details>

<div align="right">

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

</div>
2025-07-24 04:19:17 +00:00
Arvin Xu 0192140909 🐛 fix: fix chat stream in desktop and update shortcut (#8520)
* disable nginx chunk buffering

* make setting keep alive

* update shortcut

* update shortcut

* fix lint
2025-07-24 12:04:06 +08:00
Shinji-Li 9bae13b6c1 💄 style: fix sub topic width in md responsive (#8443) 2025-07-24 11:02:38 +08:00
CanisMinor fd7662c3ac 💄 style: fix desktop titlebar style in window (#8439)
* 💄 style: Fix win electron style

📝 docs: Update readme

💄 style: Update useWatchThemeUpdate

💄 style: Update Tray icon

🔧 chore: Update windows

🔧 chore: Update filetree

🔧 chore: Update core

💄 style: Fix desktop draw style

💄 style: Update style

💄 style: Fix backgroundColor

💄 style: Update titlebar style

* 💄 style: Fix windows icon

* 🔧 chore: Clean

* update theme

* 💄 style: Update broswer

* 💄 style: HandleAppThemeChange

* clean

* fix memory leak

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-07-24 11:02:07 +08:00
afon 66dbb246d9 💄 style: Add cached token count to usage of GoogleAI and VertexAI (#8545) 2025-07-24 10:56:03 +08:00
Jamie Stivala 3a2935a6e3 🔨 chore: fix an issue where some tests were failing if Branding items were updated (#8549)
* Update test data for plugin action to use avatar icon path (rather than hard coded)

* Update tests to use BRANDING_NAME constant instead of hardcoded 'LobeChat' and update avatar icon path in chat message tests

* Update tests to replace hardcoded avatar paths with constants for inbox and user avatars

* Update plugin action tests to use DEFAULT_INBOX_AVATAR constant instead of hardcoded path
2025-07-24 10:54:42 +08:00
ONLY-yours 17a289066e fix: merge main 2025-07-23 17:07:41 +08:00
YuTengjing 82ca0074d4 🔨 chore: some ai image optimization (#8543) 2025-07-23 15:33:20 +08:00
lobehubbot 225d3b6ed5 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-23 05:34:17 +00:00
semantic-release-bot 66984d9418 🔖 chore(release): v1.103.1 [skip ci]
### [Version&nbsp;1.103.1](https://github.com/lobehub/lobe-chat/compare/v1.103.0...v1.103.1)
<sup>Released on **2025-07-23**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-07-23 05:33:24 +00:00
LobeHub Bot b16f19bfed 💄 style: update i18n (#8537)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-23 13:17:56 +08:00
huangkairan f61b222e9e 📝 docs: fix desktop & mcp mdx (#8541) 2025-07-23 13:17:30 +08:00
lobehubbot 368f7dbbc1 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-22 14:59:13 +00:00
semantic-release-bot 9c2350e643 🔖 chore(release): v1.103.0 [skip ci]
## [Version&nbsp;1.103.0](https://github.com/lobehub/lobe-chat/compare/v1.102.4...v1.103.0)
<sup>Released on **2025-07-22**</sup>

####  Features

- **misc**: Add Qwen image generation capabilities.

<br/>

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

#### What's improved

* **misc**: Add Qwen image generation capabilities, closes [#8534](https://github.com/lobehub/lobe-chat/issues/8534) ([7e8e5ef](https://github.com/lobehub/lobe-chat/commit/7e8e5ef))

</details>

<div align="right">

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

</div>
2025-07-22 14:58:22 +00:00
YuTengjing 7e8e5ef5b2 feat: add Qwen image generation capabilities (#8534) 2025-07-22 22:43:10 +08:00
lobehubbot 0ed9e7d947 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-22 06:02:40 +00:00
semantic-release-bot 19cc6e8562 🔖 chore(release): v1.102.4 [skip ci]
### [Version&nbsp;1.102.4](https://github.com/lobehub/lobe-chat/compare/v1.102.3...v1.102.4)
<sup>Released on **2025-07-22**</sup>

#### ♻ Code Refactoring

- **misc**: Add badge and improve document.

#### 💄 Styles

- **misc**: Update tray icon.

<br/>

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

#### Code refactoring

* **misc**: Add badge and improve document, closes [#8528](https://github.com/lobehub/lobe-chat/issues/8528) ([9fb4b0d](https://github.com/lobehub/lobe-chat/commit/9fb4b0d))

#### Styles

* **misc**: Update tray icon, closes [#8530](https://github.com/lobehub/lobe-chat/issues/8530) ([2696de4](https://github.com/lobehub/lobe-chat/commit/2696de4))

</details>

<div align="right">

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

</div>
2025-07-22 06:01:46 +00:00
Arvin Xu 2696de4078 💄 style: Update tray icon (#8530)
Co-authored-by: canisminor1990 <i@canisminor.cc>
2025-07-22 13:46:39 +08:00
Arvin Xu 9fb4b0dfc3 ♻️ refactor: add badge and improve document (#8528)
* update readme

* 📝 docs: Update readme

* 💄 style: Update PlanIcon

* improve tooltip placement

* improve tray

---------

Co-authored-by: canisminor1990 <i@canisminor.cc>
2025-07-22 13:43:57 +08:00
lobehubbot caffbbd384 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-22 03:38:51 +00:00
semantic-release-bot 8a89b1a14e 🔖 chore(release): v1.102.3 [skip ci]
### [Version&nbsp;1.102.3](https://github.com/lobehub/lobe-chat/compare/v1.102.2...v1.102.3)
<sup>Released on **2025-07-22**</sup>

#### 🐛 Bug Fixes

- **misc**: Remove debug logging from ModelRuntime and async caller.

<br/>

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

#### What's fixed

* **misc**: Remove debug logging from ModelRuntime and async caller, closes [#8525](https://github.com/lobehub/lobe-chat/issues/8525) ([dd1a635](https://github.com/lobehub/lobe-chat/commit/dd1a635))

</details>

<div align="right">

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

</div>
2025-07-22 03:37:59 +00:00
YuTengjing dd1a6356b7 🐛 fix: remove debug logging from ModelRuntime and async caller (#8525) 2025-07-22 11:23:05 +08:00
LovelyGuYiMeng d87919eba2 👷 build: add default app url for docker image to avoid building error (#8526) 2025-07-22 11:17:43 +08:00
lobehubbot 4bcf9822f7 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-22 03:12:31 +00:00
semantic-release-bot 9f2eea3d2f 🔖 chore(release): v1.102.2 [skip ci]
### [Version&nbsp;1.102.2](https://github.com/lobehub/lobe-chat/compare/v1.102.1...v1.102.2)
<sup>Released on **2025-07-22**</sup>

#### 💄 Styles

- **misc**: Add notification for desktop.

<br/>

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

#### Styles

* **misc**: Add notification for desktop, closes [#8523](https://github.com/lobehub/lobe-chat/issues/8523) ([4917d17](https://github.com/lobehub/lobe-chat/commit/4917d17))

</details>

<div align="right">

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

</div>
2025-07-22 03:11:41 +00:00
Arvin Xu 4917d175bb 💄 style: add notification for desktop (#8523)
* add notification for desktop

* update i18n

* fix tests
2025-07-22 10:56:17 +08:00
lobehubbot 5b53773dc6 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-21 16:01:39 +00:00
semantic-release-bot 46bdf21f37 🔖 chore(release): v1.102.1 [skip ci]
### [Version&nbsp;1.102.1](https://github.com/lobehub/lobe-chat/compare/v1.102.0...v1.102.1)
<sup>Released on **2025-07-21**</sup>

#### 🐛 Bug Fixes

- **groq**: Enable streaming for tool calls and add Kimi K2 model.

#### 💄 Styles

- **misc**: Modal list header sticky style.

<br/>

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

#### What's fixed

* **groq**: Enable streaming for tool calls and add Kimi K2 model, closes [#8510](https://github.com/lobehub/lobe-chat/issues/8510) ([60739bc](https://github.com/lobehub/lobe-chat/commit/60739bc))

#### Styles

* **misc**: Modal list header sticky style, closes [#8514](https://github.com/lobehub/lobe-chat/issues/8514) ([75273d5](https://github.com/lobehub/lobe-chat/commit/75273d5))

</details>

<div align="right">

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

</div>
2025-07-21 16:00:42 +00:00
afon 60739bc903 🐛 fix(groq): Enable streaming for tool calls and add Kimi K2 model (#8510) 2025-07-21 23:45:30 +08:00
Innei 75273d5497 💄 style: modal list header sticky style (#8514) 2025-07-21 23:43:25 +08:00
Innei 22e2de2b00 🔨 chore(typo): fix redirectUrl typo (#8513) 2025-07-21 23:42:53 +08:00
lobehubbot cbddf3ed25 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-21 15:28:30 +00:00
semantic-release-bot 14fd4bb2e7 🔖 chore(release): v1.102.0 [skip ci]
## [Version&nbsp;1.102.0](https://github.com/lobehub/lobe-chat/compare/v1.101.2...v1.102.0)
<sup>Released on **2025-07-21**</sup>

####  Features

- **misc**: Add image generation capabilities using Google AI Imagen API.

<br/>

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

#### What's improved

* **misc**: Add image generation capabilities using Google AI Imagen API, closes [#8503](https://github.com/lobehub/lobe-chat/issues/8503) ([cef8208](https://github.com/lobehub/lobe-chat/commit/cef8208))

</details>

<div align="right">

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

</div>
2025-07-21 15:27:38 +00:00
YuTengjing cef8208457 feat: add image generation capabilities using Google AI Imagen API (#8503) 2025-07-21 23:11:31 +08:00
lobehubbot 7d85a772db 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-21 06:00:46 +00:00
semantic-release-bot 83dd2865f0 🔖 chore(release): v1.101.2 [skip ci]
### [Version&nbsp;1.101.2](https://github.com/lobehub/lobe-chat/compare/v1.101.1...v1.101.2)
<sup>Released on **2025-07-21**</sup>

#### 💄 Styles

- **misc**: Fix lobehub provider `/chat` in desktop.

<br/>

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

#### Styles

* **misc**: Fix lobehub provider `/chat` in desktop, closes [#8508](https://github.com/lobehub/lobe-chat/issues/8508) ([c801f9c](https://github.com/lobehub/lobe-chat/commit/c801f9c))

</details>

<div align="right">

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

</div>
2025-07-21 05:59:47 +00:00
Arvin Xu c04507e34f 🔨 chore: fix model runtime test issue (#8511) 2025-07-21 13:44:54 +08:00
Arvin Xu c801f9ce58 💄 style: fix lobehub provider /chat in desktop (#8508) 2025-07-21 11:43:20 +08:00
vual ac2a83a3ce 👷 build: add default APP_URL for docker image to avoid building error (#8507) 2025-07-21 11:39:59 +08:00
lobehubbot 7bdda9bab4 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-19 17:19:58 +00:00
semantic-release-bot e8321355f8 🔖 chore(release): v1.101.1 [skip ci]
### [Version&nbsp;1.101.1](https://github.com/lobehub/lobe-chat/compare/v1.101.0...v1.101.1)
<sup>Released on **2025-07-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Try fix authorization code exchange & pin next-auto to `beta.29`.

<br/>

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

#### What's fixed

* **misc**: Try fix authorization code exchange & pin next-auto to `beta.29`, closes [#8496](https://github.com/lobehub/lobe-chat/issues/8496) ([27c4881](https://github.com/lobehub/lobe-chat/commit/27c4881))

</details>

<div align="right">

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

</div>
2025-07-19 17:19:05 +00:00
Rylan Cai 27c4881205 🐛 fix: Try fix authorization code exchange & pin next-auto to beta.29 (#8496)
* 📌 pin: next-auth@beta.29

* 🐛 fix: infinite redirection
2025-07-20 01:03:35 +08:00
lobehubbot 472c40e969 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-19 07:32:42 +00:00
semantic-release-bot c98e7f8032 🔖 chore(release): v1.101.0 [skip ci]
## [Version&nbsp;1.101.0](https://github.com/lobehub/lobe-chat/compare/v1.100.2...v1.101.0)
<sup>Released on **2025-07-19**</sup>

####  Features

- **misc**: Add zhipu cogview4.

#### 🐛 Bug Fixes

- **misc**: Some ai image bugs.

<br/>

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

#### What's improved

* **misc**: Add zhipu cogview4, closes [#8486](https://github.com/lobehub/lobe-chat/issues/8486) ([0b1557d](https://github.com/lobehub/lobe-chat/commit/0b1557d))

#### What's fixed

* **misc**: Some ai image bugs, closes [#8490](https://github.com/lobehub/lobe-chat/issues/8490) ([5d852be](https://github.com/lobehub/lobe-chat/commit/5d852be))

</details>

<div align="right">

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

</div>
2025-07-19 07:31:47 +00:00
YuTengjing 0b1557d6ad feat: add zhipu cogview4 (#8486) 2025-07-18 23:01:12 +08:00
YuTengjing 5d852be8a2 🐛 fix: some ai image bugs (#8490) 2025-07-18 23:00:56 +08:00
ONLY-yours 5e99b815f7 feat: 统一 files trpc message 为 enum 2025-07-18 14:27:36 +08:00
lobehubbot 993b0fa81f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-18 05:13:35 +00:00
semantic-release-bot 83783b4650 🔖 chore(release): v1.100.2 [skip ci]
### [Version&nbsp;1.100.2](https://github.com/lobehub/lobe-chat/compare/v1.100.1...v1.100.2)
<sup>Released on **2025-07-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix webapi proxy with clerk.

<br/>

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

#### What's fixed

* **misc**: Fix webapi proxy with clerk, closes [#8479](https://github.com/lobehub/lobe-chat/issues/8479) ([7dd65f0](https://github.com/lobehub/lobe-chat/commit/7dd65f0))

</details>

<div align="right">

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

</div>
2025-07-18 05:12:40 +00:00
Arvin Xu 7dd65f0cb4 🐛 fix: fix webapi proxy with clerk (#8479)
* fix webapi proxy with clerk

* Update jwt.ts
2025-07-18 12:56:55 +08:00
lobehubbot ecf1fdc2f7 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-17 18:57:38 +00:00
semantic-release-bot 71c33300cf 🔖 chore(release): v1.100.1 [skip ci]
### [Version&nbsp;1.100.1](https://github.com/lobehub/lobe-chat/compare/v1.100.0...v1.100.1)
<sup>Released on **2025-07-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Use server env config image models.

<br/>

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

#### What's fixed

* **misc**: Use server env config image models, closes [#8478](https://github.com/lobehub/lobe-chat/issues/8478) ([768ee2b](https://github.com/lobehub/lobe-chat/commit/768ee2b))

</details>

<div align="right">

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

</div>
2025-07-17 18:56:46 +00:00
YuTengjing 768ee2bf23 🐛 fix: use server env config image models (#8478)
* docs: update fal provider invalid image links

* docs: add FAL model provider environment variables documentation

* 🐛 fix: update model type assignment in parseModels.ts to use dynamic lookup

* 📝 docs: add FAQ for resolving AI image generation timeout issues on Vercel

*  feat: implement getModelPropertyWithFallback utility for dynamic model property retrieval

* 📝 docs: expand testing guide with best practices for mock data strategies, error handling, and module pollution prevention

* 🐛 fix: update model type in LobeOpenAICompatibleFactory tests to 'chat'
2025-07-18 02:41:27 +08:00
lobehubbot d23d8f1c29 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-17 05:25:51 +00:00
semantic-release-bot 7eadecd340 🔖 chore(release): v1.100.0 [skip ci]
## [Version&nbsp;1.100.0](https://github.com/lobehub/lobe-chat/compare/v1.99.6...v1.100.0)
<sup>Released on **2025-07-17**</sup>

####  Features

- **misc**: Refactor desktop oauth and use JWTs token to support remote chat.

<br/>

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

#### What's improved

* **misc**: Refactor desktop oauth and use JWTs token to support remote chat, closes [#8446](https://github.com/lobehub/lobe-chat/issues/8446) ([054ca5f](https://github.com/lobehub/lobe-chat/commit/054ca5f))

</details>

<div align="right">

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

</div>
2025-07-17 05:24:42 +00:00
Arvin Xu 785406be9a 🔨 chore: improve code (#8469) 2025-07-17 13:09:41 +08:00
Arvin Xu 054ca5fd97 feat: refactor desktop oauth and use JWTs token to support remote chat (#8446)
* refactor the oauth

* refactor the oauth

* refactor the oauth

* improve oauth status

* fix desktop auth

* fix tests

* improve clean handoff

* try to fix handoff public issue

* fix route protection

* refactor anim

* refactor

* update to access token to jwt

* update to access token to jwt

* improve config

* refactor for JWKs token

* fix auto refresh issue

*  feat: support webapi proxy

* wip: 完成新流式接口

* wip: 跑通流式框架

* fix webhooks

* fix network proxy

* try to fix workflow

* fix proxy in remote sync

* fix tests

* fix tests

* fix oauth bypass route

* fix webapi proxy
2025-07-17 12:54:37 +08:00
lobehubbot 5d3a4ad460 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-16 18:05:16 +00:00
semantic-release-bot 8eb257bb2e 🔖 chore(release): v1.99.6 [skip ci]
### [Version&nbsp;1.99.6](https://github.com/lobehub/lobe-chat/compare/v1.99.5...v1.99.6)
<sup>Released on **2025-07-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Desktop local db can't upload image.

<br/>

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

#### What's fixed

* **misc**: Desktop local db can't upload image, closes [#8459](https://github.com/lobehub/lobe-chat/issues/8459) ([25bfc80](https://github.com/lobehub/lobe-chat/commit/25bfc80))

</details>

<div align="right">

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

</div>
2025-07-16 18:04:24 +00:00
YuTengjing 25bfc802b5 🐛 fix: desktop local db can't upload image (#8459) 2025-07-17 01:49:11 +08:00
lobehubbot 752e576b80 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-16 13:57:35 +00:00
semantic-release-bot 166f3e2400 🔖 chore(release): v1.99.5 [skip ci]
### [Version&nbsp;1.99.5](https://github.com/lobehub/lobe-chat/compare/v1.99.4...v1.99.5)
<sup>Released on **2025-07-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix page error when url is not defined in web search plugin.

<br/>

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

#### What's fixed

* **misc**: Fix page error when url is not defined in web search plugin, closes [#8441](https://github.com/lobehub/lobe-chat/issues/8441) ([a55b65b](https://github.com/lobehub/lobe-chat/commit/a55b65b))

</details>

<div align="right">

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

</div>
2025-07-16 13:56:43 +00:00
vual a55b65b0b1 🐛 fix: fix page error when url is not defined in web search plugin (#8441)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-07-16 21:41:14 +08:00
lobehubbot 3359b3f237 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-16 13:22:45 +00:00
semantic-release-bot 8ba8e8217b 🔖 chore(release): v1.99.4 [skip ci]
### [Version&nbsp;1.99.4](https://github.com/lobehub/lobe-chat/compare/v1.99.3...v1.99.4)
<sup>Released on **2025-07-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix apikey issue on server log.

<br/>

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

#### What's fixed

* **misc**: Fix apikey issue on server log, closes [#8457](https://github.com/lobehub/lobe-chat/issues/8457) ([43be2d1](https://github.com/lobehub/lobe-chat/commit/43be2d1))

</details>

<div align="right">

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

</div>
2025-07-16 13:21:54 +00:00
Arvin Xu 43be2d1905 🐛 fix: fix apikey issue on server log (#8457) 2025-07-16 21:06:51 +08:00
lobehubbot 53e0b51cbd 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-16 08:52:28 +00:00
semantic-release-bot c530000334 🔖 chore(release): v1.99.3 [skip ci]
### [Version&nbsp;1.99.3](https://github.com/lobehub/lobe-chat/compare/v1.99.2...v1.99.3)
<sup>Released on **2025-07-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Chat model list should not show image model.

<br/>

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

#### What's fixed

* **misc**: Chat model list should not show image model, closes [#8448](https://github.com/lobehub/lobe-chat/issues/8448) ([2bb1506](https://github.com/lobehub/lobe-chat/commit/2bb1506))

</details>

<div align="right">

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

</div>
2025-07-16 08:51:36 +00:00
YuTengjing 2bb1506ea2 🐛 fix: chat model list should not show image model (#8448) 2025-07-16 16:36:43 +08:00
YuTengjing c8f32c301e ✏️ docs: replace all 'Language Model' with 'Al Service Provider' in provider docs (#8444) 2025-07-15 17:23:09 +08:00
lobehubbot 1261cee35d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-15 08:36:44 +00:00
semantic-release-bot 8c99c5dfd4 🔖 chore(release): v1.99.2 [skip ci]
### [Version&nbsp;1.99.2](https://github.com/lobehub/lobe-chat/compare/v1.99.1...v1.99.2)
<sup>Released on **2025-07-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Some ai image generation feedback issues.

<br/>

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

#### What's fixed

* **misc**: Some ai image generation feedback issues, closes [#8440](https://github.com/lobehub/lobe-chat/issues/8440) ([bc41329](https://github.com/lobehub/lobe-chat/commit/bc41329))

</details>

<div align="right">

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

</div>
2025-07-15 08:35:52 +00:00
YuTengjing bc413299ba 🐛 fix: some ai image generation feedback issues (#8440) 2025-07-15 16:20:41 +08:00
lobehubbot f8369e1e3d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-15 08:00:07 +00:00
semantic-release-bot 8e4f59c25b 🔖 chore(release): v1.99.1 [skip ci]
### [Version&nbsp;1.99.1](https://github.com/lobehub/lobe-chat/compare/v1.99.0...v1.99.1)
<sup>Released on **2025-07-15**</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-15 07:59:14 +00:00
Arvin Xu 28c1fe060a ️ perf: improve memory usage in desktop (#8431)
* improve usage of memory

* try to improve
2025-07-15 15:44:10 +08:00
YuTengjing 9557d79e33 🐛 fix: some ai image bugs (#8432) 2025-07-14 23:11:02 +08:00
lobehubbot 876df9ca08 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-14 12:51:05 +00:00
semantic-release-bot 025529d94f 🔖 chore(release): v1.99.0 [skip ci]
## [Version&nbsp;1.99.0](https://github.com/lobehub/lobe-chat/compare/v1.98.2...v1.99.0)
<sup>Released on **2025-07-14**</sup>

####  Features

- **plugin**: Support Streamable HTTP MCP Server Auth.
- **misc**:  support AI Image.

<br/>

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

#### What's improved

* **plugin**: Support Streamable HTTP MCP Server Auth, closes [#8425](https://github.com/lobehub/lobe-chat/issues/8425) ([853a09a](https://github.com/lobehub/lobe-chat/commit/853a09a))
* **misc**:  support AI Image, closes [#8312](https://github.com/lobehub/lobe-chat/issues/8312) ([095de57](https://github.com/lobehub/lobe-chat/commit/095de57))

</details>

<div align="right">

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

</div>
2025-07-14 12:50:05 +00:00
Arvin Xu 853a09af1b feat(plugin): support Streamable HTTP MCP Server Auth (#8425)
*  feat: support http streamable auth and headers

*  feat: support http streamable auth and headers

* improve

* improve token

* add i18n

* update i18n
2025-07-14 20:34:39 +08:00
YuTengjing 095de57675 feat: support AI Image (#8312)
Co-authored-by: canisminor1990 <i@canisminor.cc>
2025-07-14 20:29:57 +08:00
lobehubbot c98860e6cf 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-14 05:50:19 +00:00
semantic-release-bot f64f00fd6d 🔖 chore(release): v1.98.2 [skip ci]
### [Version&nbsp;1.98.2](https://github.com/lobehub/lobe-chat/compare/v1.98.1...v1.98.2)
<sup>Released on **2025-07-14**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-07-14 05:49:30 +00:00
LobeHub Bot 5b89ec8bd9 💄 style: update i18n (#8422)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-14 13:35:27 +08:00
lobehubbot 3b37094dfb 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-14 03:01:40 +00:00
semantic-release-bot b2a2fe3617 🔖 chore(release): v1.98.1 [skip ci]
### [Version&nbsp;1.98.1](https://github.com/lobehub/lobe-chat/compare/v1.98.0...v1.98.1)
<sup>Released on **2025-07-14**</sup>

#### 💄 Styles

- **misc**: Fix discover translation.

<br/>

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

#### Styles

* **misc**: Fix discover translation, closes [#8423](https://github.com/lobehub/lobe-chat/issues/8423) ([15ae35c](https://github.com/lobehub/lobe-chat/commit/15ae35c))

</details>

<div align="right">

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

</div>
2025-07-14 03:00:53 +00:00
René Wang 15ae35ca2a 💄 style: fix discover translation (#8423) 2025-07-14 10:46:57 +08:00
lobehubbot e9e11cbbed 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-13 05:45:45 +00:00
semantic-release-bot 1c9c8d75ee 🔖 chore(release): v1.98.0 [skip ci]
## [Version&nbsp;1.98.0](https://github.com/lobehub/lobe-chat/compare/v1.97.17...v1.98.0)
<sup>Released on **2025-07-13**</sup>

####  Features

- **misc**: Add network proxy for desktop.

<br/>

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

#### What's improved

* **misc**: Add network proxy for desktop, closes [#7848](https://github.com/lobehub/lobe-chat/issues/7848) ([46d2509](https://github.com/lobehub/lobe-chat/commit/46d2509))

</details>

<div align="right">

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

</div>
2025-07-13 05:44:37 +00:00
renovate[bot] 95ac795573 Update dependency @anthropic-ai/sdk to ^0.56.0 (#8412)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-13 13:30:10 +08:00
renovate[bot] a173f6e401 Update dependency lucide-react to ^0.525.0 (#8413)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-13 13:29:05 +08:00
Arvin Xu 37bb8ba2b7 🔨 chore: fix settings in desktop (#8414) 2025-07-13 13:26:22 +08:00
Arvin Xu 46d25092a4 feat: add network proxy for desktop (#7848)
* add network proxy

* update network proxy

* refactor network proxy

* support network proxy

* fix types

* fix lint

* fix lint
2025-07-13 13:19:21 +08:00
lobehubbot 88c86179ba 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-13 05:07:12 +00:00
semantic-release-bot 127d38d702 🔖 chore(release): v1.97.17 [skip ci]
### [Version&nbsp;1.97.17](https://github.com/lobehub/lobe-chat/compare/v1.97.16...v1.97.17)
<sup>Released on **2025-07-13**</sup>

#### 💄 Styles

- **misc**: Support Hunyuan A13B thinking model.

<br/>

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

#### Styles

* **misc**: Support Hunyuan A13B thinking model, closes [#8278](https://github.com/lobehub/lobe-chat/issues/8278) ([09ca978](https://github.com/lobehub/lobe-chat/commit/09ca978))

</details>

<div align="right">

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

</div>
2025-07-13 05:06:26 +00:00
sxjeru 09ca978f9c 💄 style: Support Hunyuan A13B thinking model (#8278)
* Update novita.ts

* feat: 添加新的混元模型并更新处理负载逻辑

* fix

* free Gemini 2.5 Pro

* 添加 ERNIE 4.5 300B A47B 模型到 siliconcloudChatModels

* novita

* 添加 GLM-4.1V-Thinking 系列模型到 zhipuChatModels,并更新现有模型的上下文窗口和最大输出设置

* 更新 zhipuChatModels,添加视觉能力并启用新模型;修改 ZhiPu 的检查模型 ID

* 移除多个 siliconcloud 废弃模型

* fix

* 移除 groq Qwen QwQ 32B 模型配置

* 更新 siliconcloud 模型

* 更新 novita/qwen 模型

* update siliconcloud model

* add Pangu Pro MoE 72B A16B

* Update novita.ts

* Update novita.ts

* update novita

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2025-07-13 12:52:39 +08:00
lobehubbot 1696bf114b 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-13 03:48:21 +00:00
semantic-release-bot feb42fcc9e 🔖 chore(release): v1.97.16 [skip ci]
### [Version&nbsp;1.97.16](https://github.com/lobehub/lobe-chat/compare/v1.97.15...v1.97.16)
<sup>Released on **2025-07-13**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-07-13 03:47:33 +00:00
LobeHub Bot 25158750c0 💄 style: update i18n (#8410)
Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2025-07-13 11:33:28 +08:00
lobehubbot d3d7a158fc 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-12 17:17:24 +00:00
semantic-release-bot 2212ea98ac 🔖 chore(release): v1.97.15 [skip ci]
### [Version&nbsp;1.97.15](https://github.com/lobehub/lobe-chat/compare/v1.97.14...v1.97.15)
<sup>Released on **2025-07-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Add vision support to Grok 4.

<br/>

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

#### What's fixed

* **misc**: Add vision support to Grok 4, closes [#8386](https://github.com/lobehub/lobe-chat/issues/8386) ([8512f5a](https://github.com/lobehub/lobe-chat/commit/8512f5a))

</details>

<div align="right">

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

</div>
2025-07-12 17:16:32 +00:00
bbbugg 8512f5a9ae 🐛 fix: add vision support to Grok 4 (#8386)
*  feat: add vision support to Grok 4

*  feat: disable Grok 2 Vision 1212 model
2025-07-13 01:02:02 +08:00
lobehubbot a2d40643c7 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-12 17:00:04 +00:00
semantic-release-bot 2ef77567f7 🔖 chore(release): v1.97.14 [skip ci]
### [Version&nbsp;1.97.14](https://github.com/lobehub/lobe-chat/compare/v1.97.13...v1.97.14)
<sup>Released on **2025-07-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Revert "💄 style: Open new topic by tap Just Chat again".

#### 💄 Styles

- **misc**: Add Kimi K2 model.

<br/>

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

#### What's fixed

* **misc**: Revert "💄 style: Open new topic by tap Just Chat again", closes [#8402](https://github.com/lobehub/lobe-chat/issues/8402) ([55462b9](https://github.com/lobehub/lobe-chat/commit/55462b9))

#### Styles

* **misc**: Add Kimi K2 model, closes [#8401](https://github.com/lobehub/lobe-chat/issues/8401) ([4cb1a18](https://github.com/lobehub/lobe-chat/commit/4cb1a18))

</details>

<div align="right">

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

</div>
2025-07-12 16:59:10 +00:00
Arvin Xu 755e878a44 🔨 chore: fix lint (#8407) 2025-07-13 00:45:15 +08:00
sxjeru 4cb1a185ff 💄 style: Add Kimi K2 model (#8401) 2025-07-13 00:10:22 +08:00
Arvin Xu 55462b95ff 🐛 fix: Revert "💄 style: Open new topic by tap Just Chat again" (#8402)
This reverts commit 7e2f4ce5dd.
2025-07-12 23:04:10 +08:00
lobehubbot 9a95886fe7 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-12 05:04:50 +00:00
semantic-release-bot fd44b088d6 🔖 chore(release): v1.97.13 [skip ci]
### [Version&nbsp;1.97.13](https://github.com/lobehub/lobe-chat/compare/v1.97.12...v1.97.13)
<sup>Released on **2025-07-12**</sup>

#### 💄 Styles

- **misc**: Support new Doubao thinking models, update i18n.

<br/>

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

#### Styles

* **misc**: Support new Doubao thinking models, closes [#8174](https://github.com/lobehub/lobe-chat/issues/8174) ([637d75c](https://github.com/lobehub/lobe-chat/commit/637d75c))
* **misc**: Update i18n, closes [#8400](https://github.com/lobehub/lobe-chat/issues/8400) ([790eeb8](https://github.com/lobehub/lobe-chat/commit/790eeb8))

</details>

<div align="right">

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

</div>
2025-07-12 05:03:58 +00:00
LobeHub Bot 790eeb86c3 💄 style: update i18n (#8400) 2025-07-12 12:49:42 +08:00
sxjeru 637d75cde0 💄 style: Support new Doubao thinking models (#8174) 2025-07-12 12:49:21 +08:00
lobehubbot 526b93470d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-11 06:18:11 +00:00
semantic-release-bot 4963c599c9 🔖 chore(release): v1.97.12 [skip ci]
### [Version&nbsp;1.97.12](https://github.com/lobehub/lobe-chat/compare/v1.97.11...v1.97.12)
<sup>Released on **2025-07-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Grok-4 reasoning model universal matching.

<br/>

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

#### What's fixed

* **misc**: Grok-4 reasoning model universal matching, closes [#8390](https://github.com/lobehub/lobe-chat/issues/8390) ([d6f17f8](https://github.com/lobehub/lobe-chat/commit/d6f17f8))

</details>

<div align="right">

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

</div>
2025-07-11 06:17:05 +00:00
Arvin Xu 09f921d531 ️ perf: add database autovacuum sql (#8395)
* remove ai sdk

* add autovacuum tuning sql
2025-07-11 14:03:05 +08:00
sxjeru d6f17f8246 🐛 fix: Grok-4 reasoning model universal matching (#8390)
* Update index.ts

* Update xai.ts
2025-07-11 14:02:08 +08:00
lobehubbot efb9311e6f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-11 03:39:38 +00:00
semantic-release-bot 1353d208e9 🔖 chore(release): v1.97.11 [skip ci]
### [Version&nbsp;1.97.11](https://github.com/lobehub/lobe-chat/compare/v1.97.10...v1.97.11)
<sup>Released on **2025-07-11**</sup>

#### 💄 Styles

- **misc**: Open new topic by tap Just Chat again.

<br/>

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

#### Styles

* **misc**: Open new topic by tap Just Chat again, closes [#8311](https://github.com/lobehub/lobe-chat/issues/8311) ([7e2f4ce](https://github.com/lobehub/lobe-chat/commit/7e2f4ce))

</details>

<div align="right">

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

</div>
2025-07-11 03:38:50 +00:00
René Wang 7e2f4ce5dd 💄 style: Open new topic by tap Just Chat again (#8311)
* feat: Open new topic by tap Just Chat again

* feat: Prevent re-render of message update

* fix: Import loop
2025-07-11 11:24:43 +08:00
lobehubbot ca5432ea6d 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-11 03:02:49 +00:00
semantic-release-bot 86ff384587 🔖 chore(release): v1.97.10 [skip ci]
### [Version&nbsp;1.97.10](https://github.com/lobehub/lobe-chat/compare/v1.97.9...v1.97.10)
<sup>Released on **2025-07-11**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

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

#### Styles

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

</details>

<div align="right">

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

</div>
2025-07-11 03:01:58 +00:00
LobeHub Bot 00215c02eb 💄 style: update i18n (#8387) 2025-07-11 10:47:51 +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&nbsp;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
ONLY-yours 07472e0555 fix: when s3 files not exist in origin file, but db still have this file, should delete 2025-07-04 10:30:03 +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
5055 changed files with 577517 additions and 148890 deletions
+38
View File
@@ -0,0 +1,38 @@
---
allowed-tools: Bash(gh issue view:*), Bash(gh search:*), Bash(gh issue list:*), Bash(gh api:*), Bash(gh issue comment:*)
description: Find duplicate GitHub issues
---
Find up to 3 likely duplicate issues for a given GitHub issue.
To do this, follow these steps precisely:
1. Use an agent to check if the Github issue (a) is closed, (b) does not need to be deduped (eg. because it is broad product feedback without a specific solution, or positive feedback), or (c) already has a duplicates comment that you made earlier. If so, do not proceed.
2. Use an agent to view a Github issue, and ask the agent to return a summary of the issue
3. Then, launch 5 parallel agents to search Github for duplicates of this issue, using diverse keywords and search approaches, using the summary from #1
4. Next, feed the results from #1 and #2 into another agent, so that it can filter out false positives, that are likely not actually duplicates of the original issue. If there are no duplicates remaining, do not proceed.
5. Finally, comment back on the issue with a list of up to three duplicate issues (or zero, if there are no likely duplicates)
Notes (be sure to tell this to your agents, too):
- Use `gh` to interact with Github, rather than web fetch
- Do not use other tools, beyond `gh` (eg. don't use other MCP servers, file edit, etc.)
- Make a todo list first
- For your comment, follow the following format precisely (assuming for this example that you found 3 suspected duplicates):
---
Found 3 possible duplicate issues:
1. <link to issue>
2. <link to issue>
3. <link to issue>
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
> 🤖 Generated with Claude Code
---
+228
View File
@@ -0,0 +1,228 @@
# Auto Testing Coverage Assistant
You are an auto testing assistant. Your task is to add unit tests to improve code coverage in the codebase.
## Target Directories
Prioritize modules with business logic:
- apps/desktop/src/core/
- apps/desktop/src/modules/
- apps/desktop/src/controllers/
- apps/desktop/src/services/
- packages/\*/src/
- src/services/
- src/store/
- src/server/routers/
- src/server/services/
- src/server/modules/
- src/libs/
- src/utils/
**Do NOT test**:
- UI components (\*.tsx React components)
- Test files themselves
- Generated files
- Configuration files
- Type definition files
## Workflow
### 1. Select a Module to Process
**Selection Strategy**:
- Randomly pick ONE module from the target directories
- Prioritize modules that:
- Have significant business logic
- Have no or minimal test coverage
- Already have example test files (easier to follow patterns)
- Are large modules with complex logic
**Module granularity examples**:
- A single package: `packages/database/src/models`
- A desktop module: `apps/desktop/src/modules/auth`
- A service directory: `src/services/user`
- A store slice: `src/store/chat`
**Special handling**:
- If a directory has NO tests but needs coverage → create ONE example test file
- If a directory already has some tests → expand coverage to untested functions/classes
- Focus on directories with existing test examples (follow their patterns)
### 2. Analyze Module Structure
Before writing tests:
- Identify core business logic functions/classes
- Check for existing test files and patterns
- Determine testing approach based on module type:
- Database models → test CRUD operations
- Services → test business logic flows
- Controllers → test request handling
- Store slices → test state mutations and actions
- Utils → test utility functions with edge cases
### 3. Write Unit Tests
**Testing Guidelines**:
- Follow existing test patterns in the codebase
- Use Vitest as the testing framework
- Focus on business logic, not UI rendering
- Write comprehensive tests covering:
- Happy path scenarios
- Edge cases
- Error handling
- Input validation
- Use descriptive test names: `describe()` and `it()` blocks
- Mock external dependencies appropriately
- Keep tests isolated and independent
**Test File Naming**:
- Place test files next to source files: `filename.test.ts`
- Or in `__tests__` directory: `__tests__/filename.test.ts`
**Example Test Structure**:
```typescript
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { functionToTest } from './module';
describe('ModuleName', () => {
describe('functionName', () => {
it('should handle normal case correctly', () => {
// Arrange
const input = 'test';
// Act
const result = functionToTest(input);
// Assert
expect(result).toBe('expected');
});
it('should handle edge case', () => {
// Test edge case
});
it('should throw error on invalid input', () => {
// Test error handling
});
});
});
```
### 4. Run Tests and Fix Issues
**CRITICAL**: Tests MUST pass before submitting!
- Run tests using the appropriate command:
- Web: `bunx vitest run --silent='passed-only' '[file-path-pattern]'`
- Packages: `cd packages/[name] && bunx vitest run --silent='passed-only' '[file-path-pattern]'`
- Wrap file paths in single quotes
- Fix any failing tests
- Ensure all tests pass before proceeding
**If tests fail**:
- Debug and fix the test logic
- Check mocks and dependencies
- Verify test isolation
- If unable to fix after 2 attempts, skip this module and document the issue
### 5. Create Pull Request
- Create a new branch: `automatic/add-tests-[module-name]-[date]`
- Commit changes with message format:
```
✅ test: add unit tests for [module-name]
```
- Push the branch
- Create a PR with:
- Title: `✅ test: add unit tests for [module-name]`
- Body following this template:
```markdown
## Summary
- Added unit tests for `[module-name]`
- Total test files added/modified: [number]
- Test cases added: [number]
- Coverage focus: [brief description of what was tested]
## Changes
- [ ] All tests pass successfully
- [ ] Business logic coverage improved
- [ ] Edge cases and error handling covered
- [ ] Tests follow existing patterns
## Module Processed
`[module-path]`
## Test Coverage
- Functions tested: [list key functions]
- Coverage type: [unit/integration]
- Test approach: [brief description]
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
```
## Important Rules
- **DO** focus on business logic testing only
- **DO** ensure all tests pass before creating PR
- **DO** follow existing test patterns in the codebase
- **DO** write descriptive test names and comments
- **DO** test edge cases and error scenarios
- **DO NOT** test UI components (\*.tsx)
- **DO NOT** create tests that will fail
- **DO NOT** modify production code unless absolutely necessary for testability
- **DO NOT** exceed 45 minutes of workflow time
- **DO NOT** create tests for generated or configuration files
## Module Selection Examples
**Good choices**:
- `packages/database/src/models/` - Core CRUD operations
- `src/services/user/client.ts` - User service business logic
- `apps/desktop/src/modules/auth/` - Authentication logic
- `src/store/chat/slices/message/` - Message state management
- `src/server/services/` - Backend service logic
**Bad choices**:
- `src/components/` - UI components (avoid)
- `src/app/` - Next.js pages (avoid)
- `src/styles/` - Styling files (avoid)
- Configuration files (avoid)
## Testing Best Practices
1. **Arrange-Act-Assert** pattern
2. **Mock external dependencies** (APIs, databases, file system)
3. **Test one thing per test case**
4. **Use descriptive test names**
5. **Keep tests fast and isolated**
6. **Follow DRY principle with beforeEach/afterEach**
7. **Test behavior, not implementation**
## Example Modules with Test Patterns
Look for existing test files to understand patterns:
- `packages/database/src/models/**/*.test.ts` - Database testing patterns
- `apps/desktop/src/controllers/**/*.test.ts` - Controller testing patterns
- `src/services/**/*.test.ts` - Service testing patterns
Follow their structure and conventions when adding new tests.
+253
View File
@@ -0,0 +1,253 @@
# Issue Triage Guide
This guide is used for batch triaging GitHub issues - analyzing issues and applying appropriate labels.
## Workflow
For EACH issue, follow these steps:
### Step 1: Get Available Labels (run once per batch)
```bash
gh label list --json name,description --limit 300
```
### Step 2: Get Issue Details
For each issue number, run:
```bash
gh issue view [ISSUE_NUMBER] --json number,title,body,labels,comments
```
### Step 3: Analyze and Select Labels
Extract information from the issue template and content:
#### Template Fields Mapping
- 📦 Platform field → `platform:web/desktop/mobile`
- 💻 Operating System → `os:windows/macos/linux/ios`
- 🌐 Browser → `device:pc/mobile`
- 📦 Deployment mode → `deployment:server/client/pglite`
- Platform (hosting) → `hosting:cloud/self-host/vercel/zeabur/railway`
#### Provider Detection
**IMPORTANT**: Always check issue title and body for provider mentions!
**Official Providers** (check for these keywords in title/body):
- `openai`, `gpt``provider:openai`
- `gemini``provider:gemini`
- `claude`, `anthropic``provider:claude`
- `deepseek``provider:deepseek`
- `google``provider:google`
- `ollama``provider:ollama`
- `azure``provider:azure`
- `bedrock``provider:bedrock`
- `vertex``provider:vertex`
- `groq`, `grok``provider:groq`
- `mistral``provider:mistral`
- `moonshot``provider:moonshot`
- `zhipu``provider:zhipu`
- `minimax``provider:minimax`
- `doubao``provider:doubao`
**Third-party Aggregation Providers**:
- `aihubmix`, `AIHubMix`, `AIHUBMIX``provider:aihubmix`
- Check environment variables like `AIHUBMIX_*` in issue body
**Multiple Providers**: If issue mentions multiple providers, add ALL applicable provider labels.
### Label Categories
#### a) Issue Type (select ONE if applicable)
- `💄 Design` - UI/UX design issues
- `📝 Documentation` - Documentation improvements
- `⚡️ Performance` - Performance optimization
#### b) Priority (select ONE if applicable)
- `priority:high` - Critical issues, data loss, security, maintainer mentions "urgent"/"serious"/"critical"
- `priority:medium` - Important issues affecting multiple users, significant functionality impact
- `priority:low` - Nice to have, minor issues, edge cases
**Priority Guidelines**:
- Set `priority:high` for: data loss, authentication failures, deployment blockers, critical bugs
- Set `priority:medium` for: feature bugs affecting multiple users, workflow issues
- Set `priority:low` for: cosmetic issues, feature requests, configuration questions
#### c) Platform (select ALL applicable)
- `platform:web`
- `platform:desktop`
- `platform:mobile`
#### d) Device (for platform:web, select ONE)
- `device:pc`
- `device:mobile`
#### e) Operating System (select ALL applicable)
- `os:windows`
- `os:macos`
- `os:linux`
- `os:ios`
- `os:android`
#### f) Hosting Platform (select ONE)
- `hosting:cloud` - Official LobeHub Cloud
- `hosting:self-host` - Self-hosted deployment
- `hosting:vercel` - Vercel deployment
- `hosting:zeabur` - Zeabur deployment
- `hosting:railway` - Railway deployment
#### g) Deployment Mode (select ONE if mentioned)
- `deployment:server` - Server-side database mode
- `deployment:client` - Client-side database mode
- `deployment:pglite` - PGLite mode
**Additional deployment tags**:
- `docker` - If using Docker deployment
- `electron` - If desktop/Electron specific
#### h) Model Provider (select ALL applicable)
See "Provider Detection" section above for complete list.
**IMPORTANT**: Always scan issue title and body for provider keywords!
#### i) Feature/Component (select ALL applicable)
Core Features:
- `feature:settings` - Settings and configuration
- `feature:agent` - Agent/Assistant functionality
- `feature:topic` - Topic/Conversation management
- `feature:marketplace` - Agent marketplace
File & Knowledge:
- `feature:files` - File upload/management
- `feature:knowledge-base` - Knowledge base and RAG
- `feature:export` - Export functionality
Model Capabilities:
- `feature:streaming` - Streaming responses
- `feature:tool` - Tool calling
- `feature:vision` - Vision/multimodal capabilities
- `feature:image` - AI image generation
- `feature:dalle` - DALL-E specific
- `feature:tts` - Text-to-speech
Technical:
- `feature:api` - Backend API
- `feature:auth` - Authentication/authorization
- `feature:sync` - Cloud sync functionality
- `feature:search` - Search functionality
- `feature:mcp` - MCP integration
- `feature:editor` - Lobe Editor
- `feature:markdown` - Markdown rendering
- `feature:thread` - Thread/Subtopic functionality
Collaboration:
- `feature:group-chat` - Group chat functionality
- `feature:memory` - Memory feature
- `feature:team-workspace` - Team workspace
#### j) Workflow/Status
- `Duplicate` - Only if duplicate of an OPEN issue (mention issue number)
- `needs-reproduction` - Cannot reproduce, needs more information
- `good-first-issue` - Good for first-time contributors
- `🤔 Need Reproduce` - Needs reproduction steps
### Step 4: Apply Labels
Add labels (comma-separated, no spaces after commas):
```bash
gh issue edit [ISSUE_NUMBER] --add-label "label1,label2,label3"
```
Remove "unconfirm" label if adding other labels:
```bash
gh issue edit [ISSUE_NUMBER] --remove-label "unconfirm"
```
**Important**: Combine both commands when possible for efficiency.
### Step 5: Log Summary
For each issue, provide reasoning (2-4 sentences):
- Labels applied and why
- Key factors from issue template/comments
- Provider detection reasoning (if applicable)
## Important Rules
1. **Read Carefully**: Read issue template fields AND issue body/title for complete context
2. **Provider Detection**: ALWAYS check title and body for provider keywords (including aihubmix, etc.)
3. **Multiple Categories**: Use ALL applicable labels from different categories
4. **Label Prefixes**: Always use proper prefixes (`feature:`, `provider:`, `os:`, `platform:`, etc.)
5. **Maintainer Comments**: Check maintainer comments for priority/status hints
6. **No Comments**: Only apply labels, DO NOT post comments to issues
7. **Batch Efficiency**: Process issues in parallel when possible
## Common Patterns
### Provider in Environment Variables
If issue body contains `AIHUBMIX_*`, add `provider:aihubmix`
### Multiple Provider Issues
If comparing providers (e.g., "works with OpenAI but not Gemini"), add both provider labels
### Desktop Issues
Desktop issues often need: `platform:desktop`, `electron`, specific `os:*`, and `deployment:client` or `deployment:server`
### Knowledge Base Issues
Usually need: `feature:knowledge-base`, often with `feature:files`, may need `provider:*` for embedding models
### Tool Calling Issues
Usually need: `feature:tool`, specific `provider:*`, may need `feature:mcp` if MCP-related
### Streaming Issues
Usually need: `feature:streaming`, specific `provider:*`, check for timeout/performance issues
## Example Triage
**Issue #8850**: "aihubmix 的优惠 app 没有生效"
**Analysis**:
- Title contains "aihubmix" → `provider:aihubmix`
- Template shows: Windows, Chrome, Docker, Client mode
- About API discount codes not working
**Labels Applied**:
```bash
gh issue edit 8850 --add-label "provider:aihubmix,platform:web,os:windows,deployment:client,hosting:self-host,docker"
gh issue edit 8850 --remove-label "unconfirm"
```
**Reasoning**: AIHubMix provider discount feature not working. Client mode deployment on Windows with Docker. Provider detection from title keyword "aihubmix".
+135
View File
@@ -0,0 +1,135 @@
# Team Assignment Guide
## Quick Reference by Name
- **@arvinxx**: Last resort only, mention for priority:high issues, tool calling , mcp
- **@canisminor1990**: Design, UI components, editor
- **@tjx666**: Image/video generation, vision, cloud, documentation, TTS
- **@ONLY-yours**: Performance, streaming, settings, general bugs, web platform, marketplace
- **@RiverTwilight**: Knowledge base, files (KB-related), group chat
- **@nekomeowww**: Memory, backend, deployment, DevOps
- **@sudongyuer**: Mobile app (React Native)
- **@sxjeru**: Model providers and configuration
- **@cy948**: Auth Modules
- **@rdmclin2**: Team workspace
Quick reference for assigning issues based on labels.
## Label to Team Member Mapping
### Provider Labels (provider:\*)
| Label | Owner | Notes |
| ---------------- | ------- | -------------------------------------------- |
| All `provider:*` | @sxjeru | Model configuration and provider integration |
### Platform Labels (platform:\*)
| Label | Owner | Notes |
| ------------------ | ----------- | -------------------------------------- |
| `platform:mobile` | @sudongyuer | React Native mobile app |
| `platform:desktop` | @ONLY-yours | Electron desktop client (general) |
| `platform:web` | @ONLY-yours | Web platform (unless specific feature) |
### Feature Labels (feature:\*)
| Label | Owner | Notes |
| ------------------------ | --------------- | ----------------------------------------------------------------------- |
| `feature:image` | @tjx666 | AI image generation |
| `feature:dalle` | @tjx666 | DALL-E related |
| `feature:vision` | @tjx666 | Vision/multimodal generation |
| `feature:knowledge-base` | @RiverTwilight | Knowledge base and RAG |
| `feature:files` | @RiverTwilight | File upload/management (when KB-related)<br>@ONLY-yours (general files) |
| `feature:editor` | @canisminor1990 | Lobe Editor |
| `feature:auth` | @cy948 | Authentication/authorization |
| `feature:api` | @nekomeowww | Backend API |
| `feature:streaming` | @arvinxx | Streaming response |
| `feature:settings` | @ONLY-yours | Settings and configuration |
| `feature:agent` | @ONLY-yours | Agent/Assistant |
| `feature:topic` | @ONLY-yours | Topic/Conversation management |
| `feature:thread` | @arvinxx | Thread/Subtopic |
| `feature:marketplace` | @ONLY-yours | Agent marketplace |
| `feature:tool` | @arvinxx | Tool calling |
| `feature:mcp` | @arvinxx | MCP integration |
| `feature:search` | @ONLY-yours | Search functionality |
| `feature:tts` | @tjx666 | Text-to-speech |
| `feature:export` | @ONLY-yours | Export functionality |
| `feature:group-chat` | @RiverTwilight | Group chat functionality |
| `feature:memory` | @nekomeowww | Memory feature |
| `feature:team-workspace` | @rdmclin2 | Team workspace application |
### Deployment Labels (deployment:\*)
| Label | Owner | Notes |
| ------------------ | ----------- | -------------------------- |
| All `deployment:*` | @nekomeowww | Server/client/pglite modes |
### Hosting Labels (hosting:\*)
| Label | Owner | Notes |
| ------------------- | ----------- | ---------------------- |
| `hosting:cloud` | @tjx666 | Official LobeHub Cloud |
| `hosting:self-host` | @nekomeowww | Self-hosting issues |
| `hosting:vercel` | @nekomeowww | Vercel deployment |
| `hosting:zeabur` | @nekomeowww | Zeabur deployment |
| `hosting:railway` | @nekomeowww | Railway deployment |
### Issue Type Labels
| Label | Owner | Notes |
| ------------------ | -------------------- | ---------------------------- |
| 💄 Design | @canisminor1990 | Design and styling |
| 📝 Documentation | @tjx666 | Documentation |
| ⚡️ Performance | @ONLY-yours | Performance optimization |
| 🐛 Bug | (depends on feature) | Assign based on other labels |
| 🌠 Feature Request | (depends on feature) | Assign based on other labels |
## Assignment Rules
### Priority Order (apply in order)
1. **Specific feature owner** - e.g., `feature:knowledge-base`@RiverTwilight
2. **Platform owner** - e.g., `platform:mobile`@sudongyuer
3. **Provider owner** - e.g., `provider:*`@sxjeru
4. **Component owner** - e.g., 💄 Design → @canisminor1990
5. **Infrastructure owner** - e.g., `deployment:*`@nekomeowww
6. **General maintainer** - @ONLY-yours for general bugs/issues
7. **Last resort** - @arvinxx (only if no clear owner)
### Special Cases
**Multiple labels with different owners:**
- Mention the **most specific** feature owner first
- Mention secondary owners if their input is valuable
- Example: `feature:knowledge-base` + `deployment:server`@RiverTwilight (primary), @nekomeowww (secondary)
**Priority:high issues:**
- Mention feature owner + @arvinxx
- Example: `priority:high` + `feature:image`@tjx666 @arvinxx
**No clear owner:**
- Assign to @ONLY-yours for general issues
- Only mention @arvinxx if critical and truly unclear
## Comment Templates
**Single owner:**
```
@username - This is a [feature/component] issue. Please take a look.
```
**Multiple owners:**
```
@primary @secondary - This involves [features]. Please coordinate.
```
**High priority:**
```
@owner @arvinxx - High priority [feature] issue.
```
+89
View File
@@ -0,0 +1,89 @@
# Code Comment Translation Assistant
You are a code comment translation assistant. Your task is to find non-English comments in the codebase and translate them to English.
## Target Directories
- apps/desktop/src/
- packages/\*/src/
- src
## Workflow
### 1. Select a Module to Process
Module granularity examples:
- A single package: `packages/database`
- A desktop module: `apps/desktop/src/modules/auth`
- A service directory: `src/services/user`
### 2. Find Non-English Comments
- Search for files containing non-English characters in comments (excluding test files)
- File types to check: `.ts`, `.tsx`
- Exclude: `*.test.ts`, `*.test.tsx`, `*.spec.ts`, `*.spec.tsx`, `node_modules`, `dist`, `build`
### 3. Translate Comments
- Translate all non-English comments to English while preserving:
- Code functionality (do not change any code)
- Comment structure and formatting
- JSDoc tags and annotations
- Markdown formatting in comments
- Translation guidelines:
- Keep technical terms accurate
- Maintain professional tone
- Preserve line breaks and indentation
- Keep TODO/FIXME/NOTE markers in English
### 4. Limit Changes
- **CRITICAL**: Ensure total changes do not exceed 500 lines
- If a module would exceed 500 lines, process only part of it
- Count lines using: `git diff --stat`
- Stop processing files once approaching the 500-line limit
### 5. Create Pull Request
- Create a new branch: `automatic/translate-comments-[module-name]-[date]`
- Commit changes with message format:
```
🌐 chore: translate non-English comments to English in [module-name]
```
- Push the branch
- Create a PR with:
- Title: `🌐 chore: translate non-English comments to English in [module-name]`
- Body following this template:
```markdown
## Summary
- Translated non-English comments to English in `[module-name]`
- Total lines changed: [number] lines
- Files affected: [number] files
## Changes
- [ ] All non-English comments translated to English
- [ ] Code functionality unchanged
- [ ] Comment formatting preserved
## Module Processed
`[module-path]`
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
```
## Important Rules
- **DO NOT** modify any code logic, only comments
- **DO NOT** translate non-English strings in code (only comments)
- **DO NOT** exceed 500 lines of changes in one PR
- **DO NOT** process test files or generated files
- **DO** preserve all code formatting and structure
- **DO** ensure translations are technically accurate
- **DO** verify changes compile without errors
+183
View File
@@ -0,0 +1,183 @@
---
description: Complete guide for adding a new AI provider documentation to LobeChat
alwaysApply: false
---
# Adding New AI Provider Documentation
This document provides a step-by-step guide for adding documentation for a new AI provider to LobeChat, based on the complete workflow used for adding providers like BFL (Black Forest Labs) and FAL.
## Overview
Adding a new provider requires creating both user-facing documentation and technical configuration files. The process involves:
1. Creating usage documentation (EN + CN)
2. Adding environment variable documentation (EN + CN)
3. Updating Docker configuration files
4. Updating .env.example file
5. Preparing image resources
## Step 1: Create Provider Usage Documentation
Create user-facing documentation that explains how to use the new provider.
### Required Files
Create both English and Chinese versions:
- `docs/usage/providers/{provider-name}.mdx` (English)
- `docs/usage/providers/{provider-name}.zh-CN.mdx` (Chinese)
### Documentation Structure
Follow the structure and format used in existing provider documentation. For reference, see:
- `docs/usage/providers/fal.mdx` (English template)
- `docs/usage/providers/fal.zh-CN.mdx` (Chinese template)
### Key Requirements
- **Images**: Prepare 5-6 screenshots showing the process
- **Cover Image**: Create or obtain a cover image for the provider
- **Accurate URLs**: Use real registration and dashboard URLs
- **Service Type**: Specify whether it's for image generation, text generation, etc.
- **Pricing Warning**: Include pricing information callout
### Important Notes
- **🔒 API Key Security**: Never include real API keys in documentation. Always use placeholder format (e.g., `bfl-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`)
- **🖼️ Image Hosting**: Use LobeHub's CDN for all images: `hub-apac-1.lobeobjects.space`
## Step 2: Update Environment Variables Documentation
Add the new provider's environment variables to the self-hosting documentation.
### Files to Update
- `docs/self-hosting/environment-variables/model-provider.mdx` (English)
- `docs/self-hosting/environment-variables/model-provider.zh-CN.mdx` (Chinese)
### Content to Add
Add two sections for each provider:
```markdown
### `{PROVIDER}_API_KEY`
- Type: Required
- Description: This is the API key you applied for in the {Provider Name} service.
- Default: -
- Example: `{api-key-format-example}`
### `{PROVIDER}_MODEL_LIST`
- Type: Optional
- Description: Used to control the {Provider Name} model list. Use `+` to add a model, `-` to hide a model, and `model_name=display_name` to customize the display name of a model. Separate multiple entries with commas. The definition syntax follows the same rules as other providers' model lists.
- Default: `-`
- Example: `-all,+{model-id-1},+{model-id-2}={display-name}`
The above example disables all models first, then enables `{model-id-1}` and `{model-id-2}` (displayed as `{display-name}`).
[model-list]: /docs/self-hosting/advanced/model-list
```
### Important Notes
- **API Key Format**: Use proper UUID format for examples (e.g., `12345678-1234-1234-1234-123456789abc`)
- **Real Model IDs**: Use actual model IDs from the codebase, not placeholders
- **Consistent Naming**: Follow the pattern `{PROVIDER}_API_KEY` and `{PROVIDER}_MODEL_LIST`
## Step 3: Update Docker Configuration Files
Add environment variables to all Docker configuration files to ensure the provider works in containerized deployments.
### Files to Update
All Dockerfile variants must be updated:
- `Dockerfile`
- `Dockerfile.database`
- `Dockerfile.pglite`
### Changes Required
Add the new provider's environment variables at the **end** of the ENV section, just before the final line:
```dockerfile
# Previous providers...
# 302.AI
AI302_API_KEY="" AI302_MODEL_LIST="" \
# {New Provider 1}
{PROVIDER1}_API_KEY="" {PROVIDER1}_MODEL_LIST="" \
# {New Provider 2}
{PROVIDER2}_API_KEY="" {PROVIDER2}_MODEL_LIST=""
```
### Important Rules
- **Position**: Add new providers at the **end** of the list
- **Ordering**: When adding multiple providers, use alphabetical order (e.g., FAL before BFL)
- **Consistency**: Maintain identical ordering across all Dockerfile variants
- **Format**: Follow the pattern `{PROVIDER}_API_KEY="" {PROVIDER}_MODEL_LIST="" \`
## Step 4: Update .env.example File
Add example configuration entries to help users understand how to configure the provider locally.
### File to Update
- `.env.example`
### Content to Add
Add new sections before the "Market Service" section:
```bash
### {Provider Name} ###
# {PROVIDER}_API_KEY={provider-prefix}-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
### Format Guidelines
- **Section Header**: Use `### {Provider Name} ###` format
- **Commented Example**: Use `#` to comment out the example
- **Key Format**: Use appropriate prefix for the provider (e.g., `bfl-`, `fal-`, `sk-`)
- **Position**: Add before the Market Service section
- **Spacing**: Maintain consistent spacing with existing entries
## Step 5: Image Resources
Prepare all necessary image resources for the documentation.
### Required Images
1. **Cover Image**: Provider logo or branded image
2. **API Dashboard Screenshots**: 3-4 screenshots showing API key creation process
3. **LobeChat Configuration Screenshots**: 2-3 screenshots showing provider setup in LobeChat
### Image Guidelines
- **Quality**: Use high-resolution screenshots
- **Consistency**: Maintain consistent styling across all screenshots
- **Privacy**: Remove or blur any sensitive information
- **Format**: Use PNG format for screenshots
- **Hosting**: Use LobeHub's CDN (`hub-apac-1.lobeobjects.space`) for all images
## Checklist
Before submitting your provider documentation:
- [ ] Created both English and Chinese usage documentation
- [ ] Added environment variable documentation (EN + CN)
- [ ] Updated all 3 Dockerfile variants with consistent ordering
- [ ] Updated .env.example with proper key format
- [ ] Prepared all required screenshots and images
- [ ] Used actual model IDs from the codebase
- [ ] Verified no real API keys are included in documentation
- [ ] Used LobeHub CDN for all image hosting
- [ ] Tested the documentation for clarity and accuracy
## Reference
This guide was created based on the implementation of BFL (Black Forest Labs) provider documentation. For a complete example, refer to:
- Commits: `d2da03e1a` (documentation) and `6a2e95868` (environment variables)
- Files: `docs/usage/providers/bfl.mdx`, `docs/usage/providers/bfl.zh-CN.mdx`
- PR: Current branch `tj/feat/bfl-docs`
+175
View File
@@ -0,0 +1,175 @@
---
description: Guide for adding environment variables to configure user settings
alwaysApply: false
---
# Adding Environment Variable for User Settings
Add server-side environment variables to configure default values for user settings.
**Priority**: User Custom > Server Env Var > Hardcoded Default
## Steps
### 1. Define Environment Variable
Create `src/envs/<domain>.ts`:
```typescript
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const get<Domain>Config = () => {
return createEnv({
server: {
YOUR_ENV_VAR: z.coerce.number().min(MIN).max(MAX).optional(),
},
runtimeEnv: {
YOUR_ENV_VAR: process.env.YOUR_ENV_VAR,
},
});
};
export const <domain>Env = get<Domain>Config();
```
### 2. Update Type (Optional)
**Skip this step if the domain field already exists in `GlobalServerConfig`.**
Add to `packages/types/src/serverConfig.ts`:
```typescript
export interface GlobalServerConfig {
<domain>?: {
<settingName>?: <type>;
};
}
```
**Prefer reusing existing types** from `packages/types/src/user/settings` with `PartialDeep`:
```typescript
import { User<Domain>Config } from './user/settings';
export interface GlobalServerConfig {
<domain>?: PartialDeep<User<Domain>Config>;
}
```
### 3. Assemble Server Config (Optional)
**Skip this step if the domain field already exists in server config.**
In `src/server/globalConfig/index.ts`:
```typescript
import { <domain>Env } from '@/envs/<domain>';
import { cleanObject } from '@/utils/object';
export const getServerGlobalConfig = async () => {
const config: GlobalServerConfig = {
// ...
<domain>: cleanObject({
<settingName>: <domain>Env.YOUR_ENV_VAR,
}),
};
return config;
};
```
If the domain already exists, just add the new field to the existing `cleanObject()`:
```typescript
<domain>: cleanObject({
existingField: <domain>Env.EXISTING_VAR,
<settingName>: <domain>Env.YOUR_ENV_VAR, // Add this line
}),
```
### 4. Merge to User Store (Optional)
**Skip this step if the domain field already exists in `serverSettings`.**
In `src/store/user/slices/common/action.ts`, add to `serverSettings`:
```typescript
const serverSettings: PartialDeep<UserSettings> = {
defaultAgent: serverConfig.defaultAgent,
<domain>: serverConfig.<domain>, // Add this line
// ...
};
```
### 5. Update .env.example
```bash
# <Description> (range/options, default: X)
# YOUR_ENV_VAR=<example>
```
### 6. Update Documentation
Update both English and Chinese documentation:
- `docs/self-hosting/environment-variables/basic.mdx`
- `docs/self-hosting/environment-variables/basic.zh-CN.mdx`
Add new section or subsection with environment variable details (type, description, default, example, range/constraints).
## Type Reuse
**Prefer reusing existing types** from `packages/types/src/user/settings` instead of defining inline types in `serverConfig.ts`.
```typescript
// ✅ Good - reuse existing type
import { UserImageConfig } from './user/settings';
export interface GlobalServerConfig {
image?: PartialDeep<UserImageConfig>;
}
// ❌ Bad - inline type definition
export interface GlobalServerConfig {
image?: {
defaultImageNum?: number;
};
}
```
## Example: AI_IMAGE_DEFAULT_IMAGE_NUM
```typescript
// src/envs/image.ts
export const getImageConfig = () => {
return createEnv({
server: {
AI_IMAGE_DEFAULT_IMAGE_NUM: z.coerce.number().min(1).max(20).optional(),
},
runtimeEnv: {
AI_IMAGE_DEFAULT_IMAGE_NUM: process.env.AI_IMAGE_DEFAULT_IMAGE_NUM,
},
});
};
// packages/types/src/serverConfig.ts
import { UserImageConfig } from './user/settings';
export interface GlobalServerConfig {
image?: PartialDeep<UserImageConfig>;
}
// src/server/globalConfig/index.ts
image: cleanObject({
defaultImageNum: imageEnv.AI_IMAGE_DEFAULT_IMAGE_NUM,
}),
// src/store/user/slices/common/action.ts
const serverSettings: PartialDeep<UserSettings> = {
image: serverConfig.image,
// ...
};
// .env.example
# AI_IMAGE_DEFAULT_IMAGE_NUM=4
```
-97
View File
@@ -1,97 +0,0 @@
---
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. **服务端服务层 (`server/services`)**:
* 位于 src/server/services/。
* 核心职责是封装独立的、可复用的业务逻辑单元。这些服务应易于测试。
* **平台差异抽象**: 一个关键特性是通过其内部的 `impls` 子目录(例如 src/server/services/file/impls 包含 s3.ts 和 local.ts)来抹平不同运行环境带来的差异(例如云端使用 S3 存储,桌面版使用本地文件系统)。这使得上层(如 `tRPC` routers)无需关心底层具体实现。
* 目标是使 `tRPC` router 层的逻辑尽可能纯粹,专注于请求处理和业务流程编排。
* 服务会调用 `Repository` 层或直接调用 `Model` 层进行数据持久化和检索,也可能调用其他服务。
4. **仓库层 (`Repositories`)**:
* 位于 src/database/repositories/。
* 主要处理**复杂的跨表查询和数据聚合**逻辑,特别是当需要从**多个 `Model`** 获取数据并进行组合时。
* 与 `Model` 层不同,`Repository` 层专注于复杂的业务查询场景,而不涉及简单的领域模型转换。
* 当业务逻辑涉及多表关联、复杂的数据统计或需要事务处理时,会使用 `Repository` 层。
* 如果数据操作简单(仅涉及单个 `Model`),则通常直接在 `src/services` 层调用 `Model` 并进行简单的类型断言。
5. **模型层 (`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
6. **数据库 (`Database`)**:
* **客户端模式 (浏览器/PWA)**: 使用 PGLite (基于 WASM 的 PostgreSQL),数据存储在用户浏览器本地。
* **服务端模式 (云部署)**: 使用远程 PostgreSQL 数据库。
* **Electron 桌面应用**:
* Electron 客户端会启动一个本地 Node.js 服务。
* 本地服务通过 `tRPC` 与 Electron 的渲染进程通信。
* 数据库选择依赖于是否开启**云同步**功能:
* **云同步开启**: 连接到远程 PostgreSQL 数据库。
* **云同步关闭**: 使用 PGLite (通过 Node.js 的 WASM 实现) 在本地存储数据。
## 数据流向说明
### 浏览器/PWA 模式
```
UI (React) → Zustand State → Model Layer → PGLite (本地数据库)
```
### 服务端模式
```
UI (React) → Zustand State → tRPC Client → tRPC Routers → Services → Repositories/Models → Remote PostgreSQL
```
### Electron 桌面应用模式
```
UI (Electron Renderer) → Zustand State → tRPC Client → 本地 Node.js 服务 → tRPC Routers → Services → Repositories/Models → PGLite/Remote PostgreSQL (取决于云同步设置)
```
+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 语法问题
- 纠正错别字
- 指出示例与说明不一致之处
-27
View File
@@ -1,27 +0,0 @@
---
description:
globs:
alwaysApply: false
---
## Formatting Response
This is about how you should format your responses.
### Render Markdown Table
- Be aware that the cursor chat you are in can't render markdown table correctly.
- IMPORTANT: Tables need to be rendered in plain text and not markdown
When rendering tables, do not use markdown table syntax or plain text alone. Instead, place the entire table inside a code/text block (using triple backticks). This ensures the table formatting is preserved and readable in the chat interface.
Example:
```plaintext
+----+---------+-----------+
| ID | Name | Role |
+----+---------+-----------+
| 1 | Alice | Admin |
| 2 | Bob | User |
| 3 | Charlie | Moderator |
+----+---------+-----------+
```
+25
View File
@@ -0,0 +1,25 @@
---
globs: packages/database/migrations/**/*
alwaysApply: false
---
# Database Migrations Guide
## Defensive Programming - Use Idempotent Clauses
Always use defensive clauses to make migrations idempotent:
```sql
-- ✅ Good: Idempotent operations
ALTER TABLE "users" ADD COLUMN IF NOT EXISTS "avatar" text;
DROP TABLE IF EXISTS "old_table";
CREATE INDEX IF NOT EXISTS "users_email_idx" ON "users" ("email");
ALTER TABLE "posts" DROP COLUMN IF EXISTS "deprecated_field";
-- ❌ Bad: Non-idempotent operations
ALTER TABLE "users" ADD COLUMN "avatar" text;
DROP TABLE "old_table";
CREATE INDEX "users_email_idx" ON "users" ("email");
```
**Important**: After modifying migration SQL (e.g., adding `IF NOT EXISTS` clauses), run `bun run db:generate-client` to update the hash in `packages/database/src/core/migrations.json`.
+84
View File
@@ -0,0 +1,84 @@
---
description: 包含添加 console.log 日志请求时
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-*';
```
-8
View File
@@ -1,8 +0,0 @@
---
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');
});
```
@@ -1,5 +1,5 @@
---
description:
description: 当要做 electron 相关工作时
globs:
alwaysApply: false
---
+35
View File
@@ -0,0 +1,35 @@
---
description: Explain how group chat works in LobeHub (Multi-agent orchestratoin)
globs:
alwaysApply: false
---
This rule explains how group chat (multi-agent orchestration) works. Not confused with session group, which is a organization method to manage session.
## Key points
- A supervisor will devide who and how will speak next
- Each agent will speak just like in single chat (if was asked to speak)
- Not coufused with session group
## Related Files
- src/store/chat/slices/message/supervisor.ts
- src/store/chat/slices/aiChat/actions/generateAIGroupChat.ts
- src/prompts/groupChat/index.ts (All prompts here)
## Snippets
```tsx
// Detect whether in group chat
const isGroupSession = useSessionStore(sessionSelectors.isCurrentSessionGroupSession);
// Member actions
const addAgentsToGroup = useChatGroupStore((s) => s.addAgentsToGroup);
const removeAgentFromGroup = useChatGroupStore((s) => s.removeAgentFromGroup);
const persistReorder = useChatGroupStore((s) => s.reorderGroupMembers);
// Get group info
const groupConfig = useChatGroupStore(chatGroupSelectors.currentGroupConfig);
const currentGroupMemebers = useSessionStore(sessionSelectors.currentGroupAgents);
```
+182
View File
@@ -0,0 +1,182 @@
---
globs: *.tsx
alwaysApply: false
---
# LobeChat Internationalization Guide
## Key Points
- Default language: Chinese (zh-CN) as the source language
- Supported languages: 18 languages including English, Japanese, Korean, Arabic, etc.
- Framework: react-i18next with Next.js app router
- Translation automation: @lobehub/i18n-cli for automatic translation, config file: .i18nrc.js
- Never manually modify any json file. You can only modify files in `default` folder
## Directory Structure
```
src/locales/
├── default/ # Source language files (zh-CN)
│ ├── index.ts # Namespace exports
│ ├── common.ts # Common translations
│ ├── chat.ts # Chat-related translations
│ ├── setting.ts # Settings translations
│ └── ... # Other namespace files
└── resources.ts # Type definitions and language configuration
locales/ # Translation files
├── en-US/ # English translations
│ ├── common.json # Common translations
│ ├── chat.json # Chat translations
│ ├── setting.json # Settings translations
│ └── ... # Other namespace JSON files
├── ja-JP/ # Japanese translations
│ ├── common.json
│ ├── chat.json
│ └── ...
└── ... # Other language folders
```
## Workflow for Adding New Translations
### 1. Adding New Translation Keys
Step 1: Add translation keys in the corresponding namespace files under src/locales/default directory
```typescript
// Example: src/locales/default/common.ts
export default {
// ... existing keys
newFeature: {
title: '新功能标题',
description: '功能描述文案',
button: '操作按钮',
},
};
```
Step 2: If creating a new namespace, export it in src/locales/default/index.ts
```typescript
import newNamespace from './newNamespace';
const resources = {
// ... existing namespaces
newNamespace,
} as const;
```
### 2. Translation Process
Development mode:
Generally, you don't need to help me run the automatic translation tool as it takes a long time. I'll run it myself when needed. However, to see immediate results, you still need to translate `locales/zh-CN/namespace.json` first, no need to translate other languages.
Production mode:
```bash
# Generate translations for all languages
npm run i18n
```
## Usage in Components
### Basic Usage
```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>
);
};
```
### Usage with Parameters
```tsx
const { t } = useTranslation('common');
<p>{t('welcome.message', { name: 'John' })}</p>;
// Corresponding language file:
// welcome: { message: 'Welcome {{name}}!' }
```
### Multiple Namespaces
```tsx
const { t } = useTranslation(['common', 'chat']);
<button>{t('common:save')}</button>
<span>{t('chat:typing')}</span>
```
## Type Safety
The project uses TypeScript to implement type-safe translations, with types automatically generated from src/locales/resources.ts:
```typescript
import type { DefaultResources, Locales, NS } from '@/locales/resources';
// Available types:
// - NS: Available namespace keys ('common' | 'chat' | 'setting' | ...)
// - Locales: Supported language codes ('en-US' | 'zh-CN' | 'ja-JP' | ...)
const namespace: NS = 'common';
const locale: Locales = 'en-US';
```
## Best Practices
### 1. Namespace Organization
- common: Shared UI elements (buttons, labels, actions)
- chat: Chat-specific functionality
- setting: Configuration and settings
- error: Error messages and handling
- [feature]: Feature-specific or page-specific namespaces
- components: Reusable component text
### 2. Key Naming Conventions
```typescript
// ✅ Good: Hierarchical structure
export default {
modal: {
confirm: {
title: '确认操作',
message: '确定要执行此操作吗?',
actions: {
confirm: '确认',
cancel: '取消',
},
},
},
};
// ❌ Avoid: Flat structure
export default {
modalConfirmTitle: '确认操作',
modalConfirmMessage: '确定要执行此操作吗?',
};
```
## Troubleshooting
### Missing Translation Keys
- Check if the key exists in src/locales/default/namespace.ts
- Ensure the namespace is correctly imported in the component
- Ensure new namespaces are exported in src/locales/default/index.ts
- 检查键是否存在于 src/locales/default/namespace.ts 中
- 确保在组件中正确导入命名空间
- 确保新命名空间已在 src/locales/default/index.ts 中导出
@@ -1,6 +0,0 @@
---
description:
globs: src/locales/**/*
alwaysApply: false
---
read [i18n.mdc](mdc:.cursor/rules/i18n/i18n.mdc)
-183
View File
@@ -1,183 +0,0 @@
---
description: i18n workflow and troubleshooting
globs:
alwaysApply: false
---
# LobeChat Internationalization (i18n) Guide
## Architecture Overview
LobeChat uses **react-i18next** for internationalization with a well-structured namespace approach:
- **Default language**: Chinese (zh-CN) - serves as the source language
- **Supported locales**: 18 languages including English, Japanese, Korean, Arabic, etc.
- **Framework**: react-i18next with Next.js app router
- **Translation automation**: [@lobehub/i18n-cli](mdc:package.json) for automated translations, config file: .i18nrc.js
## Directory Structure
```
src/locales/
├── default/ # Source language files (zh-CN)
│ ├── index.ts # Namespace exports
│ ├── common.ts # Common translations
│ ├── chat.ts # Chat-related translations
│ ├── setting.ts # Settings translations
│ └── ... # Other namespace files
└── resources.ts # Type definitions and locale config
locales/ # Translated files
├── en-US/ # English translations
│ ├── common.json # Common translations
│ ├── chat.json # Chat translations
│ ├── setting.json # Settings translations
│ └── ... # Other namespace JSON files
├── ja-JP/ # Japanese translations
│ ├── common.json
│ ├── chat.json
│ └── ...
└── ... # Other language folders
```
## Workflow for Adding New Translations
### 1. Add New Translation Keys
**Step 1**: Add translation key to the appropriate namespace file in [src/locales/default/](mdc:src/locales/default)
```typescript
// Example: src/locales/default/common.ts
export default {
// ... existing keys
newFeature: {
title: "新功能标题",
description: "功能描述文案",
button: "操作按钮",
},
};
```
**Step 2**: If creating a new namespace, export it in [src/locales/default/index.ts](mdc:src/locales/default/index.ts)
```typescript
import newNamespace from "./newNamespace";
const resources = {
// ... existing namespaces
newNamespace,
} as const;
```
### 2. Translation Process
**Development Mode** (Recommended):
- Manually add Chinese translations to corresponding JSON files in `locales/zh-CN/namespace.json`, this avoids running slow automation during development
- Don't auto add translations for other language like English etc, most of developer is Chinese,
**Production Mode**:
```bash
# Generate translations for all languages
npm run i18n
```
## Usage in Components
### Basic Usage with Hooks
```tsx
import { useTranslation } from "react-i18next";
const MyComponent = () => {
const { t } = useTranslation("common"); // namespace
return (
<div>
<h1>{t("newFeature.title")}</h1>
<p>{t("newFeature.description")}</p>
<button>{t("newFeature.button")}</button>
</div>
);
};
```
### With Parameters
```tsx
const { t } = useTranslation("common");
// Translation key with interpolation
<p>{t("welcome.message", { name: "John" })}</p>;
// Corresponding locale file:
// welcome: { message: '欢迎 {{name}} 使用!' }
```
### Multiple Namespaces
```tsx
const { t } = useTranslation(['common', 'chat']);
// Access different namespaces
<button>{t('common:save')}</button>
<span>{t('chat:typing')}</span>
```
## Type Safety
The project uses TypeScript for type-safe translations with auto-generated types from [src/locales/resources.ts](mdc:src/locales/resources.ts):
```typescript
import type { DefaultResources, NS, Locales } from "@/locales/resources";
// Available types:
// - NS: Available namespace keys ('common' | 'chat' | 'setting' | ...)
// - Locales: Supported locale codes ('en-US' | 'zh-CN' | 'ja-JP' | ...)
// Type-safe namespace usage
const namespace: NS = "common"; // ✅ Valid
const locale: Locales = "en-US"; // ✅ Valid
```
## Best Practices
### 1. Namespace Organization
- **common**: Shared UI elements (buttons, labels, actions)
- **chat**: Chat-specific features
- **setting**: Configuration and settings
- **error**: Error messages and handling
- **[feature]**: Feature-specific or page specific namespaces
### 2. Key Naming Conventions
```typescript
// ✅ Good: Hierarchical structure
export default {
modal: {
confirm: {
title: "确认操作",
message: "确定要执行此操作吗?",
actions: {
confirm: "确认",
cancel: "取消",
},
},
},
};
// ❌ Avoid: Flat structure
export default {
modalConfirmTitle: "确认操作",
modalConfirmMessage: "确定要执行此操作吗?",
};
```
## Troubleshooting
### Missing Translation Keys
- Check if the key exists in src/locales/default/namespace.ts
- Ensure proper namespace import in component
- Ensure new namespaces are exported in [src/locales/default/index.ts](mdc:src/locales/default/index.ts)
-72
View File
@@ -1,72 +0,0 @@
---
description: @lobehub/ui components list
globs:
alwaysApply: false
---
## @lobehub/ui Components
- 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
+19 -26
View File
@@ -5,11 +5,11 @@ alwaysApply: false
---
# React Layout Kit 使用指南
`react-layout-kit` 是一个功能丰富的 React flex 布局组件库,在 lobe-chat 项目中被广泛使用。以下是重点组件的使用方法:
react-layout-kit 是一个功能丰富的 React flex 布局组件库,在 lobe-chat 项目中被广泛使用。以下是重点组件的使用方法:
## Flexbox 组件
Flexbox 是最常用的布局组件,用于创建弹性布局,类似于 CSS 的 `display: flex`
Flexbox 是最常用的布局组件,用于创建弹性布局,类似于 CSS 的 display: flex。
### 基本用法
@@ -31,16 +31,16 @@ import { Flexbox } from 'react-layout-kit';
### 常用属性
- `horizontal`: 布尔值,设置为水平方向布局
- `flex`: 数值或字符串,控制 flex 属性
- `gap`: 数值,设置子元素之间的间距
- `align`: 对齐方式,如 'center', 'flex-start' 等
- `justify`: 主轴对齐方式,如 'space-between', 'center' 等
- `padding`: 内边距值
- `paddingInline`: 水平内边距值
- `paddingBlock`: 垂直内边距值
- `width/height`: 设置宽高,通常用 `'100%'` 或具体像素值
- `style`: 自定义样式对象
- horizontal: 布尔值,设置为水平方向布局
- flex: 数值或字符串,控制 flex 属性
- gap: 数值,设置子元素之间的间距
- align: 对齐方式,如 'center', 'flex-start' 等
- justify: 主轴对齐方式,如 'space-between', 'center' 等
- padding: 内边距值
- paddingInline: 水平内边距值
- paddingBlock: 垂直内边距值
- width/height: 设置宽高,通常用 '100%' 或具体像素值
- style: 自定义样式对象
### 实际应用示例
@@ -60,12 +60,7 @@ import { Flexbox } from 'react-layout-kit';
</Flexbox>
{/* 中间内容区 */}
<Flexbox
flex={1}
style={{
height: '100%',
}}
>
<Flexbox flex={1} style={{ height: '100%' }}>
{/* 主要内容 */}
<Flexbox flex={1} padding={24} style={{ overflowY: 'auto' }}>
<MainContent />
@@ -91,8 +86,6 @@ Center 是对 Flexbox 的封装,使子元素水平和垂直居中。
### 基本用法
```jsx
import { Center } from 'react-layout-kit';
<Center width={'100%'} height={'100%'}>
<Content />
</Center>
@@ -118,9 +111,9 @@ Center 组件继承了 Flexbox 的所有属性,同时默认设置了居中对
## 最佳实践
1. 使用 `flex={1}` 让组件填充可用空间
2. 使用 `gap` 代替传统的 margin 设置元素间距
3. 嵌套 Flexbox 创建复杂布局
4. 设置 `overflow: 'auto'` 使内容可滚动
5. 使用 `horizontal` 创建水平布局,默认为垂直布局
6.`antd-style``useTheme` hook 配合使用创建主题响应式的布局
- 使用 flex={1} 让组件填充可用空间
- 使用 gap 代替传统的 margin 设置元素间距
- 嵌套 Flexbox 创建复杂布局
- 设置 overflow: 'auto' 使内容可滚动
- 使用 horizontal 创建水平布局,默认为垂直布局
- 与 antd-style 的 useTheme hook 配合使用创建主题响应式的布局
+20 -31
View File
@@ -1,47 +1,36 @@
---
description:
globs:
alwaysApply: true
---
## Project Description
You are developing an open-source, modern-design AI chat framework: lobe chat.
You are developing an open-source, modern-design AI chat framework: lobehub(previous lobe-chat).
Emoji logo: 🤯
Supported platforms:
- web desktop/mobile
- desktop(electron)
- mobile app(react native), coming soon
logo emoji: 🤯
## 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
- Next.js 15
- react 19
- TypeScript
- `@lobehub/ui`, antd for component framework
- antd-style for css-in-js framework
- react-layout-kit for flex layout
- lucide-react, `@ant-design/icons` for icons
- react-layout-kit for flex layout component
- 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
- zustand for state management
- nuqs for search params management
- SWR for data fetch
- aHooks for react hooks library
- dayjs for date and time library
- dayjs for 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
- PGLite for client DB and Neon 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;
- Vitest for testing
+122
View File
@@ -0,0 +1,122 @@
---
description: Project directory structure overview
alwaysApply: false
---
# LobeChat Project Structure
## Complete Project Structure
This project uses common monorepo structure. The workspace packages name use `@lobechat/` namespace.
**note**: some not very important files are not shown for simplicity.
```plaintext
lobe-chat/
├── apps/
│ └── desktop/
├── docs/
├── locales/
│ ├── en-US/
│ └── zh-CN/
├── packages/
│ ├── const/
│ ├── context-engine/
│ ├── database/
│ │ ├── src/
│ │ │ ├── models/
│ │ │ ├── schemas/
│ │ │ └── repositories/
│ ├── model-bank/
│ │ └── src/
│ │ └── aiModels/
│ ├── model-runtime/
│ │ └── src/
│ │ ├── core/
│ │ └── providers/
│ ├── types/
│ │ └── src/
│ │ ├── message/
│ │ └── user/
│ └── utils/
├── public/
├── scripts/
├── src/
│ ├── app/
│ │ ├── (backend)/
│ │ │ ├── api/
│ │ │ │ ├── auth/
│ │ │ │ └── webhooks/
│ │ │ ├── middleware/
│ │ │ ├── oidc/
│ │ │ ├── trpc/
│ │ │ └── webapi/
│ │ │ ├── chat/
│ │ │ └── tts/
│ │ ├── [variants]/
│ │ │ ├── (main)/
│ │ │ │ ├── chat/
│ │ │ │ └── settings/
│ │ │ └── @modal/
│ │ └── manifest.ts
│ ├── components/
│ ├── config/
│ ├── features/
│ │ └── ChatInput/
│ ├── hooks/
│ ├── layout/
│ │ ├── AuthProvider/
│ │ └── GlobalProvider/
│ ├── libs/
│ │ └── oidc-provider/
│ ├── locales/
│ │ └── default/
│ ├── server/
│ │ ├── modules/
│ │ ├── routers/
│ │ │ ├── async/
│ │ │ ├── desktop/
│ │ │ ├── edge/
│ │ │ └── lambda/
│ │ └── services/
│ ├── services/
│ │ ├── user/
│ │ │ ├── client.ts
│ │ │ └── server.ts
│ │ └── message/
│ ├── store/
│ │ ├── agent/
│ │ ├── chat/
│ │ └── user/
│ ├── styles/
│ └── utils/
└── package.json
```
## Architecture Map
- UI Components: `src/components`, `src/features`
- Global providers: `src/layout`
- Zustand stores: `src/store`
- Client Services: `src/services/` cross-platform services
- clientDB: `src/services/<domain>/client.ts`
- serverDB: `src/services/<domain>/server.ts`
- API Routers:
- `src/app/(backend)/webapi` (REST)
- `src/server/routers/{edge|lambda|async|desktop|tools}` (tRPC)
- Server:
- Services(can access serverDB): `src/server/services` server-used-only services
- Modules(can't access db): `src/server/modules` (Server only Third-party Service Module)
- Database:
- Schema (Drizzle): `packages/database/src/schemas`
- Model (CRUD): `packages/database/src/models`
- Repository (bff-queries): `packages/database/src/repositories`
- Third-party Integrations: `src/libs` — analytics, oidc etc.
## Data Flow Architecture
- **Web with ClientDB**: React UI → Client Service → Direct Model Access → PGLite (Web WASM)
- **Web with ServerDB**: React UI → Client Service → tRPC Lambda → Server Services → PostgreSQL (Remote)
- **Desktop**:
- Cloud sync disabled: Electron UI → Client Service → tRPC Lambda → Local Server Services → PGLite (Node WASM)
- Cloud sync enabled: Electron UI → Client Service → tRPC Lambda → Cloud Server Services → PostgreSQL (Remote)
+121 -16
View File
@@ -3,36 +3,42 @@ description:
globs: *.tsx
alwaysApply: false
---
# react component 编写指南
- 如果要写复杂样式的话用 antd-style ,简单的话可以用 style 属性直接写内联样式
- 如果需要 flex 布局或者居中布局应该使用 react-layout-kit
- 选择组件库中的组件时优先使用 [lobe-ui.mdc](mdc:.cursor/rules/package-usage/lobe-ui.mdc) 有的,然后才是 antd 的,不知道 @lobehub/ui 的组件怎么用,有哪些属性,就自己搜下这个项目其它地方怎么用的,不要瞎猜
- 如果需要 flex 布局或者居中布局应该使用 react-layout-kit 的 Flexbox 和 Center 组件
- 选择组件时优先顺序应该是 src/components > 安装的组件 package > lobe-ui > antd
- 使用 selector 访问 zustand store 的数据,而不是直接从 store 获取
## 访问 theme 的两种方式
## antd-style token system
### 使用 antd-style 的 useTheme hook
### 访问 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
}}>
<div
style={{
color: theme.colorPrimary,
backgroundColor: theme.colorBgContainer,
padding: theme.padding,
borderRadius: theme.borderRadius,
}}
>
使用主题 token 的组件
</div>
);
}
};
```
### 使用 antd-style 的 createStyles
#### 使用 antd-style 的 createStyles
```tsx
const useStyles = createStyles(({ css, token }) => {
@@ -51,13 +57,13 @@ const useStyles = createStyles(({ css, token }) => {
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>
@@ -65,4 +71,103 @@ const Card: FC<CardProps> = ({ title, content }) => {
</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
- 可以阅读 `node_modules/@lobehub/ui/es/index.js` 了解有哪些组件,每个组件的属性是什么
- General
- ActionIcon
- ActionIconGroup
- Block
- Button
- DownloadButton
- Icon
- Data Display
- Avatar
- AvatarGroup
- GroupAvatar
- Collapse
- FileTypeIcon
- FluentEmoji
- GuideCard
- Highlighter
- Hotkey
- Image
- List
- Markdown
- SearchResultCards
- MaterialFileTypeIcon
- Mermaid
- Typography
- Text
- 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
- DraggablePanelBody
- DraggablePanelContainer
- DraggablePanelFooter
- DraggablePanelHeader
- Footer
- Grid
- Header
- Layout
- LayoutFooter
- LayoutHeader
- LayoutMain
- LayoutSidebar
- LayoutSidebarInner
- LayoutToc
- MaskShadow
- ScrollShadow
- Navigation
- Burger
- Dropdown
- Menu
- SideNav
- Tabs
- Toc
- Theme
- ConfigProvider
- FontLoader
- ThemeProvider
+43
View File
@@ -0,0 +1,43 @@
---
description:
globs:
alwaysApply: true
---
# Available project rules index
All following rules are saved under `.cursor/rules/` directory:
## Backend
- `drizzle-schema-style-guide.mdc` Style guide for defining Drizzle ORM schemas
## Frontend
- `react-component.mdc` React component style guide and conventions
- `i18n.mdc` Internationalization guide using react-i18next
- `typescript.mdc` TypeScript code style guide
- `packages/react-layout-kit.mdc` Usage guide for react-layout-kit
## State Management
- `zustand-action-patterns.mdc` Recommended patterns for organizing Zustand actions
- `zustand-slice-organization.mdc` Best practices for structuring Zustand slices
## Desktop (Electron)
- `desktop-feature-implementation.mdc` Implementing new Electron desktop features
- `desktop-controller-tests.mdc` Desktop controller unit testing guide
- `desktop-local-tools-implement.mdc` Workflow to add new desktop local tools
- `desktop-menu-configuration.mdc` Desktop menu configuration guide
- `desktop-window-management.mdc` Desktop window management guide
## Debugging
- `debug-usage.mdc` Using the debug package and namespace conventions
## Testing
- `testing-guide/testing-guide.mdc` Comprehensive testing guide for Vitest
- `testing-guide/electron-ipc-test.mdc` Electron IPC interface testing strategy
- `testing-guide/db-model-test.mdc` Database Model testing guide
-42
View File
@@ -1,42 +0,0 @@
---
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
- 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
- Always consider using the latest technologies, standards, and APIs to strive for code optimization, not just the conventional wisdom
- 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 minimal code changes that are ONLY directly related to the requirements
- 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
- Please respect my prettier preferences when you provide code
- When you notice I have manually modified the code, that was definitely on purpose and do not revert them
- 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
- 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
- Sometimes ESLint errors may not be reasonable, and making changes could introduce logical bugs. If you find an ESLint rule unreasonable, disable it directly. For example, with the 'prefer-dom-node-text-content' rule, there are actual differences between innerText and textContent
- 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
@@ -0,0 +1,455 @@
---
globs: src/database/**/*.test.ts
alwaysApply: false
---
## 🗃️ 数据库 Model 测试指南
测试 `packages/database` 下的数据库 Model 层。
### 测试环境选择 💡
数据库 Model 层通过环境变量控制数据库类型,在两种测试环境下有不同的数据库后端:客户端环境 (PGLite) 和 服务端环境 (PostgreSQL)
### ⚠️ 双环境验证要求
**对于所有 Model 测试,必须在两个环境下都验证通过**:
#### 完整验证流程
```bash
# 1. 先在客户端环境测试(快速验证)
cd packages/database && TEST_SERVER_DB=0 bunx vitest run --silent='passed-only' src/database/models/__tests__/myModel.test.ts
# 2. 再在服务端环境测试(兼容性验证), 需要设置环境变量 `TEST_SERVER_DB=1`
cd packages/database && TEST_SERVER_DB=1 bunx vitest run --silent='passed-only' 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 { NewGeneration, NewGenerationBatch } 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 方法都必须包含用户权限检查,且必须有对应的安全测试来验证这些检查的有效性**。
@@ -0,0 +1,80 @@
---
description: Electron IPC 接口测试策略
alwaysApply: false
---
### 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 方法是否被正确调用
@@ -0,0 +1,510 @@
---
globs: *.test.ts,*.test.tsx
alwaysApply: false
---
# 测试指南 - 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)
目前只有 `packages/database` 下的测试可以通过配置 `TEST_SERVER_DB=1` 环境变量来使用服务端数据库测试
- **配置文件**: [packages/database/vitest.config.mts](mdc:packages/database/vitest.config.mts) 并且设置环境变量 `TEST_SERVER_DB=1`
- **环境**: Node.js
- **数据库**: 真实的 PostgreSQL 数据库
- **并发限制**: 单线程运行 (`singleFork: true`)
- **用途**: 测试数据库模型、服务端逻辑、API 端点等
- **设置文件**: [packages/database/tests/setup-db.ts](mdc:packages/database/tests/setup-db.ts)
## 测试运行命令
** 性能警告**: 项目包含 3000+ 测试用例,完整运行需要约 10 分钟。务必使用文件过滤或测试名称过滤。
### 正确的命令格式
```bash
# 运行所有客户端/服务端测试
bunx vitest run --silent='passed-only' # 客户端测试
cd packages/database && TEST_SERVER_DB=1 bunx vitest run --silent='passed-only' # 服务端测试
# 运行特定测试文件 (支持模糊匹配)
bunx vitest run --silent='passed-only' user.test.ts
# 运行特定测试用例名称 (使用 -t 参数)
bunx vitest run --silent='passed-only' -t "test case name"
# 组合使用文件和测试名称过滤
bunx vitest run --silent='passed-only' filename.test.ts -t "specific test"
# 生成覆盖率报告 (使用 --coverage 参数)
bunx vitest run --silent='passed-only' --coverage
```
### 避免的命令格式
```bash
# 这些命令会运行所有 3000+ 测试用例,耗时约 10 分钟!
npm test
npm test some-file.test.ts
# 不要使用裸 vitest (会进入 watch 模式)
vitest test-file.test.ts
```
## 测试修复原则
### 核心原则
1. **收集足够的上下文**
在修复测试之前,务必做到:
- 完整理解测试的意图和实现
- 强烈建议阅读当前的 git diff 和 PR diff
2. **测试优先修复**
如果是测试本身写错了,应优先修改测试,而不是实现代码。
3. **专注单一问题**
只修复指定的测试,不要顺带添加额外测试。
4. **不自作主张**
发现其他问题时,不要直接修改,需先提出并讨论。
### 测试协作最佳实践
基于实际开发经验总结的重要协作原则:
#### 1. 失败处理策略
**核心原则**: 避免盲目重试,快速识别问题并寻求帮助。
- **失败阈值**: 当连续尝试修复测试 1-2 次都失败后,应立即停止继续尝试
- **问题总结**: 分析失败原因,整理已尝试的解决方案及其失败原因
- **寻求帮助**: 带着清晰的问题摘要和尝试记录向团队寻求帮助
- **避免陷阱**: 不要陷入"不断尝试相同或类似方法"的循环
```typescript
// 错误做法:连续失败后继续盲目尝试
// 第3次、第4次仍在用相似的方法修复同一个问题
// 正确做法:失败1-2次后总结问题
/*
问题总结:
1. 尝试过的方法:修改 mock 数据结构
2. 失败原因:仍然提示类型不匹配
3. 具体错误:Expected 'UserData' but received 'UserProfile'
4. 需要帮助:不确定最新的 UserData 接口定义
*/
```
#### 2. 测试用例命名规范
**核心原则**: 测试应该关注"行为",而不是"实现细节"。
- **描述业务场景**: `describe` 和 `it` 的标题应该描述具体的业务场景和预期行为
- **避免实现绑定**: 不要在测试名称中提及具体的代码行号、覆盖率目标或实现细节
- **保持稳定性**: 测试名称应该在代码重构后仍然有意义
```typescript
// 错误的测试命名
describe('User component coverage', () => {
it('covers line 45-50 in getUserData', () => {
// 为了覆盖第45-50行而写的测试
});
it('tests the else branch', () => {
// 仅为了测试某个分支而存在
});
});
// 正确的测试命名
describe('<UserAvatar />', () => {
it('should render fallback icon when image url is not provided', () => {
// 测试具体的业务场景,自然会覆盖相关代码分支
});
it('should display user initials when avatar image fails to load', () => {
// 描述用户行为和预期结果
});
});
```
**覆盖率提升的正确思路**:
- 通过设计各种业务场景(正常流程、边缘情况、错误处理)来自然提升覆盖率
- 不要为了达到覆盖率数字而写测试,更不要在测试中注释"为了覆盖 xxx 行"
#### 3. 测试组织结构
**核心原则**: 维护清晰的测试层次结构,避免冗余的顶级测试块。
- **复用现有结构**: 添加新测试时,优先在现有的 `describe` 块中寻找合适的位置
- **逻辑分组**: 相关的测试用例应该组织在同一个 `describe` 块内
- **避免碎片化**: 不要为了单个测试用例就创建新的顶级 `describe` 块
```typescript
// 错误的组织方式:创建过多顶级块
describe('<UserProfile />', () => {
it('should render user name', () => {});
});
describe('UserProfile new prop test', () => {
// 不必要的新块
it('should handle email display', () => {});
});
describe('UserProfile edge cases', () => {
// 不必要的新块
it('should handle missing avatar', () => {});
});
// 正确的组织方式:合并相关测试
describe('<UserProfile />', () => {
it('should render user name', () => {});
it('should handle email display', () => {});
it('should handle missing avatar', () => {});
describe('when user data is incomplete', () => {
// 只有在有多个相关子场景时才创建子组
it('should show placeholder for missing name', () => {});
it('should hide email section when email is undefined', () => {});
});
});
```
**组织决策流程**:
1. 是否存在逻辑相关的现有 `describe` 块? → 如果有,添加到其中
2. 是否有多个(3个以上)相关的测试用例? → 如果有,可以考虑创建新的子 `describe`
3. 是否是独立的、无关联的功能模块? → 如果是,才考虑创建新的顶级 `describe`
### 测试修复流程
1. **复现问题**: 定位并运行失败的测试,确认能在本地复现
2. **分析原因**: 阅读测试代码、错误日志和相关文件的 Git 修改历史
3. **建立假设**: 判断问题出在测试逻辑、实现代码还是环境配置
4. **修复验证**: 根据假设进行修复,重新运行测试确认通过
5. **扩大验证**: 运行当前文件内所有测试,确保没有引入新问题
6. **撰写总结**: 说明错误原因和修复方法
### 修复完成后的总结
测试修复完成后,应该提供简要说明,包括:
1. **错误原因分析**: 说明测试失败的根本原因
- 测试逻辑错误
- 实现代码bug
- 环境配置问题
- 依赖变更导致的问题
2. **修复方法说明**: 简述采用的修复方式
- 修改了哪些文件
- 采用了什么解决方案
- 为什么选择这种修复方式
**示例格式**:
```markdown
## 测试修复总结
**错误原因**: 测试中的 mock 数据格式与实际 API 返回格式不匹配,导致断言失败。
**修复方法**: 更新了测试文件中的 mock 数据结构,使其与最新的 API 响应格式保持一致。具体修改了 `user.test.ts` 中的 `mockUserData` 对象结构。
```
## 测试编写最佳实践
### Mock 数据策略:追求"低成本的真实性"
**核心原则**: 测试数据应默认追求真实性,只有在引入"高昂的测试成本"时才进行简化。
#### 什么是"高昂的测试成本"?
"高成本"指的是测试中引入了外部依赖,使测试变慢、不稳定或复杂:
- **文件 I/O 操作**:读写硬盘文件
- **网络请求**:HTTP 调用、数据库连接
- **系统调用**:获取系统时间、环境变量等
#### 推荐做法:Mock 依赖,保留真实数据
```typescript
// 好的做法:Mock I/O 操作,但使用真实的文件内容格式
describe('parseContentType', () => {
beforeEach(() => {
// Mock 文件读取操作(避免真实 I/O)
vi.spyOn(fs, 'readFileSync').mockImplementation((path) => {
// 但返回真实的文件内容格式
if (path.includes('.pdf')) return '%PDF-1.4\n%âãÏÓ'; // 真实 PDF 文件头
if (path.includes('.png')) return '\x89PNG\r\n\x1a\n'; // 真实 PNG 文件头
return '';
});
});
it('should detect PDF content type correctly', () => {
const result = parseContentType('/path/to/file.pdf');
expect(result).toBe('application/pdf');
});
});
// 过度简化:使用不真实的数据
describe('parseContentType', () => {
it('should detect PDF content type correctly', () => {
// 这种简化数据没有测试价值
const result = parseContentType('fake-pdf-content');
expect(result).toBe('application/pdf');
});
});
```
#### 真实标识符的价值
```typescript
// ✅ 使用真实标识符
const result = parseModelString('openai', '+gpt-4,+gpt-3.5-turbo');
// ❌ 使用占位符(价值较低)
const result = parseModelString('test-provider', '+model1,+model2');
```
### 现代化Mock技巧:环境设置与Mock方法
**环境设置 + Mock方法结合使用**
客户端代码测试时,推荐使用环境注释配合现代化Mock方法:
```typescript
/**
* @vitest-environment happy-dom // 提供浏览器API
*/
import { beforeEach, vi } from 'vitest';
beforeEach(() => {
// 现代方法1:使用vi.stubGlobal替代global.xxx = ...
const mockImage = vi.fn().mockImplementation(() => ({
addEventListener: vi.fn(),
naturalHeight: 600,
naturalWidth: 800,
}));
vi.stubGlobal('Image', mockImage);
// 现代方法2:使用vi.spyOn保留原功能,只mock特定方法
vi.spyOn(URL, 'createObjectURL').mockReturnValue('blob:mock-url');
vi.spyOn(URL, 'revokeObjectURL').mockImplementation(() => {});
});
```
**环境选择优先级**
1. **@vitest-environment happy-dom** (推荐) - 轻量、快速,项目已安装
2. **@vitest-environment jsdom** - 功能完整,但需要额外安装jsdom包
3. **不设置环境** - Node.js环境,需要手动mock所有浏览器API
**Mock方法对比**
```typescript
// ❌ 旧方法:直接操作global对象(类型问题)
global.Image = mockImage;
global.URL = { ...global.URL, createObjectURL: mockFn };
// ✅ 现代方法:类型安全的vi API
vi.stubGlobal('Image', mockImage); // 完全替换全局对象
vi.spyOn(URL, 'createObjectURL'); // 部分mock,保留其他功能
```
### 测试覆盖率原则:代码分支优于用例数量
**核心原则**: 优先覆盖所有代码分支,而非编写大量重复用例
```typescript
// ❌ 过度测试:29个测试用例都验证相同分支
describe('getImageDimensions', () => {
it('should reject .txt files');
it('should reject .pdf files');
// ... 25个类似测试,都走相同的验证分支
});
// ✅ 精简测试:4个核心用例覆盖所有分支
describe('getImageDimensions', () => {
it('should return dimensions for valid File object'); // 成功路径 - File
it('should return dimensions for valid data URI'); // 成功路径 - String
it('should return undefined for invalid inputs'); // 输入验证分支
it('should return undefined when image fails to load'); // 错误处理分支
});
```
**分支覆盖策略**
1. **成功路径** - 每种输入类型1个测试即可
2. **边界条件** - 合并类似场景到单个测试
3. **错误处理** - 测试代表性错误即可
4. **业务逻辑** - 覆盖所有if/else分支
**合理测试数量**
- 简单工具函数:2-5个测试
- 复杂业务逻辑:5-10个测试
- 核心安全功能:适当增加,但避免重复路径
### 错误处理测试:测试"行为"而非"文本"
**核心原则**: 测试应该验证程序在错误发生时的行为是可预测的,而不是验证易变的错误信息文本。
#### 推荐的错误测试方式
```typescript
// ✅ 测试错误类型和属性
expect(() => validateUser({})).toThrow(ValidationError);
expect(() => processPayment({})).toThrow(
expect.objectContaining({
code: 'INVALID_PAYMENT_DATA',
statusCode: 400,
}),
);
// ❌ 避免测试具体错误文本
expect(() => processUser({})).toThrow('用户数据不能为空,请检查输入参数');
```
### 疑难解答:警惕模块污染
**识别信号**: 当你的测试出现以下"灵异"现象时,优先怀疑模块污染:
- 单独运行某个测试通过,但和其他测试一起运行就失败
- 测试的执行顺序影响结果
- Mock 设置看起来正确,但实际使用的是旧的 Mock 版本
#### 典型场景:动态 Mock 同一模块
```typescript
// ❌ 问题:动态Mock同一模块
it('dev mode', async () => {
vi.doMock('./config', () => ({ isDev: true }));
const { getSettings } = await import('./service'); // 可能使用缓存
});
// ✅ 解决:清除模块缓存
beforeEach(() => {
vi.resetModules(); // 确保每个测试都是干净环境
});
```
**记住**: `vi.resetModules()` 是解决测试"灵异"失败的终极武器。
## 测试文件组织
### 文件命名约定
`*.test.ts`, `*.test.tsx` (任意位置)
### 测试文件组织风格
项目采用 **测试文件与源文件同目录** 的组织风格:
- 测试文件放在对应源文件的同一目录下
- 命名格式:`原文件名.test.ts` 或 `原文件名.test.tsx`
例如:
```plaintext
src/components/Button/
├── index.tsx # 源文件
└── index.test.tsx # 测试文件
```
- 也有少数情况会统一放到 `__tests__` 文件夹, 例如 `packages/database/src/models/__tests__`
- 测试使用的辅助文件放到 fixtures 文件夹
## 测试调试技巧
### 测试调试步骤
1. **确定测试环境**: 根据文件路径选择正确的配置文件
2. **隔离问题**: 使用 `-t` 参数只运行失败的测试用例
3. **分析错误**: 仔细阅读错误信息、堆栈跟踪和最近的文件修改记录
4. **添加调试**: 在测试中添加 `console.log` 了解执行流程
### TypeScript 类型处理
在测试中,为了提高编写效率和可读性,可以适当放宽 TypeScript 类型检测:
#### 推荐的类型放宽策略
```typescript
// 使用非空断言访问测试中确定存在的属性
const result = await someFunction();
expect(result!.data).toBeDefined();
expect(result!.status).toBe('success');
// 使用 any 类型简化复杂的 Mock 设置
const mockStream = new ReadableStream() as any;
mockStream.toReadableStream = () => mockStream;
// 访问私有成员
await instance['getFromCache']('key'); // 推荐中括号
await (instance as any).getFromCache('key'); // 避免as any
```
#### 适用场景
- **Mock 对象**: 对于测试用的 Mock 数据,使用 `as any` 避免复杂的类型定义
- **第三方库**: 处理复杂的第三方库类型时,适当使用 `any` 提高效率
- **测试断言**: 在确定对象存在的测试场景中,使用 `!` 非空断言
- **私有成员访问**: 优先使用中括号 `instance['privateMethod']()` 而不是 `(instance as any).privateMethod()`
- **临时调试**: 快速编写测试时,先用 `any` 保证功能,后续可选择性地优化类型
#### 注意事项
- **适度使用**: 不要过度依赖 `any`,核心业务逻辑的类型仍应保持严格
- **私有成员访问优先级**: 中括号访问 > `as any` 转换,保持更好的类型安全性
- **文档说明**: 对于使用 `any` 的复杂场景,添加注释说明原因
- **测试覆盖**: 确保即使使用了 `any`,测试仍能有效验证功能正确性
### 检查最近修改记录
**核心原则**:测试突然失败时,优先检查最近的代码修改。
#### 快速检查方法
```bash
git status # 查看当前修改状态
git diff HEAD -- '*.test.*' # 检查测试文件改动
git diff main...HEAD # 对比主分支差异
gh pr diff # 查看PR中的所有改动
```
#### 常见原因与解决
- **最新提交引入bug** → 检查并修复实现代码
- **分支代码滞后** → `git rebase main` 同步主分支
## 特殊场景的测试
针对一些特殊场景的测试,需要阅读相关 rules:
- [Electron IPC 接口测试策略](mdc:./electron-ipc-test.mdc)
- [数据库 Model 测试指南](mdc:./db-model-test.mdc)
## 核心要点
- **命令格式**: 使用 `bunx vitest run --silent='passed-only'` 并指定文件过滤
- **修复原则**: 失败1-2次后寻求帮助,测试命名关注行为而非实现细节
- **调试流程**: 复现 → 分析 → 假设 → 修复 → 验证 → 总结
- **文件组织**: 优先在现有 `describe` 块中添加测试,避免创建冗余顶级块
- **数据策略**: 默认追求真实性,只有高成本(I/O、网络等)时才简化
- **错误测试**: 测试错误类型和行为,避免依赖具体的错误信息文本
- **模块污染**: 测试"灵异"失败时,优先怀疑模块污染,使用 `vi.resetModules()` 解决
- **安全要求**: Model 测试必须包含权限检查,并在双环境下验证通过
@@ -0,0 +1,579 @@
---
description: Best practices for testing Zustand store actions
globs: "src/store/**/*.test.ts"
alwaysApply: false
---
# Zustand Store Action Testing Guide
This guide provides best practices for testing Zustand store actions, based on our proven testing patterns.
## Basic Test Structure
```typescript
import { act, renderHook } from '@testing-library/react';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { messageService } from '@/services/message';
import { useChatStore } from '../../store';
// Keep zustand mock as it's needed globally
vi.mock('zustand/traditional');
beforeEach(() => {
// Reset store state
vi.clearAllMocks();
useChatStore.setState(
{
activeId: 'test-session-id',
messagesMap: {},
loadingIds: [],
},
false,
);
// ✅ Setup only spies that MOST tests need
vi.spyOn(messageService, 'createMessage').mockResolvedValue('new-message-id');
// ❌ Don't setup spies that only few tests need - spy only when needed
// Setup common mock methods
act(() => {
useChatStore.setState({
refreshMessages: vi.fn(),
internal_coreProcessMessage: vi.fn(),
});
});
});
afterEach(() => {
vi.restoreAllMocks();
});
describe('action name', () => {
describe('validation', () => {
// Validation tests
});
describe('normal flow', () => {
// Happy path tests
});
describe('error handling', () => {
// Error case tests
});
});
```
## Testing Best Practices
### 1. Test Layering - Spy Direct Dependencies Only
✅ **Good**: Spy on the direct dependency
```typescript
// When testing internal_coreProcessMessage, spy its direct dependency
const fetchAIChatSpy = vi
.spyOn(result.current, 'internal_fetchAIChatMessage')
.mockResolvedValue({ isFunctionCall: false, content: 'AI response' });
```
❌ **Bad**: Spy on lower-level implementation details
```typescript
// Don't spy on services that internal_fetchAIChatMessage uses
const streamSpy = vi
.spyOn(chatService, 'createAssistantMessageStream')
.mockImplementation(...);
```
**Why**: Each test should only mock its direct dependencies, not the entire call chain. This makes tests more maintainable and less brittle.
### 2. Mock Management - Minimize Global Spies
✅ **Good**: Spy only when needed
```typescript
beforeEach(() => {
// ✅ Only spy services that most tests need
vi.spyOn(messageService, 'createMessage').mockResolvedValue('new-message-id');
// ✅ Don't spy chatService globally
});
it('should process message', async () => {
// ✅ Spy chatService only in tests that need it
const streamSpy = vi.spyOn(chatService, 'createAssistantMessageStream')
.mockImplementation(...);
// test logic
streamSpy.mockRestore();
});
```
❌ **Bad**: Setup all spies globally
```typescript
beforeEach(() => {
vi.spyOn(messageService, 'createMessage').mockResolvedValue('id');
vi.spyOn(chatService, 'createAssistantMessageStream').mockResolvedValue({}); // ❌ Not all tests need this
vi.spyOn(fileService, 'uploadFile').mockResolvedValue({}); // ❌ Creates implicit coupling
});
```
### 3. Service Mocking - Mock the Correct Layer
✅ **Good**: Mock the service method
```typescript
it('should fetch AI chat response', async () => {
const streamSpy = vi
.spyOn(chatService, 'createAssistantMessageStream')
.mockImplementation(async ({ onMessageHandle, onFinish }) => {
await onMessageHandle?.({ type: 'text', text: 'Hello' } as any);
await onFinish?.('Hello', {});
});
// test logic
});
```
❌ **Bad**: Mock global fetch
```typescript
it('should fetch AI chat response', async () => {
global.fetch = vi.fn().mockResolvedValue(...); // ❌ Too low level
});
```
### 4. Test Organization - Use Descriptive Nesting
✅ **Good**: Clear nested structure
```typescript
describe('sendMessage', () => {
describe('validation', () => {
it('should not send when session is inactive', async () => {});
it('should not send when message is empty', async () => {});
});
describe('message creation', () => {
it('should create user message and trigger AI processing', async () => {});
it('should send message with files attached', async () => {});
});
describe('error handling', () => {
it('should handle message creation errors gracefully', async () => {});
});
});
```
❌ **Bad**: Flat structure
```typescript
describe('sendMessage', () => {
it('test 1', async () => {});
it('test 2', async () => {});
it('test 3', async () => {});
});
```
### 5. Testing Async Actions
Always wrap async operations in `act()`:
```typescript
it('should send message', async () => {
const { result } = renderHook(() => useChatStore());
await act(async () => {
await result.current.sendMessage({ message: 'Hello' });
});
expect(messageService.createMessage).toHaveBeenCalled();
});
```
### 6. State Setup - Use act() for setState
```typescript
it('should handle disabled state', async () => {
act(() => {
useChatStore.setState({ activeId: undefined });
});
const { result } = renderHook(() => useChatStore());
// test logic
});
```
### 7. Testing Complex Flows
For complex flows with multiple steps, use clear spy setup:
```typescript
it('should handle topic creation flow', async () => {
// Setup store state
act(() => {
useChatStore.setState({
activeTopicId: undefined,
messagesMap: {
'test-session-id': [
{ id: 'msg-1', role: 'user', content: 'Message 1' },
{ id: 'msg-2', role: 'assistant', content: 'Response 1' },
{ id: 'msg-3', role: 'user', content: 'Message 2' },
],
},
});
});
const { result } = renderHook(() => useChatStore());
// Spy on action dependencies
const createTopicSpy = vi.spyOn(result.current, 'createTopic')
.mockResolvedValue('new-topic-id');
const toggleLoadingSpy = vi.spyOn(result.current, 'internal_toggleMessageLoading');
// Execute
await act(async () => {
await result.current.sendMessage({ message: 'Test message' });
});
// Assert
expect(createTopicSpy).toHaveBeenCalled();
expect(toggleLoadingSpy).toHaveBeenCalledWith(true, expect.any(String));
});
```
### 8. Streaming Response Mocking
When testing streaming responses, simulate the flow properly:
```typescript
it('should handle streaming chunks', async () => {
const { result } = renderHook(() => useChatStore());
const messages = [
{ id: 'msg-1', role: 'user', content: 'Hello', sessionId: 'test-session' },
];
const streamSpy = vi
.spyOn(chatService, 'createAssistantMessageStream')
.mockImplementation(async ({ onMessageHandle, onFinish }) => {
// Simulate streaming chunks
await onMessageHandle?.({ type: 'text', text: 'Hello' } as any);
await onMessageHandle?.({ type: 'text', text: ' World' } as any);
await onFinish?.('Hello World', {});
});
await act(async () => {
await result.current.internal_fetchAIChatMessage({
messages,
messageId: 'test-message-id',
model: 'gpt-4o-mini',
provider: 'openai',
});
});
expect(result.current.internal_dispatchMessage).toHaveBeenCalled();
streamSpy.mockRestore();
});
```
### 9. Error Handling Tests
Always test error scenarios:
```typescript
it('should handle errors gracefully', async () => {
const { result } = renderHook(() => useChatStore());
vi.spyOn(messageService, 'createMessage').mockRejectedValue(
new Error('create message error'),
);
await act(async () => {
try {
await result.current.sendMessage({ message: 'Test message' });
} catch {
// Expected to throw
}
});
expect(result.current.internal_coreProcessMessage).not.toHaveBeenCalled();
});
```
### 10. Cleanup After Tests
Always restore mocks after each test:
```typescript
afterEach(() => {
vi.restoreAllMocks();
});
// For individual test cleanup:
it('should test something', async () => {
const spy = vi.spyOn(service, 'method').mockImplementation(...);
// test logic
spy.mockRestore(); // Optional: cleanup immediately after test
});
```
## Common Patterns
### Testing Store Methods That Call Other Store Methods
```typescript
it('should call internal methods', async () => {
const { result } = renderHook(() => useChatStore());
const internalMethodSpy = vi.spyOn(result.current, 'internal_method')
.mockResolvedValue();
await act(async () => {
await result.current.publicMethod();
});
expect(internalMethodSpy).toHaveBeenCalledWith(
expect.any(String),
expect.objectContaining({ key: 'value' }),
);
});
```
### Testing Conditional Logic
```typescript
describe('conditional behavior', () => {
it('should execute when condition is true', async () => {
const { result } = renderHook(() => useChatStore());
vi.spyOn(result.current, 'internal_shouldUseRAG').mockReturnValue(true);
await act(async () => {
await result.current.sendMessage({ message: 'test' });
});
expect(result.current.internal_retrieveChunks).toHaveBeenCalled();
});
it('should not execute when condition is false', async () => {
const { result } = renderHook(() => useChatStore());
vi.spyOn(result.current, 'internal_shouldUseRAG').mockReturnValue(false);
await act(async () => {
await result.current.sendMessage({ message: 'test' });
});
expect(result.current.internal_retrieveChunks).not.toHaveBeenCalled();
});
});
```
### Testing AbortController
```typescript
it('should abort generation and clear loading state', () => {
const abortController = new AbortController();
act(() => {
useChatStore.setState({ chatLoadingIdsAbortController: abortController });
});
const { result } = renderHook(() => useChatStore());
const toggleLoadingSpy = vi.spyOn(result.current, 'internal_toggleChatLoading');
act(() => {
result.current.stopGenerateMessage();
});
expect(abortController.signal.aborted).toBe(true);
expect(toggleLoadingSpy).toHaveBeenCalledWith(false, undefined, expect.any(String));
});
```
## Anti-Patterns to Avoid
❌ **Don't**: Mock the entire store
```typescript
vi.mock('../../store', () => ({
useChatStore: vi.fn(() => ({
sendMessage: vi.fn(),
})),
}));
```
❌ **Don't**: Test implementation details
```typescript
// Bad: testing internal state structure
expect(result.current.messagesMap).toHaveProperty('test-session');
// Good: testing behavior
expect(result.current.refreshMessages).toHaveBeenCalled();
```
❌ **Don't**: Create tight coupling between tests
```typescript
// Bad: Tests depend on order
let messageId: string;
it('test 1', () => {
messageId = 'some-id'; // Side effect
});
it('test 2', () => {
expect(messageId).toBeDefined(); // Depends on test 1
});
```
❌ **Don't**: Over-mock services
```typescript
// Bad: Mocking everything
beforeEach(() => {
vi.mock('@/services/chat');
vi.mock('@/services/message');
vi.mock('@/services/file');
vi.mock('@/services/agent');
// ... too many global mocks
});
```
## Testing SWR Hooks in Zustand Stores
Some Zustand store slices use SWR hooks for data fetching. These require a different testing approach.
### Basic SWR Hook Test Structure
```typescript
import { renderHook, waitFor } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { discoverService } from '@/services/discover';
import { globalHelpers } from '@/store/global/helpers';
import { useDiscoverStore as useStore } from '../../store';
vi.mock('zustand/traditional');
beforeEach(() => {
vi.clearAllMocks();
});
describe('SWR Hook Actions', () => {
it('should fetch data and return correct response', async () => {
const mockData = [{ id: '1', name: 'Item 1' }];
// Mock the service call (the fetcher)
vi.spyOn(discoverService, 'getPluginCategories').mockResolvedValue(mockData as any);
vi.spyOn(globalHelpers, 'getCurrentLanguage').mockReturnValue('en-US');
const params = {} as any;
const { result } = renderHook(() => useStore.getState().usePluginCategories(params));
// Use waitFor to wait for async data loading
await waitFor(() => {
expect(result.current.data).toEqual(mockData);
});
expect(discoverService.getPluginCategories).toHaveBeenCalledWith(params);
});
});
```
**Key points**:
- **DO NOT mock useSWR** - let it use the real implementation
- Only mock the **service methods** (fetchers)
- Use `waitFor` from `@testing-library/react` to wait for async operations
- Check `result.current.data` directly after waitFor completes
### Testing SWR Key Generation
```typescript
it('should generate correct SWR key with locale and params', () => {
vi.spyOn(globalHelpers, 'getCurrentLanguage').mockReturnValue('zh-CN');
const useSWRMock = vi.mocked(useSWR);
let capturedKey: string | null = null;
useSWRMock.mockImplementation(((key: string) => {
capturedKey = key;
return { data: undefined, error: undefined, isValidating: false, mutate: vi.fn() };
}) as any);
const params = { page: 2, category: 'tools' } as any;
renderHook(() => useStore.getState().usePluginList(params));
expect(capturedKey).toBe('plugin-list-zh-CN-2-tools');
});
```
### Testing SWR Configuration
```typescript
it('should have correct SWR configuration', () => {
const useSWRMock = vi.mocked(useSWR);
let capturedOptions: any = null;
useSWRMock.mockImplementation(((key: string, fetcher: any, options: any) => {
capturedOptions = options;
return { data: undefined, error: undefined, isValidating: false, mutate: vi.fn() };
}) as any);
renderHook(() => useStore.getState().usePluginIdentifiers());
expect(capturedOptions).toMatchObject({ revalidateOnFocus: false });
});
```
### Testing Conditional Fetching
```typescript
it('should not fetch when required parameter is missing', () => {
const useSWRMock = vi.mocked(useSWR);
let capturedKey: string | null = null;
useSWRMock.mockImplementation(((key: string | null) => {
capturedKey = key;
return { data: undefined, error: undefined, isValidating: false, mutate: vi.fn() };
}) as any);
// When identifier is undefined, SWR key should be null
renderHook(() => useStore.getState().usePluginDetail({ identifier: undefined }));
expect(capturedKey).toBeNull();
});
```
### Key Differences from Regular Action Tests
1. **Mock useSWR globally**: Use `vi.mock('swr')` at the top level
2. **Mock the fetcher, not the result**:
- ✅ **Correct**: `const data = fetcher?.()` - call fetcher and return its Promise
- ❌ **Wrong**: `return { data: mockData }` - hardcode the result
3. **Await Promise results**: The `data` field is a Promise, use `await result.current.data`
4. **No act() wrapper needed**: SWR hooks don't trigger React state updates in these tests
5. **Test SWR key generation**: Verify keys include locale and parameters
6. **Test configuration**: Verify revalidation and other SWR options
7. **Type assertions**: Use `as any` for test mock data where type definitions are strict
**Why this matters**:
- The fetcher (service method) is what we're testing - it must be called
- Hardcoding the return value bypasses the actual fetcher logic
- SWR returns Promises in real usage, tests should mirror this behavior
## Benefits of This Approach
✅ **Clear test layers** - Each test only spies on direct dependencies
✅ **Correct mocks** - Mocks match actual implementation
✅ **Better maintainability** - Changes to implementation require fewer test updates
✅ **Improved coverage** - Structured approach ensures all branches are tested
✅ **Reduced coupling** - Tests are independent and can run in any order
## Reference
See example implementation in:
- `src/store/chat/slices/aiChat/actions/__tests__/generateAIChat.test.ts` (Regular actions)
- `src/store/discover/slices/plugin/action.test.ts` (SWR hooks)
- `src/store/discover/slices/mcp/action.test.ts` (SWR hooks)
+58
View File
@@ -0,0 +1,58 @@
---
description: TypeScript code style and optimization guidelines
globs: *.ts,*.tsx,*.mts
alwaysApply: false
---
# TypeScript Code Style Guide
## Types and Type Safety
- avoid explicit type annotations when TypeScript can infer types.
- avoid implicitly `any` variables; explicitly type when necessary (e.g., `let a: number` instead of `let a`).
- use the most accurate type possible (e.g., prefer `Record<PropertyKey, unknown>` over `object` and `any`).
- prefer `interface` over `type` for object shapes (e.g., React component props). Keep `type` for unions, intersections, and utility types.
- prefer `as const satisfies XyzInterface` over plain `as const` when suitable.
- prefer `@ts-expect-error` over `@ts-ignore` over `as any`
- Avoid meaningless null/undefined parameters; design strict function contracts.
## Imports and Modules
- When importing a directory module, prefer the explicit index path like `@/db/index` instead of `@/db`.
## Asynchronous Patterns and Concurrency
- Prefer `async`/`await` over callbacks or chained `.then` promises.
- Prefer async APIs over sync ones (avoid `*Sync`).
- Prefer promise-based variants (e.g., `import { readFile } from 'fs/promises'`) over callback-based APIs from `fs`.
- Where safe, convert sequential async flows to concurrent ones with `Promise.all`, `Promise.race`, etc.
## Code Structure and Readability
- Prefer object destructuring when accessing and using properties.
- Use consistent, descriptive naming; avoid obscure abbreviations.
- Use semantically meaningful variable, function, and class names.
- Replace magic numbers or strings with well-named constants.
- Defer formatting to tooling; ignore purely formatting-only issues and autofixable lint problems.
## UI and Theming
- Use components from `@lobehub/ui`, Ant Design, or existing design system components instead of raw HTML tags (e.g., `Button` vs. `button`).
- Design for dark mode and mobile responsiveness:
- Use the `antd-style` token system instead of hard-coded colors.
- Select appropriate component variants.
## Performance
- Prefer `for…of` loops to index-based `for` loops when feasible.
- Reuse existing utils inside `packages/utils` or installed npm packages rather than reinventing the wheel.
- Query only the required columns from a database rather than selecting entire rows.
## Time and Consistency
- Instead of calling `Date.now()` multiple times, assign it to a constant once and reuse it to ensure consistency and improve readability.
## Logging
- Never log user private information like api key, etc
- Don't use `import { log } from 'debug'` to log messages, because it will directly log the message to the console.
+57 -15
View File
@@ -87,7 +87,7 @@ internal_dispatchTopic: (payload, action) => {
### 使用 Reducer 模式的场景
**适用于复杂的数据结构管理**,特别是:
适用于复杂的数据结构管理,特别是:
- 管理对象列表或映射(如 `messagesMap`, `topicMaps`
- 需要乐观更新的场景
- 状态转换逻辑复杂
@@ -125,7 +125,7 @@ export const messagesReducer = (state: ChatMessage[], payload: MessageDispatch):
### 使用简单 `set` 的场景
**适用于简单状态更新**
适用于简单状态更新:
- 切换布尔值
- 更新简单字符串/数字
- 设置单一状态字段
@@ -204,6 +204,43 @@ internal_createMessage: async (message, context) => {
},
```
### 删除操作模式(不使用乐观更新)
删除操作通常不适合乐观更新,因为:
- 删除是破坏性操作,错误恢复复杂
- 用户对删除操作的即时反馈期望较低
- 删除失败时恢复原状态会造成困惑
```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 使用统一的加载状态管理模式:
@@ -292,27 +329,32 @@ refreshTopic: async () => {
## 命名规范总结
### Action 命名模式
- **Public Actions**: 动词形式,描述用户意图
- Public Actions: 动词形式,描述用户意图
- `createTopic`, `sendMessage`, `regenerateMessage`
- **Internal Actions**: `internal_` + 动词,描述内部操作
- Internal Actions: `internal_` + 动词,描述内部操作
- `internal_createTopic`, `internal_updateMessageContent`
- **Dispatch Methods**: `internal_dispatch` + 实体名
- Dispatch Methods: `internal_dispatch` + 实体名
- `internal_dispatchTopic`, `internal_dispatchMessage`
- **Toggle Methods**: `internal_toggle` + 状态名
- Toggle Methods: `internal_toggle` + 状态名
- `internal_toggleMessageLoading`, `internal_toggleChatLoading`
### 状态命名模式
- **ID 数组**: `[entity]LoadingIds`, `[entity]EditingIds`
- **映射结构**: `[entity]Maps`, `[entity]Map`
- **当前激活**: `active[Entity]Id`
- **初始化标记**: `[entity]sInit`
- 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**:为长时间运行的操作提供取消能力
1. 合理使用乐观更新:
- ✅ 适用:创建、更新操作(用户交互频繁)
- ❌ 避免:删除操作(破坏性操作,错误恢复复杂)
2. 加载状态管理:使用统一的加载状态数组管理并发操作
3. 类型安全:为所有 action payload 定义 TypeScript 接口
4. SWR 集成:使用 SWR 管理数据获取和缓存失效
5. AbortController:为长时间运行的操作提供取消能力
6. 操作模式选择:
- 创建/更新:乐观更新 + 最终一致性
- 删除:加载状态 + 服务调用 + 数据刷新
这套 Action 组织模式确保了代码的一致性、可维护性,并提供了优秀的用户体验。
+12 -12
View File
@@ -13,10 +13,10 @@ 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`**: 提供聊天相关的辅助函数
- `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 聚合模式
@@ -81,7 +81,7 @@ src/store/chat/slices/
### 文件职责说明
1. **`initialState.ts`**:
1. `initialState.ts`:
- 定义 slice 的 TypeScript 状态接口
- 提供初始状态默认值
@@ -104,7 +104,7 @@ export const initialTopicState: ChatTopicState = {
};
```
2. **`reducer.ts`** (复杂状态使用):
2. `reducer.ts` (复杂状态使用):
- 定义纯函数 reducer,处理同步状态转换
- 使用 `immer` 确保不可变更新
@@ -150,10 +150,10 @@ export const topicReducer = (state: ChatTopic[] = [], payload: ChatTopicDispatch
};
```
3. **`selectors.ts`**:
3. `selectors.ts`:
- 提供状态查询和计算函数
- 供 UI 组件使用的状态订阅接口
- **重要**: 使用 `export const xxxSelectors` 模式聚合所有 selectors
- 重要: 使用 `export const xxxSelectors` 模式聚合所有 selectors
```typescript
// 典型的 selectors.ts 结构
@@ -277,22 +277,22 @@ export { aiChatSelectors } from './slices/aiChat/selectors';
## 最佳实践
1. **Slice 划分原则**:
1. Slice 划分原则:
- 按功能领域划分(message, topic, aiChat 等)
- 每个 slice 管理相关的状态和操作
- 避免 slice 之间的强耦合
2. **文件命名规范**:
2. 文件命名规范:
- 使用小驼峰命名 slice 目录
- 文件名使用一致的模式(action.ts, selectors.ts 等)
- 复杂 actions 时使用 actions/ 子目录
3. **状态结构设计**:
3. 状态结构设计:
- 扁平化的状态结构,避免深层嵌套
- 使用 Map 结构管理列表数据
- 分离加载状态和业务数据
4. **类型安全**:
4. 类型安全:
- 为每个 slice 定义清晰的 TypeScript 接口
- 使用 Zustand 的 StateCreator 确保类型一致性
- 在顶层聚合时保持类型安全
+4 -3
View File
@@ -1,6 +1,7 @@
{
"image": "mcr.microsoft.com/devcontainers/typescript-node",
"features": {
"ghcr.io/devcontainer-community/devcontainer-features/bun.sh:1": {}
}
"ghcr.io/devcontainer-community/devcontainer-features/bun.sh:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"image": "mcr.microsoft.com/devcontainers/typescript-node"
}
+1 -2
View File
@@ -4,6 +4,5 @@ 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
NEXT_PUBLIC_ENABLE_NEXT_AUTH=0
+71 -3
View File
@@ -4,6 +4,25 @@
# Specify your API Key selection method, currently supporting `random` and `turn`.
# API_KEY_SELECT_MODE=random
########################################
########### Security Settings ###########
########################################
# Control Content Security Policy headers
# Set to '1' to enable X-Frame-Options and Content-Security-Policy headers
# Default is '0' (enabled)
# ENABLED_CSP=1
# SSRF Protection Settings
# Set to '1' to allow connections to private IP addresses (disable SSRF protection)
# WARNING: Only enable this in trusted environments
# Default is '0' (SSRF protection enabled)
# SSRF_ALLOW_PRIVATE_IP_ADDRESS=0
# Whitelist of allowed private IP addresses (comma-separated)
# Only takes effect when SSRF_ALLOW_PRIVATE_IP_ADDRESS is '0'
# Example: Allow specific internal servers while keeping SSRF protection
# SSRF_ALLOW_IP_ADDRESS_LIST=192.168.1.100,10.0.0.50
########################################
########## AI Provider Service #########
@@ -140,6 +159,48 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# INFINIAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### 302.AI ###
# AI302_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### ModelScope ###
# MODELSCOPE_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### AiHubMix ###
# AIHUBMIX_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### BFL ###
# BFL_API_KEY=bfl-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### FAL ###
# FAL_API_KEY=fal-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
########################################
######### AI Image Settings ############
########################################
# Default image generation count (range: 1-20, default: 4)
# AI_IMAGE_DEFAULT_IMAGE_NUM=4
### Nebius ###
# NEBIUS_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### NewAPI Service ###
# NEWAPI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# NEWAPI_PROXY_URL=https://your-newapi-server.com
### Vercel AI Gateway ###
# VERCELAIGATEWAY_API_KEY=your_vercel_ai_gateway_api_key
########################################
############ Market Service ############
########################################
@@ -206,6 +267,9 @@ OPENAI_API_KEY=sk-xxxxxxxxx
# you need to config the clerk webhook secret key if you want to use the clerk with database
#CLERK_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxx
# Clear allow origin https://clerk.com/docs/guides/dashboard/dns-domains/satellite-domains
# Authentication across different domains , use,to splite different origin
# NEXT_PUBLIC_CLERK_AUTH_ALLOW_ORIGINS='https://market.lobehub.com,https://lobehub.com'
# NextAuth related configurations
# NEXT_PUBLIC_ENABLE_NEXT_AUTH=1
@@ -220,9 +284,6 @@ OPENAI_API_KEY=sk-xxxxxxxxx
########## Server Database #############
########################################
# Specify the service mode as server if you want to use the server database
# NEXT_PUBLIC_SERVICE_MODE=server
# Postgres database URL
# DATABASE_URL=postgres://username:password@host:port/database
@@ -232,3 +293,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
+120
View File
@@ -0,0 +1,120 @@
# LobeChat Development Server Configuration
# This file contains environment variables for both LobeChat server mode and Docker compose setup
COMPOSE_FILE="docker-compose.development.yml"
# ⚠️⚠️⚠️ DO NOT USE THE SECRETS BELOW IN PRODUCTION!
UNSAFE_SECRET="ww+0igxjGRAAR/eTNFQ55VmhQB5KE5trFZseuntThJs="
UNSAFE_PASSWORD="CHANGE_THIS_PASSWORD_IN_PRODUCTION"
# Core Server Configuration
# Service Ports Configuration
LOBE_PORT=3010
# Application URL - the base URL where LobeChat will be accessible
APP_URL=http://localhost:${LOBE_PORT}
# Secret key for encrypting vault data (generate with: openssl rand -base64 32)
KEY_VAULTS_SECRET=${UNSAFE_SECRET}
# Database Configuration
# Database name for LobeChat
LOBE_DB_NAME=lobechat
# PostgreSQL password
POSTGRES_PASSWORD=${UNSAFE_PASSWORD}
# PostgreSQL database connection URL
DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432/${LOBE_DB_NAME}
# Database driver type
DATABASE_DRIVER=node
# Authentication Configuration
# Enable NextAuth authentication
NEXT_PUBLIC_ENABLE_NEXT_AUTH=1
# NextAuth secret for JWT signing (generate with: openssl rand -base64 32)
NEXT_AUTH_SECRET=${UNSAFE_SECRET}
NEXTAUTH_URL=${APP_URL}
# Authentication URL
AUTH_URL=${APP_URL}/api/auth
# SSO providers configuration - using Casdoor for development
NEXT_AUTH_SSO_PROVIDERS=casdoor
# Casdoor Configuration
# Casdoor service port
CASDOOR_PORT=8000
# Casdoor OIDC issuer URL
AUTH_CASDOOR_ISSUER=http://localhost:${CASDOOR_PORT}
# Casdoor application client ID
AUTH_CASDOOR_ID=a387a4892ee19b1a2249 # DO NOT USE IN PROD
# Casdoor application client secret
AUTH_CASDOOR_SECRET=dbf205949d704de81b0b5b3603174e23fbecc354 # DO NOT USE IN PROD
# Origin URL for Casdoor internal configuration
origin=http://localhost:${CASDOOR_PORT}
# MinIO Storage Configuration
# MinIO service port
MINIO_PORT=9000
# MinIO root user (admin username)
MINIO_ROOT_USER=admin
# MinIO root password
MINIO_ROOT_PASSWORD=${UNSAFE_PASSWORD}
# MinIO bucket for LobeChat files
MINIO_LOBE_BUCKET=lobe
# S3/MinIO Configuration for LobeChat
# S3/MinIO access key ID
S3_ACCESS_KEY_ID=${MINIO_ROOT_USER}
# S3/MinIO secret access key
S3_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD}
# S3/MinIO endpoint URL
S3_ENDPOINT=http://localhost:${MINIO_PORT}
# S3 bucket name for storing files
S3_BUCKET=${MINIO_LOBE_BUCKET}
# Public domain for S3 file access
S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}
# Enable path-style S3 requests (required for MinIO)
S3_ENABLE_PATH_STYLE=1
# Disable S3 ACL setting (for MinIO compatibility)
S3_SET_ACL=0
# Use base64 encoding for LLM vision images
LLM_VISION_IMAGE_USE_BASE64=1
# Search Service Configuration
# SearXNG search engine URL
SEARXNG_URL=http://searxng:8080
# Development Options
# Uncomment to skip authentication during development
# Proxy Configuration (Optional)
# Uncomment if you need proxy support (e.g., for GitHub auth or API access)
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# AI Model Configuration (Optional)
# Add your AI model API keys and configurations here
# ⚠️ WARNING: Never commit real API keys to version control!
# OPENAI_API_KEY=sk-NEVER_USE_REAL_API_KEYS_IN_CONFIG_FILES
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
+17
View File
@@ -29,3 +29,20 @@ logs
# misc
# add other ignore file below
.next
# temporary directories
tmp
temp
.temp
.local
docs/.local
# cache directories
.cache
# AI coding tools directories
.claude
.serena
# MCP tools
/.serena/**
+10
View File
@@ -36,6 +36,16 @@ config.overrides = [
'mdx/code-blocks': false,
},
},
{
files: ['src/store/image/**/*', 'src/types/generation/**/*'],
rules: {
'@typescript-eslint/no-empty-interface': 0,
'sort-keys-fix/sort-keys-fix': 0,
'typescript-sort-keys/interface': 0,
'typescript-sort-keys/string-enum': 0,
},
},
];
module.exports = config;
+67 -23
View File
@@ -5,34 +5,17 @@ type: Bug
body:
- type: dropdown
attributes:
label: '📦 Platform'
label: '📱 Client Type'
description: 'Select how you are accessing LobeChat'
multiple: true
options:
- 'Official Preview'
- 'Official Cloud'
- 'Vercel'
- 'Zeabur'
- 'Sealos'
- 'Netlify'
- 'Self hosting Docker'
- 'Web (Desktop Browser)'
- 'Web (Mobile Browser)'
- 'Desktop App (Electron)'
- 'Mobile App (React Native)'
- 'Other'
validations:
required: true
- type: dropdown
attributes:
label: '📦 Deploymenet mode'
multiple: true
options:
- 'client db (lobe-chat image)'
- 'client pgelite db (lobe-chat-pglite image)'
- 'server db(lobe-chat-database image)'
validations:
required: true
- type: input
attributes:
label: '📌 Version'
validations:
required: true
- type: dropdown
attributes:
@@ -48,6 +31,39 @@ body:
- 'Other'
validations:
required: true
- type: dropdown
attributes:
label: '📦 Deployment Platform'
multiple: true
options:
- 'Official Cloud'
- 'Vercel'
- 'Zeabur'
- 'Sealos'
- 'Netlify'
- 'Self hosting Docker'
- 'Other'
validations:
required: false
- type: dropdown
attributes:
label: '🔧 Deployment Mode'
multiple: true
options:
- 'client db (lobe-chat image)'
- 'client pgelite db (lobe-chat-pglite image)'
- 'server db (lobe-chat-database image)'
validations:
required: true
- type: input
attributes:
label: '📌 Version'
validations:
required: true
- type: dropdown
attributes:
label: '🌐 Browser'
@@ -60,21 +76,49 @@ body:
- 'Other'
validations:
required: true
- type: textarea
attributes:
label: '🐛 Bug Description'
description: A clear and concise description of the bug, if the above option is `Other`, please also explain in detail.
validations:
required: true
- type: textarea
attributes:
label: '📷 Recurrence Steps'
description: A clear and concise description of how to recurrence.
- type: textarea
attributes:
label: '🚦 Expected Behavior'
description: A clear and concise description of what you expected to happen.
- type: textarea
attributes:
label: '📝 Additional Information'
description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here.
- type: dropdown
attributes:
label: '🛠️ Willing to Submit a PR?'
description: Would you be willing to submit a pull request to fix this bug?
options:
- 'Yes, I am willing to submit a PR'
- 'No, but I am happy to help test the fix'
validations:
required: false
- type: checkboxes
attributes:
label: '✅ Validations'
description: Before submitting the issue, please make sure you do the following
options:
- label: Read the [docs](https://lobehub.com/zh/docs).
required: true
- label: Check that there isn't [already an issue](https://github.com/lobehub/lobe-chat/issues) that reports the same bug to avoid creating a duplicate.
required: true
- label: Make sure this is a LobeChat issue and not a third-party library or provider issue.
required: true
- label: Check that this is a concrete bug. For Q&A, please use [GitHub Discussions](https://github.com/lobehub/lobe-chat/discussions) or join our [Discord Server](https://discord.gg/rGHwKq4R).
required: true
@@ -1,87 +0,0 @@
name: '🐛 反馈缺陷'
description: '反馈一个问题缺陷'
labels: ['unconfirm']
type: Bug
body:
- type: markdown
attributes:
value: |
在创建新的 Issue 之前,请先[搜索已有问题](https://github.com/lobehub/lobe-chat/issues),如果发现已有类似的问题,请给它 **👍 点赞**,这样可以帮助我们更快地解决问题。
如果你在使用过程中遇到问题,可以尝试以下方式获取帮助:
- 在 [GitHub Discussions](https://github.com/lobehub/lobe-chat/discussions) 的版块发起讨论。
- 在 [LobeChat 社区](https://discord.gg/AYFPHvv2jT) 提问,与其他用户交流。
- type: dropdown
attributes:
label: '📦 部署环境'
multiple: true
options:
- 'Official Preview'
- 'Official Cloud'
- 'Vercel'
- 'Zeabur'
- 'Sealos'
- 'Netlify'
- 'Docker'
- 'Other'
validations:
required: true
- type: dropdown
attributes:
label: '📦 部署模式'
multiple: true
options:
- '客户端模式(lobe-chat 镜像)'
- '客户端 Pglite 模式(lobe-chat-pglite 镜像)'
- '服务端模式(lobe-chat-database 镜像)'
validations:
required: true
- type: input
attributes:
label: '📌 软件版本'
validations:
required: true
- type: dropdown
attributes:
label: '💻 系统环境'
multiple: true
options:
- 'Windows'
- 'macOS'
- 'Ubuntu'
- 'Other Linux'
- 'iOS'
- 'Android'
- 'Other'
validations:
required: true
- type: dropdown
attributes:
label: '🌐 浏览器'
multiple: true
options:
- 'Chrome'
- 'Edge'
- 'Safari'
- 'Firefox'
- 'Other'
validations:
required: true
- type: textarea
attributes:
label: '🐛 问题描述'
description: 请提供一个清晰且简洁的问题描述,若上述选项为`Other`,也请详细说明。
validations:
required: true
- type: textarea
attributes:
label: '📷 复现步骤'
description: 请提供一个清晰且简洁的描述,说明如何复现问题。
- type: textarea
attributes:
label: '🚦 期望结果'
description: 请提供一个清晰且简洁的描述,说明您期望发生什么。
- type: textarea
attributes:
label: '📝 补充信息'
description: 如果您的问题需要进一步说明,或者您遇到的问题无法在一个简单的示例中复现,请在这里添加更多信息。
@@ -1,21 +0,0 @@
name: '🌠 功能需求'
description: '提出需求或建议'
title: '[Request] '
type: Feature
body:
- type: textarea
attributes:
label: '🥰 需求描述'
description: 请添加一个清晰且简洁的问题描述,阐述您希望通过这个功能需求解决的问题。
validations:
required: true
- type: textarea
attributes:
label: '🧐 解决方案'
description: 请清晰且简洁地描述您想要的解决方案。
validations:
required: true
- type: textarea
attributes:
label: '📝 补充信息'
description: 在这里添加关于问题的任何其他背景信息。
+4 -4
View File
@@ -1,7 +1,7 @@
contact_links:
- name: Ask a question for self-hosting | 咨询自部署问题
- name: Ask a question for self-hosting
url: https://github.com/lobehub/lobe-chat/discussions/new?category=self-hosting-%E7%A7%81%E6%9C%89%E5%8C%96%E9%83%A8%E7%BD%B2
about: Please post questions, and ideas in discussions. | 请在讨论区发布问题和想法。
- name: Questions and ideas | 其他问题和想法
about: Please post questions, and ideas in discussions.
- name: Questions and ideas
url: https://github.com/lobehub/lobe-chat/discussions/new/choose
about: Please post questions, and ideas in discussions. | 请在讨论区发布问题和想法。
about: Please post questions, and ideas in discussions.
+30 -3
View File
@@ -1,4 +1,4 @@
#### 💻 变更类型 | Change Type
#### 💻 Change Type
<!-- For change type, change [ ] to [x]. -->
@@ -8,13 +8,40 @@
- [ ] 💄 style
- [ ] 👷 build
- [ ] ⚡️ perf
- [ ] ✅ test
- [ ] 📝 docs
- [ ] 🔨 chore
#### 🔀 变更说明 | Description of Change
#### 🔗 Related Issue
<!-- Link to the issue that is fixed by this PR -->
<!-- Example: Fixes #123, Closes #456, Related to #789 -->
#### 🔀 Description of Change
<!-- Thank you for your Pull Request. Please provide a description above. -->
#### 📝 补充信息 | Additional Information
#### 🧪 How to Test
<!-- Please describe how you tested your changes -->
<!-- For AI features, please include test prompts or scenarios -->
- [ ] Tested locally
- [ ] Added/updated tests
- [ ] No tests needed
#### 📸 Screenshots / Videos
<!-- If this PR includes UI changes, please provide screenshots or videos -->
| Before | After |
| ------ | ----- |
| ... | ... |
#### 📝 Additional Information
<!-- Add any other context about the Pull Request here. -->
<!-- Breaking changes? Migration guide? Performance impact? -->
+260
View File
@@ -0,0 +1,260 @@
#!/usr/bin/env bun
declare global {
// @ts-ignore
// eslint-disable-next-line no-var
var process: {
env: Record<string, string | undefined>;
};
}
interface GitHubIssue {
created_at: string;
number: number;
title: string;
user: { id: number };
}
interface GitHubComment {
body: string;
created_at: string;
id: number;
user: { id: number; type: string };
}
interface GitHubReaction {
content: string;
user: { id: number };
}
async function githubRequest<T>(
endpoint: string,
token: string,
method: string = 'GET',
body?: any,
): Promise<T> {
const response = await fetch(`https://api.github.com${endpoint}`, {
headers: {
'Accept': 'application/vnd.github.v3+json',
'Authorization': `Bearer ${token}`,
'User-Agent': 'auto-close-duplicates-script',
...(body && { 'Content-Type': 'application/json' }),
},
method,
...(body && { body: JSON.stringify(body) }),
});
if (!response.ok) {
throw new Error(`GitHub API request failed: ${response.status} ${response.statusText}`);
}
return response.json();
}
function extractDuplicateIssueNumber(commentBody: string): number | null {
// Try to match #123 format first
let match = commentBody.match(/#(\d+)/);
if (match) {
return parseInt(match[1], 10);
}
// Try to match GitHub issue URL format: https://github.com/owner/repo/issues/123
match = commentBody.match(/github\.com\/[^/]+\/[^/]+\/issues\/(\d+)/);
if (match) {
return parseInt(match[1], 10);
}
return null;
}
async function closeIssueAsDuplicate(
owner: string,
repo: string,
issueNumber: number,
duplicateOfNumber: number,
token: string,
): Promise<void> {
await githubRequest(`/repos/${owner}/${repo}/issues/${issueNumber}`, token, 'PATCH', {
labels: ['duplicate'],
state: 'closed',
state_reason: 'duplicate',
});
await githubRequest(`/repos/${owner}/${repo}/issues/${issueNumber}/comments`, token, 'POST', {
body: `This issue has been automatically closed as a duplicate of #${duplicateOfNumber}.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with [Claude Code](https://claude.ai/code)`,
});
}
async function autoCloseDuplicates(): Promise<void> {
console.log('[DEBUG] Starting auto-close duplicates script');
const token = process.env.GITHUB_TOKEN;
if (!token) {
throw new Error('GITHUB_TOKEN environment variable is required');
}
console.log('[DEBUG] GitHub token found');
const owner = process.env.GITHUB_REPOSITORY_OWNER || 'lobehub';
const repo = process.env.GITHUB_REPOSITORY_NAME || 'lobe-chat';
console.log(`[DEBUG] Repository: ${owner}/${repo}`);
const threeDaysAgo = new Date();
threeDaysAgo.setDate(threeDaysAgo.getDate() - 3);
console.log(`[DEBUG] Checking for duplicate comments older than: ${threeDaysAgo.toISOString()}`);
console.log('[DEBUG] Fetching open issues created more than 3 days ago...');
const allIssues: GitHubIssue[] = [];
let page = 1;
const perPage = 100;
// eslint-disable-next-line no-constant-condition
while (true) {
const pageIssues: GitHubIssue[] = await githubRequest(
`/repos/${owner}/${repo}/issues?state=open&per_page=${perPage}&page=${page}`,
token,
);
if (pageIssues.length === 0) break;
// Filter for issues created more than 3 days ago
const oldEnoughIssues = pageIssues.filter(
(issue) => new Date(issue.created_at) <= threeDaysAgo,
);
allIssues.push(...oldEnoughIssues);
page++;
// Safety limit to avoid infinite loops
if (page > 20) break;
}
const issues = allIssues;
console.log(`[DEBUG] Found ${issues.length} open issues`);
let processedCount = 0;
let candidateCount = 0;
for (const issue of issues) {
processedCount++;
console.log(
`[DEBUG] Processing issue #${issue.number} (${processedCount}/${issues.length}): ${issue.title}`,
);
console.log(`[DEBUG] Fetching comments for issue #${issue.number}...`);
const comments: GitHubComment[] = await githubRequest(
`/repos/${owner}/${repo}/issues/${issue.number}/comments`,
token,
);
console.log(`[DEBUG] Issue #${issue.number} has ${comments.length} comments`);
const dupeComments = comments.filter(
(comment) =>
comment.body.includes('Found') &&
comment.body.includes('possible duplicate') &&
comment.user.type === 'Bot',
);
console.log(
`[DEBUG] Issue #${issue.number} has ${dupeComments.length} duplicate detection comments`,
);
if (dupeComments.length === 0) {
console.log(`[DEBUG] Issue #${issue.number} - no duplicate comments found, skipping`);
continue;
}
const lastDupeComment = dupeComments.at(-1);
// @ts-ignore
const dupeCommentDate = new Date(lastDupeComment.created_at);
console.log(
`[DEBUG] Issue #${
issue.number
} - most recent duplicate comment from: ${dupeCommentDate.toISOString()}`,
);
if (dupeCommentDate > threeDaysAgo) {
console.log(`[DEBUG] Issue #${issue.number} - duplicate comment is too recent, skipping`);
continue;
}
console.log(
`[DEBUG] Issue #${issue.number} - duplicate comment is old enough (${Math.floor(
(Date.now() - dupeCommentDate.getTime()) / (1000 * 60 * 60 * 24),
)} days)`,
);
const commentsAfterDupe = comments.filter(
(comment) => new Date(comment.created_at) > dupeCommentDate,
);
console.log(
`[DEBUG] Issue #${issue.number} - ${commentsAfterDupe.length} comments after duplicate detection`,
);
if (commentsAfterDupe.length > 0) {
console.log(
`[DEBUG] Issue #${issue.number} - has activity after duplicate comment, skipping`,
);
continue;
}
console.log(`[DEBUG] Issue #${issue.number} - checking reactions on duplicate comment...`);
const reactions: GitHubReaction[] = await githubRequest(
// @ts-ignore
`/repos/${owner}/${repo}/issues/comments/${lastDupeComment.id}/reactions`,
token,
);
console.log(
`[DEBUG] Issue #${issue.number} - duplicate comment has ${reactions.length} reactions`,
);
const authorThumbsDown = reactions.some(
(reaction) => reaction.user.id === issue.user.id && reaction.content === '-1',
);
console.log(
`[DEBUG] Issue #${issue.number} - author thumbs down reaction: ${authorThumbsDown}`,
);
if (authorThumbsDown) {
console.log(
`[DEBUG] Issue #${issue.number} - author disagreed with duplicate detection, skipping`,
);
continue;
}
// @ts-ignore
const duplicateIssueNumber = extractDuplicateIssueNumber(lastDupeComment.body);
if (!duplicateIssueNumber) {
console.log(
`[DEBUG] Issue #${issue.number} - could not extract duplicate issue number from comment, skipping`,
);
continue;
}
candidateCount++;
const issueUrl = `https://github.com/${owner}/${repo}/issues/${issue.number}`;
try {
console.log(
`[INFO] Auto-closing issue #${issue.number} as duplicate of #${duplicateIssueNumber}: ${issueUrl}`,
);
await closeIssueAsDuplicate(owner, repo, issue.number, duplicateIssueNumber, token);
console.log(
`[SUCCESS] Successfully closed issue #${issue.number} as duplicate of #${duplicateIssueNumber}`,
);
} catch (error) {
console.error(`[ERROR] Failed to close issue #${issue.number} as duplicate: ${error}`);
}
}
console.log(
`[DEBUG] Script completed. Processed ${processedCount} issues, found ${candidateCount} candidates for auto-close`,
);
}
// eslint-disable-next-line unicorn/prefer-top-level-await
autoCloseDuplicates().catch(console.error);
// Make it a module
export {};
+89
View File
@@ -0,0 +1,89 @@
/**
* Generate or update PR comment with Docker build info
*/
module.exports = async ({
github,
context,
dockerMetaJson,
image,
version,
dockerhubUrl,
platforms,
}) => {
const COMMENT_IDENTIFIER = '<!-- DOCKER-BUILD-COMMENT -->';
const parseTags = () => {
try {
if (dockerMetaJson) {
const parsed = JSON.parse(dockerMetaJson);
if (Array.isArray(parsed.tags) && parsed.tags.length > 0) {
return parsed.tags;
}
}
} catch (e) {
// ignore parsing error, fallback below
}
if (image && version) {
return [`${image}:${version}`];
}
return [];
};
const generateCommentBody = () => {
const tags = parseTags();
const buildTime = new Date().toISOString();
// Use the first tag as the main version
const mainTag = tags.length > 0 ? tags[0] : `${image}:${version}`;
const tagVersion = mainTag.includes(':') ? mainTag.split(':')[1] : version;
return [
COMMENT_IDENTIFIER,
'',
'### 🐳 Database Docker Build Completed!',
`**Version**: \`${tagVersion || 'N/A'}\``,
`**Build Time**: \`${buildTime}\``,
'',
dockerhubUrl ? `🔗 View all tags on Docker Hub: ${dockerhubUrl}` : '',
'',
'### Pull Image',
'Download the Docker image to your local machine:',
'',
'```bash',
`docker pull ${mainTag}`,
'```',
'> [!IMPORTANT]',
'> This build is for testing and validation purposes.',
]
.filter(Boolean)
.join('\n');
};
const body = generateCommentBody();
// List comments on the PR
const { data: comments } = await github.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
});
const existing = comments.find((c) => c.body && c.body.includes(COMMENT_IDENTIFIER));
if (existing) {
await github.rest.issues.updateComment({
comment_id: existing.id,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});
return { updated: true, id: existing.id };
}
const result = await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});
return { updated: false, id: result.data.id };
};
+78
View File
@@ -0,0 +1,78 @@
// @ts-check
/**
* Lock closed issues after 7 days of inactivity
* @param {object} github - GitHub API client
* @param {object} context - GitHub Actions context
*/
module.exports = async ({ github, context }) => {
const sevenDaysAgo = new Date();
sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);
const lockComment = `This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.`;
let page = 1;
let hasMore = true;
let totalLocked = 0;
while (hasMore) {
// Get closed issues (pagination)
const { data: issues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'closed',
sort: 'updated',
direction: 'asc',
per_page: 100,
page: page,
});
if (issues.length === 0) {
hasMore = false;
break;
}
for (const issue of issues) {
// Skip if already locked
if (issue.locked) continue;
// Skip pull requests
if (issue.pull_request) continue;
// Check if updated more than 7 days ago
const updatedAt = new Date(issue.updated_at);
if (updatedAt > sevenDaysAgo) {
// Since issues are sorted by updated_at ascending,
// once we hit a recent issue, all remaining will be recent too
hasMore = false;
break;
}
try {
// Add comment before locking
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
body: lockComment,
});
// Lock the issue
await github.rest.issues.lock({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
lock_reason: 'resolved',
});
totalLocked++;
console.log(`Locked issue #${issue.number}: ${issue.title}`);
} catch (error) {
console.error(`Failed to lock issue #${issue.number}: ${error.message}`);
}
}
page++;
}
console.log(`Total issues locked: ${totalLocked}`);
};
+11 -2
View File
@@ -36,10 +36,19 @@ module.exports = async ({ github, context, releaseUrl, version, tag }) => {
// Generate combined download table
let assetTable = '| Platform | File | Size |\n| --- | --- | --- |\n';
// Add macOS assets
// Add macOS assets with architecture detection
macAssets.forEach((asset) => {
const sizeInMB = (asset.size / (1024 * 1024)).toFixed(2);
assetTable += `| macOS | [${asset.name}](${asset.browser_download_url}) | ${sizeInMB} MB |\n`;
// Detect architecture from filename
let architecture = '';
if (asset.name.includes('arm64')) {
architecture = ' (Apple Silicon)';
} else if (asset.name.includes('x64') || asset.name.includes('-mac.')) {
architecture = ' (Intel)';
}
assetTable += `| macOS${architecture} | [${asset.name}](${asset.browser_download_url}) | ${sizeInMB} MB |\n`;
});
// Add Windows assets
+2 -2
View File
@@ -21,12 +21,12 @@ jobs:
git config --global user.name "lobehubbot"
git config --global user.email "i@lobehub.com"
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ secrets.BUN_VERSION }}
+73
View File
@@ -0,0 +1,73 @@
name: Claude Auto Testing Coverage
description: Automatically add unit tests to improve code coverage
on:
schedule:
# Run daily at 05:30 UTC (13:30 Beijing Time)
- cron: '30 5 * * *'
workflow_dispatch:
inputs:
target_module:
description: 'Specific module to add tests (e.g., packages/database, src/services/user)'
required: false
type: string
concurrency:
group: auto-testing
cancel-in-progress: false
jobs:
add-tests:
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Configure Git
run: |
git config --global user.name "claude-bot[bot]"
git config --global user.email "claude-bot[bot]@users.noreply.github.com"
- name: Copy testing prompt
run: |
mkdir -p /tmp/claude-prompts
cp .claude/prompts/auto-testing.md /tmp/claude-prompts/
- name: Run Claude Code for Auto Testing
uses: anthropics/claude-code-action@main
with:
github_token: ${{ secrets.GH_TOKEN }}
allowed_non_write_users: "*"
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
claude_args: "--allowed-tools Bash,Read,Edit,Write,Glob,Grep"
prompt: |
Follow the auto testing guide located at:
```bash
cat /tmp/claude-prompts/auto-testing.md
```
## Task Assignment
${{ inputs.target_module && format('Process the specified module: {0}', inputs.target_module) || 'Automatically select one module from the target directories that needs test coverage' }}
## Environment Information
- Repository: ${{ github.repository }}
- Branch: ${{ github.ref_name }}
- Target Module: ${{ inputs.target_module || 'Auto-select' }}
- Run ID: ${{ github.run_id }}
**Start the auto testing process now.**
@@ -0,0 +1,33 @@
name: Claude Issue Dedupe
description: Automatically dedupe GitHub issues using Claude Code
on:
issues:
types: [opened]
workflow_dispatch:
inputs:
issue_number:
description: 'Issue number to process for duplicate detection'
required: true
type: string
jobs:
claude-dedupe-issues:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Run Claude Code slash command
uses: anthropics/claude-code-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
allowed_non_write_users: "*"
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: '/dedupe ${{ github.repository }}/issues/${{ github.event.issue.number || inputs.issue_number }}'
+65
View File
@@ -0,0 +1,65 @@
name: Claude Issue Triage
description: Automatically triage GitHub issues using Claude Code
on:
issues:
types: [opened, labeled]
jobs:
triage-issue:
runs-on: ubuntu-latest
timeout-minutes: 10
# Only run on issue opened, or when "trigger:triage" label is added
if: github.event.action == 'opened' || (github.event.action == 'labeled' && github.event.label.name == 'trigger:triage')
permissions:
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Copy triage prompts
run: |
mkdir -p /tmp/claude-prompts
cp .claude/prompts/team-assignment.md /tmp/claude-prompts/
cp .claude/prompts/issue-triage.md /tmp/claude-prompts/
- name: Run Claude Code for Issue Triage
uses: anthropics/claude-code-action@main
with:
github_token: ${{ secrets.GH_TOKEN }}
allowed_non_write_users: "*"
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
claude_args: "--allowed-tools Bash(gh *),Read"
prompt: |
You're an issue triage assistant for GitHub issues. Your task is to analyze issues, apply appropriate labels, and mention the responsible team member.
REPOSITORY: ${{ github.repository }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
## Instructions
Follow the complete triage guide located at:
```bash
cat /tmp/claude-prompts/issue-triage.md
```
Read the team assignment guide for determining team members:
```bash
cat /tmp/claude-prompts/team-assignment.md
```
**IMPORTANT**:
- Follow ALL steps in the issue-triage.md guide
- Apply labels according to the guide's rules
- Post a mention comment to the appropriate team member(s) based on team-assignment.md
- Replace [ISSUE_NUMBER] with: ${{ github.event.issue.number }}
**Start the triage process now.**
- name: Remove trigger label
if: github.event.action == 'labeled' && github.event.label.name == 'trigger:triage'
run: |
gh issue edit ${{ github.event.issue.number }} --remove-label "trigger:triage"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -0,0 +1,67 @@
name: Claude Translate Non-English Comments
description: Automatically detect and translate non-English comments to English in codebase
on:
schedule:
# Run daily at 02:00 UTC (10:00 Beijing Time)
- cron: '0 2 * * *'
workflow_dispatch:
inputs:
target_module:
description: 'Specific module to translate (e.g., packages/database, apps/desktop/src/modules/auth)'
required: false
type: string
concurrency:
group: translate-comments
cancel-in-progress: false
jobs:
translate-comments:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Configure Git
run: |
git config --global user.name "claude-bot[bot]"
git config --global user.email "claude-bot[bot]@users.noreply.github.com"
- name: Copy translation prompt
run: |
mkdir -p /tmp/claude-prompts
cp .claude/prompts/translate-comments.md /tmp/claude-prompts/
- name: Run Claude Code for Comment Translation
uses: anthropics/claude-code-action@main
with:
github_token: ${{ secrets.GH_TOKEN }}
allowed_non_write_users: "*"
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
claude_args: "--allowed-tools Bash,Read,Edit,Glob,Grep"
prompt: |
Follow the translation guide located at:
```bash
cat /tmp/claude-prompts/translate-comments.md
```
## Task Assignment
${{ inputs.target_module && format('Process the specified module: {0}', inputs.target_module) || 'Automatically select one module from the target directories that has not been processed recently' }}
## Environment Information
- Repository: ${{ github.repository }}
- Branch: ${{ github.ref_name }}
- Target Module: ${{ inputs.target_module || 'Auto-select' }}
- Run ID: ${{ github.run_id }}
**Start the translation process now.**
+121
View File
@@ -0,0 +1,121 @@
name: Claude Translator
concurrency:
group: translator-${{ github.event.comment.id || github.event.issue.number || github.event.review.id }}
cancel-in-progress: false
on:
issues:
types: [opened]
issue_comment:
types: [created, edited]
pull_request_review:
types: [submitted, edited]
pull_request_review_comment:
types: [created, edited]
jobs:
translate:
if: |
(github.event_name == 'issues') ||
(github.event_name == 'issue_comment' && github.event.sender.type != 'Bot') ||
(github.event_name == 'pull_request_review' && github.event.sender.type != 'Bot') ||
(github.event_name == 'pull_request_review_comment' && github.event.sender.type != 'Bot')
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
# update issues/comments
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Run Claude for translation
uses: anthropics/claude-code-action@main
id: claude
with:
# Warning: Permissions should have been controlled by workflow permission.
# Now `contents: read` is safe for files, but we could make a fine-grained token to control it.
# See: https://github.com/anthropics/claude-code-action/blob/main/docs/security.md
github_token: ${{ secrets.GH_TOKEN }}
allowed_non_write_users: "*"
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
claude_args: "--allowed-tools Bash(gh issue:*),Bash(gh api:repos/*/issues:*),Bash(gh api:repos/*/pulls/*/reviews/*),Bash(gh api:repos/*/pulls/comments/*)"
prompt: |
You are a multilingual translation assistant. You need to respond to the following four types of GitHub Webhook events:
- issues
- issue_comment
- pull_request_review
- pull_request_review_comment
Please complete the following tasks:
1. Retrieve complete information for the current event.
- If the current event is 'issues', get the issue information.
- If the current event is 'issue_comment', get the comment information.
- If the current event is 'pull_request_review', get the review information.
- If the current event is 'pull_request_review_comment', get the comment information.
2. Intelligently detect content.
- If the retrieved information is already translated content following the format requirements, check if the translation matches the original content. If not, retranslate to match and follow the format requirements.
- If the retrieved information is untranslated content, check its language. If not in English, translate to English.
- If the retrieved information is partially translated to English, translate it completely to English.
- If the retrieved information contains references to already translated content, clean the referenced content to contain only English. Referenced content should not include "This xxx was translated by Claude" and "Original Content" etc.
- If the retrieved information contains other types of references (i.e., references to non-Claude translated content), keep them as-is without translation.
- If the retrieved information is email reply content, place email content references at the end during translation. Include only the reply content itself in both original and translated content, without email content references.
- If the retrieved information doesn't need any processing, skip the task.
3. Format requirements:
- Title: English translation (if non-English)
- Content format:
[Translated content]
---
> This issue/comment/review was translated by Claude.
<details>
<summary>Original Content</summary>
[Original content]
</details>
4. CRITICAL RULES to prevent hallucination and ensure accuracy:
- The "Original Content" section MUST contain the EXACT, UNMODIFIED original text byte-for-byte. NEVER add, remove, modify, or hallucinate ANY content in this section.
- Code blocks, error logs, JSON structures, and other technical content MUST appear in BOTH the translated section AND the original content section WITHOUT ANY MODIFICATION.
- When translating content with code/logs/JSON:
* Copy the code/logs/JSON blocks identically to both sections
* Only translate the natural language text (e.g., Chinese, Japanese) surrounding the code blocks
* Keep all technical content (URLs, variable names, error messages in English) unchanged
- ALWAYS verify the "Original Content" section matches the source text exactly before updating
- If you detect any discrepancy, retrieve the original content again to ensure accuracy
- Pay special attention to the end of comments - do not drop or hallucinate the last sentences
5. Update using gh tool:
- Choose the correct command based on the Event type in environment information:
- If Event is 'issues': gh issue edit [ISSUE_NUMBER] --title "[English title]" --body "[Translated content + Original content]"
- If Event is 'issue_comment': gh api -X PATCH /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }} -f body="[Translated content + Original content]"
- If Event is 'pull_request_review': gh api -X PUT /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews/${{ github.event.review.id }} -f body="[Translated content]"
- If Event is 'pull_request_review_comment': gh api -X PATCH /repos/${{ github.repository }}/pulls/comments/${{ github.event.comment.id }} -f body="[Translated content + Original content]"
<environment_context>
- Event: ${{ github.event_name }}
- Issue Number: ${{ github.event.issue.number }}
- Repository: ${{ github.repository }}
- (Review) Comment ID: ${{ github.event.comment.id || 'N/A' }}
- Pull Request Number: ${{ github.event.pull_request.number || 'N/A' }}
- Review ID: ${{ github.event.review.id || 'N/A' }}
</environment_context>
Use the following command to get complete information:
gh issue view ${{ github.event.issue.number }} --json title,body,comments
+64
View File
@@ -0,0 +1,64 @@
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
claude:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@beta
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# This is an optional setting that allows Claude to read CI results on PRs
additional_permissions: |
actions: read
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
# model: 'claude-opus-4-1-20250805'
allowed_bots: 'bot'
# Optional: Customize the trigger phrase (default: @claude)
# trigger_phrase: "/claude"
# Optional: Trigger when specific user is assigned to an issue
# assignee_trigger: "claude-bot"
# Optional: Allow Claude to run specific commands
allowed_tools: 'Bash(bun run:*),Bash(pnpm run:*),Bash(npm run:*),Bash(npx:*),Bash(bunx:*),Bash(vitest:*),Bash(rg:*),Bash(find:*),Bash(sed:*),Bash(grep:*),Bash(awk:*),Bash(wc:*),Bash(xargs:*)'
# Optional: Add custom instructions for Claude to customize its behavior for your project
# custom_instructions: |
# Follow our coding standards
# Ensure all new code has tests
# Use TypeScript for new files
# Optional: Custom environment variables for Claude
# claude_env: |
# NODE_ENV: test
+140 -50
View File
@@ -1,16 +1,18 @@
name: Desktop PR Build
on:
pull_request:
pull_request_target:
types: [synchronize, labeled, unlabeled] # PR 更新或标签变化时触发
# 确保同一时间只运行一个相同的 workflow,取消正在进行的旧的运行
# 确保同一 PR 同一时间只运行一个相同的 workflow,取消正在进行的旧的运行
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
group: pr-${{ github.event.pull_request.number }}-${{ github.workflow }}
cancel-in-progress: true
# Add default permissions
permissions: read-all
permissions:
contents: write
pull-requests: write
env:
PR_TAG_PREFIX: pr- # PR 构建版本的前缀标识
@@ -18,52 +20,54 @@ env:
jobs:
test:
name: Code quality check
# 添加 PR label 触发条件,只有添加了 Build Desktop 标签的 PR 才会触发构建
if: contains(github.event.pull_request.labels.*.name, 'Build Desktop')
# 添加 PR label 触发条件,只有添加了 trigger:build-desktop 标签的 PR 才会触发构建
if: contains(github.event.pull_request.labels.*.name, 'trigger:build-desktop')
runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
steps:
- name: Checkout base
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
package-manager-cache: false
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
version: 9
bun-version: 1.2.23
- name: Install deps
run: pnpm install
run: bun i
env:
NODE_OPTIONS: --max-old-space-size=6144
- name: Lint
run: pnpm run lint
run: bun 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')
if: contains(github.event.pull_request.labels.*.name, 'trigger:build-desktop')
runs-on: ubuntu-latest
outputs:
# 输出版本信息,供后续 job 使用
version: ${{ steps.set_version.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
package-manager-cache: false
# 主要逻辑:确定构建版本号
- name: Set version
@@ -93,24 +97,25 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-2025, ubuntu-latest]
os: [macos-latest, macos-15-intel, windows-2025, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: 22
run_install: false
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
version: 9
node-version: 24
package-manager-cache: false
# node-linker=hoisted 模式将可以确保 asar 压缩可用
- name: Install deps
- name: Install dependencies
run: pnpm install --node-linker=hoisted
- name: Install deps on Desktop
@@ -126,11 +131,11 @@ jobs:
run: npm run desktop:build
env:
# 设置更新通道,PR构建为nightly,否则为stable
UPDATE_CHANNEL: 'nightly'
UPDATE_CHANNEL: "nightly"
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
DATABASE_URL: "postgresql://postgres@localhost:5432/postgres"
# 默认添加一个加密 SECRET
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
KEY_VAULTS_SECRET: "oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE="
# macOS 签名和公证配置
CSC_LINK: ${{ secrets.APPLE_CERTIFICATE_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
@@ -149,15 +154,15 @@ jobs:
run: npm run desktop:build
env:
# 设置更新通道,PR构建为nightly,否则为stable
UPDATE_CHANNEL: 'nightly'
UPDATE_CHANNEL: "nightly"
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
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
# 将 TEMP 和 TMP 目录设置到 C
TEMP: C:\temp
TMP: C:\temp
# Linux 平台构建处理
- name: Build artifact on Linux
@@ -165,16 +170,38 @@ jobs:
run: npm run desktop:build
env:
# 设置更新通道,PR构建为nightly,否则为stable
UPDATE_CHANNEL: 'nightly'
UPDATE_CHANNEL: "nightly"
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
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 }}
# 处理 macOS latest-mac.yml 重命名 (避免多架构覆盖)
- name: Rename macOS latest-mac.yml for multi-architecture support
if: runner.os == 'macOS'
run: |
cd apps/desktop/release
if [ -f "latest-mac.yml" ]; then
# 使用系统架构检测,与 electron-builder 输出保持一致
SYSTEM_ARCH=$(uname -m)
if [[ "$SYSTEM_ARCH" == "arm64" ]]; then
ARCH_SUFFIX="arm64"
else
ARCH_SUFFIX="x64"
fi
mv latest-mac.yml "latest-mac-${ARCH_SUFFIX}.yml"
echo "✅ Renamed latest-mac.yml to latest-mac-${ARCH_SUFFIX}.yml (detected: $SYSTEM_ARCH)"
ls -la latest-mac-*.yml
else
echo "⚠️ latest-mac.yml not found, skipping rename"
ls -la latest*.yml || echo "No latest*.yml files found"
fi
# 上传构建产物
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: release-${{ matrix.os }}
path: |
@@ -183,10 +210,70 @@ jobs:
apps/desktop/release/*.zip*
apps/desktop/release/*.exe*
apps/desktop/release/*.AppImage
apps/desktop/release/*.deb*
apps/desktop/release/*.snap*
apps/desktop/release/*.rpm*
apps/desktop/release/*.tar.gz*
retention-days: 5
publish-pr:
# 合并 macOS 多架构 latest-mac.yml 文件
merge-mac-files:
needs: [build, version]
name: Merge macOS Release Files for PR
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
# 下载所有平台的构建产物
- name: Download artifacts
uses: actions/download-artifact@v6
with:
path: release
pattern: release-*
merge-multiple: true
# 列出下载的构建产物
- name: List downloaded artifacts
run: ls -R release
# 仅为该步骤在脚本目录安装 yaml 单包,避免安装整个 monorepo 依赖
- name: Install yaml only for merge step
run: |
cd scripts/electronWorkflow
# 在脚本目录创建最小 package.json,防止 bun 向上寻找根 package.json
if [ ! -f package.json ]; then
echo '{"name":"merge-mac-release","private":true}' > package.json
fi
bun add --no-save yaml@2.8.1
# 合并 macOS YAML 文件 (使用 bun 运行 JavaScript)
- name: Merge latest-mac.yml files
run: bun run scripts/electronWorkflow/mergeMacReleaseFiles.js
# 上传合并后的构建产物
- name: Upload artifacts with merged macOS files
uses: actions/upload-artifact@v5
with:
name: merged-release-pr
path: release/
retention-days: 1
publish-pr:
needs: [merge-mac-files, version]
name: Publish PR Build
runs-on: ubuntu-latest
# Grant write permissions for creating release and commenting on PR
@@ -196,26 +283,25 @@ jobs:
outputs:
artifact_path: ${{ steps.set_path.outputs.path }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
# 下载所有平台的构建产物
- name: Download artifacts
uses: actions/download-artifact@v4
# 下载合并后的构建产物
- name: Download merged artifacts
uses: actions/download-artifact@v6
with:
name: merged-release-pr
path: release
pattern: release-*
merge-multiple: true
# 列出所有构建产物
- name: List artifacts
- name: List final artifacts
run: ls -R release
# 生成PR发布描述
- name: Generate PR Release Body
id: pr_release_body
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
result-encoding: string
script: |
@@ -245,12 +331,16 @@ jobs:
release/*.zip*
release/*.exe*
release/*.AppImage
release/*.deb*
release/*.snap*
release/*.rpm*
release/*.tar.gz*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 在 PR 上添加评论,包含构建信息和下载链接
- name: Comment on PR
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
-161
View File
@@ -1,161 +0,0 @@
name: Publish Database Docker Image
on:
workflow_dispatch:
release:
types: [published]
pull_request:
types: [synchronize, labeled, unlabeled]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
REGISTRY_IMAGE: lobehub/lobe-chat-database
PR_TAG_PREFIX: pr-
jobs:
build:
# 添加 PR label 触发条件
if: |
(github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Build Docker')) ||
github.event_name != 'pull_request'
strategy:
matrix:
include:
- platform: linux/amd64
os: ubuntu-latest
- platform: linux/arm64
os: ubuntu-24.04-arm
runs-on: ${{ matrix.os }}
name: Build ${{ matrix.platform }} Image
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout base
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 为 PR 生成特殊的 tag
- name: Generate PR metadata
if: github.event_name == 'pull_request'
id: pr_meta
run: |
branch_name="${{ github.head_ref }}"
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
# PR 构建使用特殊的 tag
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request' }}
# release 构建使用版本号
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request' }}
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Get commit SHA
if: github.ref == 'refs/heads/main'
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and export
id: build
uses: docker/build-push-action@v5
with:
platforms: ${{ matrix.platform }}
context: .
file: ./Dockerfile.database
labels: ${{ steps.meta.outputs.labels }}
build-args: |
SHA=${{ steps.vars.outputs.sha_short }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
rm -rf /tmp/digests
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: digest-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
merge:
name: Merge
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout base
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digest-*
merge-multiple: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 为 merge job 添加 PR metadata 生成
- name: Generate PR metadata
if: github.event_name == 'pull_request'
id: pr_meta
run: |
branch_name="${{ github.head_ref }}"
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request' }}
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request' }}
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
-161
View File
@@ -1,161 +0,0 @@
name: Publish Docker Pglite Image
on:
workflow_dispatch:
release:
types: [published]
pull_request:
types: [synchronize, labeled, unlabeled]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
REGISTRY_IMAGE: lobehub/lobe-chat-pglite
PR_TAG_PREFIX: pr-
jobs:
build:
# 添加 PR label 触发条件
if: |
(github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Build Docker')) ||
github.event_name != 'pull_request'
strategy:
matrix:
include:
- platform: linux/amd64
os: ubuntu-latest
- platform: linux/arm64
os: ubuntu-24.04-arm
runs-on: ${{ matrix.os }}
name: Build ${{ matrix.platform }} Image
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout base
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 为 PR 生成特殊的 tag
- name: Generate PR metadata
if: github.event_name == 'pull_request'
id: pr_meta
run: |
branch_name="${{ github.head_ref }}"
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
# PR 构建使用特殊的 tag
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request' }}
# release 构建使用版本号
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request' }}
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Get commit SHA
if: github.ref == 'refs/heads/main'
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and export
id: build
uses: docker/build-push-action@v5
with:
platforms: ${{ matrix.platform }}
context: .
file: ./Dockerfile.pglite
labels: ${{ steps.meta.outputs.labels }}
build-args: |
SHA=${{ steps.vars.outputs.sha_short }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
rm -rf /tmp/digests
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: digest-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
merge:
name: Merge
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout base
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digest-*
merge-multiple: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 为 merge job 添加 PR metadata 生成
- name: Generate PR metadata
if: github.event_name == 'pull_request'
id: pr_meta
run: |
branch_name="${{ github.head_ref }}"
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request' }}
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request' }}
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
+48 -23
View File
@@ -1,27 +1,32 @@
name: Publish Docker Image
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch:
release:
types: [published]
pull_request:
pull_request_target:
types: [synchronize, labeled, unlabeled]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
# PR 构建时取消旧的运行,但 release 构建不取消
cancel-in-progress: ${{ github.event_name != 'release' }}
env:
REGISTRY_IMAGE: lobehub/lobe-chat
REGISTRY_IMAGE: lobehub/lobehub
PR_TAG_PREFIX: pr-
jobs:
build:
# 添加 PR label 触发条件
if: |
(github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Build Docker')) ||
github.event_name != 'pull_request'
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request_target' &&
contains(github.event.pull_request.labels.*.name, 'trigger:build-docker'))
strategy:
matrix:
@@ -39,7 +44,7 @@ jobs:
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout base
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
@@ -48,11 +53,12 @@ jobs:
# 为 PR 生成特殊的 tag
- name: Generate PR metadata
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request_target'
id: pr_meta
env:
BRANCH_NAME: ${{ github.head_ref }}
run: |
branch_name="${{ github.head_ref }}"
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
sanitized_branch=$(echo "${BRANCH_NAME}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Docker meta
@@ -62,10 +68,10 @@ jobs:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
# PR 构建使用特殊的 tag
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request' }}
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request_target' }}
# release 构建使用版本号
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request' }}
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request_target' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request_target' }}
- name: Docker login
uses: docker/login-action@v3
@@ -80,7 +86,7 @@ jobs:
- name: Build and export
id: build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
context: .
@@ -98,7 +104,7 @@ jobs:
touch "/tmp/digests/${digest#sha256:}"
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: digest-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
@@ -111,12 +117,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout base
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Download digests
uses: actions/download-artifact@v4
uses: actions/download-artifact@v6
with:
path: /tmp/digests
pattern: digest-*
@@ -127,11 +133,12 @@ jobs:
# 为 merge job 添加 PR metadata 生成
- name: Generate PR metadata
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request_target'
id: pr_meta
env:
BRANCH_NAME: ${{ github.head_ref }}
run: |
branch_name="${{ github.head_ref }}"
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
sanitized_branch=$(echo "${BRANCH_NAME}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Docker meta
@@ -140,9 +147,9 @@ jobs:
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request' }}
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request' }}
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request_target' }}
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request_target' }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request_target' }}
- name: Docker login
uses: docker/login-action@v3
@@ -159,3 +166,21 @@ jobs:
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
- name: Comment on PR with Docker build info
if: github.event_name == 'pull_request_target'
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const prComment = require('${{ github.workspace }}/.github/scripts/docker-pr-comment.js');
const result = await prComment({
github,
context,
dockerMetaJson: ${{ toJSON(steps.meta.outputs.json) }},
image: "${{ env.REGISTRY_IMAGE }}",
version: "${{ steps.meta.outputs.version }}",
dockerhubUrl: "https://hub.docker.com/r/${{ env.REGISTRY_IMAGE }}/tags",
platforms: "linux/amd64, linux/arm64",
});
core.info(`Status: ${result.updated ? 'Updated' : 'Created'}, ID: ${result.id}`);
+66
View File
@@ -0,0 +1,66 @@
name: E2E CI
permissions:
contents: read
on:
pull_request:
push:
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e:
name: Test Web App
runs-on: ubuntu-latest
services:
postgres:
image: paradedb/paradedb:latest
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
- name: Install dependencies (bun)
run: bun install
- name: Install Playwright browsers (with system deps)
run: bunx playwright install --with-deps chromium
- name: Run E2E tests
env:
PORT: 3010
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
run: bun run e2e
- name: Upload Cucumber HTML report (on failure)
if: failure()
uses: actions/upload-artifact@v5
with:
name: cucumber-report
path: e2e/reports
if-no-files-found: ignore
- name: Upload screenshots (on failure)
if: failure()
uses: actions/upload-artifact@v5
with:
name: test-screenshots
path: e2e/screenshots
if-no-files-found: ignore
@@ -0,0 +1,30 @@
name: Auto-close duplicate issues
description: Auto-closes issues that are duplicates of existing issues
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
jobs:
auto-close-duplicates:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Auto-close duplicate issues
run: bun run .github/scripts/auto-close-duplicates.ts
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
+4 -9
View File
@@ -28,8 +28,7 @@ jobs:
👀 @{{ author }}
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.\
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Please make sure you have given us as much context as possible.
- name: Auto Comment on Issues Closed
uses: wow-actions/auto-comment@v1
with:
@@ -37,8 +36,7 @@ jobs:
issuesClosed: |
✅ @{{ author }}
This issue is closed, If you have any questions, you can comment and reply.\
此问题已经关闭。如果您有任何问题,可以留言并回复。
This issue is closed, If you have any questions, you can comment and reply.
- name: Auto Comment on Pull Request Opened
uses: wow-actions/auto-comment@v1
with:
@@ -48,9 +46,7 @@ jobs:
Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.\
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。
If you encounter any problems, please feel free to connect with us.
- name: Auto Comment on Pull Request Merged
uses: actions-cool/pr-welcome@main
if: github.event.pull_request.merged == true
@@ -59,8 +55,7 @@ jobs:
comment: |
❤️ Great PR @${{ github.event.pull_request.user.login }} ❤️
The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our [discord](https://discord.com/invite/AYFPHvv2jT) and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.\
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 [discord](https://discord.com/invite/AYFPHvv2jT),然后私信 @arvinxx 或 @canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。
The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our [discord](https://discord.com/invite/AYFPHvv2jT) and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
emoji: 'hooray'
pr-emoji: '+1, heart'
- name: Remove inactive
+3 -6
View File
@@ -38,8 +38,7 @@ jobs:
body: |
👋 @{{ author }}
<br/>
Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.\
由于该 issue 被标记为已修复,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
- name: need reproduce
uses: actions-cool/issues-helper@v3
with:
@@ -50,8 +49,7 @@ jobs:
body: |
👋 @{{ author }}
<br/>
Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.\
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
- name: need reproduce
uses: actions-cool/issues-helper@v3
with:
@@ -62,5 +60,4 @@ jobs:
body: |
👋 @{{ github.event.issue.user.login }}
<br/>
Since the issue was labeled with `🙅🏻‍♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.\
由于该 issue 被标记为暂不处理,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
Since the issue was labeled with `🙅🏻‍♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
-14
View File
@@ -1,14 +0,0 @@
name: Issue Translate
on:
issue_comment:
types: [created]
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: usthe/issues-translate-action@v2.7
with:
BOT_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
+2 -2
View File
@@ -42,12 +42,12 @@ jobs:
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
env:
REPO_BRANCH: ${{ matrix.REPO_BRANCH || env.REPO_BRANCH }}
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
repository: ${{ env.REPOSITORY }}
token: ${{ secrets[matrix.TOKEN_NAME] || secrets[env.TOKEN_NAME] }}
ref: ${{ env.BRANCH }}
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
repository: 'myactionway/lighthouse-badges'
path: temp_lighthouse_badges_nested
+26
View File
@@ -0,0 +1,26 @@
name: "Lock Stale Issues"
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
permissions:
issues: write
concurrency:
group: lock-threads
jobs:
lock-closed-issues:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Lock closed issues after 7 days of inactivity
uses: actions/github-script@v8
with:
script: |
const lockScript = require('./.github/scripts/lock-closed-issues.js');
await lockScript({ github, context });
+127 -42
View File
@@ -15,29 +15,30 @@ permissions: read-all
jobs:
test:
name: Code quality check
# 添加 PR label 触发条件,只有添加了 Build Desktop 标签的 PR 才会触发构建
# 添加 PR label 触发条件,只有添加了 trigger:build-desktop 标签的 PR 才会触发构建
runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
steps:
- name: Checkout base
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
package-manager-cache: false
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
version: 9
bun-version: 1.2.23
- name: Install deps
run: pnpm install
run: bun i
- name: Lint
run: pnpm run lint
run: bun run lint
version:
name: Determine version
@@ -47,14 +48,15 @@ jobs:
version: ${{ steps.set_version.outputs.version }}
is_pr_build: ${{ steps.set_version.outputs.is_pr_build }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
package-manager-cache: false
# 主要逻辑:确定构建版本号
- name: Set version
@@ -80,24 +82,25 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-2025, ubuntu-latest]
os: [macos-latest, macos-15-intel, windows-2025, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: 22
run_install: false
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
version: 9
node-version: 24
package-manager-cache: false
# node-linker=hoisted 模式将可以确保 asar 压缩可用
- name: Install deps
- name: Install dependencies
run: pnpm install --node-linker=hoisted
- name: Install deps on Desktop
@@ -113,9 +116,9 @@ jobs:
run: npm run desktop:build
env:
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
DATABASE_URL: "postgresql://postgres@localhost:5432/postgres"
# 默认添加一个加密 SECRET
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
KEY_VAULTS_SECRET: "oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE="
# macOS 签名和公证配置
CSC_LINK: ${{ secrets.APPLE_CERTIFICATE_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
@@ -134,14 +137,14 @@ jobs:
run: npm run desktop:build
env:
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
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
# 将 TEMP 和 TMP 目录设置到 C
TEMP: C:\temp
TMP: C:\temp
# Linux 平台构建处理
- name: Build artifact on Linux
@@ -149,14 +152,36 @@ jobs:
run: npm run desktop:build
env:
APP_URL: http://localhost:3015
DATABASE_URL: 'postgresql://postgres@localhost:5432/postgres'
KEY_VAULTS_SECRET: 'oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE='
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 相关部分
# 处理 macOS latest-mac.yml 重命名 (避免多架构覆盖)
- name: Rename macOS latest-mac.yml for multi-architecture support
if: runner.os == 'macOS'
run: |
cd apps/desktop/release
if [ -f "latest-mac.yml" ]; then
# 使用系统架构检测,与 electron-builder 输出保持一致
SYSTEM_ARCH=$(uname -m)
if [[ "$SYSTEM_ARCH" == "arm64" ]]; then
ARCH_SUFFIX="arm64"
else
ARCH_SUFFIX="x64"
fi
mv latest-mac.yml "latest-mac-${ARCH_SUFFIX}.yml"
echo "✅ Renamed latest-mac.yml to latest-mac-${ARCH_SUFFIX}.yml (detected: $SYSTEM_ARCH)"
ls -la latest-mac-*.yml
else
echo "⚠️ latest-mac.yml not found, skipping rename"
ls -la latest*.yml || echo "No latest*.yml files found"
fi
# 上传构建产物 (工作流处理重命名,不依赖 electron-builder 钩子)
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: release-${{ matrix.os }}
path: |
@@ -165,32 +190,88 @@ jobs:
apps/desktop/release/*.zip*
apps/desktop/release/*.exe*
apps/desktop/release/*.AppImage
apps/desktop/release/*.deb*
apps/desktop/release/*.snap*
apps/desktop/release/*.rpm*
apps/desktop/release/*.tar.gz*
retention-days: 5
# 正式版发布 job
publish-release:
# 合并 macOS 多架构 latest-mac.yml 文件
merge-mac-files:
needs: [build, version]
name: Publish Beta Release
name: Merge macOS Release Files
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: Checkout repository
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
# 下载所有平台的构建产物
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v6
with:
path: release
pattern: release-*
merge-multiple: true
# 列出所有构建产物
- name: List artifacts
# 列出下载的构建产物
- name: List downloaded artifacts
run: ls -R release
# 将构建产物上传到现有 release
# 仅为该步骤在脚本目录安装 yaml 单包,避免安装整个 monorepo 依赖
- name: Install yaml only for merge step
run: |
cd scripts/electronWorkflow
# 在脚本目录创建最小 package.json,防止 bun 向上寻找根 package.json
if [ ! -f package.json ]; then
echo '{"name":"merge-mac-release","private":true}' > package.json
fi
bun add --no-save yaml@2.8.1
# 合并 macOS YAML 文件 (使用 bun 运行 JavaScript)
- name: Merge latest-mac.yml files
run: bun run scripts/electronWorkflow/mergeMacReleaseFiles.js
# 上传合并后的构建产物
- name: Upload artifacts with merged macOS files
uses: actions/upload-artifact@v5
with:
name: merged-release
path: release/
retention-days: 1
# 发布所有平台构建产物
publish-release:
needs: [merge-mac-files]
name: Publish Beta Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# 下载合并后的构建产物
- name: Download merged artifacts
uses: actions/download-artifact@v6
with:
name: merged-release
path: release
# 列出所有构建产物
- name: List final artifacts
run: ls -R release
# 将构建产物上传到现有 release (现在包含合并后的 latest-mac.yml)
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
@@ -201,5 +282,9 @@ jobs:
release/*.zip*
release/*.exe*
release/*.AppImage
release/*.deb*
release/*.snap*
release/*.rpm*
release/*.tar.gz*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+22 -12
View File
@@ -1,8 +1,15 @@
name: Release CI
permissions:
contents: write
issues: write
pull-requests: write
on:
push:
branches:
- main
- next
jobs:
release:
@@ -11,26 +18,30 @@ jobs:
services:
postgres:
image: pgvector/pgvector:pg16
image: paradedb/paradedb:latest
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
token: ${{ secrets.GH_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
package-manager-cache: false
- name: Install bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ secrets.BUN_VERSION }}
bun-version: 1.2.23
- name: Install deps
run: bun i
@@ -38,18 +49,17 @@ jobs:
- name: Lint
run: bun run lint
- name: Test Server Coverage
run: bun run test-server:coverage
- name: Test Database Coverage
run: bun run --filter @lobechat/database test
env:
DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
NEXT_PUBLIC_SERVICE_MODE: server
KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
KEY_VAULTS_SECRET: Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com
- name: Test App Coverage
run: bun run test-app:coverage
- name: Test App
run: bun run test-app
- name: Release
run: bun run release
+9 -5
View File
@@ -1,4 +1,6 @@
name: Database Schema Visualization CI
permissions:
contents: read
on:
push:
@@ -11,13 +13,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Install dbdocs
run: sudo npm install -g dbdocs
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ secrets.BUN_VERSION }}
- name: Check dbdocs
run: dbdocs
- name: Install deps
run: bun i
- name: sync database schema to dbdocs
env:
+3 -3
View File
@@ -17,7 +17,7 @@ jobs:
if: ${{ github.event.repository.fork }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Clean issue notice
uses: actions-cool/issues-helper@v3
@@ -50,5 +50,5 @@ jobs:
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/273954625-df80c890-0822-4ac2-95e6-c990785cbed5.png)
[lobechat]: https://github.com/lobehub/lobe-chat
[tutorial-zh-CN]: https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync.zh-CN
[tutorial-en-US]: https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync
[tutorial-zh-CN]: https://lobehub.com/zh/docs/self-hosting/advanced/upstream-sync
[tutorial-en-US]: https://lobehub.com/docs/self-hosting/advanced/upstream-sync
+181 -31
View File
@@ -2,8 +2,164 @@ name: Test CI
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
# Package tests - using each package's own test script
test-intenral-packages:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- file-loaders
- prompts
- model-runtime
- web-crawler
- electron-server-ipc
- utils
- python-interpreter
- context-engine
- agent-runtime
- conversation-flow
name: Test package ${{ matrix.package }}
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ secrets.BUN_VERSION }}
- name: Install deps
run: bun i
- name: Test ${{ matrix.package }} package with coverage
run: bun run --filter @lobechat/${{ matrix.package }} test:coverage
- name: Upload ${{ matrix.package }} coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/${{ matrix.package }}/coverage/lcov.info
flags: packages/${{ matrix.package }}
test-packages:
runs-on: ubuntu-latest
strategy:
matrix:
package: [model-bank]
name: Test package ${{ matrix.package }}
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
- name: Install deps
run: bun i
- name: Test ${{ matrix.package }} package with coverage
run: bun run --filter ${{ matrix.package }} test:coverage
- name: Upload ${{ matrix.package }} coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/${{ matrix.package }}/coverage/lcov.info
flags: packages/${{ matrix.package }}
# App tests
test-website:
name: Test Website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
- name: Install deps
run: bun i
- name: Test App Coverage
run: bun run test-app:coverage
- name: Upload App Coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/app/lcov.info
flags: app
test-desktop:
name: Test Desktop App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- name: Install deps
run: pnpm install
working-directory: apps/desktop
env:
NODE_OPTIONS: --max-old-space-size=6144
- name: Test Desktop Client
run: pnpm test
working-directory: apps/desktop
- name: Upload Desktop App Coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./apps/desktop/coverage/lcov.info
flags: desktop
test-databsae:
name: Test Database
runs-on: ubuntu-latest
services:
@@ -14,52 +170,46 @@ jobs:
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
package-manager-cache: false
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ secrets.BUN_VERSION }}
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install deps
run: bun i
run: pnpm i
- name: Lint
run: bun run lint
run: npm run lint
- name: Test Server Coverage
run: bun run test-server:coverage
- name: Test Client DB
run: pnpm --filter @lobechat/database test:client-db
env:
DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
NEXT_PUBLIC_SERVICE_MODE: server
KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
KEY_VAULTS_SECRET: Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com
- name: Upload Server coverage to Codecov
uses: codecov/codecov-action@v4
- name: Test Coverage
run: pnpm --filter @lobechat/database test:coverage
env:
DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
KEY_VAULTS_SECRET: Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com
- name: Upload Database coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/server/lcov.info
flags: server
- name: Test App Coverage
run: bun run test-app:coverage
- name: Upload App Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/app/lcov.info
flags: app
files: ./packages/database/coverage/lcov.info
flags: database
-19
View File
@@ -1,19 +0,0 @@
name: Wiki Sync
on:
workflow_dispatch:
push:
paths:
- 'docs/wiki/**'
branches:
- main
jobs:
update-wiki:
runs-on: ubuntu-latest
name: Wiki sync
steps:
- uses: OrlovM/Wiki-Action@v1
with:
path: 'docs/wiki'
token: ${{ secrets.GH_TOKEN }}
+100 -53
View File
@@ -1,73 +1,120 @@
# Gitignore for LobeHub
################################################################
# general
# System files
.DS_Store
.idea
.vscode
.history
.temp
.env.local
venv
temp
tmp
.windsurfrules
Thumbs.db
ehthumbs.db
Desktop.ini
# dependencies
node_modules
# Linux/Ubuntu system files
*~
*.swp
*.swo
.fuse_hidden*
.directory
.Trash-*
.nfs*
.gvfs-fuse-daemon-*
# IDE and editors
.idea/
*.sublime-*
.history/
.windsurfrules
*.code-workspace
.vscode/sessions.json
# Temporary files
.temp/
temp/
tmp/
*.tmp
*.temp
*.log
*.cache
.cache/
# Environment files
.env
.env.local
.env*.local
.env.development
venv/
.venv/
# Dependencies
node_modules/
*.lock
package-lock.json
bun.lockb
.pnpm-store/
# ci
coverage
.coverage
# Build outputs
dist/
es/
lib/
.next/
logs/
test-output/
*.tsbuildinfo
next-env.d.ts
# Framework specific
# Umi
.umi/
.umi-production/
.umi-test/
.dumi/tmp*/
# Vercel
.vercel/
# Testing and CI
coverage/
.coverage/
.nyc_output/
.eslintcache
.stylelintcache
# production
dist
es
lib
logs
test-output
# umi
.umi
.umi-production
.umi-test
.dumi/tmp*
# husky
.husky/prepare-commit-msg
# misc
# add other ignore file below
# local env files
.env*.local
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
.next
.env
public/*.js
public/sitemap.xml
public/sitemap-index.xml
bun.lockb
sitemap*.xml
robots.txt
# Service Worker
# Serwist
public/sw*
public/swe-worker*
# Generated files
public/*.js
public/sitemap.xml
public/sitemap-index.xml
sitemap*.xml
robots.txt
# Git hooks
.husky/prepare-commit-msg
# Documents and media
*.patch
*.pdf
# Cloud service keys
vertex-ai-key.json
.pnpm-store
# AI coding tools
.local/
.claude/
.mcp.json
CLAUDE.local.md
# MCP tools
.serena/**
# Misc
./packages/lobe-ui
*.ppt*
*.doc*
*.xls*
prd
GEMINI.md
e2e/reports
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = defineConfig({
],
temperature: 0,
saveImmediately: true,
modelName: 'gpt-4.1-mini',
modelName: 'chatgpt-4o-latest',
experimental: {
jsonMode: true,
},
+1
View File
@@ -4,6 +4,7 @@ resolution-mode=highest
ignore-workspace-root-check=true
enable-pre-post-scripts=true
public-hoist-pattern[]=*@umijs/lint*
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
+1 -1
View File
@@ -1 +1 @@
lts/jod
lts/Krypton
-1
View File
@@ -5,7 +5,6 @@
.DS_Store
.editorconfig
.idea
.vscode
.history
.temp
.env.local
View File
+18
View File
@@ -0,0 +1,18 @@
const config = require('@lobehub/lint').semanticRelease;
config.branches = [
'main',
{
name: 'next',
prerelease: true,
},
];
config.plugins.push([
'@semantic-release/exec',
{
prepareCmd: 'npm run workflow:changelog',
},
]);
module.exports = config;
-10
View File
@@ -1,10 +0,0 @@
const config = require('@lobehub/lint').semanticRelease;
config.plugins.push([
'@semantic-release/exec',
{
prepareCmd: 'npm run workflow:changelog',
},
]);
module.exports = config;
View File
+39
View File
@@ -0,0 +1,39 @@
# Stylelintignore for LobeHub
################################################################
# dependencies
node_modules
# ci
coverage
.coverage
# production
dist
es
lib
logs
# framework specific
.next
.umi
.umi-production
.umi-test
.dumi/tmp*
# temporary directories
tmp
temp
.temp
.local
docs/.local
# cache directories
.cache
# AI coding tools directories
.claude
.serena
# MCP tools
/.serena/**
+13
View File
@@ -0,0 +1,13 @@
{
"recommendations": [
"Anthropic.claude-code",
"dbaeumer.vscode-eslint",
"jrr997.antd-docs",
"seatonjiang.gitmoji-vscode",
"styled-components.vscode-styled-components",
"stylelint.vscode-stylelint",
"unifiedjs.vscode-mdx",
"unifiedjs.vscode-remark",
"vitest.explorer",
]
}
+96
View File
@@ -0,0 +1,96 @@
{
"editor.codeActionsOnSave": {
"source.addMissingImports": "explicit",
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"editor.formatOnSave": true,
// don't show errors, but fix when save and git pre commit
"eslint.rules.customizations": [
{ "rule": "import/order", "severity": "off" },
{ "rule": "prettier/prettier", "severity": "off" },
{ "rule": "react/jsx-sort-props", "severity": "off" },
{ "rule": "sort-keys-fix/sort-keys-fix", "severity": "off" },
{ "rule": "simple-import-sort/exports", "severity": "off" },
{ "rule": "typescript-sort-keys/interface", "severity": "off" }
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
// support mdx
"mdx"
],
"npm.packageManager": "pnpm",
"search.exclude": {
"**/node_modules": true,
// useless to search this big folder
"locales": true
},
"stylelint.validate": [
"css",
"postcss",
// make stylelint work with tsx antd-style css template string
"typescriptreact"
],
"vitest.maximumConfigs": 20,
"workbench.editor.customLabels.patterns": {
"**/app/**/[[]*[]]/[[]*[]]/page.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • page component",
"**/app/**/[[]*[]]/page.tsx": "${dirname(1)}/${dirname} • page component",
"**/app/**/page.tsx": "${dirname} • page component",
"**/app/**/[[]*[]]/[[]*[]]/layout.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • page layout",
"**/app/**/[[]*[]]/layout.tsx": "${dirname(1)}/${dirname} • page layout",
"**/app/**/layout.tsx": "${dirname} • page layout",
"**/app/**/[[]*[]]/[[]*[]]/default.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • slot default",
"**/app/**/[[]*[]]/default.tsx": "${dirname(1)}/${dirname} • slot default",
"**/app/**/default.tsx": "${dirname} • slot default",
"**/app/**/[[]*[]]/[[]*[]]/error.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • error component",
"**/app/**/[[]*[]]/error.tsx": "${dirname(1)}/${dirname} • error component",
"**/app/**/error.tsx": "${dirname} • error component",
"**/app/**/[[]*[]]/[[]*[]]/loading.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • loading component",
"**/app/**/[[]*[]]/loading.tsx": "${dirname(1)}/${dirname} • loading component",
"**/app/**/loading.tsx": "${dirname} • loading component",
"**/src/**/route.ts": "${dirname(1)}/${dirname} • route",
"**/src/**/index.tsx": "${dirname} • component",
"**/packages/database/src/repositories/*/index.ts": "${dirname} • db repository",
"**/packages/database/src/models/*.ts": "${filename} • db model",
"**/packages/database/src/schemas/*.ts": "${filename} • db schema",
"**/src/services/*.ts": "${filename} • service",
"**/src/services/*/client.ts": "${dirname} • client service",
"**/src/services/*/server.ts": "${dirname} • server service",
"**/src/store/*/action.ts": "${dirname} • action",
"**/src/store/*/slices/*/action.ts": "${dirname(2)}/${dirname} • action",
"**/src/store/*/slices/*/actions/*.ts": "${dirname(1)}/${dirname}/${filename} • action",
"**/src/store/*/initialState.ts": "${dirname} • state",
"**/src/store/*/slices/*/initialState.ts": "${dirname(2)}/${dirname} • state",
"**/src/store/*/selectors.ts": "${dirname} • selectors",
"**/src/store/*/slices/*/selectors.ts": "${dirname(2)}/${dirname} • selectors",
"**/src/store/*/reducer.ts": "${dirname} • reducer",
"**/src/store/*/slices/*/reducer.ts": "${dirname(2)}/${dirname} • reducer",
"**/src/config/modelProviders/*.ts": "${filename} • provider",
"**/packages/model-bank/src/aiModels/*.ts": "${filename} • model",
"**/packages/model-runtime/src/providers/*/index.ts": "${dirname} • runtime",
"**/src/server/services/*/index.ts": "${dirname} • server/service",
"**/src/server/routers/lambda/*.ts": "${filename} • lambda",
"**/src/server/routers/async/*.ts": "${filename} • async",
"**/src/server/routers/edge/*.ts": "${filename} • edge",
"**/src/locales/default/*.ts": "${filename} • locale",
"**/index.*": "${dirname}/${filename}.${extname}"
}
}
+109
View File
@@ -0,0 +1,109 @@
# LobeChat Development Guidelines
This document serves as a comprehensive guide for all team members when developing LobeChat.
## Tech Stack
Built with modern technologies:
- **Frontend**: Next.js 15, React 19, TypeScript
- **UI Components**: Ant Design, @lobehub/ui, antd-style
- **State Management**: Zustand, SWR
- **Database**: PostgreSQL, PGLite, Drizzle ORM
- **Testing**: Vitest, Testing Library
- **Package Manager**: pnpm (monorepo structure)
- **Build Tools**: Next.js (Turbopack in dev, Webpack in prod)
## Directory Structure
The project follows a well-organized monorepo structure:
- `apps/` - Main applications
- `packages/` - Shared packages and libraries
- `src/` - Main source code
- `docs/` - Documentation
- `.cursor/rules/` - Development rules and guidelines
## Development Workflow
### Git Workflow
- Use rebase for git pull
- Git commit messages should prefix with gitmoji
- Git branch name format: `username/feat/feature-name`
- Use `.github/PULL_REQUEST_TEMPLATE.md` for PR descriptions
### Package Management
- Use `pnpm` as the primary package manager
- Use `bun` to run npm scripts
- Use `bunx` to run executable npm packages
- Navigate to specific packages using `cd packages/<package-name>`
### Code Style Guidelines
#### TypeScript
- Prefer interfaces over types for object shapes
### Testing Strategy
**Required Rule**: `testing-guide/testing-guide.mdc`
**Commands**:
- Web: `bunx vitest run --silent='passed-only' '[file-path-pattern]'`
- Packages: `cd packages/[package-name] && bunx vitest run --silent='passed-only' '[file-path-pattern]'` (each subpackage contains its own vitest.config.mts)
**Important Notes**:
- Wrap file paths in single quotes to avoid shell expansion
- Never run `bun run test` - this runs all tests and takes \~10 minutes
### Type Checking
- Use `bun run type-check` to check for type errors
### i18n
- **Keys**: Add to `src/locales/default/namespace.ts`
- **Dev**: Translate `locales/zh-CN/namespace.json` locale file only for preview
- DON'T run `pnpm i18n`, let CI auto handle it
## Project Rules Index
All following rules are saved under `.cursor/rules/` directory:
### Backend
- `drizzle-schema-style-guide.mdc` Style guide for defining Drizzle ORM schemas
### Frontend
- `react-component.mdc` React component style guide and conventions
- `i18n.mdc` Internationalization guide using react-i18next
- `typescript.mdc` TypeScript code style guide
- `packages/react-layout-kit.mdc` Usage guide for react-layout-kit
### State Management
- `zustand-action-patterns.mdc` Recommended patterns for organizing Zustand actions
- `zustand-slice-organization.mdc` Best practices for structuring Zustand slices
### Desktop (Electron)
- `desktop-feature-implementation.mdc` Implementing new Electron desktop features
- `desktop-controller-tests.mdc` Desktop controller unit testing guide
- `desktop-local-tools-implement.mdc` Workflow to add new desktop local tools
- `desktop-menu-configuration.mdc` Desktop menu configuration guide
- `desktop-window-management.mdc` Desktop window management guide
### Debugging
- `debug-usage.mdc` Using the debug package and namespace conventions
### Testing
- `testing-guide/testing-guide.mdc` Comprehensive testing guide for Vitest
- `testing-guide/electron-ipc-test.mdc` Electron IPC interface testing strategy
- `testing-guide/db-model-test.mdc` Database Model testing guide
+10023
View File
File diff suppressed because it is too large Load Diff
+59
View File
@@ -0,0 +1,59 @@
# CLAUDE.md
This document serves as a shared guideline for all team members when using Claude Code in this repository.
## Tech Stack
read @.cursor/rules/project-introduce.mdc
## Directory Structure
read @.cursor/rules/project-structure.mdc
## Development
### Git Workflow
- use rebase for git pull
- git commit message should prefix with gitmoji
- git branch name format example: tj/feat/feature-name
- use .github/PULL_REQUEST_TEMPLATE.md to generate pull request description
### Package Management
This repository adopts a monorepo structure.
- Use `pnpm` as the primary package manager for dependency management
- Use `bun` to run npm scripts
- Use `bunx` to run executable npm packages
### TypeScript Code Style Guide
see @.cursor/rules/typescript.mdc
### Testing
- **Required Rule**: read `@.cursor/rules/testing-guide/testing-guide.mdc` before writing tests
- **Command**:
- web: `bunx vitest run --silent='passed-only' '[file-path-pattern]'`
- packages(eg: database): `cd packages/database && bunx vitest run --silent='passed-only' '[file-path-pattern]'`
**Important**:
- wrap the file path in single quotes to avoid shell expansion
- Never run `bun run test` etc to run tests, this will run all tests and cost about 10mins
- If trying to fix the same test twice, but still failed, stop and ask for help.
### Typecheck
- use `bun run type-check` to check type errors.
### i18n
- **Keys**: Add to `src/locales/default/namespace.ts`
- **Dev**: Translate `locales/zh-CN/namespace.json` and `locales/en-US/namespace.json` locales file only for dev preview
- DON'T run `pnpm i18n`, let CI auto handle it
## Rules Index
Some useful project rules are listed in @.cursor/rules/rules-index.mdc
+83 -8
View File
@@ -1,5 +1,5 @@
## Set global build ENV
ARG NODEJS_VERSION="22"
ARG NODEJS_VERSION="24"
## Base image for all building stages
FROM node:${NODEJS_VERSION}-slim AS base
@@ -37,6 +37,9 @@ FROM base AS builder
ARG USE_CN_MIRROR
ARG NEXT_PUBLIC_BASE_PATH
ARG NEXT_PUBLIC_ENABLE_NEXT_AUTH
ARG NEXT_PUBLIC_ENABLE_CLERK_AUTH
ARG NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
ARG NEXT_PUBLIC_SENTRY_DSN
ARG NEXT_PUBLIC_ANALYTICS_POSTHOG
ARG NEXT_PUBLIC_POSTHOG_HOST
@@ -48,6 +51,16 @@ ARG FEATURE_FLAGS
ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}" \
FEATURE_FLAGS="${FEATURE_FLAGS}"
ENV NEXT_PUBLIC_ENABLE_NEXT_AUTH="${NEXT_PUBLIC_ENABLE_NEXT_AUTH:-1}" \
NEXT_PUBLIC_ENABLE_CLERK_AUTH="${NEXT_PUBLIC_ENABLE_CLERK_AUTH:-0}" \
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}" \
CLERK_WEBHOOK_SECRET="whsec_xxx" \
APP_URL="http://app.com" \
DATABASE_DRIVER="node" \
DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" \
KEY_VAULTS_SECRET="use-for-build"
# Sentry
ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \
SENTRY_ORG="" \
@@ -64,7 +77,7 @@ ENV NEXT_PUBLIC_ANALYTICS_UMAMI="${NEXT_PUBLIC_ANALYTICS_UMAMI}" \
NEXT_PUBLIC_UMAMI_WEBSITE_ID="${NEXT_PUBLIC_UMAMI_WEBSITE_ID}"
# Node
ENV NODE_OPTIONS="--max-old-space-size=8192"
ENV NODE_OPTIONS="--max-old-space-size=6144"
WORKDIR /app
@@ -88,7 +101,12 @@ RUN \
# Use pnpm for corepack
&& corepack use $(sed -n 's/.*"packageManager": "\(.*\)".*/\1/p' package.json) \
# Install the dependencies
&& pnpm i
&& pnpm i \
# Add db migration dependencies
&& mkdir -p /deps \
&& cd /deps \
&& pnpm init \
&& pnpm add pg drizzle-orm
COPY . .
@@ -104,6 +122,16 @@ COPY --from=base /distroless/ /
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/.next/standalone /app/
# Copy database migrations
COPY --from=builder /app/packages/database/migrations /app/migrations
COPY --from=builder /app/scripts/migrateServerDB/docker.cjs /app/docker.cjs
COPY --from=builder /app/scripts/migrateServerDB/errorHint.js /app/errorHint.js
# copy dependencies
COPY --from=builder /deps/node_modules/.pnpm /app/node_modules/.pnpm
COPY --from=builder /deps/node_modules/pg /app/node_modules/pg
COPY --from=builder /deps/node_modules/drizzle-orm /app/node_modules/drizzle-orm
# Copy server launcher
COPY --from=builder /app/scripts/serverLauncher/startServer.js /app/startServer.js
@@ -124,7 +152,7 @@ ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
# Make the middleware rewrite through local as default
# refs: https://github.com/lobehub/lobe-chat/issues/5876
@@ -136,11 +164,37 @@ ENV HOSTNAME="0.0.0.0" \
# General Variables
ENV ACCESS_CODE="" \
APP_URL="" \
API_KEY_SELECT_MODE="" \
DEFAULT_AGENT_CONFIG="" \
SYSTEM_AGENT="" \
FEATURE_FLAGS="" \
PROXY_URL=""
PROXY_URL="" \
ENABLE_AUTH_PROTECTION=""
# Database
ENV KEY_VAULTS_SECRET="" \
DATABASE_DRIVER="node" \
DATABASE_URL=""
# Next Auth
ENV NEXT_AUTH_SECRET="" \
NEXT_AUTH_SSO_PROVIDERS="" \
NEXTAUTH_URL=""
# Clerk
ENV CLERK_SECRET_KEY="" \
CLERK_WEBHOOK_SECRET=""
# S3
ENV NEXT_PUBLIC_S3_DOMAIN="" \
S3_PUBLIC_DOMAIN="" \
S3_ACCESS_KEY_ID="" \
S3_BUCKET="" \
S3_ENDPOINT="" \
S3_SECRET_ACCESS_KEY="" \
S3_ENABLE_PATH_STYLE="" \
S3_SET_ACL=""
# Model Variables
ENV \
@@ -148,10 +202,12 @@ ENV \
AI21_API_KEY="" AI21_MODEL_LIST="" \
# Ai360
AI360_API_KEY="" AI360_MODEL_LIST="" \
# AiHubMix
AIHUBMIX_API_KEY="" AIHUBMIX_MODEL_LIST="" \
# Anthropic
ANTHROPIC_API_KEY="" ANTHROPIC_MODEL_LIST="" ANTHROPIC_PROXY_URL="" \
# Amazon Bedrock
AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="" AWS_BEDROCK_MODEL_LIST="" \
ENABLED_AWS_BEDROCK="" AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="" AWS_BEDROCK_MODEL_LIST="" \
# Azure OpenAI
AZURE_API_KEY="" AZURE_API_VERSION="" AZURE_ENDPOINT="" AZURE_MODEL_LIST="" \
# Baichuan
@@ -160,6 +216,9 @@ ENV \
CLOUDFLARE_API_KEY="" CLOUDFLARE_BASE_URL_OR_ACCOUNT_ID="" CLOUDFLARE_MODEL_LIST="" \
# Cohere
COHERE_API_KEY="" COHERE_MODEL_LIST="" COHERE_PROXY_URL="" \
# ComfyUI
ENABLED_COMFYUI="" COMFYUI_BASE_URL="" COMFYUI_AUTH_TYPE="" \
COMFYUI_API_KEY="" COMFYUI_USERNAME="" COMFYUI_PASSWORD="" COMFYUI_CUSTOM_HEADERS="" \
# DeepSeek
DEEPSEEK_API_KEY="" DEEPSEEK_MODEL_LIST="" \
# Fireworks AI
@@ -190,6 +249,10 @@ ENV \
MODELSCOPE_API_KEY="" MODELSCOPE_MODEL_LIST="" MODELSCOPE_PROXY_URL="" \
# Moonshot
MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
# Nebius
NEBIUS_API_KEY="" NEBIUS_MODEL_LIST="" NEBIUS_PROXY_URL="" \
# NewAPI
NEWAPI_API_KEY="" NEWAPI_PROXY_URL="" \
# Novita
NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
# Nvidia NIM
@@ -197,7 +260,7 @@ ENV \
# Ollama
ENABLED_OLLAMA="" OLLAMA_MODEL_LIST="" OLLAMA_PROXY_URL="" \
# OpenAI
OPENAI_API_KEY="" OPENAI_MODEL_LIST="" OPENAI_PROXY_URL="" \
ENABLED_OPENAI="" OPENAI_API_KEY="" OPENAI_MODEL_LIST="" OPENAI_PROXY_URL="" \
# OpenRouter
OPENROUTER_API_KEY="" OPENROUTER_MODEL_LIST="" \
# Perplexity
@@ -226,6 +289,8 @@ 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
@@ -241,7 +306,17 @@ ENV \
# Tencent Cloud
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST="" \
# Infini-AI
INFINIAI_API_KEY="" INFINIAI_MODEL_LIST=""
INFINIAI_API_KEY="" INFINIAI_MODEL_LIST="" \
# 302.AI
AI302_API_KEY="" AI302_MODEL_LIST="" \
# FAL
ENABLED_FAL="" FAL_API_KEY="" FAL_MODEL_LIST="" \
# BFL
BFL_API_KEY="" BFL_MODEL_LIST="" \
# Vercel AI Gateway
VERCELAIGATEWAY_API_KEY="" VERCELAIGATEWAY_MODEL_LIST="" \
# Cerebras
CEREBRAS_API_KEY="" CEREBRAS_MODEL_LIST=""
USER nextjs
-296
View File
@@ -1,296 +0,0 @@
## Set global build ENV
ARG NODEJS_VERSION="22"
## Base image for all building stages
FROM node:${NODEJS_VERSION}-slim AS base
ARG USE_CN_MIRROR
ENV DEBIAN_FRONTEND="noninteractive"
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \
fi \
# Add required package
&& apt update \
&& apt install ca-certificates proxychains-ng -qy \
# Prepare required package to distroless
&& mkdir -p /distroless/bin /distroless/etc /distroless/etc/ssl/certs /distroless/lib \
# Copy proxychains to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libproxychains.so.4 /distroless/lib/libproxychains.so.4 \
&& cp /usr/lib/$(arch)-linux-gnu/libdl.so.2 /distroless/lib/libdl.so.2 \
&& cp /usr/bin/proxychains4 /distroless/bin/proxychains \
&& cp /etc/proxychains4.conf /distroless/etc/proxychains4.conf \
# Copy node to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libstdc++.so.6 /distroless/lib/libstdc++.so.6 \
&& cp /usr/lib/$(arch)-linux-gnu/libgcc_s.so.1 /distroless/lib/libgcc_s.so.1 \
&& cp /usr/local/bin/node /distroless/bin/node \
# Copy CA certificates to distroless
&& cp /etc/ssl/certs/ca-certificates.crt /distroless/etc/ssl/certs/ca-certificates.crt \
# Cleanup temp files
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
## Builder image, install all the dependencies and build the app
FROM base AS builder
ARG USE_CN_MIRROR
ARG NEXT_PUBLIC_BASE_PATH
ARG NEXT_PUBLIC_SERVICE_MODE
ARG NEXT_PUBLIC_ENABLE_NEXT_AUTH
ARG NEXT_PUBLIC_SENTRY_DSN
ARG NEXT_PUBLIC_ANALYTICS_POSTHOG
ARG NEXT_PUBLIC_POSTHOG_HOST
ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_ANALYTICS_UMAMI
ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
ARG FEATURE_FLAGS
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}" \
APP_URL="http://app.com" \
DATABASE_DRIVER="node" \
DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" \
KEY_VAULTS_SECRET="use-for-build"
# Sentry
ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \
SENTRY_ORG="" \
SENTRY_PROJECT=""
# Posthog
ENV NEXT_PUBLIC_ANALYTICS_POSTHOG="${NEXT_PUBLIC_ANALYTICS_POSTHOG}" \
NEXT_PUBLIC_POSTHOG_HOST="${NEXT_PUBLIC_POSTHOG_HOST}" \
NEXT_PUBLIC_POSTHOG_KEY="${NEXT_PUBLIC_POSTHOG_KEY}"
# Umami
ENV NEXT_PUBLIC_ANALYTICS_UMAMI="${NEXT_PUBLIC_ANALYTICS_UMAMI}" \
NEXT_PUBLIC_UMAMI_SCRIPT_URL="${NEXT_PUBLIC_UMAMI_SCRIPT_URL}" \
NEXT_PUBLIC_UMAMI_WEBSITE_ID="${NEXT_PUBLIC_UMAMI_WEBSITE_ID}"
# Node
ENV NODE_OPTIONS="--max-old-space-size=8192"
WORKDIR /app
COPY package.json pnpm-workspace.yaml ./
COPY .npmrc ./
COPY packages ./packages
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
export SENTRYCLI_CDNURL="https://npmmirror.com/mirrors/sentry-cli"; \
npm config set registry "https://registry.npmmirror.com/"; \
echo 'canvas_binary_host_mirror=https://npmmirror.com/mirrors/canvas' >> .npmrc; \
fi \
# Set the registry for corepack
&& export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
# Update corepack to latest (nodejs/corepack#612)
&& npm i -g corepack@latest \
# Enable corepack
&& corepack enable \
# Use pnpm for corepack
&& corepack use $(sed -n 's/.*"packageManager": "\(.*\)".*/\1/p' package.json) \
# Install the dependencies
&& pnpm i \
# Add db migration dependencies
&& mkdir -p /deps \
&& cd /deps \
&& pnpm init \
&& pnpm add pg drizzle-orm
COPY . .
# run build standalone for docker version
RUN npm run build:docker
## Application image, copy all the files for production
FROM busybox:latest AS app
COPY --from=base /distroless/ /
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/.next/standalone /app/
# Copy database migrations
COPY --from=builder /app/src/database/migrations /app/migrations
COPY --from=builder /app/scripts/migrateServerDB/docker.cjs /app/docker.cjs
COPY --from=builder /app/scripts/migrateServerDB/errorHint.js /app/errorHint.js
# copy dependencies
COPY --from=builder /deps/node_modules/.pnpm /app/node_modules/.pnpm
COPY --from=builder /deps/node_modules/pg /app/node_modules/pg
COPY --from=builder /deps/node_modules/drizzle-orm /app/node_modules/drizzle-orm
# Copy server launcher
COPY --from=builder /app/scripts/serverLauncher/startServer.js /app/startServer.js
RUN \
# Add nextjs:nodejs to run the app
addgroup -S -g 1001 nodejs \
&& adduser -D -G nodejs -H -S -h /app -u 1001 nextjs \
# Set permission for nextjs:nodejs
&& chown -R nextjs:nodejs /app /etc/proxychains4.conf
## Production image, copy all the files and run next
FROM scratch
# Copy all the files from app, set the correct permission for prerender cache
COPY --from=app / /
ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
# Make the middleware rewrite through local as default
# refs: https://github.com/lobehub/lobe-chat/issues/5876
ENV MIDDLEWARE_REWRITE_THROUGH_LOCAL="1"
# set hostname to localhost
ENV HOSTNAME="0.0.0.0" \
PORT="3210"
# General Variables
ENV ACCESS_CODE="" \
APP_URL="" \
API_KEY_SELECT_MODE="" \
DEFAULT_AGENT_CONFIG="" \
SYSTEM_AGENT="" \
FEATURE_FLAGS="" \
PROXY_URL=""
# Database
ENV KEY_VAULTS_SECRET="" \
DATABASE_DRIVER="node" \
DATABASE_URL=""
# Next Auth
ENV NEXT_AUTH_SECRET="" \
NEXT_AUTH_SSO_PROVIDERS="" \
NEXTAUTH_URL=""
# S3
ENV NEXT_PUBLIC_S3_DOMAIN="" \
S3_PUBLIC_DOMAIN="" \
S3_ACCESS_KEY_ID="" \
S3_BUCKET="" \
S3_ENDPOINT="" \
S3_SECRET_ACCESS_KEY=""
# Model Variables
ENV \
# AI21
AI21_API_KEY="" AI21_MODEL_LIST="" \
# Ai360
AI360_API_KEY="" AI360_MODEL_LIST="" \
# Anthropic
ANTHROPIC_API_KEY="" ANTHROPIC_MODEL_LIST="" ANTHROPIC_PROXY_URL="" \
# Amazon Bedrock
AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="" AWS_BEDROCK_MODEL_LIST="" \
# Azure OpenAI
AZURE_API_KEY="" AZURE_API_VERSION="" AZURE_ENDPOINT="" AZURE_MODEL_LIST="" \
# Baichuan
BAICHUAN_API_KEY="" BAICHUAN_MODEL_LIST="" \
# 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
FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \
# Gitee AI
GITEE_AI_API_KEY="" GITEE_AI_MODEL_LIST="" \
# GitHub
GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \
# Google
GOOGLE_API_KEY="" GOOGLE_MODEL_LIST="" GOOGLE_PROXY_URL="" \
# Groq
GROQ_API_KEY="" GROQ_MODEL_LIST="" GROQ_PROXY_URL="" \
# Higress
HIGRESS_API_KEY="" HIGRESS_MODEL_LIST="" HIGRESS_PROXY_URL="" \
# HuggingFace
HUGGINGFACE_API_KEY="" HUGGINGFACE_MODEL_LIST="" HUGGINGFACE_PROXY_URL="" \
# Hunyuan
HUNYUAN_API_KEY="" HUNYUAN_MODEL_LIST="" \
# InternLM
INTERNLM_API_KEY="" INTERNLM_MODEL_LIST="" \
# Jina
JINA_API_KEY="" JINA_MODEL_LIST="" JINA_PROXY_URL="" \
# Minimax
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
NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
# Nvidia NIM
NVIDIA_API_KEY="" NVIDIA_MODEL_LIST="" NVIDIA_PROXY_URL="" \
# Ollama
ENABLED_OLLAMA="" OLLAMA_MODEL_LIST="" OLLAMA_PROXY_URL="" \
# OpenAI
OPENAI_API_KEY="" OPENAI_MODEL_LIST="" OPENAI_PROXY_URL="" \
# OpenRouter
OPENROUTER_API_KEY="" OPENROUTER_MODEL_LIST="" \
# Perplexity
PERPLEXITY_API_KEY="" PERPLEXITY_MODEL_LIST="" PERPLEXITY_PROXY_URL="" \
# 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_PROXY_URL="" SPARK_SEARCH_MODE="" \
# Stepfun
STEPFUN_API_KEY="" STEPFUN_MODEL_LIST="" \
# Taichu
TAICHU_API_KEY="" TAICHU_MODEL_LIST="" \
# TogetherAI
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
# Upstage
UPSTAGE_API_KEY="" UPSTAGE_MODEL_LIST="" \
# 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="" \
# Infini-AI
INFINIAI_API_KEY="" INFINIAI_MODEL_LIST=""
USER nextjs
EXPOSE 3210/tcp
ENTRYPOINT ["/bin/node"]
CMD ["/app/startServer.js"]
-250
View File
@@ -1,250 +0,0 @@
## Set global build ENV
ARG NODEJS_VERSION="22"
## Base image for all building stages
FROM node:${NODEJS_VERSION}-slim AS base
ARG USE_CN_MIRROR
ENV DEBIAN_FRONTEND="noninteractive"
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \
fi \
# Add required package
&& apt update \
&& apt install ca-certificates proxychains-ng -qy \
# Prepare required package to distroless
&& mkdir -p /distroless/bin /distroless/etc /distroless/etc/ssl/certs /distroless/lib \
# Copy proxychains to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libproxychains.so.4 /distroless/lib/libproxychains.so.4 \
&& cp /usr/lib/$(arch)-linux-gnu/libdl.so.2 /distroless/lib/libdl.so.2 \
&& cp /usr/bin/proxychains4 /distroless/bin/proxychains \
&& cp /etc/proxychains4.conf /distroless/etc/proxychains4.conf \
# Copy node to distroless
&& cp /usr/lib/$(arch)-linux-gnu/libstdc++.so.6 /distroless/lib/libstdc++.so.6 \
&& cp /usr/lib/$(arch)-linux-gnu/libgcc_s.so.1 /distroless/lib/libgcc_s.so.1 \
&& cp /usr/local/bin/node /distroless/bin/node \
# Copy CA certificates to distroless
&& cp /etc/ssl/certs/ca-certificates.crt /distroless/etc/ssl/certs/ca-certificates.crt \
# Cleanup temp files
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
## Builder image, install all the dependencies and build the app
FROM base AS builder
ARG USE_CN_MIRROR
ARG NEXT_PUBLIC_BASE_PATH
ARG NEXT_PUBLIC_SENTRY_DSN
ARG NEXT_PUBLIC_ANALYTICS_POSTHOG
ARG NEXT_PUBLIC_POSTHOG_HOST
ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_ANALYTICS_UMAMI
ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
ARG FEATURE_FLAGS
ENV NEXT_PUBLIC_CLIENT_DB="pglite"
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="" \
SENTRY_PROJECT=""
# Posthog
ENV NEXT_PUBLIC_ANALYTICS_POSTHOG="${NEXT_PUBLIC_ANALYTICS_POSTHOG}" \
NEXT_PUBLIC_POSTHOG_HOST="${NEXT_PUBLIC_POSTHOG_HOST}" \
NEXT_PUBLIC_POSTHOG_KEY="${NEXT_PUBLIC_POSTHOG_KEY}"
# Umami
ENV NEXT_PUBLIC_ANALYTICS_UMAMI="${NEXT_PUBLIC_ANALYTICS_UMAMI}" \
NEXT_PUBLIC_UMAMI_SCRIPT_URL="${NEXT_PUBLIC_UMAMI_SCRIPT_URL}" \
NEXT_PUBLIC_UMAMI_WEBSITE_ID="${NEXT_PUBLIC_UMAMI_WEBSITE_ID}"
# Node
ENV NODE_OPTIONS="--max-old-space-size=8192"
WORKDIR /app
COPY package.json pnpm-workspace.yaml ./
COPY .npmrc ./
COPY packages ./packages
RUN \
# If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
export SENTRYCLI_CDNURL="https://npmmirror.com/mirrors/sentry-cli"; \
npm config set registry "https://registry.npmmirror.com/"; \
echo 'canvas_binary_host_mirror=https://npmmirror.com/mirrors/canvas' >> .npmrc; \
fi \
# Set the registry for corepack
&& export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
# Update corepack to latest (nodejs/corepack#612)
&& npm i -g corepack@latest \
# Enable corepack
&& corepack enable \
# Use pnpm for corepack
&& corepack use $(sed -n 's/.*"packageManager": "\(.*\)".*/\1/p' package.json) \
# Install the dependencies
&& pnpm i
COPY . .
# run build standalone for docker version
RUN npm run build:docker
## Application image, copy all the files for production
FROM busybox:latest AS app
COPY --from=base /distroless/ /
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/.next/standalone /app/
# Copy server launcher
COPY --from=builder /app/scripts/serverLauncher/startServer.js /app/startServer.js
RUN \
# Add nextjs:nodejs to run the app
addgroup -S -g 1001 nodejs \
&& adduser -D -G nodejs -H -S -h /app -u 1001 nextjs \
# Set permission for nextjs:nodejs
&& chown -R nextjs:nodejs /app /etc/proxychains4.conf
## Production image, copy all the files and run next
FROM scratch
# Copy all the files from app, set the correct permission for prerender cache
COPY --from=app / /
ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
# Make the middleware rewrite through local as default
# refs: https://github.com/lobehub/lobe-chat/issues/5876
ENV MIDDLEWARE_REWRITE_THROUGH_LOCAL="1"
# set hostname to localhost
ENV HOSTNAME="0.0.0.0" \
PORT="3210"
# General Variables
ENV ACCESS_CODE="" \
API_KEY_SELECT_MODE="" \
DEFAULT_AGENT_CONFIG="" \
SYSTEM_AGENT="" \
FEATURE_FLAGS="" \
PROXY_URL=""
# Model Variables
ENV \
# AI21
AI21_API_KEY="" AI21_MODEL_LIST="" \
# Ai360
AI360_API_KEY="" AI360_MODEL_LIST="" \
# Anthropic
ANTHROPIC_API_KEY="" ANTHROPIC_MODEL_LIST="" ANTHROPIC_PROXY_URL="" \
# Amazon Bedrock
AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="" AWS_BEDROCK_MODEL_LIST="" \
# Azure OpenAI
AZURE_API_KEY="" AZURE_API_VERSION="" AZURE_ENDPOINT="" AZURE_MODEL_LIST="" \
# Baichuan
BAICHUAN_API_KEY="" BAICHUAN_MODEL_LIST="" \
# 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
FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \
# Gitee AI
GITEE_AI_API_KEY="" GITEE_AI_MODEL_LIST="" \
# GitHub
GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \
# Google
GOOGLE_API_KEY="" GOOGLE_MODEL_LIST="" GOOGLE_PROXY_URL="" \
# Groq
GROQ_API_KEY="" GROQ_MODEL_LIST="" GROQ_PROXY_URL="" \
# Higress
HIGRESS_API_KEY="" HIGRESS_MODEL_LIST="" HIGRESS_PROXY_URL="" \
# HuggingFace
HUGGINGFACE_API_KEY="" HUGGINGFACE_MODEL_LIST="" HUGGINGFACE_PROXY_URL="" \
# Hunyuan
HUNYUAN_API_KEY="" HUNYUAN_MODEL_LIST="" \
# InternLM
INTERNLM_API_KEY="" INTERNLM_MODEL_LIST="" \
# Jina
JINA_API_KEY="" JINA_MODEL_LIST="" JINA_PROXY_URL="" \
# Minimax
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
NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
# Nvidia NIM
NVIDIA_API_KEY="" NVIDIA_MODEL_LIST="" NVIDIA_PROXY_URL="" \
# Ollama
ENABLED_OLLAMA="" OLLAMA_MODEL_LIST="" OLLAMA_PROXY_URL="" \
# OpenAI
OPENAI_API_KEY="" OPENAI_MODEL_LIST="" OPENAI_PROXY_URL="" \
# OpenRouter
OPENROUTER_API_KEY="" OPENROUTER_MODEL_LIST="" \
# Perplexity
PERPLEXITY_API_KEY="" PERPLEXITY_MODEL_LIST="" PERPLEXITY_PROXY_URL="" \
# 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="" \
# 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_PROXY_URL="" SPARK_SEARCH_MODE="" \
# Stepfun
STEPFUN_API_KEY="" STEPFUN_MODEL_LIST="" \
# Taichu
TAICHU_API_KEY="" TAICHU_MODEL_LIST="" \
# TogetherAI
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
# Upstage
UPSTAGE_API_KEY="" UPSTAGE_MODEL_LIST="" \
# 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="" \
# Infini-AI
INFINIAI_API_KEY="" INFINIAI_MODEL_LIST=""
USER nextjs
EXPOSE 3210/tcp
ENTRYPOINT ["/bin/node"]
CMD ["/app/startServer.js"]
+2 -16
View File
@@ -1,10 +1,10 @@
Apache License Version 2.0
LobeHub Community License
Copyright (c) 2024/06/17 - current LobeHub LLC. All rights reserved.
----------
From 1.0, LobeChat is licensed under the Apache License 2.0, with the following additional conditions:
From 1.0, LobeChat is licensed under the LobeHub Community License, based on Apache License 2.0 with the following additional conditions:
1. The commercial usage of LobeChat:
@@ -22,17 +22,3 @@ Please contact hello@lobehub.com by email to inquire about licensing matters.
b. Your contributed code may be used for commercial purposes, including but not limited to its cloud edition.
Apart from the specific conditions mentioned above, all other rights and restrictions follow the Apache License 2.0. Detailed information about the Apache License 2.0 can be found at http://www.apache.org/licenses/LICENSE-2.0.
----------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+116 -95
View File
@@ -1,3 +1,10 @@
> \[!NOTE]
>
> **Version Information**
>
> - **v1.x** (Stable): Available on the [`main`](https://github.com/lobehub/lobe-chat/tree/main) branch
> - **v2.x** (In Development): Currently being actively developed on the [`next`](https://github.com/lobehub/lobe-chat/tree/next) branch 🔥
<div align="center"><a name="readme-top"></a>
[![][image-banner]][vercel-link]
@@ -39,7 +46,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 +59,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 +125,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—comprehensive, 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 +187,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 +202,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 +216,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 +234,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.
@@ -185,55 +246,11 @@ We have implemented support for the following model service providers:
<!-- PROVIDER LIST -->
- **[OpenAI](https://lobechat.com/discover/provider/openai)**: OpenAI is a global leader in artificial intelligence research, with models like the GPT series pushing the frontiers of natural language processing. OpenAI is committed to transforming multiple industries through innovative and efficient AI solutions. Their products demonstrate significant performance and cost-effectiveness, widely used in research, business, and innovative applications.
- **[Ollama](https://lobechat.com/discover/provider/ollama)**: Ollama provides models that cover a wide range of fields, including code generation, mathematical operations, multilingual processing, and conversational interaction, catering to diverse enterprise-level and localized deployment needs.
- **[Anthropic](https://lobechat.com/discover/provider/anthropic)**: Anthropic is a company focused on AI research and development, offering a range of advanced language models such as Claude 3.5 Sonnet, Claude 3 Sonnet, Claude 3 Opus, and Claude 3 Haiku. These models achieve an ideal balance between intelligence, speed, and cost, suitable for various applications from enterprise workloads to rapid-response scenarios. Claude 3.5 Sonnet, as their latest model, has excelled in multiple evaluations while maintaining a high cost-performance ratio.
- **[Bedrock](https://lobechat.com/discover/provider/bedrock)**: Bedrock is a service provided by Amazon AWS, focusing on delivering advanced AI language and visual models for enterprises. Its model family includes Anthropic's Claude series, Meta's Llama 3.1 series, and more, offering a range of options from lightweight to high-performance, supporting tasks such as text generation, conversation, and image processing for businesses of varying scales and needs.
- **[Google](https://lobechat.com/discover/provider/google)**: Google's Gemini series represents its most advanced, versatile AI models, developed by Google DeepMind, designed for multimodal capabilities, supporting seamless understanding and processing of text, code, images, audio, and video. Suitable for various environments from data centers to mobile devices, it significantly enhances the efficiency and applicability of AI models.
- **[DeepSeek](https://lobechat.com/discover/provider/deepseek)**: DeepSeek is a company focused on AI technology research and application, with its latest model DeepSeek-V2.5 integrating general dialogue and code processing capabilities, achieving significant improvements in human preference alignment, writing tasks, and instruction following.
- **[PPIO](https://lobechat.com/discover/provider/ppio)**: PPIO supports stable and cost-efficient open-source LLM APIs, such as DeepSeek, Llama, Qwen etc.
- **[HuggingFace](https://lobechat.com/discover/provider/huggingface)**: The HuggingFace Inference API provides a fast and free way for you to explore thousands of models for various tasks. Whether you are prototyping for a new application or experimenting with the capabilities of machine learning, this API gives you instant access to high-performance models across multiple domains.
- **[OpenRouter](https://lobechat.com/discover/provider/openrouter)**: OpenRouter is a service platform providing access to various cutting-edge large model interfaces, supporting OpenAI, Anthropic, LLaMA, and more, suitable for diverse development and application needs. Users can flexibly choose the optimal model and pricing based on their requirements, enhancing the AI experience.
- **[Cloudflare Workers AI](https://lobechat.com/discover/provider/cloudflare)**: Run serverless GPU-powered machine learning models on Cloudflare's global network.
<details><summary><kbd>See more providers (+32)</kbd></summary>
- **[GitHub](https://lobechat.com/discover/provider/github)**: With GitHub Models, developers can become AI engineers and leverage the industry's leading AI models.
- **[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.
- **[Together AI](https://lobechat.com/discover/provider/togetherai)**: Together AI is dedicated to achieving leading performance through innovative AI models, offering extensive customization capabilities, including rapid scaling support and intuitive deployment processes to meet various enterprise needs.
- **[Fireworks AI](https://lobechat.com/discover/provider/fireworksai)**: Fireworks AI is a leading provider of advanced language model services, focusing on functional calling and multimodal processing. Its latest model, Firefunction V2, is based on Llama-3, optimized for function calling, conversation, and instruction following. The visual language model FireLLaVA-13B supports mixed input of images and text. Other notable models include the Llama series and Mixtral series, providing efficient multilingual instruction following and generation support.
- **[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 (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.
- **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconFlow is dedicated to accelerating AGI for the benefit of humanity, enhancing large-scale AI efficiency through an easy-to-use and cost-effective GenAI stack.
- **[01.AI](https://lobechat.com/discover/provider/zeroone)**: 01.AI focuses on AI 2.0 era technologies, vigorously promoting the innovation and application of 'human + artificial intelligence', using powerful models and advanced AI technologies to enhance human productivity and achieve technological empowerment.
- **[Spark](https://lobechat.com/discover/provider/spark)**: iFlytek's Spark model provides powerful AI capabilities across multiple domains and languages, utilizing advanced natural language processing technology to build innovative applications suitable for smart hardware, smart healthcare, smart finance, and other vertical scenarios.
- **[SenseNova](https://lobechat.com/discover/provider/sensenova)**: SenseNova, backed by SenseTime's robust infrastructure, offers efficient and user-friendly full-stack large model services.
- **[Stepfun](https://lobechat.com/discover/provider/stepfun)**: StepFun's large model possesses industry-leading multimodal and complex reasoning capabilities, supporting ultra-long text understanding and powerful autonomous scheduling search engine functions.
- **[Moonshot](https://lobechat.com/discover/provider/moonshot)**: Moonshot is an open-source platform launched by Beijing Dark Side Technology Co., Ltd., providing various natural language processing models with a wide range of applications, including but not limited to content creation, academic research, intelligent recommendations, and medical diagnosis, supporting long text processing and complex generation tasks.
- **[Baichuan](https://lobechat.com/discover/provider/baichuan)**: Baichuan Intelligence is a company focused on the research and development of large AI models, with its models excelling in domestic knowledge encyclopedias, long text processing, and generative creation tasks in Chinese, surpassing mainstream foreign models. Baichuan Intelligence also possesses industry-leading multimodal capabilities, performing excellently in multiple authoritative evaluations. Its models include Baichuan 4, Baichuan 3 Turbo, and Baichuan 3 Turbo 128k, each optimized for different application scenarios, providing cost-effective solutions.
- **[Minimax](https://lobechat.com/discover/provider/minimax)**: MiniMax is a general artificial intelligence technology company established in 2021, dedicated to co-creating intelligence with users. MiniMax has independently developed general large models of different modalities, including trillion-parameter MoE text models, voice models, and image models, and has launched applications such as Conch AI.
- **[InternLM](https://lobechat.com/discover/provider/internlm)**: An open-source organization dedicated to the research and development of large model toolchains. It provides an efficient and user-friendly open-source platform for all AI developers, making cutting-edge large models and algorithm technologies easily accessible.
- **[Higress](https://lobechat.com/discover/provider/higress)**: Higress is a cloud-native API gateway that was developed internally at Alibaba to address the issues of Tengine reload affecting long-lived connections and the insufficient load balancing capabilities for gRPC/Dubbo.
- **[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><summary><kbd>See more providers (+-10)</kbd></summary>
</details>
> 📊 Total providers: [<kbd>**42**</kbd>](https://lobechat.com/discover/providers)
> 📊 Total providers: [<kbd>**0**</kbd>](https://lobechat.com/discover/providers)
<!-- PROVIDER LIST -->
@@ -247,7 +264,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.
@@ -263,7 +280,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,
@@ -281,7 +298,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.
@@ -298,7 +315,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.
@@ -312,7 +329,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.
@@ -328,12 +345,12 @@ In addition, these plugins are not limited to news aggregation, but can also ext
<!-- PLUGIN LIST -->
| 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` |
| [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` |
| [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` |
| Recent Submits | Description |
| -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [SEO](https://lobechat.com/discover/plugin/SEO)<br/><sup>By **orrenprunckun** on **2025-11-14**</sup> | Enter any URL and keyword and get an On-Page SEO analysis & insights!<br/>`seo` |
| [Shopping tools](https://lobechat.com/discover/plugin/ShoppingTools)<br/><sup>By **shoppingtools** on **2025-10-27**</sup> | Search for products on eBay & AliExpress, find eBay events & coupons. Get prompt examples.<br/>`shopping` `e-bay` `ali-express` `coupons` |
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-09-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` |
> 📊 Total plugins: [<kbd>**42**</kbd>](https://lobechat.com/discover/plugins)
@@ -347,7 +364,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.
@@ -367,14 +384,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
<!-- AGENT LIST -->
| Recent Submits | Description |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Academic Paper Reading Mentor](https://lobechat.com/discover/assistant/paper-understanding)<br/><sup>By **[AdijeShen](https://github.com/AdijeShen)** on **2025-05-09**</sup> | Expert in explaining complex academic papers in simple and understandable language<br/>`academic-knowledge` `paper-analysis` |
| [Nutritional Advisor](https://lobechat.com/discover/assistant/nutritionist)<br/><sup>By **[egornomic](https://github.com/egornomic)** on **2025-04-15**</sup> | Specializes in providing detailed nutritional information for food items.<br/>`nutrition` `food` `health` `information` |
| [Rewritten in Translation Style](https://lobechat.com/discover/assistant/rewrite-in-a-translation-tone)<br/><sup>By **[q2019715](https://github.com/q2019715)** on **2025-03-13**</sup> | Rewrites a paragraph in a translation style<br/>`translation-style` `creative-writing` `language-style` `text-rewriting` `culture` |
| [Academic Paper Review Expert](https://lobechat.com/discover/assistant/academic-paper-overview)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2025-03-11**</sup> | An academic research assistant skilled in high-quality literature retrieval and analysis<br/>`academic-research` `literature-search` `data-analysis` `information-extraction` `consulting` |
| 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>**499**</kbd> ](https://lobechat.com/discover/assistants)
> 📊 Total agents: [<kbd>**505**</kbd> ](https://lobechat.com/discover/assistants)
<!-- AGENT LIST -->
@@ -386,7 +403,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:
@@ -403,7 +420,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:
@@ -421,13 +438,13 @@ 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,
a modern web technology that elevates web applications to an experience close to that of native apps.
Through PWA, LobeChat can offer a highly optimized user experience on both desktop and mobile devices while maintaining its lightweight and high-performance characteristics.
Through PWA, LobeChat can offer a highly optimized user experience on both desktop and mobile devices while maintaining high-performance characteristics.
Visually and in terms of feel, we have also meticulously designed the interface to ensure it is indistinguishable from native apps,
providing smooth animations, responsive layouts, and adapting to different device screen resolutions.
@@ -448,7 +465,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.
@@ -460,7 +477,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.
@@ -765,7 +782,7 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
</details>
Copyright © 2025 [LobeHub][profile-link]. <br />
This project is [Apache 2.0](./LICENSE) licensed.
This project is [LobeHub Community License](./LICENSE) licensed.
<!-- LINK GROUP -->
@@ -848,7 +865,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
[github-releasedate-link]: https://github.com/lobehub/lobe-chat/releases
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?labelColor=black&style=flat-square
[github-stars-link]: https://github.com/lobehub/lobe-chat/network/stargazers
[github-stars-link]: https://github.com/lobehub/lobe-chat/stargazers
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat?color=ffcb47&labelColor=black&style=flat-square
[github-trending-shield]: https://trendshift.io/api/badge/repositories/2256
[github-trending-url]: https://trendshift.io/repositories/2256
@@ -859,8 +876,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
@@ -869,6 +889,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
+116 -97
View File
@@ -1,3 +1,10 @@
> \[!NOTE]
>
> **版本信息**
>
> - **v1.x** (稳定版):位于 [`main`](https://github.com/lobehub/lobe-chat/tree/main) 分支
> - **v2.x** (开发中):正在 [`next`](https://github.com/lobehub/lobe-chat/tree/next) 分支火热开发中 🔥
<div align="center"><a name="readme-top"></a>
[![][image-banner]][vercel-link]
@@ -52,22 +59,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 +125,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 +187,7 @@
[![][image-feat-branch]][docs-feat-branch]
### `2` [分支对话][docs-feat-branch]
### [分支对话][docs-feat-branch]
为您带来更自然、更灵活的 AI 对话方式。通过分支对话功能,您的讨论可以像人类对话一样自然延伸。在任意消息处创建新的对话分支,让您在保留原有上下文的同时,自由探索不同的对话方向。
@@ -141,7 +202,7 @@
[![][image-feat-artifacts]][docs-feat-artifacts]
### `3` [支持白板 (Artifacts)][docs-feat-artifacts]
### [支持白板 (Artifacts)][docs-feat-artifacts]
体验集成于 LobeChat 的 Claude Artifacts 能力。这项革命性功能突破了 AI 人机交互的边界,让您能够实时创建和可视化各种格式的内容。
@@ -155,7 +216,7 @@
[![][image-feat-knowledgebase]][docs-feat-knowledgebase]
### `4` [文件上传 / 知识库][docs-feat-knowledgebase]
### [文件上传 / 知识库][docs-feat-knowledgebase]
LobeChat 支持文件上传与知识库功能,你可以上传文件、图片、音频、视频等多种类型的文件,以及创建知识库,方便用户管理和查找文件。同时在对话中使用文件和知识库功能,实现更加丰富的对话体验。
@@ -173,7 +234,7 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
[![][image-feat-privoder]][docs-feat-provider]
### `5` [多模型服务商支持][docs-feat-provider]
### [多模型服务商支持][docs-feat-provider]
在 LobeChat 的不断发展过程中,我们深刻理解到在提供 AI 会话服务时模型服务商的多样性对于满足社区需求的重要性。因此,我们不再局限于单一的模型服务商,而是拓展了对多种模型服务商的支持,以便为用户提供更为丰富和多样化的会话选择。
@@ -185,55 +246,11 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
<!-- PROVIDER LIST -->
- **[OpenAI](https://lobechat.com/discover/provider/openai)**: OpenAI 是全球领先的人工智能研究机构,其开发的模型如 GPT 系列推动了自然语言处理的前沿。OpenAI 致力于通过创新和高效的 AI 解决方案改变多个行业。他们的产品具有显著的性能和经济性,广泛用于研究、商业和创新应用。
- **[Ollama](https://lobechat.com/discover/provider/ollama)**: Ollama 提供的模型广泛涵盖代码生成、数学运算、多语种处理和对话互动等领域,支持企业级和本地化部署的多样化需求。
- **[Anthropic](https://lobechat.com/discover/provider/anthropic)**: Anthropic 是一家专注于人工智能研究和开发的公司,提供了一系列先进的语言模型,如 Claude 3.5 Sonnet、Claude 3 Sonnet、Claude 3 Opus 和 Claude 3 Haiku。这些模型在智能、速度和成本之间取得了理想的平衡,适用于从企业级工作负载到快速响应的各种应用场景。Claude 3.5 Sonnet 作为其最新模型,在多项评估中表现优异,同时保持了较高的性价比。
- **[Bedrock](https://lobechat.com/discover/provider/bedrock)**: Bedrock 是亚马逊 AWS 提供的一项服务,专注于为企业提供先进的 AI 语言模型和视觉模型。其模型家族包括 Anthropic 的 Claude 系列、Meta 的 Llama 3.1 系列等,涵盖从轻量级到高性能的多种选择,支持文本生成、对话、图像处理等多种任务,适用于不同规模和需求的企业应用。
- **[Google](https://lobechat.com/discover/provider/google)**: Google 的 Gemini 系列是其最先进、通用的 AI 模型,由 Google DeepMind 打造,专为多模态设计,支持文本、代码、图像、音频和视频的无缝理解与处理。适用于从数据中心到移动设备的多种环境,极大提升了 AI 模型的效率与应用广泛性。
- **[DeepSeek](https://lobechat.com/discover/provider/deepseek)**: DeepSeek 是一家专注于人工智能技术研究和应用的公司,其最新模型 DeepSeek-V3 多项评测成绩超越 Qwen2.5-72B 和 Llama-3.1-405B 等开源模型,性能对齐领军闭源模型 GPT-4o 与 Claude-3.5-Sonnet。
- **[PPIO](https://lobechat.com/discover/provider/ppio)**: PPIO 派欧云提供稳定、高性价比的开源模型 API 服务,支持 DeepSeek 全系列、Llama、Qwen 等行业领先大模型。
- **[HuggingFace](https://lobechat.com/discover/provider/huggingface)**: HuggingFace Inference API 提供了一种快速且免费的方式,让您可以探索成千上万种模型,适用于各种任务。无论您是在为新应用程序进行原型设计,还是在尝试机器学习的功能,这个 API 都能让您即时访问多个领域的高性能模型。
- **[OpenRouter](https://lobechat.com/discover/provider/openrouter)**: OpenRouter 是一个提供多种前沿大模型接口的服务平台,支持 OpenAI、Anthropic、LLaMA 及更多,适合多样化的开发和应用需求。用户可根据自身需求灵活选择最优的模型和价格,助力 AI 体验的提升。
- **[Cloudflare Workers AI](https://lobechat.com/discover/provider/cloudflare)**: 在 Cloudflare 的全球网络上运行由无服务器 GPU 驱动的机器学习模型。
<details><summary><kbd>See more providers (+32)</kbd></summary>
- **[GitHub](https://lobechat.com/discover/provider/github)**: 通过 GitHub 模型,开发人员可以成为 AI 工程师,并使用行业领先的 AI 模型进行构建。
- **[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 等行业领先大模型。
- **[Together AI](https://lobechat.com/discover/provider/togetherai)**: Together AI 致力于通过创新的 AI 模型实现领先的性能,提供广泛的自定义能力,包括快速扩展支持和直观的部署流程,满足企业的各种需求。
- **[Fireworks AI](https://lobechat.com/discover/provider/fireworksai)**: Fireworks AI 是一家领先的高级语言模型服务商,专注于功能调用和多模态处理。其最新模型 Firefunction V2 基于 Llama-3,优化用于函数调用、对话及指令跟随。视觉语言模型 FireLLaVA-13B 支持图像和文本混合输入。其他 notable 模型包括 Llama 系列和 Mixtral 系列,提供高效的多语言指令跟随与生成支持。
- **[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 (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 应用场景,包括文本处理、图像理解与编程辅助等。
- **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconCloud,基于优秀开源基础模型的高性价比 GenAI 云服务
- **[01.AI](https://lobechat.com/discover/provider/zeroone)**: 零一万物致力于推动以人为本的 AI 2.0 技术革命,旨在通过大语言模型创造巨大的经济和社会价值,并开创新的 AI 生态与商业模式。
- **[Spark](https://lobechat.com/discover/provider/spark)**: 科大讯飞星火大模型提供多领域、多语言的强大 AI 能力,利用先进的自然语言处理技术,构建适用于智能硬件、智慧医疗、智慧金融等多种垂直场景的创新应用。
- **[SenseNova](https://lobechat.com/discover/provider/sensenova)**: 商汤日日新,依托商汤大装置的强大的基础支撑,提供高效易用的全栈大模型服务。
- **[Stepfun](https://lobechat.com/discover/provider/stepfun)**: 阶级星辰大模型具备行业领先的多模态及复杂推理能力,支持超长文本理解和强大的自主调度搜索引擎功能。
- **[Moonshot](https://lobechat.com/discover/provider/moonshot)**: Moonshot 是由北京月之暗面科技有限公司推出的开源平台,提供多种自然语言处理模型,应用领域广泛,包括但不限于内容创作、学术研究、智能推荐、医疗诊断等,支持长文本处理和复杂生成任务。
- **[Baichuan](https://lobechat.com/discover/provider/baichuan)**: 百川智能是一家专注于人工智能大模型研发的公司,其模型在国内知识百科、长文本处理和生成创作等中文任务上表现卓越,超越了国外主流模型。百川智能还具备行业领先的多模态能力,在多项权威评测中表现优异。其模型包括 Baichuan 4、Baichuan 3 Turbo 和 Baichuan 3 Turbo 128k 等,分别针对不同应用场景进行优化,提供高性价比的解决方案。
- **[Minimax](https://lobechat.com/discover/provider/minimax)**: MiniMax 是 2021 年成立的通用人工智能科技公司,致力于与用户共创智能。MiniMax 自主研发了不同模态的通用大模型,其中包括万亿参数的 MoE 文本大模型、语音大模型以及图像大模型。并推出了海螺 AI 等应用。
- **[InternLM](https://lobechat.com/discover/provider/internlm)**: 致力于大模型研究与开发工具链的开源组织。为所有 AI 开发者提供高效、易用的开源平台,让最前沿的大模型与算法技术触手可及
- **[Higress](https://lobechat.com/discover/provider/higress)**: Higress 是一款云原生 API 网关,在阿里内部为解决 Tengine reload 对长连接业务有损,以及 gRPC/Dubbo 负载均衡能力不足而诞生。
- **[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><summary><kbd>See more providers (+-10)</kbd></summary>
</details>
> 📊 Total providers: [<kbd>**42**</kbd>](https://lobechat.com/discover/providers)
> 📊 Total providers: [<kbd>**0**</kbd>](https://lobechat.com/discover/providers)
<!-- PROVIDER LIST -->
@@ -247,7 +264,7 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
[![][image-feat-local]][docs-feat-local]
### `6` [支持本地大语言模型 (LLM)][docs-feat-local]
### [支持本地大语言模型 (LLM)][docs-feat-local]
为了满足特定用户的需求,LobeChat 还基于 [Ollama](https://ollama.ai) 支持了本地模型的使用,让用户能够更灵活地使用自己的或第三方的模型。
@@ -263,7 +280,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) 支持视觉识别的模型,这是一个具备视觉识别能力的多模态应用。
用户可以轻松上传图片或者拖拽图片到对话框中,助手将能够识别图片内容,并在此基础上进行智能对话,构建更智能、更多元化的聊天场景。
@@ -278,7 +295,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 提供了一个极佳的解决方案。
@@ -293,7 +310,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 工具的能力, 助手们现在可以将你的想法转化为图像。
@@ -307,7 +324,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 的实用性和灵活性。
@@ -321,12 +338,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
<!-- PLUGIN LIST -->
| 最近新增 | 描述 |
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [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/>`网页` `搜索` |
| [必应网页搜索](https://lobechat.com/discover/plugin/Bingsearch-identifier)<br/><sup>By **FineHow** on **2024-12-22**</sup> | 通过 BingApi 搜索互联网上的信息<br/>`bingsearch` |
| [谷歌自定义搜索引擎](https://lobechat.com/discover/plugin/google-cse)<br/><sup>By **vsnthdev** on **2024-12-02**</sup> | 通过他们的官方自定义搜索引擎 API 搜索谷歌。<br/>`网` `搜索` |
| 最近新增 | 描述 |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [SEO](https://lobechat.com/discover/plugin/SEO)<br/><sup>By **orrenprunckun** on **2025-11-14**</sup> | 输入任何 URL 和关键词,获取页面 SEO 分析和见解!<br/>`seo` |
| [购物工具](https://lobechat.com/discover/plugin/ShoppingTools)<br/><sup>By **shoppingtools** on **2025-10-27**</sup> | 在 eBay 和 AliExpress 上搜索产品,查找 eBay 活动和优惠券。获取快速示例。<br/>`购物` `e-bay` `ali-express` `优惠券` |
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-09-27**</sup> | 分析股票并获取全面的实时投资数据和分析。<br/>`股票` |
| [网页](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | 智能网页搜索,读取和分析页面,以提供来自 Google 结果的全面答案。<br/>`网` `搜索` |
> 📊 Total plugins: [<kbd>**42**</kbd>](https://lobechat.com/discover/plugins)
@@ -340,7 +357,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
[![][image-feat-agent]][docs-feat-agent]
### `11` [助手市场 (GPTs)][docs-feat-agent]
### [助手市场 (GPTs)][docs-feat-agent]
在 LobeChat 的助手市场中,创作者们可以发现一个充满活力和创新的社区,它汇聚了众多精心设计的助手,这些助手不仅在工作场景中发挥着重要作用,也在学习过程中提供了极大的便利。
我们的市场不仅是一个展示平台,更是一个协作的空间。在这里,每个人都可以贡献自己的智慧,分享个人开发的助手。
@@ -356,14 +373,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
<!-- AGENT LIST -->
| 最近新增 | 描述 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [学术论文阅读导师](https://lobechat.com/discover/assistant/paper-understanding)<br/><sup>By **[AdijeShen](https://github.com/AdijeShen)** on **2025-05-09**</sup> | 擅长将复杂学术论文通俗易懂讲解<br/>`学术知道` `论文解析` |
| [营养顾问](https://lobechat.com/discover/assistant/nutritionist)<br/><sup>By **[egornomic](https://github.com/egornomic)** on **2025-04-15**</sup> | 专注于提供食品项目的详细营养信息。<br/>`营养` `食品` `健康` `信息` |
| [改写为翻译腔](https://lobechat.com/discover/assistant/rewrite-in-a-translation-tone)<br/><sup>By **[q2019715](https://github.com/q2019715)** on **2025-03-13**</sup> | 将一段话重写为翻译腔<br/>`翻译腔` `创意写作` `语言风格` `文段重写` `文化` |
| [学术论文综述专家](https://lobechat.com/discover/assistant/academic-paper-overview)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2025-03-11**</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>**499**</kbd> ](https://lobechat.com/discover/assistants)
> 📊 Total agents: [<kbd>**505**</kbd> ](https://lobechat.com/discover/assistants)
<!-- AGENT LIST -->
@@ -375,7 +392,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
[![][image-feat-database]][docs-feat-database]
### `12` [支持本地 / 远程数据库][docs-feat-database]
### [支持本地 / 远程数据库][docs-feat-database]
LobeChat 支持同时使用服务端数据库和本地数据库。根据您的需求,您可以选择合适的部署方案:
@@ -392,7 +409,7 @@ LobeChat 支持同时使用服务端数据库和本地数据库。根据您的
[![][image-feat-auth]][docs-feat-auth]
### `13` [支持多用户管理][docs-feat-auth]
### [支持多用户管理][docs-feat-auth]
LobeChat 支持多用户管理,提供了两种主要的用户认证和管理方案,以满足不同需求:
@@ -410,7 +427,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 能够在桌面和移动设备上提供高度优化的用户体验,同时保持轻量级和高性能的特点。
@@ -423,7 +440,6 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
> - 在电脑上运行 Chrome 或 Edge 浏览器 .
> - 访问 LobeChat 网页 .
> - 在地址栏的右上角,单击 <kbd>安装</kbd> 图标 .
> - 根据屏幕上的指示完成 PWA 的安装 .
<div align="right">
@@ -433,7 +449,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
[![][image-feat-mobile]][docs-feat-mobile]
### `15` [移动设备适配][docs-feat-mobile]
### [移动设备适配][docs-feat-mobile]
针对移动设备进行了一系列的优化设计,以提升用户的移动体验。目前,我们正在对移动端的用户体验进行版本迭代,以实现更加流畅和直观的交互。如果您有任何建议或想法,我们非常欢迎您通过 GitHub Issues 或者 Pull Requests 提供反馈。
@@ -445,7 +461,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
[![][image-feat-theme]][docs-feat-theme]
### `16` [自定义主题][docs-feat-theme]
### [自定义主题][docs-feat-theme]
作为设计工程师出身,LobeChat 在界面设计上充分考虑用户的个性化体验,因此引入了灵活多变的主题模式,其中包括日间的亮色模式和夜间的深色模式。
除了主题模式的切换,还提供了一系列的颜色定制选项,允许用户根据自己的喜好来调整应用的主题色彩。无论是想要沉稳的深蓝,还是希望活泼的桃粉,或者是专业的灰白,用户都能够在 LobeChat 中找到匹配自己风格的颜色选择。
@@ -532,7 +548,7 @@ LobeChat 提供了 Vercel 的 自托管版本 和 [Docker 镜像][docker-release
#### 保持更新
如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 有可用更新。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。
如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 "有可用更新"。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。
> \[!TIP]
>
@@ -546,9 +562,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
@@ -787,7 +803,7 @@ $ pnpm run dev
</details>
Copyright © 2025 [LobeHub][profile-link]. <br />
This project is [Apache 2.0](./LICENSE) licensed.
This project is [LobeHub Community License](./LICENSE) licensed.
<!-- LINK GROUP -->
@@ -870,7 +886,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
[github-releasedate-link]: https://github.com/lobehub/lobe-chat/releases
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?labelColor=black&style=flat-square
[github-stars-link]: https://github.com/lobehub/lobe-chat/network/stargazers
[github-stars-link]: https://github.com/lobehub/lobe-chat/stargazers
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat?color=ffcb47&labelColor=black&style=flat-square
[github-trending-shield]: https://trendshift.io/api/badge/repositories/2256
[github-trending-url]: https://trendshift.io/repositories/2256
@@ -881,8 +897,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
@@ -891,6 +909,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
+2 -1
View File
@@ -23,8 +23,9 @@ module.exports = defineConfig({
'vi-VN',
'fa-IR',
],
saveImmediately: true,
temperature: 0,
modelName: 'gpt-4o-mini',
modelName: 'gpt-4.1-mini',
experimental: {
jsonMode: true,
},
+2
View File
@@ -1,4 +1,6 @@
lockfile=false
shamefully-hoist=true
ignore-workspace-root-check=true
electron_mirror=https://npmmirror.com/mirrors/electron/
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
+326 -33
View File
@@ -1,60 +1,353 @@
# LobeHub Desktop Application
# 🤯 LobeHub Desktop Application
LobeHub Desktop [LobeChat](https://github.com/lobehub/lobe-chat) 的跨平台桌面应用程序,使用 Electron 构建,提供了更加原生的桌面体验和功能。
LobeHub Desktop is a cross-platform desktop application for [LobeChat](https://github.com/lobehub/lobe-chat), built with Electron, providing a more native desktop experience and functionality.
## 功能特点
## ✨ Features
- **跨平台支持**:支持 macOS (Intel/Apple Silicon)Windows Linux 系统
- **自动更新**:内置更新机制,确保您始终使用最新版本
- **多语言支持**:完整的国际化支持,包括中文、英文等多种语言
- **原生集成**:与操作系统深度集成,提供原生菜单、快捷键和通知
- **安全可靠**:macOS 版本经过公证,确保安全性
- **多渠道发布**:提供稳定版、测试版和每日构建版本
- **🌍 Cross-platform Support**: Supports macOS (Intel/Apple Silicon), Windows, and Linux systems
- **🔄 Auto Updates**: Built-in update mechanism ensures you always have the latest version
- **🌐 Multi-language Support**: Complete i18n support for 18+ languages with lazy loading
- **🎨 Native Integration**: Deep OS integration with native menus, shortcuts, and notifications
- **🔒 Secure & Reliable**: macOS notarized, encrypted token storage, secure OAuth flow
- **📦 Multiple Release Channels**: Stable, beta, and nightly build versions
- **⚡ Advanced Window Management**: Multi-window architecture with theme synchronization
- **🔗 Remote Server Sync**: Secure data synchronization with remote LobeChat instances
- **🎯 Developer Tools**: Built-in development panel and comprehensive debugging tools
## 开发环境设置
## 🚀 Development Setup
### 前提条件
### Prerequisites
- Node.js 22+
- pnpm 10+
- **Node.js** 22+
- **pnpm** 10+
- **Electron** compatible development environment
### 安装依赖
### Quick Start
```bash
# Install dependencies
pnpm install-isolated
```
### 开发模式运行
```bash
# Start development server
pnpm electron:dev
# Type checking
pnpm typecheck
# Run tests
pnpm test
```
### 构建应用
### Environment Configuration
构建所有平台:
Copy `.env.desktop` to `.env` and configure as needed:
```bash
pnpm build
cp .env.desktop .env
```
构建特定平台:
> \[!WARNING]
> Backup your `.env` file before making changes to avoid losing configurations.
### Build Commands
| Command | Description |
| ------------------ | --------------------------------------- |
| `pnpm build` | Build for all platforms |
| `pnpm build:mac` | Build for macOS (Intel + Apple Silicon) |
| `pnpm build:win` | Build for Windows |
| `pnpm build:linux` | Build for Linux |
| `pnpm build-local` | Local development build |
### Development Workflow
```bash
# macOS
pnpm build:mac
# 1. Development
pnpm electron:dev # Start with hot reload
# Windows
pnpm build:win
# 2. Code Quality
pnpm lint # ESLint checking
pnpm format # Prettier formatting
pnpm typecheck # TypeScript validation
# Linux
pnpm build:linux
# 3. Testing
pnpm test # Run Vitest tests
# 4. Build & Package
pnpm build # Production build
pnpm build-local # Local testing build
```
## 发布渠道
## 🎯 Release Channels
应用提供三个发布渠道:
| Channel | Description | Stability | Auto-Updates |
| ----------- | -------------------------------- | --------- | ------------ |
| **Stable** | Thoroughly tested releases | 🟢 High | ✅ Yes |
| **Beta** | Pre-release with new features | 🟡 Medium | ✅ Yes |
| **Nightly** | Daily builds with latest changes | 🟠 Low | ✅ Yes |
- **稳定版**:经过充分测试的正式版本
- **测试版 (Beta)**:预发布版本,包含即将发布的新功能
- **每日构建版 (Nightly)**:包含最新开发进展的构建版本
## 🛠 Technology Stack
### Core Framework
- **Electron** `37.1.0` - Cross-platform desktop framework
- **Node.js** `22+` - Backend runtime
- **TypeScript** `5.7+` - Type-safe development
- **Vite** `6.2+` - Build tooling
### Architecture & Patterns
- **Dependency Injection** - IoC container with decorator-based registration
- **Event-Driven Architecture** - IPC communication between processes
- **Module Federation** - Dynamic controller and service loading
- **Observer Pattern** - State management and UI synchronization
### Development Tools
- **Vitest** - Unit testing framework
- **ESLint** - Code linting
- **Prettier** - Code formatting
- **electron-builder** - Application packaging
- **electron-updater** - Auto-update mechanism
### Security & Storage
- **Electron Safe Storage** - Encrypted token storage
- **OAuth 2.0 + PKCE** - Secure authentication flow
- **electron-store** - Persistent configuration
- **Custom Protocol Handler** - Secure callback handling
## 🏗 Architecture
The desktop application uses a sophisticated dependency injection and event-driven architecture:
### 📁 Core Structure
```
src/main/core/
├── App.ts # 🎯 Main application orchestrator
├── IoCContainer.ts # 🔌 Dependency injection container
├── window/ # 🪟 Window management modules
│ ├── WindowThemeManager.ts # 🎨 Theme synchronization
│ ├── WindowPositionManager.ts # 📐 Position persistence
│ ├── WindowErrorHandler.ts # ⚠️ Error boundaries
│ └── WindowConfigBuilder.ts # ⚙️ Configuration builder
├── browser/ # 🌐 Browser management modules
│ ├── Browser.ts # 🪟 Individual window instances
│ └── BrowserManager.ts # 👥 Multi-window coordinator
├── ui/ # 🎨 UI system modules
│ ├── Tray.ts # 📍 System tray integration
│ ├── TrayManager.ts # 🔧 Tray management
│ ├── MenuManager.ts # 📋 Native menu system
│ └── ShortcutManager.ts # ⌨️ Global shortcuts
└── infrastructure/ # 🔧 Infrastructure services
├── StoreManager.ts # 💾 Configuration storage
├── I18nManager.ts # 🌍 Internationalization
├── UpdaterManager.ts # 📦 Auto-update system
└── StaticFileServerManager.ts # 🗂️ Local file serving
```
### 🔄 Application Lifecycle
The `App.ts` class orchestrates the entire application lifecycle through key phases:
#### 1. 🚀 Initialization Phase
- **System Information Logging** - Captures OS, CPU, RAM, and locale details
- **Store Manager Setup** - Initializes persistent configuration storage
- **Dynamic Module Loading** - Auto-discovers controllers and services via glob imports
- **IPC Event Registration** - Sets up inter-process communication channels
#### 2. 🏃 Bootstrap Phase
- **Single Instance Check** - Ensures only one application instance runs
- **IPC Server Launch** - Starts the communication server
- **Core Manager Initialization** - Sequential initialization of all managers:
- 🌍 I18n for internationalization
- 📋 Menu system for native menus
- 🗂️ Static file server for local assets
- ⌨️ Global shortcuts registration
- 🪟 Browser window management
- 📍 System tray (Windows only)
- 📦 Auto-updater system
### 🔧 Core Components Deep Dive
#### 🌐 Browser Management System
- **Multi-Window Architecture** - Supports chat, settings, and devtools windows
- **Window State Management** - Handles positioning, theming, and lifecycle
- **WebContents Mapping** - Bidirectional mapping between WebContents and identifiers
- **Event Broadcasting** - Centralized event distribution to all or specific windows
#### 🔌 Dependency Injection & Event System
- **IoC Container** - WeakMap-based container for decorated controller methods
- **Decorator Registration** - `@ipcClientEvent` and `@ipcServerEvent` decorators
- **Automatic Event Mapping** - Events registered during controller loading
- **Service Locator** - Type-safe service and controller retrieval
#### 🪟 Window Management
- **Theme-Aware Windows** - Automatic adaptation to system dark/light mode
- **Platform-Specific Styling** - Windows title bar and overlay customization
- **Position Persistence** - Save and restore window positions across sessions
- **Error Boundaries** - Centralized error handling for window operations
#### 🔧 Infrastructure Services
##### 🌍 I18n Manager
- **18+ Language Support** with lazy loading and namespace organization
- **System Integration** with Electron's locale detection
- **Dynamic UI Refresh** on language changes
- **Resource Management** with efficient loading strategies
##### 📦 Update Manager
- **Multi-Channel Support** (stable, beta, nightly) with configurable intervals
- **Background Downloads** with progress tracking and user notifications
- **Rollback Protection** with error handling and recovery mechanisms
- **Channel Management** with automatic channel switching
##### 💾 Store Manager
- **Type-Safe Storage** using electron-store with TypeScript interfaces
- **Encrypted Secrets** via Electron's Safe Storage API
- **Configuration Validation** with default value management
- **File System Integration** with automatic directory creation
##### 🗂️ Static File Server
- **Local HTTP Server** for serving application assets and user files
- **Security Controls** with request filtering and access validation
- **File Management** with upload, download, and deletion capabilities
- **Path Resolution** with intelligent routing between storage locations
#### 🎨 UI System Integration
- **Global Shortcuts** - Platform-aware keyboard shortcut registration with conflict detection
- **System Tray** - Native integration with context menus and notifications
- **Native Menus** - Platform-specific application and context menus with i18n
- **Theme Synchronization** - Automatic theme updates across all UI components
### 🏛 Controller & Service Architecture
#### 🎮 Controller Pattern
- **IPC Event Handling** - Processes events from renderer with decorator-based registration
- **Lifecycle Hooks** - `beforeAppReady` and `afterAppReady` for initialization phases
- **Type-Safe Communication** - Strong typing for all IPC events and responses
- **Error Boundaries** - Comprehensive error handling with proper propagation
#### 🔧 Service Pattern
- **Business Logic Encapsulation** - Clean separation of concerns
- **Dependency Management** - Managed through IoC container
- **Cross-Controller Sharing** - Services accessible via service locator pattern
- **Resource Management** - Proper initialization and cleanup
### 🔗 Inter-Process Communication
#### 📡 IPC System Features
- **Bidirectional Communication** - Main↔Renderer and Main↔Next.js server
- **Type-Safe Events** - TypeScript interfaces for all event parameters
- **Context Awareness** - Events include sender context for window-specific operations
- **Error Propagation** - Centralized error handling with proper status codes
#### 🛡️ Security Features
- **OAuth 2.0 + PKCE** - Secure authentication with state parameter validation
- **Encrypted Token Storage** - Using Electron's Safe Storage API when available
- **Custom Protocol Handler** - Secure callback handling for OAuth flows
- **Request Filtering** - Security controls for web requests and external links
## 🧪 Testing
### Test Structure
```bash
apps/desktop/src/main/controllers/__tests__/ # Controller unit tests
tests/ # Integration tests
```
### Running Tests
```bash
pnpm test # Run all tests
pnpm test:watch # Watch mode
pnpm typecheck # Type validation
```
### Test Coverage
- **Controller Tests** - IPC event handling validation
- **Service Tests** - Business logic verification
- **Integration Tests** - End-to-end workflow testing
- **Type Tests** - TypeScript interface validation
## 🔒 Security Features
### Authentication & Authorization
- **OAuth 2.0 Flow** with PKCE for secure token exchange
- **State Parameter Validation** to prevent CSRF attacks
- **Encrypted Token Storage** using platform-native secure storage
- **Automatic Token Refresh** with fallback to re-authentication
### Application Security
- **Code Signing** - macOS notarization for enhanced security
- **Sandboxing** - Controlled access to system resources
- **CSP Controls** - Content Security Policy management
- **Request Filtering** - Security controls for external requests
### Data Protection
- **Encrypted Configuration** - Sensitive data encrypted at rest
- **Secure IPC** - Type-safe communication channels
- **Path Validation** - Secure file system access controls
- **Network Security** - HTTPS enforcement and proxy support
## 🤝 Contribution
Desktop application development involves complex cross-platform considerations and native integrations. We welcome community contributions to improve functionality, performance, and user experience. You can participate in improvements through:
### How to Contribute
1. **Platform Support**: Enhance cross-platform compatibility and native integrations
2. **Performance Optimization**: Improve application startup time, memory usage, and responsiveness
3. **Feature Development**: Add new desktop-specific features and capabilities
4. **Bug Fixes**: Fix platform-specific issues and edge cases
5. **Security Improvements**: Enhance security measures and authentication flows
6. **UI/UX Enhancements**: Improve desktop user interface and experience
### Contribution Process
1. Fork the [LobeChat repository](https://github.com/lobehub/lobe-chat)
2. Set up the desktop development environment following our setup guide
3. Make your changes to the desktop application
4. Submit a Pull Request describing:
- Platform compatibility testing results
- Performance impact analysis
- Security considerations
- User experience improvements
- Breaking changes (if any)
### Development Areas
- **Core Architecture**: Dependency injection, event system, and lifecycle management
- **Window Management**: Multi-window support, theme synchronization, and state persistence
- **IPC Communication**: Type-safe inter-process communication between main and renderer
- **Platform Integration**: Native menus, shortcuts, notifications, and system tray
- **Security Features**: OAuth flows, token encryption, and secure storage
- **Auto-Update System**: Multi-channel updates and rollback mechanisms
## 📚 Additional Resources
- **Development Guide**: [`Development.md`](./Development.md) - Comprehensive development documentation
- **Architecture Docs**: [`/docs`](../../docs/) - Detailed technical specifications
- **Contributing**: [`CONTRIBUTING.md`](../../CONTRIBUTING.md) - Contribution guidelines
- **Issues & Support**: [GitHub Issues](https://github.com/lobehub/lobe-chat/issues)
+353
View File
@@ -0,0 +1,353 @@
# 🤯 LobeHub 桌面应用程序
LobeHub Desktop 是 [LobeChat](https://github.com/lobehub/lobe-chat) 的跨平台桌面应用程序,使用 Electron 构建,提供了更加原生的桌面体验和功能。
## ✨ 功能特点
- **🌍 跨平台支持**:支持 macOS (Intel/Apple Silicon)、Windows 和 Linux 系统
- **🔄 自动更新**:内置更新机制,确保您始终使用最新版本
- **🌐 多语言支持**:完整的 i18n 支持,包含 18+ 种语言的懒加载
- **🎨 原生集成**:与操作系统深度集成,提供原生菜单、快捷键和通知
- **🔒 安全可靠**:macOS 公证认证,加密令牌存储,安全的 OAuth 流程
- **📦 多渠道发布**:提供稳定版、测试版和每日构建版本
- **⚡ 高级窗口管理**:多窗口架构,支持主题同步
- **🔗 远程服务器同步**:与远程 LobeChat 实例的安全数据同步
- **🎯 开发者工具**:内置开发面板和全面的调试工具
## 🚀 开发环境设置
### 前提条件
- **Node.js** 22+
- **pnpm** 10+
- **Electron** 兼容的开发环境
### 快速开始
```bash
# 安装依赖
pnpm install-isolated
# 启动开发服务器
pnpm electron:dev
# 类型检查
pnpm typecheck
# 运行测试
pnpm test
```
### 环境变量配置
复制 `.env.desktop``.env` 并根据需要配置:
```bash
cp .env.desktop .env
```
> \[!WARNING]
> 在进行更改之前请备份您的 `.env` 文件,避免丢失配置。
### 构建命令
| 命令 | 描述 |
| ------------------ | ---------------------------------- |
| `pnpm build` | 构建所有平台 |
| `pnpm build:mac` | 构建 macOS (Intel + Apple Silicon) |
| `pnpm build:win` | 构建 Windows |
| `pnpm build:linux` | 构建 Linux |
| `pnpm build-local` | 本地开发构建 |
### 开发工作流
```bash
# 1. 开发
pnpm electron:dev # 启动热重载开发服务器
# 2. 代码质量
pnpm lint # ESLint 检查
pnpm format # Prettier 格式化
pnpm typecheck # TypeScript 验证
# 3. 测试
pnpm test # 运行 Vitest 测试
# 4. 构建和打包
pnpm build # 生产构建
pnpm build-local # 本地测试构建
```
## 🎯 发布渠道
| 渠道 | 描述 | 稳定性 | 自动更新 |
| ------------------------ | ---------------------- | ------ | -------- |
| **稳定版** | 经过充分测试的正式版本 | 🟢 高 | ✅ 是 |
| **测试版 (Beta)** | 包含新功能的预发布版本 | 🟡 中 | ✅ 是 |
| **每日构建版 (Nightly)** | 包含最新更改的每日构建 | 🟠 低 | ✅ 是 |
## 🛠 技术栈
### 核心框架
- **Electron** `37.1.0` - 跨平台桌面框架
- **Node.js** `22+` - 后端运行时
- **TypeScript** `5.7+` - 类型安全开发
- **Vite** `6.2+` - 构建工具
### 架构和模式
- **依赖注入** - 基于装饰器注册的 IoC 容器
- **事件驱动架构** - 进程间 IPC 通信
- **模块联邦** - 动态控制器和服务加载
- **观察者模式** - 状态管理和 UI 同步
### 开发工具
- **Vitest** - 单元测试框架
- **ESLint** - 代码检查
- **Prettier** - 代码格式化
- **electron-builder** - 应用程序打包
- **electron-updater** - 自动更新机制
### 安全和存储
- **Electron Safe Storage** - 加密令牌存储
- **OAuth 2.0 + PKCE** - 安全认证流程
- **electron-store** - 持久化配置
- **自定义协议处理器** - 安全回调处理
## 🏗 架构设计
桌面应用程序采用了复杂的依赖注入和事件驱动架构:
### 📁 核心结构
```
src/main/core/
├── App.ts # 🎯 主应用程序协调器
├── IoCContainer.ts # 🔌 依赖注入容器
├── window/ # 🪟 窗口管理模块
│ ├── WindowThemeManager.ts # 🎨 主题同步
│ ├── WindowPositionManager.ts # 📐 位置持久化
│ ├── WindowErrorHandler.ts # ⚠️ 错误边界
│ └── WindowConfigBuilder.ts # ⚙️ 配置构建器
├── browser/ # 🌐 浏览器管理模块
│ ├── Browser.ts # 🪟 单个窗口实例
│ └── BrowserManager.ts # 👥 多窗口协调器
├── ui/ # 🎨 UI 系统模块
│ ├── Tray.ts # 📍 系统托盘集成
│ ├── TrayManager.ts # 🔧 托盘管理
│ ├── MenuManager.ts # 📋 原生菜单系统
│ └── ShortcutManager.ts # ⌨️ 全局快捷键
└── infrastructure/ # 🔧 基础设施服务
├── StoreManager.ts # 💾 配置存储
├── I18nManager.ts # 🌍 国际化
├── UpdaterManager.ts # 📦 自动更新系统
└── StaticFileServerManager.ts # 🗂️ 本地文件服务
```
### 🔄 应用程序生命周期
`App.ts` 类通过几个关键阶段协调整个应用程序的生命周期:
#### 1. 🚀 初始化阶段
- **系统信息记录** - 捕获操作系统、CPU、内存和区域设置详细信息
- **存储管理器设置** - 初始化持久配置存储
- **动态模块加载** - 通过 glob 导入自动发现控制器和服务
- **IPC 事件注册** - 设置进程间通信通道
#### 2. 🏃 引导阶段
- **单实例检查** - 确保只运行一个应用程序实例
- **IPC 服务器启动** - 启动通信服务器
- **核心管理器初始化** - 按顺序初始化所有管理器:
- 🌍 国际化管理器
- 📋 原生菜单系统
- 🗂️ 本地资源服务器
- ⌨️ 全局快捷键注册
- 🪟 浏览器窗口管理
- 📍 系统托盘(仅 Windows
- 📦 自动更新系统
### 🔧 核心组件深度解析
#### 🌐 浏览器管理系统
- **多窗口架构** - 支持聊天、设置和开发工具窗口
- **窗口状态管理** - 处理定位、主题和生命周期
- **WebContents 映射** - WebContents 和标识符之间的双向映射
- **事件广播** - 向所有或特定窗口的集中事件分发
#### 🔌 依赖注入和事件系统
- **IoC 容器** - 基于 WeakMap 的装饰控制器方法容器
- **装饰器注册** - `@ipcClientEvent``@ipcServerEvent` 装饰器
- **自动事件映射** - 控制器加载期间注册的事件
- **服务定位器** - 类型安全的服务和控制器检索
#### 🪟 窗口管理
- **主题感知窗口** - 自动适应系统深色 / 浅色模式
- **平台特定样式** - Windows 标题栏和覆盖自定义
- **位置持久化** - 跨会话保存和恢复窗口位置
- **错误边界** - 窗口操作的集中错误处理
#### 🔧 基础设施服务
##### 🌍 国际化管理器
- **18+ 语言支持** 懒加载和命名空间组织
- **系统集成** 与 Electron 的区域检测集成
- **动态 UI 刷新** 语言更改时的 UI 更新
- **资源管理** 高效的加载策略
##### 📦 更新管理器
- **多渠道支持** (稳定版、测试版、每日构建)可配置间隔
- **后台下载** 进度跟踪和用户通知
- **回滚保护** 错误处理和恢复机制
- **渠道管理** 自动渠道切换
##### 💾 存储管理器
- **类型安全存储** 使用带有 TypeScript 接口的 electron-store
- **加密机密** 通过 Electron 的安全存储 API
- **配置验证** 默认值管理
- **文件系统集成** 自动目录创建
##### 🗂️ 静态文件服务器
- **本地 HTTP 服务器** 用于提供应用程序资源和用户文件
- **安全控制** 请求过滤和访问验证
- **文件管理** 上传、下载和删除功能
- **路径解析** 存储位置之间的智能路由
#### 🎨 UI 系统集成
- **全局快捷键** - 平台感知的键盘快捷键注册与冲突检测
- **系统托盘** - 带有上下文菜单和通知的原生集成
- **原生菜单** - 带有 i18n 的平台特定应用程序和上下文菜单
- **主题同步** - 所有 UI 组件的自动主题更新
### 🏛 控制器和服务架构
#### 🎮 控制器模式
- **IPC 事件处理** - 通过基于装饰器的注册处理来自渲染器的事件
- **生命周期钩子** - 初始化阶段的 `beforeAppReady``afterAppReady`
- **类型安全通信** - 所有 IPC 事件和响应的强类型
- **错误边界** - 具有适当传播的全面错误处理
#### 🔧 服务模式
- **业务逻辑封装** - 关注点的清晰分离
- **依赖管理** - 通过 IoC 容器管理
- **跨控制器共享** - 通过服务定位器模式访问的服务
- **资源管理** - 适当的初始化和清理
### 🔗 进程间通信
#### 📡 IPC 系统功能
- **双向通信** - Main↔Renderer 和 Main↔Next.js 服务器
- **类型安全事件** - 所有事件参数的 TypeScript 接口
- **上下文感知** - 事件包含用于窗口特定操作的发送者上下文
- **错误传播** - 具有适当状态码的集中错误处理
#### 🛡️ 安全功能
- **OAuth 2.0 + PKCE** - 具有状态参数验证的安全认证
- **加密令牌存储** - 在可用时使用 Electron 的安全存储 API
- **自定义协议处理器** - OAuth 流程的安全回调处理
- **请求过滤** - 网络请求和外部链接的安全控制
## 🧪 测试
### 测试结构
```bash
apps/desktop/src/main/controllers/__tests__/ # 控制器单元测试
tests/ # 集成测试
```
### 运行测试
```bash
pnpm test # 运行所有测试
pnpm test:watch # 监视模式
pnpm typecheck # 类型验证
```
### 测试覆盖
- **控制器测试** - IPC 事件处理验证
- **服务测试** - 业务逻辑验证
- **集成测试** - 端到端工作流测试
- **类型测试** - TypeScript 接口验证
## 🔒 安全功能
### 认证和授权
- **OAuth 2.0 流程** 使用 PKCE 进行安全令牌交换
- **状态参数验证** 防止 CSRF 攻击
- **加密令牌存储** 使用平台原生安全存储
- **自动令牌刷新** 在失败时回退到重新认证
### 应用程序安全
- **代码签名** - macOS 公证认证以增强安全性
- **沙盒** - 对系统资源的受控访问
- **CSP 控制** - 内容安全策略管理
- **请求过滤** - 外部请求的安全控制
### 数据保护
- **加密配置** - 敏感数据静态加密
- **安全 IPC** - 类型安全的通信通道
- **路径验证** - 安全的文件系统访问控制
- **网络安全** - HTTPS 强制和代理支持
## 🤝 参与贡献
桌面应用程序开发涉及复杂的跨平台考虑和原生集成。我们欢迎社区贡献来改进功能、性能和用户体验。您可以通过以下方式参与改进:
### 如何贡献
1. **平台支持**:增强跨平台兼容性和原生集成
2. **性能优化**:改进应用程序启动时间、内存使用和响应性
3. **功能开发**:添加新的桌面特定功能和能力
4. **错误修复**:修复平台特定问题和边缘情况
5. **安全改进**:增强安全措施和认证流程
6. **UI/UX 增强**:改进桌面用户界面和体验
### 贡献流程
1. Fork [LobeChat 仓库](https://github.com/lobehub/lobe-chat)
2. 按照我们的设置指南建立桌面开发环境
3. 对桌面应用程序进行修改
4. 提交 Pull Request 并描述:
- 平台兼容性测试结果
- 性能影响分析
- 安全考虑
- 用户体验改进
- 破坏性更改(如有)
### 开发领域
- **核心架构**:依赖注入、事件系统和生命周期管理
- **窗口管理**:多窗口支持、主题同步和状态持久化
- **IPC 通信**:主进程和渲染进程之间的类型安全进程间通信
- **平台集成**:原生菜单、快捷键、通知和系统托盘
- **安全功能**:OAuth 流程、令牌加密和安全存储
- **自动更新系统**:多渠道更新和回滚机制
## 📚 其他资源
- **开发指南**[`Development.md`](./Development.md) - 全面的开发文档
- **架构文档**[`/docs`](../../docs/) - 详细的技术规范
- **贡献指南**[`CONTRIBUTING.md`](../../CONTRIBUTING.md) - 贡献指导
- **问题和支持**[GitHub Issues](https://github.com/lobehub/lobe-chat/issues)

Some files were not shown because too many files have changed in this diff Show More