Stop displaying the summary model name
Drop the "요약 모델" footer from rendered briefings and the model badge from the dashboard (degraded briefings keep a "요약 없음" chip). The model is still recorded in the DB/result JSON for diagnostics. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -189,11 +189,7 @@ function metaChips(result: BriefingResult): HTMLElement[] {
|
||||
el("span", undefined, `생성 ${new Date(p.generated_at).toLocaleString("ko-KR")}`),
|
||||
];
|
||||
if (!p.krx_open_today) chips.push(el("span", "badge badge-warn", "한국 휴장"));
|
||||
chips.push(
|
||||
result.model_used
|
||||
? el("span", "badge badge-ok", result.model_used)
|
||||
: el("span", "badge badge-warn", "LLM 미사용"),
|
||||
);
|
||||
if (result.degraded) chips.push(el("span", "badge badge-warn", "요약 없음"));
|
||||
for (const gap of p.data_gaps) chips.push(el("span", "badge badge-warn", gap));
|
||||
if (result.error) chips.push(el("span", "badge badge-error", result.error));
|
||||
return chips;
|
||||
|
||||
@@ -115,7 +115,7 @@ def test_markdown_header_and_degraded_mode():
|
||||
assert "🧩 축소 모드(LLM 요약 없음)" in md
|
||||
assert "## 총평" not in md and "## 시장 개요" not in md
|
||||
assert "## 📊 주요 지수" in md # tables still present
|
||||
assert md.rstrip().endswith("요약 모델: 없음")
|
||||
assert "요약 모델" not in md # the model is an implementation detail, never displayed
|
||||
|
||||
|
||||
def test_markdown_with_report_sections_and_numbers_from_payload():
|
||||
@@ -132,7 +132,7 @@ def test_markdown_with_report_sections_and_numbers_from_payload():
|
||||
# numeric table values come from the payload
|
||||
assert "| S&P 500 | 6,432.10 | +0.52% |" in md
|
||||
assert "| VIX | 15.20 | -5.00% |" in md
|
||||
assert md.rstrip().endswith("요약 모델: MiniMax-M3")
|
||||
assert "요약 모델" not in md
|
||||
|
||||
|
||||
def test_markdown_group_order_and_sections():
|
||||
@@ -333,7 +333,6 @@ def test_telegram_full_briefing_roundtrip(limit: int):
|
||||
assert 0 < len(c) <= limit
|
||||
_assert_balanced(c)
|
||||
joined = "\n".join(chunks)
|
||||
assert "요약 모델: MiniMax-M3" in joined
|
||||
assert "미 10년물" in joined and "+3.5bp" in joined
|
||||
|
||||
|
||||
|
||||
@@ -218,7 +218,6 @@ def render_markdown(payload: MarketPayload, report: Report | None, model_used: s
|
||||
ev_lines = [_event_line(e) for e in payload.events] + [_earnings_line(e) for e in payload.earnings]
|
||||
lines += _section("경제지표·실적", ev_lines)
|
||||
lines += _section("수집 누락", _bullets(payload.data_gaps))
|
||||
lines += ["---", f"요약 모델: {model_used or '없음'}"]
|
||||
return "\n".join(lines).rstrip() + "\n"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user