Skip to content

Commit a39b3a5

Browse files
小调整
1 parent 5e3d595 commit a39b3a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ 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(
161161
classification_list=json.dumps(classification_list, ensure_ascii=False),

0 commit comments

Comments
 (0)