@lobehub/chat 1.36.26 → 1.36.27

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.36.27](https://github.com/lobehub/lobe-chat/compare/v1.36.26...v1.36.27)
6
+
7
+ <sup>Released on **2024-12-16**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Add unique keys to `<ModelList>` children.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Add unique keys to `<ModelList>` children, closes [#5042](https://github.com/lobehub/lobe-chat/issues/5042) ([c097d4a](https://github.com/lobehub/lobe-chat/commit/c097d4a))
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.36.26](https://github.com/lobehub/lobe-chat/compare/v1.36.25...v1.36.26)
6
31
 
7
32
  <sup>Released on **2024-12-16**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Add unique keys to <ModelList> children."
6
+ ]
7
+ },
8
+ "date": "2024-12-16",
9
+ "version": "1.36.27"
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.36.26",
3
+ "version": "1.36.27",
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",
@@ -5,7 +5,7 @@ import { Icon } from '@lobehub/ui';
5
5
  import { Button, Divider } from 'antd';
6
6
  import { useTheme } from 'antd-style';
7
7
  import { Brain, ChevronsUpDown } from 'lucide-react';
8
- import { memo, useState } from 'react';
8
+ import { Fragment, memo, useState } from 'react';
9
9
  import { useTranslation } from 'react-i18next';
10
10
  import { Flexbox } from 'react-layout-kit';
11
11
 
@@ -38,10 +38,10 @@ const ModelList = memo<ModelListProps>(({ mobile, modelData, identifier }) => {
38
38
  title={t('providers.supportedModels')}
39
39
  >
40
40
  {list.map((item, index) => (
41
- <>
42
- <ModelItem key={item.identifier} mobile={mobile} {...item} />
43
- {index < modelData.length - 1 && <Divider key={index} style={{ margin: 0 }} />}
44
- </>
41
+ <Fragment key={item.identifier}>
42
+ <ModelItem mobile={mobile} {...item} />
43
+ {index < modelData.length - 1 && <Divider style={{ margin: 0 }} />}
44
+ </Fragment>
45
45
  ))}
46
46
  {modelData.length > DEFAULT_LENGTH && !showAll && (
47
47
  <Flexbox padding={16}>