@lobehub/chat 1.74.3 → 1.74.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.74.5](https://github.com/lobehub/lobe-chat/compare/v1.74.4...v1.74.5)
6
+
7
+ <sup>Released on **2025-03-23**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix wechat login error with next-auth.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix wechat login error with next-auth, closes [#6585](https://github.com/lobehub/lobe-chat/issues/6585) ([c58d77a](https://github.com/lobehub/lobe-chat/commit/c58d77a))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.74.4](https://github.com/lobehub/lobe-chat/compare/v1.74.3...v1.74.4)
31
+
32
+ <sup>Released on **2025-03-23**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Upgrade next to 15.2.3 to fix CVE-2025-29927.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Upgrade next to 15.2.3 to fix CVE-2025-29927, closes [#7105](https://github.com/lobehub/lobe-chat/issues/7105) ([187a655](https://github.com/lobehub/lobe-chat/commit/187a655))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.74.3](https://github.com/lobehub/lobe-chat/compare/v1.74.2...v1.74.3)
6
56
 
7
57
  <sup>Released on **2025-03-22**</sup>
package/README.md CHANGED
@@ -226,7 +226,7 @@ We have implemented support for the following model service providers:
226
226
  - **[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.
227
227
  - **[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.
228
228
  - **[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.
229
- - **[Search1API](https://lobechat.com/discover/provider/search1api)**:
229
+ - **[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.
230
230
  - **[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.
231
231
 
232
232
  </details>
@@ -328,12 +328,12 @@ In addition, these plugins are not limited to news aggregation, but can also ext
328
328
 
329
329
  | Recent Submits | Description |
330
330
  | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
331
+ | [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-03-23**</sup> | Analyze stocks and get comprehensive real-time investment data and analytics.<br/>`stock` |
331
332
  | [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` |
332
333
  | [MintbaseSearch](https://lobechat.com/discover/plugin/mintbasesearch)<br/><sup>By **mintbase** on **2024-12-31**</sup> | Find any NFT data on the NEAR Protocol.<br/>`crypto` `nft` |
333
334
  | [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` |
334
- | [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` |
335
335
 
336
- > 📊 Total plugins: [<kbd>**45**</kbd>](https://lobechat.com/discover/plugins)
336
+ > 📊 Total plugins: [<kbd>**46**</kbd>](https://lobechat.com/discover/plugins)
337
337
 
338
338
  <!-- PLUGIN LIST -->
339
339
 
package/README.zh-CN.md CHANGED
@@ -226,7 +226,7 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
226
226
  - **[Gitee AI](https://lobechat.com/discover/provider/giteeai)**: Gitee AI 的 Serverless API 为 AI 开发者提供开箱即用的大模型推理 API 服务。
227
227
  - **[Taichu](https://lobechat.com/discover/provider/taichu)**: 中科院自动化研究所和武汉人工智能研究院推出新一代多模态大模型,支持多轮问答、文本创作、图像生成、3D 理解、信号分析等全面问答任务,拥有更强的认知、理解、创作能力,带来全新互动体验。
228
228
  - **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI 是 360 公司推出的 AI 模型和服务平台,提供多种先进的自然语言处理模型,包括 360GPT2 Pro、360GPT Pro、360GPT Turbo 和 360GPT Turbo Responsibility 8K。这些模型结合了大规模参数和多模态能力,广泛应用于文本生成、语义理解、对话系统与代码生成等领域。通过灵活的定价策略,360 AI 满足多样化用户需求,支持开发者集成,推动智能化应用的革新和发展。
229
- - **[Search1API](https://lobechat.com/discover/provider/search1api)**:
229
+ - **[Search1API](https://lobechat.com/discover/provider/search1api)**: Search1API 提供可根据需要自行联网的 DeepSeek 系列模型的访问,包括标准版和快速版本,支持多种参数规模的模型选择。
230
230
  - **[InfiniAI](https://lobechat.com/discover/provider/infiniai)**: 为应用开发者提供高性能、易上手、安全可靠的大模型服务,覆盖从大模型开发到大模型服务化部署的全流程。
231
231
 
232
232
  </details>
@@ -321,12 +321,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
321
321
 
322
322
  | 最近新增 | 描述 |
323
323
  | -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
324
+ | [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-03-23**</sup> | 分析股票并获取全面的实时投资数据和分析。<br/>`股票` |
324
325
  | [网页](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | 智能网页搜索,读取和分析页面,以提供来自 Google 结果的全面答案。<br/>`网页` `搜索` |
325
326
  | [MintbaseSearch](https://lobechat.com/discover/plugin/mintbasesearch)<br/><sup>By **mintbase** on **2024-12-31**</sup> | 在 NEAR 协议上查找任何 NFT 数据。<br/>`加密货币` `nft` |
326
327
  | [必应网页搜索](https://lobechat.com/discover/plugin/Bingsearch-identifier)<br/><sup>By **FineHow** on **2024-12-22**</sup> | 通过 BingApi 搜索互联网上的信息<br/>`bingsearch` |
327
- | [谷歌自定义搜索引擎](https://lobechat.com/discover/plugin/google-cse)<br/><sup>By **vsnthdev** on **2024-12-02**</sup> | 通过他们的官方自定义搜索引擎 API 搜索谷歌。<br/>`网络` `搜索` |
328
328
 
329
- > 📊 Total plugins: [<kbd>**45**</kbd>](https://lobechat.com/discover/plugins)
329
+ > 📊 Total plugins: [<kbd>**46**</kbd>](https://lobechat.com/discover/plugins)
330
330
 
331
331
  <!-- PLUGIN LIST -->
332
332
 
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix wechat login error with next-auth."
6
+ ]
7
+ },
8
+ "date": "2025-03-23",
9
+ "version": "1.74.5"
10
+ },
11
+ {
12
+ "children": {
13
+ "fixes": [
14
+ "Upgrade next to 15.2.3 to fix CVE-2025-29927."
15
+ ]
16
+ },
17
+ "date": "2025-03-23",
18
+ "version": "1.74.4"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.74.3",
3
+ "version": "1.74.5",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -162,7 +162,7 @@
162
162
  "debug": "^4.4.0",
163
163
  "dexie": "^3.2.7",
164
164
  "diff": "^7.0.0",
165
- "drizzle-orm": "^0.40.0",
165
+ "drizzle-orm": "^0.41.0",
166
166
  "drizzle-zod": "^0.5.1",
167
167
  "epub2": "^3.0.2",
168
168
  "fast-deep-equal": "^3.1.3",
@@ -182,12 +182,12 @@
182
182
  "langfuse": "3.29.1",
183
183
  "langfuse-core": "3.29.1",
184
184
  "lodash-es": "^4.17.21",
185
- "lucide-react": "^0.482.0",
185
+ "lucide-react": "^0.483.0",
186
186
  "mammoth": "^1.9.0",
187
187
  "mdast-util-to-markdown": "^2.1.2",
188
188
  "modern-screenshot": "^4.5.5",
189
189
  "nanoid": "^5.0.9",
190
- "next": "^15.2.0",
190
+ "next": "^15.2.3",
191
191
  "next-auth": "beta",
192
192
  "next-mdx-remote": "^5.0.0",
193
193
  "nextjs-toploader": "^3.7.15",
@@ -218,7 +218,7 @@
218
218
  "react-lazy-load": "^4.0.1",
219
219
  "react-pdf": "^9.2.1",
220
220
  "react-rnd": "^10.4.14",
221
- "react-scan": "^0.2.0",
221
+ "react-scan": "^0.3.0",
222
222
  "react-virtuoso": "^4.12.3",
223
223
  "react-wrap-balancer": "^1.1.1",
224
224
  "remark": "^15.0.1",
@@ -981,21 +981,5 @@
981
981
 
982
982
  <i class="fi fi-close"></i>
983
983
  </div>
984
-
985
- <script src="//www.qiumiwu.com/static/pc/default/js/manifest.js?id=0d55e218a6cea212029bf84120f5827d"></script>
986
- <script src="//www.qiumiwu.com/static/pc/default/js/vendor.js?id=083d3c8483d62f6847a5d391d4e24f11"></script>
987
- <script src="//www.qiumiwu.com/static/pc/default/js/app.js?id=f1a291509f0d175a894051a7ab22c745"></script>
988
-
989
- <div style="display: none;">
990
- <script>
991
- var _hmt = _hmt || [];
992
- (function () {
993
- var hm = document.createElement('script');
994
- hm.src = 'https://hm.baidu.com/hm.js?62420aae5cf1333ec6c6ff58d318a990';
995
- var s = document.getElementsByTagName('script')[0];
996
- s.parentNode.insertBefore(hm, s);
997
- })();
998
- </script>
999
- </div>
1000
984
  </body>
1001
985
  </html>
@@ -30,6 +30,6 @@ describe('htmlToMarkdown', () => {
30
30
  const data = htmlToMarkdown(html, { url: item.url, filterOptions: item.filterOptions || {} });
31
31
 
32
32
  expect(data).toMatchSnapshot();
33
- }, 10000);
33
+ }, 20000);
34
34
  });
35
35
  });
@@ -19,8 +19,12 @@ export const GET = async (req: Request) => {
19
19
  res = await fetch(pluginStore.getPluginIndexUrl(DEFAULT_LANG));
20
20
  }
21
21
 
22
- const data = await res.json();
23
- return NextResponse.json(data);
22
+ if (res.ok) {
23
+ const data = await res.json();
24
+ return NextResponse.json(data);
25
+ }
26
+
27
+ return res;
24
28
  } catch (e) {
25
29
  console.error(e);
26
30
  return new Response(`failed to fetch agent market index`, {
@@ -1,4 +1,4 @@
1
- import WeChat from '@auth/core/providers/wechat';
1
+ import WeChat, { WeChatProfile } from '@auth/core/providers/wechat';
2
2
 
3
3
  import { CommonProviderConfig } from './sso.config';
4
4
 
@@ -9,7 +9,7 @@ const provider = {
9
9
  clientId: process.env.AUTH_WECHAT_ID,
10
10
  clientSecret: process.env.AUTH_WECHAT_SECRET,
11
11
  platformType: 'WebsiteApp',
12
- profile: (profile) => {
12
+ profile: (profile: WeChatProfile) => {
13
13
  return {
14
14
  email: null,
15
15
  id: profile.unionid,
@@ -18,6 +18,18 @@ const provider = {
18
18
  providerAccountId: profile.unionid,
19
19
  };
20
20
  },
21
+ style: { bg: '#fff', logo: 'https://authjs.dev/img/providers/wechat.svg', text: '#000' },
22
+ token: {
23
+ async conform(response: Response) {
24
+ const data = await response.json();
25
+ console.log('wechat data:', data);
26
+ return new Response(JSON.stringify({ ...data, token_type: 'bearer' }), {
27
+ headers: { 'Content-Type': 'application/json' },
28
+ });
29
+ },
30
+ params: { appid: process.env.AUTH_WECHAT_ID, secret: process.env.AUTH_WECHAT_SECRET },
31
+ url: 'https://api.weixin.qq.com/sns/oauth2/access_token',
32
+ },
21
33
  }),
22
34
  };
23
35