Handle zero-token source rows in code trace audit

This commit is contained in:
2026-07-23 23:52:03 +08:00
parent fbaa909723
commit 1d9182f305
5 changed files with 50 additions and 6 deletions

View File

@@ -63,6 +63,8 @@ def main() -> None:
continue
if timestamp >= end:
break
if int(row["input_length"]) <= 0 or int(row["output_length"]) <= 0:
continue
chat = row.get("chat_id", source_index)
parent = row.get("parent_chat_id")
has_parent = parent not in (None, "", -1, "-1")