change ValuedSlider's step to 100

This commit is contained in:
josc146 2023-11-20 23:25:39 +08:00
parent 48fef0235b
commit 41e5bd5eb8
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ const CompletionPanel: FC = observer(() => {
desc={t('By default, the maximum number of tokens that can be answered in a single response, it can be changed by the user by specifying API parameters.')} desc={t('By default, the maximum number of tokens that can be answered in a single response, it can be changed by the user by specifying API parameters.')}
content={ content={
<ValuedSlider value={params.maxResponseToken} min={100} max={8100} <ValuedSlider value={params.maxResponseToken} min={100} max={8100}
step={400} step={100}
input input
onChange={(e, data) => { onChange={(e, data) => {
setParams({ setParams({

View File

@ -150,7 +150,7 @@ const Configs: FC = observer(() => {
desc={t('By default, the maximum number of tokens that can be answered in a single response, it can be changed by the user by specifying API parameters.')} desc={t('By default, the maximum number of tokens that can be answered in a single response, it can be changed by the user by specifying API parameters.')}
content={ content={
<ValuedSlider value={selectedConfig.apiParameters.maxResponseToken} min={100} max={8100} <ValuedSlider value={selectedConfig.apiParameters.maxResponseToken} min={100} max={8100}
step={400} step={100}
input input
onChange={(e, data) => { onChange={(e, data) => {
setSelectedConfigApiParams({ setSelectedConfigApiParams({