@lobehub/chat 1.70.1 → 1.70.3

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.70.3](https://github.com/lobehub/lobe-chat/compare/v1.70.2...v1.70.3)
6
+
7
+ <sup>Released on **2025-03-11**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **spelling**: Correct "broswer" to "browser" across codebase.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **spelling**: Correct "broswer" to "browser" across codebase, closes [#6876](https://github.com/lobehub/lobe-chat/issues/6876) ([8d677a2](https://github.com/lobehub/lobe-chat/commit/8d677a2))
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.70.2](https://github.com/lobehub/lobe-chat/compare/v1.70.1...v1.70.2)
31
+
32
+ <sup>Released on **2025-03-10**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Update cvpr cvf url rules.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Update cvpr cvf url rules, closes [#6860](https://github.com/lobehub/lobe-chat/issues/6860) ([c299067](https://github.com/lobehub/lobe-chat/commit/c299067))
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.70.1](https://github.com/lobehub/lobe-chat/compare/v1.70.0...v1.70.1)
6
56
 
7
57
  <sup>Released on **2025-03-10**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2025-03-11",
5
+ "version": "1.70.3"
6
+ },
7
+ {
8
+ "children": {
9
+ "fixes": [
10
+ "Update cvpr cvf url rules."
11
+ ]
12
+ },
13
+ "date": "2025-03-10",
14
+ "version": "1.70.2"
15
+ },
2
16
  {
3
17
  "children": {
4
18
  "fixes": [
@@ -289,7 +289,7 @@
289
289
  "title": "زبان تشخیص گفتار"
290
290
  },
291
291
  "sttService": {
292
- "desc": "در این میان، broswer به سرویس تشخیص گفتار بومی مرورگر اشاره دارد",
292
+ "desc": "در این میان، browser به سرویس تشخیص گفتار بومی مرورگر اشاره دارد",
293
293
  "title": "سرویس تشخیص گفتار"
294
294
  },
295
295
  "title": "سرویس‌های گفتاری",
@@ -289,7 +289,7 @@
289
289
  "title": "语音识别语种"
290
290
  },
291
291
  "sttService": {
292
- "desc": "其中 broswer 为浏览器原生的语音识别服务",
292
+ "desc": "其中 browser 为浏览器原生的语音识别服务",
293
293
  "title": "语音识别服务"
294
294
  },
295
295
  "title": "语音服务",
@@ -289,7 +289,7 @@
289
289
  "title": "語音識別語種"
290
290
  },
291
291
  "sttService": {
292
- "desc": "其中 broswer 為瀏覽器原生的語音識別服務",
292
+ "desc": "其中 browser 為瀏覽器原生的語音識別服務",
293
293
  "title": "語音識別服務"
294
294
  },
295
295
  "title": "語音服務",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.70.1",
3
+ "version": "1.70.3",
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",
@@ -67,4 +67,9 @@ export const crawUrlRules: CrawlUrlRule[] = [
67
67
  impls: ['jina'],
68
68
  urlPattern: 'https://developer.mozilla.org(.*)',
69
69
  },
70
+ // cvpr thecvf
71
+ {
72
+ impls: ['jina'],
73
+ urlPattern: 'https://cvpr.thecvf.com(.*)',
74
+ },
70
75
  ];
@@ -151,7 +151,7 @@ export const filterEnabledModels = (provider: ModelProviderCard) => {
151
151
  return provider.chatModels.filter((v) => v.enabled).map((m) => m.id);
152
152
  };
153
153
 
154
- export const isProviderDisableBroswerRequest = (id: string) => {
154
+ export const isProviderDisableBrowserRequest = (id: string) => {
155
155
  const provider = DEFAULT_MODEL_PROVIDER_LIST.find((v) => v.id === id && v.disableBrowserRequest);
156
156
  return !!provider;
157
157
  };
@@ -291,7 +291,7 @@ export default {
291
291
  title: '语音识别语种',
292
292
  },
293
293
  sttService: {
294
- desc: '其中 broswer 为浏览器原生的语音识别服务',
294
+ desc: '其中 browser 为浏览器原生的语音识别服务',
295
295
  title: '语音识别服务',
296
296
  },
297
297
  title: '语音服务',
@@ -1,4 +1,4 @@
1
- import { isProviderDisableBroswerRequest } from '@/config/modelProviders';
1
+ import { isProviderDisableBrowserRequest } from '@/config/modelProviders';
2
2
  import { AIProviderStoreState } from '@/store/aiInfra/initialState';
3
3
  import { AiProviderRuntimeConfig } from '@/types/aiProvider';
4
4
  import { GlobalLLMProviderKey } from '@/types/user/settings';
@@ -59,8 +59,8 @@ const isProviderFetchOnClient =
59
59
  (provider: GlobalLLMProviderKey | string) => (s: AIProviderStoreState) => {
60
60
  const config = providerConfigById(provider)(s);
61
61
 
62
- // If the provider already disable broswer request in model config, force on Server.
63
- if (isProviderDisableBroswerRequest(provider)) return false;
62
+ // If the provider already disable browser request in model config, force on Server.
63
+ if (isProviderDisableBrowserRequest(provider)) return false;
64
64
 
65
65
  // If the provider in the whitelist, follow the user settings
66
66
  if (providerWhitelist.has(provider) && typeof config?.fetchOnClient !== 'undefined')
@@ -110,10 +110,10 @@ describe('modelConfigSelectors', () => {
110
110
  expect(modelConfigSelectors.isProviderFetchOnClient('azure')(s)).toBe(true);
111
111
  });
112
112
 
113
- // Qwen provider not work in broswer request. Please skip this case if it work in future.
113
+ // Qwen provider not work in browser request. Please skip this case if it work in future.
114
114
  // Issue: https://github.com/lobehub/lobe-chat/issues/3108
115
115
  // PR: https://github.com/lobehub/lobe-chat/pull/3133
116
- it('client fecth should be disabled if provider is disable broswer request', () => {
116
+ it('client fecth should be disabled if provider is disable browser request', () => {
117
117
  const s = merge(initialSettingsState, {
118
118
  settings: {
119
119
  languageModel: {
@@ -1,4 +1,4 @@
1
- import { isProviderDisableBroswerRequest } from '@/config/modelProviders';
1
+ import { isProviderDisableBrowserRequest } from '@/config/modelProviders';
2
2
  import { UserStore } from '@/store/user';
3
3
  import { GlobalLLMProviderKey } from '@/types/user/settings';
4
4
 
@@ -19,8 +19,8 @@ const providerWhitelist = new Set(['ollama']);
19
19
  const isProviderFetchOnClient = (provider: GlobalLLMProviderKey | string) => (s: UserStore) => {
20
20
  const config = getProviderConfigById(provider)(s);
21
21
 
22
- // If the provider already disable broswer request in model config, force on Server.
23
- if (isProviderDisableBroswerRequest(provider)) return false;
22
+ // If the provider already disable browser request in model config, force on Server.
23
+ if (isProviderDisableBrowserRequest(provider)) return false;
24
24
 
25
25
  // If the provider in the whitelist, follow the user settings
26
26
  if (providerWhitelist.has(provider) && typeof config?.fetchOnClient !== 'undefined')