💄 style: Allow SliderWithInput to have no input limit (#7708)

* 💄 style: Enhance QwenAIStream with input timing and usage tracking

* Update index.ts

* Update index.ts

* fix

* fix

* fix test

* Update qwen.ts

* fix

* fix

*  style: Add unlimited input support to SliderWithInput in AgentChat, AgentModal, and Controls components

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
This commit is contained in:
sxjeru
2025-05-26 10:51:59 +08:00
committed by GitHub
parent f177fd0982
commit bdb02b2058
3 changed files with 4 additions and 3 deletions
@@ -67,7 +67,7 @@ const AgentChat = memo(() => {
valuePropName: 'checked',
},
{
children: <SliderWithInput max={8} min={0} />,
children: <SliderWithInput max={8} min={0} unlimitedInput={true} />,
desc: t('settingChat.autoCreateTopicThreshold.desc'),
divider: false,
hidden: !config.enableAutoCreateTopic,
@@ -83,7 +83,7 @@ const AgentChat = memo(() => {
valuePropName: 'checked',
},
{
children: <SliderWithInput max={20} min={0} />,
children: <SliderWithInput max={20} min={0} unlimitedInput={true} />,
desc: t('settingChat.historyCount.desc'),
divider: false,
hidden: !config.enableHistoryCount,
@@ -66,7 +66,7 @@ const AgentModal = memo(() => {
valuePropName: 'checked',
},
{
children: <SliderWithInput max={32_000} min={0} step={100} />,
children: <SliderWithInput max={32_000} min={0} step={100} unlimitedInput={true} />,
desc: t('settingModel.maxTokens.desc'),
divider: false,
hidden: !config.chatConfig.enableMaxTokens,
@@ -45,6 +45,7 @@ const Controls = memo<ControlsProps>(({ updating, setUpdating }) => {
maxWidth: 64,
},
}}
unlimitedInput={true}
/>
),
name: 'historyCount',