@lobehub/lobehub 2.0.0-next.326 → 2.0.0-next.327

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 2.0.0-next.327](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.326...v2.0.0-next.327)
6
+
7
+ <sup>Released on **2026-01-20**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **model-select**: Migrate FunctionCallingModelSelect to LobeSelect.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **model-select**: Migrate FunctionCallingModelSelect to LobeSelect, closes [#11664](https://github.com/lobehub/lobe-chat/issues/11664) ([ad51305](https://github.com/lobehub/lobe-chat/commit/ad51305))
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 2.0.0-next.326](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.325...v2.0.0-next.326)
6
31
 
7
32
  <sup>Released on **2026-01-20**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,9 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2026-01-20",
5
+ "version": "2.0.0-next.327"
6
+ },
2
7
  {
3
8
  "children": {},
4
9
  "date": "2026-01-20",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.326",
3
+ "version": "2.0.0-next.327",
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",
@@ -1,6 +1,6 @@
1
- import { Select, type SelectProps, TooltipGroup } from '@lobehub/ui';
1
+ import { LobeSelect, type LobeSelectProps, TooltipGroup } from '@lobehub/ui';
2
2
  import { createStaticStyles } from 'antd-style';
3
- import { memo, useMemo } from 'react';
3
+ import { type ReactNode, memo, useMemo } from 'react';
4
4
 
5
5
  import { ModelItemRender, ProviderItemRender } from '@/components/ModelSelect';
6
6
  import { useEnabledChatModels } from '@/hooks/useEnabledChatModels';
@@ -18,12 +18,12 @@ const styles = createStaticStyles(({ css }) => ({
18
18
  }));
19
19
 
20
20
  interface ModelOption {
21
- label: any;
21
+ label: ReactNode;
22
22
  provider: string;
23
23
  value: string;
24
24
  }
25
25
 
26
- interface ModelSelectProps extends SelectProps {
26
+ interface ModelSelectProps extends Omit<LobeSelectProps, 'onChange' | 'value'> {
27
27
  onChange?: (props: WorkingModel) => void;
28
28
  showAbility?: boolean;
29
29
  value?: WorkingModel;
@@ -32,7 +32,7 @@ interface ModelSelectProps extends SelectProps {
32
32
  const ModelSelect = memo<ModelSelectProps>(({ value, onChange, ...rest }) => {
33
33
  const enabledList = useEnabledChatModels();
34
34
 
35
- const options = useMemo<SelectProps['options']>(() => {
35
+ const options = useMemo<LobeSelectProps['options']>(() => {
36
36
  const getChatModels = (provider: EnabledProviderWithModels) =>
37
37
  provider.children
38
38
  .filter((model) => !!model.abilities.functionCall)
@@ -69,7 +69,7 @@ const ModelSelect = memo<ModelSelectProps>(({ value, onChange, ...rest }) => {
69
69
 
70
70
  return (
71
71
  <TooltipGroup>
72
- <Select
72
+ <LobeSelect
73
73
  onChange={(value, option) => {
74
74
  const model = value.split('/').slice(1).join('/');
75
75
  onChange?.({ model, provider: (option as unknown as ModelOption).provider });