feat: add quote item to PromptEngine (#338)

### What problem does this PR solve?

Show original text source in conversation messages

Issue link: #337

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-04-12 14:45:14 +08:00
committed by GitHub
parent f173fe6e47
commit 73285d9d07
5 changed files with 17 additions and 2 deletions

View File

@ -172,6 +172,15 @@ const PromptEngine = (
>
<Slider max={30} />
</Form.Item>
<Form.Item
label={t('quote')}
valuePropName="checked"
name={['prompt_config', 'quote']}
tooltip={t('quoteTip')}
initialValue={true}
>
<Switch />
</Form.Item>
<section className={classNames(styles.variableContainer)}>
<Row align={'middle'} justify="end">
<Col span={7} className={styles.variableAlign}>