@lobehub/lobehub 2.0.0-next.349 → 2.0.0-next.350
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 +25 -0
- package/changelog/v1.json +5 -0
- package/package.json +2 -2
- package/src/components/ModelSelect/index.tsx +3 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.350](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.349...v2.0.0-next.350)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2026-01-23**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **ModelSelect**: Resolve tooltip hover causing popup to close.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **ModelSelect**: Resolve tooltip hover causing popup to close, closes [#11742](https://github.com/lobehub/lobe-chat/issues/11742) ([1b73f14](https://github.com/lobehub/lobe-chat/commit/1b73f14))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.349](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.348...v2.0.0-next.349)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2026-01-23**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.350",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent 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",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"@lobehub/icons": "^4.0.2",
|
|
206
206
|
"@lobehub/market-sdk": "0.29.1",
|
|
207
207
|
"@lobehub/tts": "^4.0.2",
|
|
208
|
-
"@lobehub/ui": "^4.27.
|
|
208
|
+
"@lobehub/ui": "^4.27.5",
|
|
209
209
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
210
210
|
"@napi-rs/canvas": "^0.1.88",
|
|
211
211
|
"@neondatabase/serverless": "^1.0.2",
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from 'lucide-react';
|
|
15
15
|
import { type ModelAbilities } from 'model-bank';
|
|
16
16
|
import numeral from 'numeral';
|
|
17
|
-
import { CSSProperties, type
|
|
17
|
+
import { CSSProperties, type FC, memo } from 'react';
|
|
18
18
|
import { useTranslation } from 'react-i18next';
|
|
19
19
|
|
|
20
20
|
import { type AiProviderSourceType } from '@/types/aiProvider';
|
|
@@ -51,14 +51,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
|
|
|
51
51
|
|
|
52
52
|
type TooltipStyles = typeof styles;
|
|
53
53
|
|
|
54
|
-
const DEFAULT_TOOLTIP_STYLES = {
|
|
55
|
-
root: { pointerEvents: 'none' },
|
|
56
|
-
} as const satisfies ComponentProps<typeof Tooltip>['styles'];
|
|
57
|
-
|
|
58
|
-
const FUNCTION_CALL_TOOLTIP_STYLES = {
|
|
59
|
-
root: { maxWidth: 'unset', pointerEvents: 'none' },
|
|
60
|
-
} as const satisfies ComponentProps<typeof Tooltip>['styles'];
|
|
61
|
-
|
|
62
54
|
interface ModelInfoTagsProps extends ModelAbilities {
|
|
63
55
|
contextWindowTokens?: number | null;
|
|
64
56
|
directionReverse?: boolean;
|
|
@@ -82,11 +74,10 @@ interface FeatureTagItemProps {
|
|
|
82
74
|
icon: Parameters<typeof Icon>[0]['icon'];
|
|
83
75
|
placement: 'top' | 'right';
|
|
84
76
|
title: string;
|
|
85
|
-
tooltipStyles?: ComponentProps<typeof Tooltip>['styles'];
|
|
86
77
|
}
|
|
87
78
|
|
|
88
79
|
const FeatureTagItem = memo<FeatureTagItemProps>(
|
|
89
|
-
({ className, color, enabled, icon, placement, title
|
|
80
|
+
({ className, color, enabled, icon, placement, title }) => {
|
|
90
81
|
if (!enabled) return null;
|
|
91
82
|
|
|
92
83
|
const tag = (
|
|
@@ -96,7 +87,7 @@ const FeatureTagItem = memo<FeatureTagItemProps>(
|
|
|
96
87
|
);
|
|
97
88
|
|
|
98
89
|
return (
|
|
99
|
-
<Tooltip placement={placement}
|
|
90
|
+
<Tooltip placement={placement} title={title}>
|
|
100
91
|
{tag}
|
|
101
92
|
</Tooltip>
|
|
102
93
|
);
|
|
@@ -158,7 +149,6 @@ const FeatureTags = memo<FeatureTagsProps>(
|
|
|
158
149
|
icon={ToyBrick}
|
|
159
150
|
placement={placement}
|
|
160
151
|
title={t('ModelSelect.featureTag.functionCall')}
|
|
161
|
-
tooltipStyles={FUNCTION_CALL_TOOLTIP_STYLES}
|
|
162
152
|
/>
|
|
163
153
|
<FeatureTagItem
|
|
164
154
|
className={tagClassName}
|