From 8d24a0fb8a9483e3e2d443c147278d807fea8f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Sun, 15 Nov 2026 20:00:06 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E9=9B=BB=E8=85=A6=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E9=87=8F=E6=B8=AC=E6=AF=8F=E9=A1=8C=E6=B8=85=E6=8E=89=E7=9C=8B?= =?UTF-8?q?=E5=9C=96=E6=8F=8F=E8=BF=B0=EF=BC=8C=E4=B8=A6=E8=A8=98=E4=B8=8B?= =?UTF-8?q?=E8=AB=8B=E5=88=A5=E7=9A=84=E6=A8=A1=E5=9E=8B=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E4=BA=86=E5=B9=BE=E5=BC=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Uirha4mzWbjJAWAsDVuBun --- bench/computer-use/run.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bench/computer-use/run.py b/bench/computer-use/run.py index a3d1e4f..ee21dfb 100644 --- a/bench/computer-use/run.py +++ b/bench/computer-use/run.py @@ -426,7 +426,9 @@ def main(): for name in ["chats", "oplog"] + (["skills"] if skills else []): shutil.rmtree(os.path.join(a.data, name), ignore_errors=True) for name in os.listdir(a.data): - if name.startswith("memory.db"): + # The 看圖小幫手's notes too (a model that can't see pictures has them described): each + # task's pictures are described anew, and counted. + if name.startswith("memory.db") or name == "image-notes.json": os.remove(os.path.join(a.data, name)) forget(skills=True) # A box of its own that doesn't exist yet: one plain question first makes it (the first task's @@ -482,6 +484,12 @@ def main(): r["check_error"] = str(e) r["skills"] = [{"name": k.get("name"), "steps": len(k.get("steps", []))} for k in st.get("skills", [])] r["replayed"] = "replay_skill" in r.get("tools", []) + # Pictures another model described for this one (it can't see them): their cost isn't in + # the meter's count, which is the bot's own model only. + try: + r["described"] = len(json.load(open(os.path.join(a.data, "image-notes.json")))) + except (OSError, ValueError): + r["described"] = 0 if meter: r["usage"] = meter.take() r.update({"id": t["id"], "name": t["name"], "expected_route": t["route"], "ok": ok, "run": run + 1, "label": a.label,