add auto_trial.py: CDP semi-auto checkout (fill+submit+human captcha click+API verify); fix dead image/audio routes in gateway; correct model claims (369 text-only, verified)

This commit is contained in:
gbonnet65923
2026-10-13 19:19:07 +03:00
parent 0b704dc2de
commit ab81c035a7
5 changed files with 269 additions and 19 deletions
+5 -4
View File
@@ -6,10 +6,13 @@ Reads accounts.jsonl (produced by autoreg.py), rotates the org api_key.secret
(sk_live_...) as the upstream Bearer, and forwards to vetta's proxy endpoints:
POST /v1/chat/completions -> https://api.vetta.sh/v1/proxy/openai/v1/chat/completions
POST /v1/images/generations -> https://api.vetta.sh/v1/proxy/openai/v1/images/generations
GET /v1/models -> https://api.vetta.sh/v1/models
GET /health, GET / -> status + pool dashboard
NOTE: image/audio routes intentionally absent — vetta's proxy returns
`404 no route` for them (catalogue is text-only, verified 2026-10-13,
see REVERSE.md).
Accounts without an activated trial return 402 subscription_required and are
skipped (quarantined) automatically. An account is only usable after its
7-day trial is activated (real card, manual — see README).
@@ -152,7 +155,7 @@ class H(BaseHTTPRequestHandler):
body = {"status": "ok", "pool_total": tot, "pool_live": live,
"note": "402 accounts = trial not activated (see README)"}
if p == "/":
body["endpoints"] = ["/v1/chat/completions", "/v1/images/generations", "/v1/models"]
body["endpoints"] = ["/v1/chat/completions", "/v1/models"]
self._send(200, json.dumps(body, indent=2))
return
if not self._auth():
@@ -177,8 +180,6 @@ class H(BaseHTTPRequestHandler):
route = {
"/v1/chat/completions": "/proxy/openai/v1/chat/completions",
"/v1/images/generations": "/proxy/openai/v1/images/generations",
"/v1/audio/speech": "/proxy/openai/v1/audio/speech",
}.get(p)
if not route:
self._send(404, '{"error":"unknown endpoint"}'); return