Commit Graph
114 Commits
Author SHA1 Message Date
chiyi 6ae88725df fix(events): 视频 pending 用 30 分钟单独期限,避免出片前被判死退款 2026-08-09 02:16:56 +08:00
chiyi 4c0706fa91 feat(models): minimax-h3 改按秒计价,按秒计价改为目录驱动 2026-08-08 22:20:40 +08:00
chiyi 6d17caaf80 feat(leonardo): 接入视频通道并新增 seedance-2.0/minimax-h3 模型 2026-08-08 21:55:33 +08:00
chiyi 6ba80f5109 tweak(video): 视频渲染预算拉到 30 分钟 2026-08-08 11:16:56 +08:00
chiyi ebcf3c5779 feat(grok): 视频改走 Grok Console 并新增图片模型
- grok 视频/图片统一走 console.x.ai:sso 换 DPoP 短期 token,绕开 grok.com 的 statsig 反爬

- 新增 grok-image:不带参考图走 /v1/images/generations,带图自动走 quality 上游 + /v1/images/edits

- grok 额度改本地写死 图5/视频2,成功各扣一次,两份归零直接判死,无恢复时间

- 视频渲染预算统一 20 分钟(adobe/runway/grok/custom)

- 删除参考图人脸打码(facemask + onnxruntime 依赖 + 前台开关)
2026-08-08 11:15:42 +08:00
chiyi 554dea6252 feat(facemask): 黑丝网眼加粗并给 Seedance 提示词追加忽略网格说明 2026-08-07 14:30:43 +08:00
chiyi d275a97946 tweak(facemask): 黑丝网眼间距放宽 2026-08-07 13:41:07 +08:00
chiyi 3d6fd4bd4a feat(facemask): 参考图人脸统一改为黑丝网眼打码 2026-08-07 13:16:52 +08:00
chiyi 2e3a4e9d3f feat: seedance参考图人脸打码(YuNet+切块旋转/白点阵) + VIP零额度降级 + veo3.1 1080p + CGO Dockerfile 2026-08-07 10:08:24 +08:00
chiyi f76ecd5769 feat: 二次元前端改版 + 后端账号plan探测/调度修复 2026-08-06 10:11:05 +08:00
chiyi 7f4701d362 feat: veo3.1 拆分 fast/standard, seedance双模型, per_second定价, 子号过滤, 随机种子, UI优化 2026-08-03 20:27:20 +08:00
chiyi e90aeecea3 fix(adobe): nano-banana modelVersion 修正 + 移除 runway 死代码 2026-08-02 23:35:50 +08:00
chiyi 4987717d23 feat: Adobe积分号不锁定额度 + Nano Banana双通道 + 前端显示额度
- Adobe不再区分视频/图片额度,移除ImageLimited/VideoLimited限制
- Adobe积分号quota耗尽不锁定(status不改为quota),只记录失败用于轮转
- Nano Banana 2/Pro 保留Runway通道,新增nano-banana-2/nano-banana-pro走Adobe
- Adobe模型重命名: runway-nano-banana-2, runway-nano-banana-pro
- 前端管理后台Adobe账号显示积分余额(之前固定显示—)
- README更新模型列表
2026-08-02 20:09:03 +08:00
chiyi cd0b7090f2 refactor(adobe): switch to express.adobe.com origin, remove ErrAuthPermanent, simplify ARP session/PID 2026-08-02 00:07:17 +08:00
chiyi 0a1811b254 优化408 2026-08-01 14:44:05 +08:00
chiyi e2540dc2a3 优化408 2026-08-01 12:58:13 +08:00
chiyi 110edc9b81 更新adobe 优化408 2026-08-01 01:49:05 +08:00
chiyi a1514b5f82 更新408 2026-07-31 23:47:17 +08:00
chiyi 613ab04802 修复chatgpt 2026-07-29 21:39:22 +08:00
chiyi c30155b001 adobe openai更新 2026-07-29 21:15:37 +08:00
chiyi 9a032c6107 更新易支付 2026-07-28 18:31:52 +08:00
chiyi b0cd4a8b33 参考图适配 2026-07-19 11:34:14 +08:00
chiyi 50060f9180 去掉oss保存 2026-07-19 11:23:48 +08:00
chiyi c3f82168b6 grok更新 2026-07-18 15:24:16 +08:00
chiyi b6e8445d95 修复grok 2026-07-17 21:45:31 +08:00
Linda a65f52b7f4 admin lists: server-side pagination + filters for accounts/users/cdks/showcase/banned-words (limit/offset/total; stats over full set; /showcase/admin flat paginated view; dead=1 accounts filter for bulk dead-delete) 2026-07-16 10:48:35 +08:00
chiyi 86559eb7fc grok fix: statsig signer chunk locate regex include ~ (0~4v1h2zpw7n0.js); fixes locateSignerChunk not found -> conversations/new 403 anti-bot 2026-07-16 09:37:27 +08:00
chiyi 60be9201e5 支持远程url吗 2026-07-16 00:50:27 +08:00
chiyi 7a781fecfc 更新runway 2026-07-14 22:44:18 +08:00
chiyi 4a1b91b759 更新订单管理记录更多事情 2026-07-14 12:40:44 +08:00
chiyi 86658e98a1 更新grok 2026-07-13 21:08:30 +08:00
chiyi 0822628bfc 更新grok算法 2026-07-13 10:14:52 +08:00
chiyi 62595de79f 更新省流 2026-07-13 00:06:29 +08:00
chiyi 40cc67d354 更新grok协议 2026-07-12 22:59:52 +08:00
chiyiandClaude Opus 4.8 cd3f98bd61 grok修复: x-statsig-id 改用 goja 跑原版签名器, 自愈跨 reship
手抄的字节算法每次 grok 换 web build 就失效(403 anti-bot), 天天死。
改为内嵌 goja 执行 grok 自己的签名器 chunk + 合成 DOM/WAAPI 垫片, 由 grok
自己的代码做所有随 build 轮换的字节索引/曲线选择, 我们只提供稳定的浏览器原语。

- statsig_engine.go: goja 引擎池 + 构建无关地自动定位当前签名器 chunk
- statsig_shim.js(//go:embed): document/getComputedStyle(WAAPI 采样)/
  crypto.subtle/TextEncoder/base64 垫片 + Turbopack bootstrap
- client.go: statsigID 优先走引擎, 任何失败回退旧静态算法; ensureChallenge
  捕获 seed+curves 并按 reship(chunk 列表变化)重建引擎池
- 旧静态 computeStatsigTail 降级为兜底; 其离线回归测试改 Skip(ground truth
  无法离线重生), 新增 40 并发签名测试

已验证: 动态定位当前 build → conversations/new 返回 200 + conversationId。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 05:41:38 +01:00
chiyi 4c060729b9 grok修复 2026-07-10 15:33:01 +08:00
chiyi 3a2c9710c3 更新runway 2api风控 2026-07-10 13:25:42 +08:00
chiyi 8d792e66e0 加回 nano-banana-2 与 nano-banana-pro 并存 2026-07-10 12:02:14 +08:00
chiyi 2afb4e7857 nano-banana-2 升级为 nano-banana-pro (workflow_gemini_image / gemini-3-pro-image-preview, 支持 2K/4K) 2026-07-10 11:19:51 +08:00
chiyi a636f79cd8 更新 2026-07-10 10:59:14 +08:00
chiyi 788c97d9d5 ai去特征展示 2026-07-10 00:23:14 +08:00
chiyi 6a3588b35b ai去特征增加开关 2026-07-10 00:13:09 +08:00
chiyi 6d6bd2a638 增加ai去特征 2026-07-09 23:48:58 +08:00
chiyi 21cca6513b 更新下载超时延长 2026-07-09 19:38:30 +08:00
chiyi 65ca95a736 Merge branch 'devin/1783580774-grok-statsig-selfheal' 2026-07-09 19:25:03 +08:00
chiyi 0612e83081 Merge branch 'devin/1783582849-image-cookie-rolling' 2026-07-09 19:24:37 +08:00
chiyi 81c040cb0b 优化上游错误重试 2026-07-09 17:45:31 +08:00
chiyi 33b5fc3b0e fix(runway): retry the /v1/tasks submit on transient errors
A dropped proxy connection (EOF) or 5xx on the task-create failed the whole generation. submitTask now retries transient (ErrTemporaryUpstream) submits up to 3x with backoff, honoring ctx. Applies to both Nano Banana image and Gen-4 video. Validated: 10/10 4K images (19-24MB PNG each) generated across 10 accounts.
2026-07-09 17:06:43 +08:00
chiyi cc6a2b1c54 fix(runway): raise the tls-client timeout so large artifact downloads don't cancel
Runway (Nano Banana 2) used a 30s whole-request timeout that includes reading the response body, so downloading a rendered image/video artifact off a slow CDN aborted with 'request canceled (Client.Timeout or context cancellation while reading body)'. Raised to 300s; genCtx still bounds the overall generation.
2026-07-09 16:55:02 +08:00
chiyi fba6772584 fix(imagine,krea,leonardo): poll for the full genCtx budget instead of a short hardcoded cap
imagine/krea capped polling at 4min and leonardo at 5min while the caller's genCtx budget is 8min, so slow-but-valid generations were killed early with 'generation timed out'. Now the poll deadline tracks ctx.Deadline() minus 60s download headroom (fallback to the old fixed cap if ctx has no deadline). chatgpt already ties its budget to the deadline (pollBudget) and runway/grok honor ctx, so no change needed there.
2026-07-09 16:52:16 +08:00