Fix: Modify the text of the category operator form #4412 (#4433)

### What problem does this PR solve?

Fix: Modify the text of the category operator form #4412

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2025-01-09 19:17:22 +08:00
committed by GitHub
parent 300d8ecf51
commit 48bca0ca01
7 changed files with 19 additions and 23 deletions

View File

@ -298,9 +298,7 @@ export const componentMenuList = [
{
name: Operator.Message,
},
{
name: Operator.Relevant,
},
{
name: Operator.RewriteQuestion,
},
@ -428,7 +426,6 @@ export const initialGenerateValues = {
export const initialRewriteQuestionValues = {
...initialLlmBaseValues,
loop: 1,
};
export const initialRelevantValues = {

View File

@ -138,7 +138,7 @@ const DynamicCategorize = ({ nodeId }: IProps) => {
}
>
<Form.Item
label={t('name')}
label={t('categoryName')}
name={[field.name, 'name']}
validateTrigger={['onChange', 'onBlur']}
rules={[
@ -178,7 +178,7 @@ const DynamicCategorize = ({ nodeId }: IProps) => {
>
<Input.TextArea rows={3} />
</Form.Item>
<Form.Item label={t('to')} name={[field.name, 'to']}>
<Form.Item label={t('nextStep')} name={[field.name, 'to']}>
<Select
allowClear
options={buildCategorizeToOptions(
@ -199,7 +199,7 @@ const DynamicCategorize = ({ nodeId }: IProps) => {
className={styles.addButton}
icon={<PlusOutlined />}
>
{t('addItem')}
{t('addCategory')}
</Button>
</Flex>
);

View File

@ -1,10 +1,10 @@
import { RAGFlowNodeType } from '@/interfaces/database/flow';
import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
import { Button, Collapse, Flex, Form, Input, Select } from 'antd';
import { PropsWithChildren, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { useBuildComponentIdSelectOptions } from '../../hooks/use-get-begin-query';
import { RAGFlowNodeType } from '../../interface';
import styles from './index.less';
interface IProps {
@ -29,7 +29,7 @@ const DynamicVariableForm = ({ node }: IProps) => {
const options = [
{ value: VariableType.Reference, label: t('flow.reference') },
{ value: VariableType.Input, label: t('flow.input') },
{ value: VariableType.Input, label: t('flow.text') },
];
const handleTypeChange = useCallback(

View File

@ -1,6 +1,6 @@
import LLMSelect from '@/components/llm-select';
import { useTranslate } from '@/hooks/common-hooks';
import { Form, InputNumber } from 'antd';
import { Form } from 'antd';
import { IOperatorForm } from '../../interface';
const RewriteQuestionForm = ({ onValuesChange, form }: IOperatorForm) => {
@ -22,13 +22,6 @@ const RewriteQuestionForm = ({ onValuesChange, form }: IOperatorForm) => {
>
<LLMSelect></LLMSelect>
</Form.Item>
<Form.Item
label={t('loop', { keyPrefix: 'flow' })}
name="loop"
initialValue={1}
>
<InputNumber />
</Form.Item>
</Form>
);
};