openpencil/scripts/ab-corpus/clients
Fini 7d419cffd1 feat(ab-corpus): exponential backoff + bump retries=2 on ark/deepseek
ab-v3 left 36 ark empty + 15 timeout + 4 429 + 6 deepseek empty + 4
minimax timeout AFTER the existing retries=1 fired 88 times. Linear
backoff 250ms*(attempt+1) was too tight when stepping up to
retries=2 (500ms then 750ms isn't a typical Ark recovery window).

Switches to exponential 250ms*4^attempt — 250 / 1000 / 4000ms
spacing — and bumps ark + deepseek to retries=2. minimax opts in to
retries=1 (its 4 errors were wall-clock timeouts, not the model's
<think> truncation that retry can't fix anyway).

10 existing retry tests still pass; the retries=2 case now sleeps
1.25s instead of 0.75s, still well under vitest's default timeout.
2026-04-29 09:49:41 +08:00
..
__tests__ feat(ab-corpus): bootstrap ab-v3 with token cost + composite difficulty 2026-04-29 07:45:00 +08:00
ark.ts feat(ab-corpus): exponential backoff + bump retries=2 on ark/deepseek 2026-04-29 09:49:41 +08:00
bailian.ts feat(ab-corpus): bootstrap ab-v3 with token cost + composite difficulty 2026-04-29 07:45:00 +08:00
codex-cli.ts feat(ab-corpus): bootstrap ab-v3 with token cost + composite difficulty 2026-04-29 07:45:00 +08:00
deepseek.ts feat(ab-corpus): exponential backoff + bump retries=2 on ark/deepseek 2026-04-29 09:49:41 +08:00
glm.ts Merge branch 'main' of github.com:ZSeven-W/openpencil into v0.8.0 2026-04-26 19:39:14 +08:00
minimax.ts feat(ab-corpus): exponential backoff + bump retries=2 on ark/deepseek 2026-04-29 09:49:41 +08:00
openai-compat.ts feat(ab-corpus): exponential backoff + bump retries=2 on ark/deepseek 2026-04-29 09:49:41 +08:00