diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 1dccda9f7de0d931193873ac97d9e46b5cfeb769..430250bde2e236e97fc3e5a3f09fd63a60604ad7 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -333,6 +333,8 @@ export default { maxTokensMessage: 'Max Tokens is required', maxTokensTip: 'This sets the maximum length of the model’s output, measured in the number of tokens (words or pieces of words).', + quote: 'Show Quote', + quoteTip: 'Should the source of the original text be displayed?', }, setting: { profile: 'Profile', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index b2a3e7282acb1fbd545b7d987e0b7de72000e4e7..b6af1989669a8aa5196f4c92071bdc8a49a191ac 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -308,6 +308,8 @@ export default { maxTokensMessage: '最大token數ćŻĺż…ĺˇ«é …', maxTokensTip: '這č¨ç˝®äş†ć¨ˇĺž‹čĽ¸ĺ‡şçš„最大長度,以標č¨ďĽĺ–®č©žć–單詞片段)的數量來衡量。', + quote: '顯示引文', + quoteTip: 'ćŻĺ¦ć‡‰č©˛éˇŻç¤şĺŽźć–‡ĺ‡şč™•ďĽź', }, setting: { profile: '概述', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 0b2a86eb9cd8b3c12a5549debcc57850f6fcd39f..e2bbd04828ec1f339ec74f243eb4f5f837e3a7ef 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -324,6 +324,8 @@ export default { maxTokensMessage: '最大tokenć•°ćŻĺż…填项', maxTokensTip: 'čż™č®ľç˝®äş†ć¨ˇĺž‹čľ“ĺ‡şçš„ćś€ĺ¤§é•żĺş¦ďĽŚä»Ąć ‡č®°ďĽĺŤ•čŻŤć–单词片段)的数量来衡量。', + quote: 'ćľç¤şĺĽ•ć–‡', + quoteTip: 'ćŻĺ¦ĺş”该ćľç¤şĺŽźć–‡ĺ‡şĺ¤„?', }, setting: { profile: '概č¦', diff --git a/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx b/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx index 1e49bc948572a454d40a10259ba3bebda94ecfa7..43d8c530e8963995eab5406faaa5b033b045af7b 100644 --- a/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx +++ b/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx @@ -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}> diff --git a/web/src/pages/chat/index.tsx b/web/src/pages/chat/index.tsx index e18d30cd4a8e49b61e479cf8761c0759816a504c..38f826c9a45dabdf82e1017c622b523c5fc70880 100644 --- a/web/src/pages/chat/index.tsx +++ b/web/src/pages/chat/index.tsx @@ -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> ), },