Improve LLM rewrite classification pipeline
This commit is contained in:
@@ -54,10 +54,6 @@ def assemble_markdown(items: list[NewsItem], guide: dict[str, Any] | None = None
|
||||
intro = _ensure_sentence(str(guide.get("intro") or "")) or _fallback_intro(items)
|
||||
lines.extend(["## 引言", "", f"> {intro}", ""])
|
||||
|
||||
theme = _clean_text(str(guide.get("theme") or ""))
|
||||
if theme:
|
||||
lines.extend(["## 导览", "", f"> {_ensure_sentence(theme)}", ""])
|
||||
|
||||
item_number = 1
|
||||
for section in SECTION_ORDER:
|
||||
section_items = [item for item in items if item.section == section]
|
||||
|
||||
Reference in New Issue
Block a user