Commit Graph
10 Commits
Author SHA1 Message Date
chiyi 5403acc4c9 leonardo: get-session 按 cookie 串行,避免并发刷新令牌被判重用 2026-08-10 20:18:32 +08:00
chiyi 15602b8033 leonardo: 把 cross-origin-cookie 401 判为会话被吊销 2026-08-10 19:38:58 +08:00
chiyi 52f9ec967c fix(leonardo): get-session 返回 null 时重试 3 次再判 cookie 失效
预热成功后的 200 null 之前第一次就 break 并直接 ErrAuth;同样的响应也可能是某个出口 IP 被挑战页静默降级,改成最多 3 次(第 2、3 次走代理换 IP)都拿不到 accessToken 才算死号。
2026-08-10 09:15:07 +08:00
chiyi eee8698f46 fix(leonardo): get-session 改直连并先做 cross-origin-cookie 预热,429 才退回代理 2026-08-09 13:40:07 +08:00
chiyi 8f3cb25c25 fix(leonardo): get-session 走代理并重试 10 次,绕过 Vercel 人机校验的偶发放行 2026-08-09 03:06:24 +08:00
chiyi 6190f814d9 fix(leonardo): 连续 3 次鉴权失败才判死,get-session 补齐浏览器头并保护 session_data 2026-08-09 02:17:01 +08:00
chiyi 6d17caaf80 feat(leonardo): 接入视频通道并新增 seedance-2.0/minimax-h3 模型 2026-08-08 21:55:33 +08:00
chiyi 622bc9ba9a feat(providers): account calls (auth/refresh/credits) egress on the local IP
Now only the generate/video submit uses proxy.url; cookie-exchange/login, token refresh, credit-balance and project/session bootstrap all go direct. Also splits adobe GenerateVideo (submit=proxy, poll/download=local). Verified live: adobe gpt 1K cookie-exchange via local IP, submit 23.244.30.102 (proxy) vs local 76.209.9.65, 2.0MB PNG. Build+vet pass.
2026-07-09 16:36:04 +08:00
chiyi 6c2a942a88 feat(providers): route only the generate submit through the proxy
Extends the adobe split to leonardo, krea, imagine, runway (image+video) and chatgpt: reference-image upload, polling and result download egress on the local IP; only the generate/task-create submit uses proxy.url. chatgpt keeps its anti-bot-guarded submit+upload phase on the proxy and moves only the existing second (poll/resolve/download) session to local. custom is already direct. Build+vet pass; adobe verified live, the other providers are code-complete but not yet live-tested (no dev accounts).
2026-07-09 16:21:31 +08:00
chiyiandClaude Opus 4.8 606caaf047 Initial open-source release (MIT): image2api AI gateway
Full Go backend + Vue 3 frontend, OpenAI-compatible API, multi-provider
account pools, billing/admin, Docker one-command deploy with auto HTTPS.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 22:59:04 +08:00