Files
ragflow/web/src/components/max-token-number-from-field.tsx
balibabu 02cc867c06 Feat: Display the document configuration dialog with shadcn #3221 (#7302)
### What problem does this PR solve?

Feat: Display the document configuration dialog with shadcn #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-04-25 11:15:44 +08:00

20 lines
476 B
TypeScript

import { useTranslate } from '@/hooks/common-hooks';
import { SliderInputFormField } from './slider-input-form-field';
interface IProps {
initialValue?: number;
max?: number;
}
export function MaxTokenNumberFormField({ max = 2048 }: IProps) {
const { t } = useTranslate('knowledgeConfiguration');
return (
<SliderInputFormField
name={'parser_config.chunk_token_num'}
label={t('chunkTokenNumber')}
max={max}
></SliderInputFormField>
);
}