Bläddra i källkod

Feat: Translate the system prompt of the generate operator #3993 (#4283)

### 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)
tags/nightly
balibabu 10 månader sedan
förälder
incheckning
713b837276
Inget konto är kopplat till bidragsgivarens mejladress

+ 1
- 0
web/src/locales/en.ts Visa fil

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',

+ 1
- 0
web/src/locales/zh-traditional.ts Visa fil

}, },
addVariable: '新增變數', addVariable: '新增變數',
variableSettings: '變數設定', variableSettings: '變數設定',
systemPrompt: '系統提示詞',
}, },
footer: { footer: {
profile: '“保留所有權利 @ react”', profile: '“保留所有權利 @ react”',

+ 1
- 0
web/src/locales/zh.ts Visa fil

}, },
addVariable: '新增变量', addVariable: '新增变量',
variableSettings: '变量设置', variableSettings: '变量设置',
systemPrompt: '系统提示词',
}, },
footer: { footer: {
profile: 'All rights reserved @ React', profile: 'All rights reserved @ React',

+ 1
- 1
web/src/pages/flow/form/generate-form/index.tsx Visa fil

</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={[

Laddar…
Avbryt
Spara