chiyi
b6e8445d95
修复grok
2026-07-17 21:45:31 +08:00
chiyi
0822628bfc
更新grok算法
2026-07-13 10:14:52 +08:00
chiyi and Claude 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
2987053b10
feat(grok): account calls (credits/subscription/session) egress on the local IP
...
Only the conversations/new generate submit still uses proxy.url; FetchCreditsBalance, FetchSubscription and FetchSession now go direct.
2026-07-09 16:32:21 +08:00
chiyi
57e3ee4cef
feat(grok): route only the conversations/new submit through the proxy
...
Reference-frame upload, the mp4 download and OpenAsset (/content) streaming now egress on the local IP; only the generate submit uses proxy.url. Verified live: submit egress 98.97.26.37 (proxy) vs upload/download 76.209.9.65 (local), 3.47MB video generated OK.
2026-07-09 16:26:18 +08:00
chiyi
48cfbff592
fix(grok): self-heal x-statsig-id from live homepage seed+curves
...
Derive the 49-byte header seed and the salt F per-session from the grok homepage (browser-free tls-client GET), instead of hardcoding constants that go stale on every grok web rebuild (403 anti-bot). F is reproduced natively in Go (curve keyframe sampling: cubic-bezier easing, color lerp, rotation matrix, JS-exact number->hex). Static constants remain as env-overridable fallback. Adds offline regression test against server-verified ground-truth triples.
2026-07-09 15:07:12 +08:00
chiyi
f9e72c0168
修复bug
2026-07-03 18:12:46 +08:00
chiyi
4e2844ff51
grok修复恢复时间
2026-07-03 02:10:30 +08:00
chiyi
273892f98f
更新缩略图
2026-07-03 00:15:41 +08:00
chiyi
41bd120404
修复grok 403
2026-07-02 11:04:47 +08:00
chiyi and Claude Opus 4.8
3ef84bb9b3
feat: 自定义 OpenAI 兼容上游聚合 + 权重/并发调度
...
- custom provider:把任意 v1 端点当账号(base_url+key),按 model id 路由,
直连不走代理;支持 images/generations、images/edits、Sora 式异步视频
- 调度器全局权重优先 + 每账号并发感知(上游账号可配并发,其余系统固定)
- 后台:添加/编辑上游、自定义模型表单(每档普通/代理价,留空=不支持)、
账号权重/并发列与导入权重
- grok-video / nano-banana-2(runway) 写入硬编码目录(开源自带);
去掉 540p,Adobe 视频最低 720p
- UI:SelectMenu 与输入框等高、测试耗时改用秒
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-28 21:59:46 +08:00
chiyi and Claude Opus 4.8
17cd289dfd
feat: add Grok (grok.com) video provider; runway nano-banana image; unify runway/grok pool policy
...
- grok provider: imagine text/image-to-video (media.post.create → conversations/new),
GetGrokCreditsConfig credit query (remaining = 100 - used) + weekly reset, spoofed
x-statsig-id (no Cloudflare clearance needed), /api/auth/session email lookup,
6 reference images, 10 concurrent jobs/account, no token refresh (dead = dead)
- runway: nano-banana-2 image flow (Nano Banana 2); drop pre-deduct + post-success
reconcile; out-of-credits/403 → dead (no revive); 10-ratio support
- imagine: drop post-success credit reconcile (consistent with krea)
- account gate: per-account N-concurrency (grok=10, others=1)
- admin: provider health lists all 7 providers; frontend import auto-detects Grok SSO
- docs: README (CN/EN) updated to 7 providers + Grok
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-28 04:01:06 +08:00