This commit is contained in:
15 2025-09-12 09:39:17 +08:00 • committed by GitHub
commit 1a078657d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

View file

@ -20,7 +20,6 @@ const VALUE_LIMIT = {
max: 1, max: 1,
} }
const key = 'score_threshold'
const ScoreThresholdItem: FC<Props> = ({ const ScoreThresholdItem: FC<Props> = ({
className, className,
value, value,
@ -39,9 +38,9 @@ const ScoreThresholdItem: FC<Props> = ({
return ( return (
<ParamItem <ParamItem
className={className} className={className}
id={key} id='score_threshold'
name={t(`appDebug.datasetConfig.${key}`)} name={t('appDebug.datasetConfig.score_threshold')}
tip={t(`appDebug.datasetConfig.${key}Tip`) as string} tip={t('appDebug.datasetConfig.score_thresholdTip') as string}
{...VALUE_LIMIT} {...VALUE_LIMIT}
value={value} value={value}
enable={enable} enable={enable}

View file

@ -24,7 +24,6 @@ const VALUE_LIMIT = {
max: maxTopK, max: maxTopK,
} }
const key = 'top_k'
const TopKItem: FC<Props> = ({ const TopKItem: FC<Props> = ({
className, className,
value, value,
@ -41,9 +40,9 @@ const TopKItem: FC<Props> = ({
return ( return (
<ParamItem <ParamItem
className={className} className={className}
id={key} id='top_k'
name={t(`appDebug.datasetConfig.${key}`)} name={t('appDebug.datasetConfig.top_k')}
tip={t(`appDebug.datasetConfig.${key}Tip`) as string} tip={t('appDebug.datasetConfig.top_kTip') as string}
{...VALUE_LIMIT} {...VALUE_LIMIT}
value={value} value={value}
enable={enable} enable={enable}