@lobehub/chat 1.74.1 → 1.74.2

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,32 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.74.2](https://github.com/lobehub/lobe-chat/compare/v1.74.1...v1.74.2)
6
+
7
+ <sup>Released on **2025-03-22**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: CheckModel change clears other configs, update input and output prices.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: CheckModel change clears other configs, closes [#7083](https://github.com/lobehub/lobe-chat/issues/7083) ([a416c64](https://github.com/lobehub/lobe-chat/commit/a416c64))
21
+ - **misc**: Update input and output prices, closes [#7094](https://github.com/lobehub/lobe-chat/issues/7094) ([460c56f](https://github.com/lobehub/lobe-chat/commit/460c56f))
22
+
23
+ </details>
24
+
25
+ <div align="right">
26
+
27
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
28
+
29
+ </div>
30
+
5
31
  ### [Version 1.74.1](https://github.com/lobehub/lobe-chat/compare/v1.74.0...v1.74.1)
6
32
 
7
33
  <sup>Released on **2025-03-22**</sup>
package/README.md CHANGED
@@ -331,9 +331,9 @@ In addition, these plugins are not limited to news aggregation, but can also ext
331
331
  | [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
332
  | [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
333
  | [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
- | [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2024-12-22**</sup> | Analyze stocks and get comprehensive real-time investment data and analytics.<br/>`stock` |
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>**46**</kbd>](https://lobechat.com/discover/plugins)
336
+ > 📊 Total plugins: [<kbd>**45**</kbd>](https://lobechat.com/discover/plugins)
337
337
 
338
338
  <!-- PLUGIN LIST -->
339
339
 
package/README.zh-CN.md CHANGED
@@ -324,9 +324,9 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
324
324
  | [网页](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | 智能网页搜索,读取和分析页面,以提供来自 Google 结果的全面答案。<br/>`网页` `搜索` |
325
325
  | [MintbaseSearch](https://lobechat.com/discover/plugin/mintbasesearch)<br/><sup>By **mintbase** on **2024-12-31**</sup> | 在 NEAR 协议上查找任何 NFT 数据。<br/>`加密货币` `nft` |
326
326
  | [必应网页搜索](https://lobechat.com/discover/plugin/Bingsearch-identifier)<br/><sup>By **FineHow** on **2024-12-22**</sup> | 通过 BingApi 搜索互联网上的信息<br/>`bingsearch` |
327
- | [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2024-12-22**</sup> | 分析股票并获取全面的实时投资数据和分析。<br/>`股票` |
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>**46**</kbd>](https://lobechat.com/discover/plugins)
329
+ > 📊 Total plugins: [<kbd>**45**</kbd>](https://lobechat.com/discover/plugins)
330
330
 
331
331
  <!-- PLUGIN LIST -->
332
332
 
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "CheckModel change clears other configs, update input and output prices."
6
+ ]
7
+ },
8
+ "date": "2025-03-22",
9
+ "version": "1.74.2"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
@@ -580,6 +580,15 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
580
580
  - Default: `-`
581
581
  - Example: `-all,+deepseek-r1->deepseek-r1-250120,+deepseek-v3->deepseek-v3-241226,+doubao-1.5-pro-256k->doubao-1-5-pro-256k-250115,+doubao-1.5-pro-32k->doubao-1-5-pro-32k-250115,+doubao-1.5-lite-32k->doubao-1-5-lite-32k-250115`
582
582
 
583
+ ### `VOLCENGINE_PROXY_URL`
584
+
585
+ - Type: Optional
586
+ - Description: If you manually configure the Volcengine API proxy, you can use this configuration item to override the default Volcengine API request base URL
587
+ - Default: `https://ark.cn-beijing.volces.com/api/v3`
588
+ - Example: `https://my-volcengine-proxy.com/v1`
589
+
590
+ ## InfiniAI
591
+
583
592
  ### `INFINIAI_API_KEY`
584
593
 
585
594
  - Type: Required
@@ -595,10 +604,3 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
595
604
  - Example: `-all,+qwq-32b,+deepseek-r1`
596
605
 
597
606
  [model-list]: /docs/self-hosting/advanced/model-list
598
-
599
- ### `VOLCENGINE_PROXY_URL`
600
-
601
- - Type: Optional
602
- - Description: If you manually configure the Volcengine API proxy, you can use this configuration item to override the default Volcengine API request base URL
603
- - Default: `https://ark.cn-beijing.volces.com/api/v3`
604
- - Example: `https://my-volcengine-proxy.com/v1`
@@ -579,6 +579,15 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
579
579
  - 默认值:`-`
580
580
  - 示例:`-all,+deepseek-r1->deepseek-r1-250120,+deepseek-v3->deepseek-v3-241226,+doubao-1.5-pro-256k->doubao-1-5-pro-256k-250115,+doubao-1.5-pro-32k->doubao-1-5-pro-32k-250115,+doubao-1.5-lite-32k->doubao-1-5-lite-32k-250115`
581
581
 
582
+ ### `VOLCENGINE_PROXY_URL`
583
+
584
+ - 类型:可选
585
+ - 描述:如果你手动配置了 Volcengine 接口代理,可以使用此配置项来覆盖默认的 Volcengine API 请求基础 URL
586
+ - 默认值:`https://ark.cn-beijing.volces.com/api/v3`
587
+ - 示例:`https://my-volcengine-proxy.com/v1`
588
+
589
+ ## InfiniAI
590
+
582
591
  ### `INFINIAI_API_KEY`
583
592
 
584
593
  - 类型:必选
@@ -594,10 +603,3 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
594
603
  - 示例:`-all,+qwq-32b,+deepseek-r1`
595
604
 
596
605
  [model-list]: /zh/docs/self-hosting/advanced/model-list
597
-
598
- ### `VOLCENGINE_PROXY_URL`
599
-
600
- - 类型:可选
601
- - 描述:如果你手动配置了 Volcengine 接口代理,可以使用此配置项来覆盖默认的 Volcengine API 请求基础 URL
602
- - 默认值:`https://ark.cn-beijing.volces.com/api/v3`
603
- - 示例:`https://my-volcengine-proxy.com/v1`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.74.1",
3
+ "version": "1.74.2",
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",
@@ -59,6 +59,7 @@ const Checker = memo<ConnectionCheckerProps>(
59
59
  );
60
60
  const totalModels = useAiInfraStore(aiModelSelectors.aiProviderChatModelListIds);
61
61
  const updateAiProviderConfig = useAiInfraStore((s) => s.updateAiProviderConfig);
62
+ const currentConfig = useAiInfraStore(aiProviderSelectors.providerConfigById(provider));
62
63
 
63
64
  const [loading, setLoading] = useState(false);
64
65
  const [pass, setPass] = useState(false);
@@ -126,7 +127,10 @@ const Checker = memo<ConnectionCheckerProps>(
126
127
  listItemHeight={36}
127
128
  onSelect={async (value) => {
128
129
  setCheckModel(value);
129
- await updateAiProviderConfig(provider, { checkModel: value });
130
+ await updateAiProviderConfig(provider, {
131
+ ...currentConfig,
132
+ checkModel: value,
133
+ });
130
134
  }}
131
135
  optionRender={({ value }) => {
132
136
  return (
@@ -16,8 +16,8 @@ const qwenChatModels: AIChatModelCard[] = [
16
16
  organization: 'Qwen',
17
17
  pricing: {
18
18
  currency: 'CNY',
19
- input: 0,
20
- output: 0,
19
+ input: 1.6,
20
+ output: 4,
21
21
  },
22
22
  releasedAt: '2025-03-06',
23
23
  settings: {
@@ -253,8 +253,8 @@ const qwenChatModels: AIChatModelCard[] = [
253
253
  organization: 'Qwen',
254
254
  pricing: {
255
255
  currency: 'CNY',
256
- input: 0,
257
- output: 0,
256
+ input: 2,
257
+ output: 6,
258
258
  },
259
259
  releasedAt: '2025-03-06',
260
260
  type: 'chat',
@@ -20,8 +20,8 @@ const doubaoChatModels: AIChatModelCard[] = [
20
20
  maxOutput: 8000,
21
21
  pricing: {
22
22
  currency: 'CNY',
23
- input: 2, // 2.24 恢复原价 4, 16
24
- output: 8,
23
+ input: 4,
24
+ output: 16,
25
25
  },
26
26
  type: 'chat',
27
27
  },