Give failure one spelling

This commit is contained in:
2026-09-28 21:21:35 +02:00
parent 750c417c2d
commit 0fc6afd1e7
10 changed files with 22 additions and 26 deletions
+2 -2
View File
@@ -19,13 +19,13 @@ def human_turns(entries):
def render(entries):
lines = []
for entry in entries:
lines += [line for part in assistant_parts(entry) if (line := said(part))]
lines += [line for part in assistant_parts(entry) if (line := part_line(part))]
if (text := human_text(entry)) is not None:
lines.append("[human] " + text)
return "\n\n".join(lines)
def said(part, limit=400):
def part_line(part, limit=400):
if (text := part_text(part)) and text.strip():
return text
if call := tool_call(part):