Skip to content

Commit 480277e

Browse files
提示词优化。
1 parent f024925 commit 480277e

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

ui/src/locales/lang/en-US/views/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
prompt_template: {
9191
label: 'Prompt Template',
9292
requiredMessage: 'Please enter Prompt template',
93-
tooltip: 'Please pay attention to the placeholders in the template',
93+
tooltip: 'Please pay attention to the placeholders in the template: {classification_list}、{user_input}、{output_json}',
9494
},
9595
historyRecord: {
9696
label: 'Chat History',

ui/src/locales/lang/zh-CN/views/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default {
8383
prompt_template: {
8484
label: '提示词模板',
8585
requiredMessage: '请输入提示词模板',
86-
tooltip: '请注意模板中的占位符',
86+
tooltip: '请注意模板中的占位符: {classification_list}、{user_input}、{output_json}',
8787
},
8888
historyRecord: {
8989
label: '历史聊天记录',

ui/src/locales/lang/zh-Hant/views/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default {
8383
prompt_template: {
8484
label: '提示詞模板',
8585
requiredMessage: '請輸入提示詞模板',
86-
tooltip: '請注意模板中的佔位符',
86+
tooltip: '請注意模板中的佔位符: {classification_list}、{user_input}、{output_json}',
8787
},
8888
historyRecord: {
8989
label: '歷史對話紀錄',

ui/src/workflow/nodes/intent-classify-node/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@
6969
>
7070
</div>
7171
<el-tooltip effect="dark" placement="right" popper-class="max-w-200">
72-
<template #content>{{ $t('views.application.form.prompt_template.tooltip') }} </template>
72+
<template #content>{{ $t('views.application.form.prompt_template.tooltip', {
73+
classification_list: '{classification_list}',
74+
user_input: '{user_input}',
75+
output_json: '{output_json}',
76+
}) }}</template>
7377
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
7478
</el-tooltip>
7579
</div>

0 commit comments

Comments
 (0)