From fa07ac3a294c6b3a5bae39fbdf17e64c3e512811 Mon Sep 17 00:00:00 2001 From: ENI Date: Sat, 21 Nov 2026 18:44:56 +0200 Subject: [PATCH] shim: single attempt per request (retry loop burned 4 accounts on one empty answer) --- qw_shim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qw_shim.py b/qw_shim.py index f8be912..6d1efdc 100644 --- a/qw_shim.py +++ b/qw_shim.py @@ -291,7 +291,9 @@ class H(BaseHTTPRequestHandler): return self._json(503, {"error": {"message": "no qwenwork account available " "(pool empty or all cooling)"}}) tried, ans, sid, last_err = set(), None, None, None - for _ in range(min(4, max(1, len(_accounts)))): + # [NORETRY 1121] one account per request: every attempt creates a session and burns + # the whole wallet, so a 4x retry loop cost 4 accounts per empty answer. + for _ in range(1): try: ans, _thought, sid = run_turn(acc["jwt"], mode, text) if ans: