diff --git a/ui/src/layout/components/top-bar/avatar/index.vue b/ui/src/layout/components/top-bar/avatar/index.vue index 8ccf0039c..ac1fcbb9e 100644 --- a/ui/src/layout/components/top-bar/avatar/index.vue +++ b/ui/src/layout/components/top-bar/avatar/index.vue @@ -60,7 +60,7 @@ - {{ $t('layout.about.label') }} + {{ $t('layout.about.title') }} diff --git a/ui/src/locales/lang/en-US/views/application-workflow.ts b/ui/src/locales/lang/en-US/views/application-workflow.ts index 8c3b65622..98e0f283c 100644 --- a/ui/src/locales/lang/en-US/views/application-workflow.ts +++ b/ui/src/locales/lang/en-US/views/application-workflow.ts @@ -126,8 +126,8 @@ export default { label: 'Question Optimization', text: 'Optimize and improve the current question based on historical chat records to better match knowledge segments', result: 'Optimized Question Result', - defaultPrompt: `Optimize and improve the user's question based on context: {{start.question}} -Please output an optimized question.`, + defaultPrompt1: `Optimize and improve the user's question based on context:`, + defaultPrompt2: `Please output an optimized question.`, systemDefault: 'You are a question optimization expert' }, conditionNode: { @@ -178,8 +178,10 @@ Please output an optimized question.`, form_data: 'All Form Content', formContent: { label: 'Form Output Content', - requiredMessage: 'Please set the output content of this node, { form } is a placeholder for the form.', - tooltip: 'Set the content output by executing this node, { form } is a placeholder for the form.' + requiredMessage: + 'Please set the output content of this node, { form } is a placeholder for the form.', + tooltip: + 'Set the content output by executing this node, { form } is a placeholder for the form.' }, formAllContent: 'All Form Content', formSetting: 'Form Configuration' @@ -212,12 +214,15 @@ Please output an optimized question.`, }, prompt: { label: 'Positive Prompt', - tooltip: 'Positive prompt words, used to describe elements and visual features expected in the generated image' + tooltip: + 'Positive prompt words, used to describe elements and visual features expected in the generated image' }, negative_prompt: { label: 'Negative Prompt', - tooltip: 'Negative prompt words, used to describe content that should not appear in the image, which can limit the image.', - placeholder: 'Please describe content you do not want to generate, such as color, bloody content' + tooltip: + 'Negative prompt words, used to describe content that should not appear in the image, which can limit the image.', + placeholder: + 'Please describe content you do not want to generate, such as color, bloody content' } }, speechToTextNode: { diff --git a/ui/src/locales/lang/en-US/views/application.ts b/ui/src/locales/lang/en-US/views/application.ts index b4fa563a3..3882c379d 100644 --- a/ui/src/locales/lang/en-US/views/application.ts +++ b/ui/src/locales/lang/en-US/views/application.ts @@ -62,6 +62,8 @@ export default { references: ' (References Knowledge)', placeholder: 'Please enter prompt', requiredMessage: 'Please enter prompt', + tooltip:'By adjusting the content of the prompt, you can guide the direction of the large model conversation.', + noReferencesTooltip: 'By adjusting the content of the prompt, you can guide the direction of the large model conversation. This prompt will be fixed at the beginning of the context. Variables used: {question} is the question posed by the user.', referencesTooltip: diff --git a/ui/src/locales/lang/en-US/views/dataset.ts b/ui/src/locales/lang/en-US/views/dataset.ts index 266fa5edb..7099eba34 100644 --- a/ui/src/locales/lang/en-US/views/dataset.ts +++ b/ui/src/locales/lang/en-US/views/dataset.ts @@ -48,7 +48,7 @@ export default { }, datasetType: { label: 'Knowledge Type', - generalInfo: 'Upload local files or manually enter', + generalInfo: 'Upload local documents', webInfo: 'Sync text data from a Web site' }, source_url: { diff --git a/ui/src/locales/lang/en-US/views/document.ts b/ui/src/locales/lang/en-US/views/document.ts index 46bb08a5b..3fa4b2d7b 100644 --- a/ui/src/locales/lang/en-US/views/document.ts +++ b/ui/src/locales/lang/en-US/views/document.ts @@ -95,7 +95,7 @@ export default { }, table: { name: 'File Name', - char_length: 'words', + char_length: 'Words', paragraph: 'Segment', all: 'All', updateTime: 'Update Time' diff --git a/ui/src/locales/lang/en-US/views/template.ts b/ui/src/locales/lang/en-US/views/template.ts index 2417bd584..5dea65511 100644 --- a/ui/src/locales/lang/en-US/views/template.ts +++ b/ui/src/locales/lang/en-US/views/template.ts @@ -76,7 +76,7 @@ export default { base_model: { label: 'Base Model', tooltip: - 'For models not listed in the list, enter the model name directly and press Enter to add', + 'For models not listed, enter the model name and press Enter.', placeholder: 'Enter the base model name and press Enter to add', requiredMessage: 'Base model cannot be empty' } diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts index f158c8fc0..6ff1328a5 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -127,8 +127,8 @@ export default { label: '问题优化', text: '根据历史聊天记录优化完善当前问题,更利于匹配知识库分段', result: '问题优化结果', - defaultPrompt: `根据上下文优化和完善用户问题:{{开始.question}} -请输出一个优化后的问题。`, + defaultPrompt1: `根据上下文优化和完善用户问题`, + defaultPrompt2: `请输出一个优化后的问题。`, systemDefault: '你是一个问题优化大师' }, conditionNode: { diff --git a/ui/src/locales/lang/zh-CN/views/dataset.ts b/ui/src/locales/lang/zh-CN/views/dataset.ts index fd433c3e1..5ca010525 100644 --- a/ui/src/locales/lang/zh-CN/views/dataset.ts +++ b/ui/src/locales/lang/zh-CN/views/dataset.ts @@ -47,7 +47,7 @@ export default { }, datasetType: { label: '知识库类型', - generalInfo: '上传本地文件或手动录入', + generalInfo: '上传本地文档', webInfo: '同步Web网站文本数据' }, source_url: { diff --git a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts index b072dc87a..127ab5738 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts @@ -127,8 +127,8 @@ export default { label: '問題優化', text: '根據歷史聊天記錄優化完善當前問題,更利於匹配知識庫分段', result: '問題優化結果', - defaultPrompt: `根據上下文優化和完善用戶問題:{{開始.question}} -請輸出一個優化後的問題。`, + defaultPrompt1: `根據上下文優化和完善用戶問題:`, + defaultPrompt2: `請輸出一個優化後的問題。`, systemDefault: '你是一個問題優化大師' }, conditionNode: { diff --git a/ui/src/locales/lang/zh-Hant/views/application.ts b/ui/src/locales/lang/zh-Hant/views/application.ts index bd43c401c..53ff579e7 100644 --- a/ui/src/locales/lang/zh-Hant/views/application.ts +++ b/ui/src/locales/lang/zh-Hant/views/application.ts @@ -56,6 +56,8 @@ export default { references: ' (引用知識庫)', placeholder: '請輸入提示詞', requiredMessage: '請輸入提示詞', + tooltip:'透過調整提示詞內容,可以引導大模型對話方向,該提示詞會被固定在上下文的開頭。', + noReferencesTooltip: '透過調整提示詞內容,可以引導大模型對話方向,該提示詞會被固定在上下文的開頭。可以使用變數:{question} 是用戶提出問題的佔位符。', referencesTooltip: diff --git a/ui/src/locales/lang/zh-Hant/views/dataset.ts b/ui/src/locales/lang/zh-Hant/views/dataset.ts index 8ad1ca2c3..0eace754b 100644 --- a/ui/src/locales/lang/zh-Hant/views/dataset.ts +++ b/ui/src/locales/lang/zh-Hant/views/dataset.ts @@ -46,7 +46,7 @@ export default { }, datasetType: { label: '知識庫類型', - generalInfo: '上傳本地檔案或手動輸入', + generalInfo: '上傳本地檔案', webInfo: '同步Web網站文字資料' }, source_url: { diff --git a/ui/src/stores/modules/prompt.ts b/ui/src/stores/modules/prompt.ts index 911998bb4..2ec5bcded 100644 --- a/ui/src/stores/modules/prompt.ts +++ b/ui/src/stores/modules/prompt.ts @@ -19,7 +19,6 @@ const usePromptStore = defineStore({ localStorage.setItem('PROMPT_CACHE', JSON.stringify(this.$state)) }, get(user: string) { - console.log(this.$state) for (let i = 0; i < this.$state.length; i++) { if (this.$state[i].user === user) { return this.$state[i].formValue diff --git a/ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue b/ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue index 035df6f0b..9eb7adb91 100644 --- a/ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue +++ b/ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue @@ -512,7 +512,10 @@ const open = (data: any, content: any) => { xpackForm.value.disclaimer = data.disclaimer xpackForm.value.disclaimer_value = data.disclaimer_value console.log(xpackForm.value.disclaimer_value) - if (xpackForm.value.disclaimer_value === '「以上内容均由AI生成,仅供参考和借鉴」') { + if ( + xpackForm.value.disclaimer_value === + t('views.applicationOverview.appInfo.SettingDisplayDialog.disclaimerValue') + ) { xpackForm.value.disclaimer_value = t( 'views.applicationOverview.appInfo.SettingDisplayDialog.disclaimerValue' ) diff --git a/ui/src/views/log/index.vue b/ui/src/views/log/index.vue index 159c38d95..38ae3b477 100644 --- a/ui/src/views/log/index.vue +++ b/ui/src/views/log/index.vue @@ -26,7 +26,6 @@ :placeholder="$t('common.search')" prefix-icon="Search" class="w-240" - style="margin-left: 10px" clearable />
diff --git a/ui/src/views/template/index.vue b/ui/src/views/template/index.vue index 06c340971..f656bd1f0 100644 --- a/ui/src/views/template/index.vue +++ b/ui/src/views/template/index.vue @@ -133,8 +133,8 @@ @change="list_model" style="width: 220px" > - - + +