feat: Add InvokeNode #1908 (#3081)

### What problem does this PR solve?

feat: Add InvokeNode #1908

### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-10-29 16:39:56 +08:00
committed by GitHub
parent 2d1fbefdb5
commit 3ed096fd3f
10 changed files with 72 additions and 8 deletions

View File

@ -38,7 +38,6 @@ const DynamicVariables = ({ nodeId }: IProps) => {
title: t('key'),
dataIndex: 'key',
key: 'key',
// width: 40,
onCell: (record: IInvokeVariable) => ({
record,
editable: true,

View File

@ -1,5 +1,5 @@
import Editor from '@monaco-editor/react';
import { Form, Input, InputNumber, Select, Space } from 'antd';
import { Form, Input, InputNumber, Select, Space, Switch } from 'antd';
import { useTranslation } from 'react-i18next';
import { useSetLlmSetting } from '../../hooks';
import { IOperatorForm } from '../../interface';
@ -63,6 +63,9 @@ const InvokeForm = ({ onValuesChange, form, node }: IOperatorForm) => {
<Form.Item name={'proxy'} label={t('flow.proxy')}>
<Input />
</Form.Item>
<Form.Item name={'clean_html'} label={t('flow.cleanHtml')}>
<Switch />
</Form.Item>
<DynamicVariables nodeId={node?.id}></DynamicVariables>
</Form>
</>