Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fixes #25530 (#25531)

151a078657d85d
diff --git a/web/app/components/base/param-item/score-threshold-item.tsx b/web/app/components/base/param-item/score-threshold-item.tsx
index b5557c80cfd..3790a2a074c 100644
--- a/web/app/components/base/param-item/score-threshold-item.tsx
+++ b/web/app/components/base/param-item/score-threshold-item.tsx
@@ -20,7 +20,6 @@ const VALUE_LIMIT = {
max: 1,
}
-const key = 'score_threshold'
const ScoreThresholdItem: FC<Props> = ({
className,
value,
@@ -39,9 +38,9 @@ const ScoreThresholdItem: FC<Props> = ({
return (
<ParamItem
className={className}
- id={key}
- name={t(`appDebug.datasetConfig.${key}`)}
- tip={t(`appDebug.datasetConfig.${key}Tip`) as string}
+ id='score_threshold'
+ name={t('appDebug.datasetConfig.score_threshold')}
+ tip={t('appDebug.datasetConfig.score_thresholdTip') as string}
{...VALUE_LIMIT}
value={value}
enable={enable}
diff --git a/web/app/components/base/param-item/top-k-item.tsx b/web/app/components/base/param-item/top-k-item.tsx
index 4c4c857213b..f59c0f273ee 100644
--- a/web/app/components/base/param-item/top-k-item.tsx
+++ b/web/app/components/base/param-item/top-k-item.tsx
@@ -24,7 +24,6 @@ const VALUE_LIMIT = {
max: maxTopK,
}
-const key = 'top_k'
const TopKItem: FC<Props> = ({
className,
value,
@@ -41,9 +40,9 @@ const TopKItem: FC<Props> = ({
return (
<ParamItem
className={className}
- id={key}
- name={t(`appDebug.datasetConfig.${key}`)}
- tip={t(`appDebug.datasetConfig.${key}Tip`) as string}
+ id='top_k'
+ name={t('appDebug.datasetConfig.top_k')}
+ tip={t('appDebug.datasetConfig.top_kTip') as string}
{...VALUE_LIMIT}
value={value}
enable={enable}