Bladeren bron

Fix: correct misplaced `ensure_ascii=False` (#22997)

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
tags/1.7.1
Yongtao Huang 3 maanden geleden
bovenliggende
commit
5411fd3757
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1
    2
      api/core/workflow/nodes/question_classifier/question_classifier_node.py

+ 1
- 2
api/core/workflow/nodes/question_classifier/question_classifier_node.py Bestand weergeven

@@ -385,9 +385,8 @@ class QuestionClassifierNode(BaseNode):
text=QUESTION_CLASSIFIER_COMPLETION_PROMPT.format(
histories=memory_str,
input_text=input_text,
categories=json.dumps(categories),
categories=json.dumps(categories, ensure_ascii=False),
classification_instructions=instruction,
ensure_ascii=False,
)
)


Laden…
Annuleren
Opslaan