From b145a3d261fa216c23bb3c4d2e7b2e77f5c25211 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Tue, 27 Oct 2026 01:31:45 +0100 Subject: [PATCH] e2e: long_session records a hash of each reply so two configurations can be compared Co-Authored-By: Claude Sonnet 5.5 --- scripts/e2e/long_session.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/e2e/long_session.py b/scripts/e2e/long_session.py index 25785197..90a7a184 100644 --- a/scripts/e2e/long_session.py +++ b/scripts/e2e/long_session.py @@ -8,6 +8,7 @@ TTFT and the decode rate. Output: $E2E_OUT_DIR/long-session.json (never the prom long_session.py [--src DIR] [--turns N] [--target-tokens N] [--max-output N] """ import argparse +import hashlib import json import os import sys @@ -98,7 +99,9 @@ def stream(base, key, model, items, max_out): "output_tokens": usage.get("output_tokens"), "status": status, } - return info, "".join(text) + reply = "".join(text) + info["reply_sha256"] = hashlib.sha256(reply.encode()).hexdigest()[:16] # lets two configurations be compared without storing the text + return info, reply def main():