feat: call the reset api before opening the run drawer each time #918 (#1370)

### What problem does this PR solve?

feat:  call the reset api before opening the run drawer each time #918
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-04 15:10:45 +08:00
committed by GitHub
parent 4122695a1a
commit 1d3e4844a5
5 changed files with 51 additions and 15 deletions

View File

@ -39,7 +39,12 @@ export function RagNode({
id="b"
></Handle>
<Handle type="source" position={Position.Bottom} id="a" isConnectable />
<Flex vertical align="center" justify={'center'} gap={6}>
<Flex
vertical
align="center"
justify={'center'}
gap={data.label === Operator.RewriteQuestion ? 0 : 6}
>
<OperatorIcon
name={data.label as Operator}
fontSize={style['iconFontSize'] ?? 24}
@ -48,7 +53,7 @@ export function RagNode({
className={styles.type}
style={{ fontSize: style.fontSize ?? 14 }}
>
{data.label}
{data.label === Operator.RewriteQuestion ? 'Rewrite' : data.label}
</span>
<NodeDropdown id={id}></NodeDropdown>
</Flex>