@lobehub/chat 0.22.0 → 0.22.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,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.22.2](https://github.com/lobehub/lobe-chat/compare/v0.22.1...v0.22.2)
6
+
7
+ <sup>Released on **2023-07-26**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: 优化 tooltip 显示.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: 优化 tooltip 显示 ([4ba0295](https://github.com/lobehub/lobe-chat/commit/4ba0295))
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
+
30
+ ### [Version 0.22.1](https://github.com/lobehub/lobe-chat/compare/v0.22.0...v0.22.1)
31
+
32
+ <sup>Released on **2023-07-25**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: 修正自定义 OpenAI API Key 的使用问题.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: 修正自定义 OpenAI API Key 的使用问题 ([84475c0](https://github.com/lobehub/lobe-chat/commit/84475c0))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ## [Version 0.22.0](https://github.com/lobehub/lobe-chat/compare/v0.21.0...v0.22.0)
6
56
 
7
57
  <sup>Released on **2023-07-25**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -20,7 +20,7 @@ const SliderWithInput = memo<SliderSingleProps>(
20
20
  onChange={handleOnchange}
21
21
  step={step}
22
22
  style={{ flex: 1 }}
23
- tooltip={{ open: false }}
23
+ tooltip={{ getPopupContainer: (triggerNode) => triggerNode }}
24
24
  value={typeof value === 'number' ? value : 0}
25
25
  {...props}
26
26
  />
@@ -12,7 +12,7 @@ const OPENAI_PROXY_URL = process.env.OPENAI_PROXY_URL;
12
12
  // 创建 OpenAI 实例
13
13
  export const createOpenAI = (OPENAI_API_KEY: string | null) => {
14
14
  const config = new Configuration({
15
- apiKey: OPENAI_API_KEY ?? process.env.OPENAI_API_KEY,
15
+ apiKey: !OPENAI_API_KEY ? process.env.OPENAI_API_KEY : OPENAI_API_KEY,
16
16
  });
17
17
 
18
18
  return new OpenAIApi(config, isDev && OPENAI_PROXY_URL ? OPENAI_PROXY_URL : undefined);
@@ -36,7 +36,7 @@ const InputActions = memo(() => {
36
36
  }}
37
37
  trigger={['click']}
38
38
  >
39
- <ActionIcon icon={BrainCog} title={t('settingModel.model.title')} />
39
+ <ActionIcon icon={BrainCog} placement={'bottom'} title={t('settingModel.model.title')} />
40
40
  </Dropdown>
41
41
  <Popover
42
42
  content={
@@ -55,6 +55,7 @@ const InputActions = memo(() => {
55
55
  >
56
56
  <ActionIcon
57
57
  icon={Thermometer}
58
+ placement={'bottom'}
58
59
  title={t('settingModel.temperature.titleWithValue', { value: temperature })}
59
60
  />
60
61
  </Popover>
@@ -82,7 +83,11 @@ const InputActions = memo(() => {
82
83
  onConfirm={() => clearMessage()}
83
84
  title={t('confirmClearCurrentMessages', { ns: 'common' })}
84
85
  >
85
- <ActionIcon icon={Eraser} title={t('clearCurrentMessages', { ns: 'common' })} />
86
+ <ActionIcon
87
+ icon={Eraser}
88
+ placement={'bottom'}
89
+ title={t('clearCurrentMessages', { ns: 'common' })}
90
+ />
86
91
  </Popconfirm>
87
92
  </>
88
93
  );