voice: never restate looping text (repetition > 0.4); stricter no-escalation prompt, temperature 0.2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EandClaude Opus 5.5 committed 2026-10-02 16:40:01 -04:00
1 parent b793f13453
commit 280c330303
3 files changed
+23 -9

No files matched your search

+3 -1
View File
@@ -60,6 +60,8 @@ def voice(text):
def flags(raw, said):
f = []
if said.startswith("[not restated"):
return f
added = [k for k, p in FEELINGS.items() if re.search(p, said, re.I) and not re.search(p, raw, re.I)]
if added:
f.append("ADDS " + ", ".join(added))
@@ -73,7 +75,7 @@ def main():
results = []
for i, s in enumerate(samples()):
v = voice(s["text"])
said = v.get("voice", "")
said = v.get("voice") or ("" if not v.get("skipped") else f"[not restated: {v['skipped']}]")
results.append({**s, "voice": said, "model": v.get("model"), "error": v.get("error"),
"repetition": round(repetition(s["text"]), 2), "flags": flags(s["text"], said)})
print(f"{i+1:2} {s['src'][:40]:40} {' | '.join(results[-1]['flags']) or 'ok'}", flush=True)