|
|
@@ -381,10 +381,11 @@ class AIReviewCoreFun:
|
|
|
if func_name == "grammar_check":
|
|
|
raw_result = await method(trace_id, review_content, state, stage_name)
|
|
|
# 基础审查方法,放入 basic_compliance
|
|
|
+ # 注意:前端传的配置键是 sensitive_word_check,basic_compliance 的 key 必须保持这个名称
|
|
|
return UnitReviewResult(
|
|
|
unit_index=chunk_index,
|
|
|
unit_content=chunk,
|
|
|
- basic_compliance={func_name: raw_result},
|
|
|
+ basic_compliance={"sensitive_word_check": raw_result},
|
|
|
technical_compliance={},
|
|
|
rag_enhanced={},
|
|
|
overall_risk=self._calculate_single_result_risk(raw_result),
|