mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-16 12:36:07 +00:00
💄 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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user