@lobehub/chat 0.47.0 → 0.48.0

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 0.48.0](https://github.com/lobehub/lobe-chat/compare/v0.47.0...v0.48.0)
6
+
7
+ <sup>Released on **2023-08-15**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **misc**: Import SiOpenai icon and replace 'Tag' component in chat feature.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **misc**: Import SiOpenai icon and replace 'Tag' component in chat feature ([98b0352](https://github.com/lobehub/lobe-chat/commit/98b0352))
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 0.47.0](https://github.com/lobehub/lobe-chat/compare/v0.46.1...v0.47.0)
6
31
 
7
32
  <sup>Released on **2023-08-15**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -1,6 +1,6 @@
1
- import { Avatar, List } from '@lobehub/ui';
1
+ import { SiOpenai } from '@icons-pack/react-simple-icons';
2
+ import { Avatar, List, Tag } from '@lobehub/ui';
2
3
  import { useHover } from 'ahooks';
3
- import { Tag } from 'antd';
4
4
  import { createStyles } from 'antd-style';
5
5
  import { memo, useMemo, useRef, useState } from 'react';
6
6
  import { Flexbox } from 'react-layout-kit';
@@ -88,7 +88,7 @@ const SessionItem = memo<SessionItemProps>(({ id }) => {
88
88
  () =>
89
89
  !showModel ? undefined : (
90
90
  <Flexbox gap={4} horizontal style={{ flexWrap: 'wrap' }}>
91
- {showModel && <Tag bordered={false}>{model}</Tag>}
91
+ {showModel && <Tag icon={<SiOpenai size={'1em'} />}>{model}</Tag>}
92
92
  </Flexbox>
93
93
  ),
94
94
  [showModel, model],
@@ -1,3 +1,4 @@
1
+ import { SiOpenai } from '@icons-pack/react-simple-icons';
1
2
  import { Tag } from '@lobehub/ui';
2
3
  import { createStyles } from 'antd-style';
3
4
  import { ReactNode } from 'react';
@@ -44,7 +45,7 @@ const MessageExtra = ({
44
45
 
45
46
  const modelTag = (
46
47
  <div>
47
- <Tag>{extra?.fromModel as string}</Tag>
48
+ <Tag icon={<SiOpenai size={'1em'} />}>{extra?.fromModel as string}</Tag>
48
49
  </div>
49
50
  );
50
51
 
@@ -58,10 +58,7 @@ const Header = memo<{ settings?: boolean }>(({ settings = true }) => {
58
58
  desc={displayDesc}
59
59
  tag={
60
60
  <>
61
- <Tag>
62
- <SiOpenai size={'11px'} style={{ marginTop: 2 }} />
63
- {model}
64
- </Tag>
61
+ <Tag icon={<SiOpenai size={'1em'} />}>{model}</Tag>
65
62
  {plugins?.length > 0 && <PluginTag plugins={plugins} />}
66
63
  </>
67
64
  }
@@ -1,5 +1,5 @@
1
- import { Icon } from '@lobehub/ui';
2
- import { Tag, Typography } from 'antd';
1
+ import { Icon, Tag } from '@lobehub/ui';
2
+ import { Typography } from 'antd';
3
3
  import { useTheme } from 'antd-style';
4
4
  import { MessageSquareDashed } from 'lucide-react';
5
5
  import { memo } from 'react';