@lobehub/chat 1.114.5 → 1.114.6
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/.prettierignore +0 -1
- package/.vscode/settings.json +86 -80
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +5 -0
- package/package.json +2 -2
- package/src/app/[variants]/(main)/files/[id]/page.tsx +0 -2
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/ImageUpload.tsx +194 -183
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/ImageUrl.tsx +2 -2
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/ImageUrlsUpload.tsx +26 -2
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/MultiImagesUpload/ImageManageModal.tsx +33 -19
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/MultiImagesUpload/index.tsx +17 -7
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/hooks/useUploadFilesValidation.ts +77 -0
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/utils/imageValidation.ts +117 -0
- package/src/libs/standard-parameters/index.ts +3 -0
- package/src/locales/default/components.ts +8 -0
- package/src/store/aiInfra/slices/aiProvider/__tests__/action.test.ts +29 -29
- package/src/store/aiInfra/slices/aiProvider/action.ts +80 -36
- package/src/store/image/slices/generationConfig/hooks.ts +10 -0
package/.prettierignore
CHANGED
package/.vscode/settings.json
CHANGED
@@ -1,89 +1,95 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
"
|
24
|
-
|
25
|
-
|
26
|
-
|
2
|
+
"editor.codeActionsOnSave": {
|
3
|
+
"source.addMissingImports": "explicit",
|
4
|
+
"source.fixAll.eslint": "explicit",
|
5
|
+
"source.fixAll.stylelint": "explicit"
|
6
|
+
},
|
7
|
+
"editor.formatOnSave": true,
|
8
|
+
// don't show errors, but fix when save and git pre commit
|
9
|
+
"eslint.rules.customizations": [
|
10
|
+
{ "rule": "import/order", "severity": "off" },
|
11
|
+
{ "rule": "prettier/prettier", "severity": "off" },
|
12
|
+
{ "rule": "react/jsx-sort-props", "severity": "off" },
|
13
|
+
{ "rule": "sort-keys-fix/sort-keys-fix", "severity": "off" },
|
14
|
+
{ "rule": "typescript-sort-keys/interface", "severity": "off" }
|
15
|
+
],
|
16
|
+
"eslint.validate": [
|
17
|
+
"javascript",
|
18
|
+
"javascriptreact",
|
19
|
+
"typescript",
|
20
|
+
"typescriptreact",
|
21
|
+
"markdown",
|
22
|
+
// support mdx
|
23
|
+
"mdx"
|
24
|
+
],
|
25
|
+
"npm.packageManager": "pnpm",
|
26
|
+
"search.exclude": {
|
27
|
+
"**/node_modules": true,
|
28
|
+
// useless to search this big folder
|
29
|
+
"locales": true
|
30
|
+
},
|
31
|
+
"stylelint.validate": [
|
32
|
+
"css",
|
33
|
+
"postcss",
|
34
|
+
// make stylelint work with tsx antd-style css template string
|
35
|
+
"typescriptreact"
|
36
|
+
],
|
37
|
+
"vitest.maximumConfigs": 10,
|
38
|
+
"workbench.editor.customLabels.patterns": {
|
39
|
+
"**/app/**/[[]*[]]/[[]*[]]/page.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • page component",
|
40
|
+
"**/app/**/[[]*[]]/page.tsx": "${dirname(1)}/${dirname} • page component",
|
41
|
+
"**/app/**/page.tsx": "${dirname} • page component",
|
27
42
|
|
28
|
-
|
29
|
-
|
30
|
-
|
43
|
+
"**/app/**/[[]*[]]/[[]*[]]/layout.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • page layout",
|
44
|
+
"**/app/**/[[]*[]]/layout.tsx": "${dirname(1)}/${dirname} • page layout",
|
45
|
+
"**/app/**/layout.tsx": "${dirname} • page layout",
|
31
46
|
|
32
|
-
|
33
|
-
|
34
|
-
|
47
|
+
"**/app/**/[[]*[]]/[[]*[]]/default.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • slot default",
|
48
|
+
"**/app/**/[[]*[]]/default.tsx": "${dirname(1)}/${dirname} • slot default",
|
49
|
+
"**/app/**/default.tsx": "${dirname} • slot default",
|
35
50
|
|
36
|
-
|
37
|
-
|
38
|
-
|
51
|
+
"**/app/**/[[]*[]]/[[]*[]]/error.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • error component",
|
52
|
+
"**/app/**/[[]*[]]/error.tsx": "${dirname(1)}/${dirname} • error component",
|
53
|
+
"**/app/**/error.tsx": "${dirname} • error component",
|
39
54
|
|
40
|
-
|
41
|
-
|
42
|
-
|
55
|
+
"**/app/**/[[]*[]]/[[]*[]]/loading.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • loading component",
|
56
|
+
"**/app/**/[[]*[]]/loading.tsx": "${dirname(1)}/${dirname} • loading component",
|
57
|
+
"**/app/**/loading.tsx": "${dirname} • loading component",
|
43
58
|
|
44
|
-
|
45
|
-
|
59
|
+
"**/src/**/route.ts": "${dirname(1)}/${dirname} • route",
|
60
|
+
"**/src/**/index.tsx": "${dirname} • component",
|
46
61
|
|
47
|
-
|
48
|
-
|
49
|
-
|
62
|
+
"**/src/database/repositories/*/index.ts": "${dirname} • db repository",
|
63
|
+
"**/src/database/models/*.ts": "${filename} • db model",
|
64
|
+
"**/src/database/schemas/*.ts": "${filename} • db schema",
|
50
65
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"**/src/store/*/action.ts": "${dirname} • action",
|
56
|
-
"**/src/store/*/slices/*/action.ts": "${dirname(2)}/${dirname} • action",
|
57
|
-
"**/src/store/*/slices/*/actions/*.ts": "${dirname(1)}/${dirname}/${filename} • action",
|
58
|
-
|
59
|
-
"**/src/store/*/initialState.ts": "${dirname} • state",
|
60
|
-
"**/src/store/*/slices/*/initialState.ts": "${dirname(2)}/${dirname} • state",
|
61
|
-
|
62
|
-
"**/src/store/*/selectors.ts": "${dirname} • selectors",
|
63
|
-
"**/src/store/*/slices/*/selectors.ts": "${dirname(2)}/${dirname} • selectors",
|
64
|
-
|
65
|
-
"**/src/store/*/reducer.ts": "${dirname} • reducer",
|
66
|
-
"**/src/store/*/slices/*/reducer.ts": "${dirname(2)}/${dirname} • reducer",
|
67
|
-
|
68
|
-
"**/src/config/modelProviders/*.ts": "${filename} • provider",
|
69
|
-
"**/src/config/aiModels/*.ts": "${filename} • model",
|
70
|
-
"**/src/config/paramsSchemas/*/*.json": "${dirname(1)}/${filename} • params",
|
71
|
-
"**/packages/model-runtime/src/*/index.ts": "${dirname} • runtime",
|
72
|
-
|
73
|
-
"**/src/server/services/*/index.ts": "${dirname} • server/service",
|
74
|
-
"**/src/server/routers/lambda/*.ts": "${filename} • lambda",
|
75
|
-
"**/src/server/routers/async/*.ts": "${filename} • async",
|
76
|
-
"**/src/server/routers/edge/*.ts": "${filename} • edge",
|
66
|
+
"**/src/services/*.ts": "${filename} • service",
|
67
|
+
"**/src/services/*/client.ts": "${dirname} • client service",
|
68
|
+
"**/src/services/*/server.ts": "${dirname} • server service",
|
77
69
|
|
78
|
-
|
79
|
-
},
|
80
|
-
"
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
}
|
70
|
+
"**/src/store/*/action.ts": "${dirname} • action",
|
71
|
+
"**/src/store/*/slices/*/action.ts": "${dirname(2)}/${dirname} • action",
|
72
|
+
"**/src/store/*/slices/*/actions/*.ts": "${dirname(1)}/${dirname}/${filename} • action",
|
73
|
+
|
74
|
+
"**/src/store/*/initialState.ts": "${dirname} • state",
|
75
|
+
"**/src/store/*/slices/*/initialState.ts": "${dirname(2)}/${dirname} • state",
|
76
|
+
|
77
|
+
"**/src/store/*/selectors.ts": "${dirname} • selectors",
|
78
|
+
"**/src/store/*/slices/*/selectors.ts": "${dirname(2)}/${dirname} • selectors",
|
79
|
+
|
80
|
+
"**/src/store/*/reducer.ts": "${dirname} • reducer",
|
81
|
+
"**/src/store/*/slices/*/reducer.ts": "${dirname(2)}/${dirname} • reducer",
|
82
|
+
|
83
|
+
"**/src/config/modelProviders/*.ts": "${filename} • provider",
|
84
|
+
"**/src/config/aiModels/*.ts": "${filename} • model",
|
85
|
+
"**/src/config/paramsSchemas/*/*.json": "${dirname(1)}/${filename} • params",
|
86
|
+
"**/packages/model-runtime/src/*/index.ts": "${dirname} • runtime",
|
87
|
+
|
88
|
+
"**/src/server/services/*/index.ts": "${dirname} • server/service",
|
89
|
+
"**/src/server/routers/lambda/*.ts": "${filename} • lambda",
|
90
|
+
"**/src/server/routers/async/*.ts": "${filename} • async",
|
91
|
+
"**/src/server/routers/edge/*.ts": "${filename} • edge",
|
92
|
+
|
93
|
+
"**/src/locales/default/*.ts": "${filename} • locale"
|
94
|
+
}
|
95
|
+
}
|
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.114.6](https://github.com/lobehub/lobe-chat/compare/v1.114.5...v1.114.6)
|
6
|
+
|
7
|
+
<sup>Released on **2025-08-22**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **files**: Remove force-static rendering to enable session access.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **files**: Remove force-static rendering to enable session access, closes [#8900](https://github.com/lobehub/lobe-chat/issues/8900) ([6100d21](https://github.com/lobehub/lobe-chat/commit/6100d21))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.114.5](https://github.com/lobehub/lobe-chat/compare/v1.114.4...v1.114.5)
|
6
31
|
|
7
32
|
<sup>Released on **2025-08-22**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.114.
|
3
|
+
"version": "1.114.6",
|
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",
|
@@ -364,7 +364,7 @@
|
|
364
364
|
"vite": "^5.4.19",
|
365
365
|
"vitest": "^3.2.4"
|
366
366
|
},
|
367
|
-
"packageManager": "pnpm@10.
|
367
|
+
"packageManager": "pnpm@10.15.0",
|
368
368
|
"publishConfig": {
|
369
369
|
"access": "public",
|
370
370
|
"registry": "https://registry.npmjs.org"
|