Skip to content

✨ feat: support application search with searchXNG #6452

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

Merged
merged 15 commits into from
Feb 24, 2025
Merged

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Feb 23, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

配置环境变量: SEARXNG_URL

📝 补充信息 | Additional Information

Zeabur 上有一键启动模板:https://zeabur.com/templates/77FSH6

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 23, 2025
Copy link

vercel bot commented Feb 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-database ✅ Ready (Inspect) Visit Preview Feb 24, 2025 6:47pm
lobe-chat-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 24, 2025 6:47pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 24, 2025 6:47pm

@dosubot dosubot bot added the 🌠 Feature Request New feature or request | 特性与建议 label Feb 23, 2025
@lobehubbot
Copy link
Member

👍 @arvinxx

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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Feb 24, 2025

Codecov Report

Attention: Patch coverage is 88.03419% with 140 lines in your changes missing coverage. Please review.

Project coverage is 91.49%. Comparing base (3f9498e) to head (b95dcde).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/store/chat/slices/builtinTool/action.ts 28.09% 87 Missing ⚠️
src/server/modules/SearXNG.ts 42.42% 19 Missing ⚠️
src/server/routers/tools/search.ts 76.31% 9 Missing ⚠️
src/libs/trpc/client/tools.ts 75.00% 5 Missing ⚠️
src/services/message/server.ts 20.00% 4 Missing ⚠️
src/store/aiInfra/slices/aiModel/selectors.ts 75.00% 3 Missing ⚠️
src/store/chat/slices/message/action.ts 72.72% 3 Missing ⚠️
src/services/chat.ts 93.54% 2 Missing ⚠️
src/services/message/_deprecated.ts 50.00% 2 Missing ⚠️
src/services/message/client.ts 50.00% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6452      +/-   ##
==========================================
- Coverage   91.54%   91.49%   -0.05%     
==========================================
  Files         690      697       +7     
  Lines       63998    65128    +1130     
  Branches     4389     4400      +11     
==========================================
+ Hits        58587    59590    +1003     
- Misses       5411     5538     +127     
Flag Coverage Δ
app 91.49% <88.03%> (-0.05%) ⬇️
server 97.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vercel vercel bot temporarily deployed to Preview – lobe-chat-preview February 24, 2025 17:48 Inactive
@arvinxx arvinxx marked this pull request as ready for review February 24, 2025 17:54
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Feb 24, 2025
@arvinxx arvinxx changed the title ✨ feat: support application search feature ✨ feat: support application search with searchXNG Feb 24, 2025
@arvinxx arvinxx merged commit b61b5fc into main Feb 24, 2025
17 of 18 checks passed
@arvinxx arvinxx deleted the feat/searchXNG branch February 24, 2025 18:50
@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

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.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request Feb 24, 2025
## [Version&nbsp;1.64.0](v1.63.3...v1.64.0)
<sup>Released on **2025-02-24**</sup>

#### ✨ Features

- **misc**: Support application search with searchXNG.

<br/>

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

#### What's improved

* **misc**: Support application search with searchXNG, closes [#6452](#6452) ([b61b5fc](b61b5fc))

</details>

<div align="right">

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

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.64.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@cy948 cy948 mentioned this pull request Feb 25, 2025
8 tasks
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


After SEARXNG_URL=XXX is configured, no return will be made after the search is triggered, and the return result will be empty

likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
* ✨ feat: add builtin search with SearXNG

* ♻️ refactor: refactor the plugin error

* add impl

* update search

* improve search card style

* fix lint

* fix calling

* update i18n

* fix tests

* refactor the portal plugin design

* update i18n

* update

* fix tests

* add search header tag

* refactor for the search visible
likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
## [Version&nbsp;1.64.0](lobehub/lobe-chat@v1.63.3...v1.64.0)
<sup>Released on **2025-02-24**</sup>

#### ✨ Features

- **misc**: Support application search with searchXNG.

<br/>

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

#### What's improved

* **misc**: Support application search with searchXNG, closes [lobehub#6452](lobehub#6452) ([b61b5fc](lobehub@b61b5fc))

</details>

<div align="right">

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

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 released size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
2 participants