-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix: keyword search for chat history & sessions #4725
Conversation
@cy948 is attempting to deploy a commit to the LobeChat Community Team on Vercel. A member of the Team first needs to authorize it. |
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
a3e44b5
to
6a0d71d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4725 +/- ##
==========================================
- Coverage 92.42% 92.33% -0.10%
==========================================
Files 526 528 +2
Lines 36826 36951 +125
Branches 2517 2368 -149
==========================================
+ Hits 34038 34120 +82
- Misses 2788 2831 +43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❤️ Great PR @cy948 ❤️ 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 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. |
### [Version 1.32.1](v1.32.0...v1.32.1) <sup>Released on **2024-11-19**</sup> #### 🐛 Bug Fixes - **misc**: Keyword search for chat history & sessions. #### 💄 Styles - **misc**: Support o1 models using streaming. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Keyword search for chat history & sessions, closes [#4725](#4725) ([415d772](415d772)) #### Styles * **misc**: Support o1 models using streaming, closes [#4732](#4732) ([7e9e71a](7e9e71a)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.32.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.74.0](v1.73.8...v1.74.0) <sup>Released on **2024-11-19**</sup> #### ✨ Features - **misc**: Add support InternLM (书生浦语) provider. #### 🐛 Bug Fixes - **misc**: Connection check logic, keyword search for chat history & sessions. #### 💄 Styles - **misc**: Support o1 models using streaming. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add support InternLM (书生浦语) provider, closes [lobehub#4711](https://github.com/bentwnghk/lobe-chat/issues/4711) ([aaae059](aaae059)) #### What's fixed * **misc**: Connection check logic, closes [lobehub#4722](https://github.com/bentwnghk/lobe-chat/issues/4722) ([b361840](b361840)) * **misc**: Keyword search for chat history & sessions, closes [lobehub#4725](https://github.com/bentwnghk/lobe-chat/issues/4725) ([415d772](415d772)) #### Styles * **misc**: Support o1 models using streaming, closes [lobehub#4732](https://github.com/bentwnghk/lobe-chat/issues/4732) ([7e9e71a](7e9e71a)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
src/database/server/models/session.ts
: 增加findSessionsByKeywords
方法进行模糊搜索。该方法从原来的模糊匹配sessions.title
改为匹配agents.title
;src/database/server/models/topic.ts
: 去掉多余的or
src/database/server/models/__tests__/session.test.ts
: 为上述改动补充测试📝 补充信息 | Additional Information
run tests
pnpm vitest --run --testNamePattern='^ ?SessionModel' ./src/database/server/models/__tests__/session.test.ts --config vitest.server.config.ts