mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-16 06:16:53 +08:00
Fix variable typo (#8084)
This commit is contained in:
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
@@ -83,7 +83,7 @@
|
||||
|
||||
.fileIcon {
|
||||
@apply w-4 h-4 mr-1 bg-center bg-no-repeat;
|
||||
background-image: url(../assets/unknow.svg);
|
||||
background-image: url(../assets/unknown.svg);
|
||||
background-size: 16px;
|
||||
}
|
||||
.fileIcon.csv {
|
||||
|
||||
@@ -32,7 +32,7 @@ const EmptyDatasetCreationModal = ({
|
||||
return
|
||||
}
|
||||
if (inputValue.length > 40) {
|
||||
notify({ type: 'error', message: t('datasetCreation.stepOne.modal.nameLengthInvaild') })
|
||||
notify({ type: 'error', message: t('datasetCreation.stepOne.modal.nameLengthInvalid') })
|
||||
return
|
||||
}
|
||||
try {
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
.fileIcon {
|
||||
@apply shrink-0 w-6 h-6 mr-2 bg-center bg-no-repeat;
|
||||
background-image: url(../assets/unknow.svg);
|
||||
background-image: url(../assets/unknown.svg);
|
||||
background-size: 24px;
|
||||
}
|
||||
|
||||
|
||||
@@ -306,7 +306,7 @@ const StepTwo = ({
|
||||
const {
|
||||
modelList: rerankModelList,
|
||||
defaultModel: rerankDefaultModel,
|
||||
currentModel: isRerankDefaultModelVaild,
|
||||
currentModel: isRerankDefaultModelValid,
|
||||
} = useModelListAndDefaultModelAndCurrentProviderAndModel(ModelTypeEnum.rerank)
|
||||
const { data: embeddingModelList } = useModelList(ModelTypeEnum.textEmbedding)
|
||||
const { data: defaultEmbeddingModel } = useDefaultModel(ModelTypeEnum.textEmbedding)
|
||||
@@ -344,7 +344,7 @@ const StepTwo = ({
|
||||
if (
|
||||
!isReRankModelSelected({
|
||||
rerankDefaultModel,
|
||||
isRerankDefaultModelVaild: !!isRerankDefaultModelVaild,
|
||||
isRerankDefaultModelValid: !!isRerankDefaultModelValid,
|
||||
rerankModelList,
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
retrievalConfig,
|
||||
|
||||
@@ -41,14 +41,14 @@ const PreviewItem: FC<IPreviewItemProps> = ({
|
||||
const charNums = type === PreviewType.TEXT
|
||||
? (content || '').length
|
||||
: (qa?.answer || '').length + (qa?.question || '').length
|
||||
const formatedIndex = (() => String(index).padStart(3, '0'))()
|
||||
const formattedIndex = (() => String(index).padStart(3, '0'))()
|
||||
|
||||
return (
|
||||
<div className='p-4 rounded-xl bg-gray-50'>
|
||||
<div className='flex items-center justify-between h-5 text-xs text-gray-500'>
|
||||
<div className='flex items-center h-[18px] space-x-1 border border-gray-200 box-border rounded-md italic pl-1 pr-1.5 font-medium'>
|
||||
{sharpIcon}
|
||||
<span>{formatedIndex}</span>
|
||||
<span>{formattedIndex}</span>
|
||||
</div>
|
||||
<div className='flex items-center space-x-1'>
|
||||
{textIcon}
|
||||
|
||||
Reference in New Issue
Block a user