fix: 사용자 판단 문구에서 모델명 제거

This commit is contained in:
hbyang 2026-08-18 11:44:56 +09:00
parent 2be4c39a97
commit 3debc884c1
3 changed files with 5 additions and 2 deletions

View File

@ -227,7 +227,7 @@ class LegalRiskEngine:
decision, tuple(p.case_id for p in related),
),
"judge_note": (
"GPT 판정은 판례·탐지 증거에 대한 검토 보조 의견이며 법률상 확정이 아닙니다."
"판례·탐지 증거 비교 결과는 검토 보조 의견이며 법률상 확정이 아닙니다."
),
}
)
@ -237,7 +237,7 @@ class LegalRiskEngine:
**{
**base.__dict__,
"judgment_method": "rule_fallback",
"judge_note": "GPT 판단을 완료하지 못해 규칙 기반 결과로 대체했습니다.",
"judge_note": "자동 판례 비교를 완료하지 못해 규칙 기반 결과로 대체했습니다.",
}
)

View File

@ -33,3 +33,4 @@ def test_frontend_renders_llm_legal_judgment_and_safety_fields():
assert "법률상 침해 확정이 아닙니다" in HTML
assert "판례에 비추어 저작권 침해 의심" in HTML
assert "GPT 판례 비교" not in HTML
assert "GPT 판정" not in HTML

View File

@ -85,6 +85,7 @@ def test_llm_judge_augments_rule_result_and_keeps_deterministic_missing_factors(
assert result.llm_matched_precedent_ids == ("case-1",)
assert "case-1 판례" in result.judgment_summary
assert "저작권 침해가 의심" in result.judgment_summary
assert "GPT" not in (result.judge_note or "")
assert "보호되는 창작적 표현인지에 대한 사람 검토" in result.missing_factors
assert "시장 영향" in result.missing_factors
assert judge.request.evidence[0]["source_document_id"] == "doc-1"
@ -100,6 +101,7 @@ def test_llm_hallucinated_precedent_id_falls_back_to_rules():
assert result.judgment_method == "rule_fallback"
assert result.llm_verdict is None
assert result.precedent_ids == ("case-1",)
assert "GPT" not in (result.judge_note or "")
def test_llm_cannot_disable_human_review():