Skip to content

Commit 51a198f

Browse files
小调整。
1 parent 7168af4 commit 51a198f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

apps/application/flow/step_node/intent_node/impl/base_intent_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ def build_classification_prompt(self, prompt_template: str, user_input: str, bra
154154
classification_id += 1
155155

156156
# 构建输出JSON结构
157-
output_reason = ', "reason": ""' if output_reason is True else ''
158-
output_json = f'{{"classificationId": 0{output_reason}}}'
157+
output_reason = ',\n "reason": ""' if output_reason is True else ''
158+
output_json = f'{{\n "classificationId": 0{output_reason}\n}}'
159159

160160
return (prompt_template or DEFAULT_PROMPT_TEMPLATE).format(
161-
classification_list=classification_list,
161+
classification_list=json.dumps(classification_list, ensure_ascii=False),
162162
user_input=user_input,
163163
output_json=output_json
164164
)

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 `{{xxx}}` in the template',
93+
tooltip: 'Please pay attention to the placeholders in the template',
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: '请注意模板中的占位符 `{{xxx}}`',
86+
tooltip: '请注意模板中的占位符',
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: '請注意模板中的佔位符 `{{xxx}}`',
86+
tooltip: '請注意模板中的佔位符',
8787
},
8888
historyRecord: {
8989
label: '歷史對話紀錄',

0 commit comments

Comments
 (0)