mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 15:05:53 +08:00
### What problem does this PR solve? Feat: Translate the system prompt of the generate operator #3993 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
8feb4c1a99
commit
713b837276
@ -1096,6 +1096,7 @@ This delimiter is used to split the input text into several text pieces echo of
|
|||||||
addVariable: 'Add variable',
|
addVariable: 'Add variable',
|
||||||
variableSettings: 'Variable settings',
|
variableSettings: 'Variable settings',
|
||||||
globalVariables: 'Global variables',
|
globalVariables: 'Global variables',
|
||||||
|
systemPrompt: 'System prompt',
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
profile: 'All rights reserved @ React',
|
profile: 'All rights reserved @ React',
|
||||||
|
@ -1032,6 +1032,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addVariable: '新增變數',
|
addVariable: '新增變數',
|
||||||
variableSettings: '變數設定',
|
variableSettings: '變數設定',
|
||||||
|
systemPrompt: '系統提示詞',
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
profile: '“保留所有權利 @ react”',
|
profile: '“保留所有權利 @ react”',
|
||||||
|
@ -1076,6 +1076,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addVariable: '新增变量',
|
addVariable: '新增变量',
|
||||||
variableSettings: '变量设置',
|
variableSettings: '变量设置',
|
||||||
|
systemPrompt: '系统提示词',
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
profile: 'All rights reserved @ React',
|
profile: 'All rights reserved @ React',
|
||||||
|
@ -25,7 +25,7 @@ const GenerateForm = ({ onValuesChange, form, node }: IOperatorForm) => {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name={['prompt']}
|
name={['prompt']}
|
||||||
label="System"
|
label={t('systemPrompt')}
|
||||||
initialValue={t('promptText')}
|
initialValue={t('promptText')}
|
||||||
tooltip={t('promptTip', { keyPrefix: 'knowledgeConfiguration' })}
|
tooltip={t('promptTip', { keyPrefix: 'knowledgeConfiguration' })}
|
||||||
rules={[
|
rules={[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user