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:
@@ -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}>
|
||||
|
||||
@@ -177,7 +177,7 @@ const Chat = () => {
|
||||
label: (
|
||||
<Space>
|
||||
<EditOutlined />
|
||||
Edit
|
||||
{t('rename', { keyPrefix: 'common' })}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
@@ -188,7 +188,7 @@ const Chat = () => {
|
||||
label: (
|
||||
<Space>
|
||||
<DeleteOutlined />
|
||||
Delete chat
|
||||
{t('delete', { keyPrefix: 'common' })}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user