@lobehub/chat 1.131.1 → 1.131.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,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.131.2](https://github.com/lobehub/lobe-chat/compare/v1.131.1...v1.131.2)
6
+
7
+ <sup>Released on **2025-09-21**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Use ID as name if provider name is empty.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Use ID as name if provider name is empty, closes [#9356](https://github.com/lobehub/lobe-chat/issues/9356) ([7f60544](https://github.com/lobehub/lobe-chat/commit/7f60544))
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
+
5
30
  ### [Version 1.131.1](https://github.com/lobehub/lobe-chat/compare/v1.131.0...v1.131.1)
6
31
 
7
32
  <sup>Released on **2025-09-21**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Use ID as name if provider name is empty."
6
+ ]
7
+ },
8
+ "date": "2025-09-21",
9
+ "version": "1.131.2"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.131.1",
3
+ "version": "1.131.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",
@@ -36,7 +36,13 @@ const CreateNewProvider = memo<CreateNewProviderProps>(({ onClose, open }) => {
36
36
  setLoading(true);
37
37
 
38
38
  try {
39
- await createNewAiProvider(values);
39
+ // 如果 name 为空,使用 id 作为 name
40
+ const finalValues = {
41
+ ...values,
42
+ name: values.name || values.id,
43
+ };
44
+
45
+ await createNewAiProvider(finalValues);
40
46
  setLoading(false);
41
47
  router.push(`/settings/provider/${values.id}`);
42
48
  message.success(t('createNewAiProvider.createSuccess'));
@@ -71,7 +77,6 @@ const CreateNewProvider = memo<CreateNewProviderProps>(({ onClose, open }) => {
71
77
  label: t('createNewAiProvider.name.title'),
72
78
  minWidth: 400,
73
79
  name: 'name',
74
- rules: [{ message: t('createNewAiProvider.name.required'), required: true }],
75
80
  },
76
81
  {
77
82
  children: (