@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 +50 -0
- package/changelog/v1.json +14 -0
- package/locales/fa-IR/setting.json +1 -1
- package/locales/zh-CN/setting.json +1 -1
- package/locales/zh-TW/setting.json +1 -1
- package/package.json +1 -1
- package/packages/web-crawler/src/urlRules.ts +5 -0
- package/src/config/modelProviders/index.ts +1 -1
- package/src/locales/default/setting.ts +1 -1
- package/src/store/aiInfra/slices/aiProvider/selectors.ts +3 -3
- package/src/store/user/slices/modelList/selectors/modelConfig.test.ts +2 -2
- package/src/store/user/slices/modelList/selectors/modelConfig.ts +3 -3
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
|
+
[](#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
|
+
[](#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
@@ -289,7 +289,7 @@
|
|
289
289
|
"title": "زبان تشخیص گفتار"
|
290
290
|
},
|
291
291
|
"sttService": {
|
292
|
-
"desc": "در این میان،
|
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.
|
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",
|
@@ -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
|
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
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
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
|
63
|
-
if (
|
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
|
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
|
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 {
|
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
|
23
|
-
if (
|
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')
|