Commit Graph
1358 Commits
Author SHA1 Message Date
Chenyme 57746fc702 Merge branch 'main' of https://github.com/chenyme/grok2api v3.1.3 2026-08-17 15:46:40 +08:00
Chenyme 6ddd3e7971 Update VERSION 2026-08-17 15:46:29 +08:00
Chenyme b63519010f Merge pull request #949 from kaecho/fix/first-token-encrypted-reasoning
fix: keep thinking time in quality-guard Token/s
2026-08-17 15:39:02 +08:00
Chenyme 98a3653494 Merge branch 'main' into fix/first-token-encrypted-reasoning 2026-08-17 15:34:29 +08:00
Chenyme 7f8aa95b8e fix: keep thinking time in Token/s without hiding real bursts 2026-08-17 15:29:00 +08:00
Chenyme f42ba1765f Merge pull request #946 from lanting200/fix/stream-interrupt-soft-cooldown
fix(gateway): treat mid-stream cuts as soft cooldown
2026-08-17 14:20:20 +08:00
Chenyme 164130da9b Merge branch 'main' into fix/stream-interrupt-soft-cooldown 2026-08-17 14:15:39 +08:00
Chenyme 1806348772 fix: update failure handling logic for cooldowns 2026-08-17 14:15:17 +08:00
Chenyme e950b00702 Merge pull request #940 from LuckyPro-X/pr-b-protocol
fix(web): align image edit payload with current web protocol (mediaGenInput)
2026-08-17 14:14:47 +08:00
Chenyme 08573aca10 refactor: simplify image edit test flow by removing media post stage and adjusting assertions 2026-08-17 14:06:13 +08:00
Chenyme 8851ae83dc Merge branch 'main' into pr-b-protocol 2026-08-17 13:58:03 +08:00
Chenyme 51e2f4d3ea fix: align image edits with current mediaGenInput protocol 2026-08-17 13:50:36 +08:00
Chenyme 88af851b45 Merge pull request #948 from chenyme/video
fix: enable Basic 720p video and align media quota handling
2026-08-17 13:49:29 +08:00
kaecho e4049e3449 Merge branch 'main' into fix/first-token-encrypted-reasoning 2026-08-17 13:10:40 +08:00
mirrox-dev 9c74f91465 fix: keep thinking time in quality-guard Token/s
Buffered or encrypted thinking on Build Chat never started the first-token
clock, so billed reasoning tokens were divided into a short flush window
and the panel reported thousands of Token/s. Start Chat first-token at the
reasoning item and fall back to full duration when that tail is shorter
than the wait and under 1s.
2026-08-17 12:10:53 +08:00
Chenyme 05528aca3a feat: align Imagine models, generation parameters, and quota resets 2026-08-17 11:49:59 +08:00
Chenyme d99df20fa9 fix: enable Basic 720p video and align media quota handling 2026-08-17 11:08:19 +08:00
Chenyme f06d6fe79f Merge pull request #939 from LuckyPro-X/pr-a-tier
fix(web): allow Basic accounts to use grok-imagine-image-edit
2026-08-17 10:40:07 +08:00
Chenyme e5b6fd0181 Merge branch 'main' into pr-a-tier 2026-08-17 10:30:42 +08:00
Chenyme cc4966a9d7 fix: enable Basic image edits with tier-aware routing and quota fencing 2026-08-17 10:29:44 +08:00
mirrox-dev 03db0b59f4 fix: count encrypted reasoning start in first-token TPS
Native /v1/responses streams can begin with an identified reasoning
item and no text delta. First-token detection previously waited for
output_text, so thinking time left the TPS denominator while
reasoning tokens stayed in the numerator. Chat aliases that put
thinking in thinking_content are counted the same way.
2026-08-17 02:18:31 +08:00
lanting200 58f142d027 fix(gateway): treat mid-stream cuts as soft cooldown
A 2xx stream interrupt is transport jitter, not an upstream 502. Passing
status 0 uses the 5s soft isolation and avoids exponential cooldown
emptying a small account pool.
2026-08-16 19:07:03 +08:00
Chenyme 369de6fd64 Merge pull request #934 from buddhism5080/fix/audit-media-keep-tokens
fix(audit): keep token usage when media input is present
2026-08-16 14:32:28 +08:00
Chenyme 28bd057053 Merge branch 'main' into fix/audit-media-keep-tokens 2026-08-16 14:21:57 +08:00
Chenyme 56bf00b5ae fix: preserve media token usage and track reported usage accurately 2026-08-16 14:21:47 +08:00
Chenyme 295ad77e23 Merge pull request #933 from 2164312714-svg/fix/web-media-clearance-retry
fix(web): reacquire clearance after image challenge 403
2026-08-16 13:55:09 +08:00
Chenyme ba975f8c40 fix: safely refresh clearance after media challenge 403 2026-08-16 13:35:18 +08:00
Chenyme fe383894ae Merge branch 'main' into fix/web-media-clearance-retry 2026-08-16 13:33:36 +08:00
Chenyme cecd717a94 Merge pull request #945 from chenyme/grok_build_1.0.4
feat: align with grok-build 1.0.4 request protocol
2026-08-16 13:12:03 +08:00
Chenyme e0a82d5022 fix: preserve visible reasoning summaries for Chat requests 2026-08-16 13:01:25 +08:00
Chenyme 82df112044 Merge pull request #931 from 741075810/pr/video-admission-limits
fix(video): 参考图张数与时长在入队前校验,不再产出必然失败的任务
2026-08-16 12:05:53 +08:00
Chenyme ae9787d82e Merge branch 'main' into pr/video-admission-limits 2026-08-16 11:40:47 +08:00
Chenyme 6304c2aecb fix: enforce Console reference limits before scheduling 2026-08-16 11:40:23 +08:00
兔兔 tu 72f3fea894 fix(web): align image edit payload with current web protocol (mediaGenInput)
grok.com/imagine 网页端(2026-08 实测, Quality v2.0 模式)编辑请求已迁移到新结构:

`mediaGenInput.imageToImage.inputAssets`(fileMetadataId)+ `kind: CONVERSATION_KIND_IMAGINE`,不再使用 `config.imageReferences` + `parentPostId`(无需 createMediaPost),无 `temporary`/旧字段,imageGenerationCount 默认 1。

网关仍使用旧结构(temporary:true + imageReferences + parentPostId + imageGenerationCount:2),与上游当前协议不一致。

本次改动:
- EditImage 使用 upload-file-v2/direct 返回的 fileMetadataId 作为 inputAssets,跳过 createMediaPost
- buildImageEditPayload 对齐网页端结构(mediaGenInput.imageToImage + kind)
- 移除旧字段与双图生成(imageGenerationCount:2 → 默认 1)

### 验证
本地构建后编辑成功(200, ~10s),与网页端行为一致。
2026-08-15 16:59:07 +08:00
兔兔 tu beb3f8f500 fix(web): allow Basic accounts to use grok-imagine-image-edit
grok.com/imagine 网页端实测: Basic 账号可以正常进行图片编辑(消耗 image_pro 额度),但网关将编辑路由按 Super 门槛过滤,导致 /v1/images/edits 返回 404 模型不存在。

将 grok-imagine-image-edit 的 MinimumTier 放宽到 WebTierBasic,使网关能力与 xAI 网页端一致。
2026-08-15 16:58:37 +08:00
Chenyme 0cc20278ef Merge pull request #930 from lij768423-svg/feat/quality-guard-profiles-dual-probe
feat: probe profiles, dual-probe recovery, and thinking guard
2026-08-15 12:19:57 +08:00
Chenyme 5021ab68e9 Merge branch 'main' into feat/quality-guard-profiles-dual-probe 2026-08-15 12:01:47 +08:00
Chenyme 2428f17d34 fix: harden probe recovery and prevent false thinking isolation 2026-08-15 12:01:26 +08:00
Chenyme feb65ed3a5 Merge pull request #929 from heshangcode/fix/web-sso-build-conversion
fix: keep web-to-build SSO device flow off Cloudflare-strict accounts.x.ai
2026-08-15 11:18:18 +08:00
Chenyme e228c2dd6e Merge branch 'main' into fix/web-sso-build-conversion 2026-08-15 11:13:39 +08:00
Chenyme 2ae101f431 fix: keep SSO-to-Build device flow on auth.x.ai 2026-08-15 11:13:17 +08:00
Chenyme ba38f41bed Merge pull request #927 from MMortise/feature/proxy-subscription-compatibility
feat(egress): support Clash subscriptions and Reality Vision
2026-08-15 10:42:00 +08:00
Chenyme 6ce2f919b0 Merge branch 'main' into feature/proxy-subscription-compatibility 2026-08-15 10:36:51 +08:00
Chenyme 7521223143 fix: harden Clash parsing and preserve tunnel ALPN 2026-08-15 10:36:37 +08:00
Chenyme 5b0c5cd30c Merge pull request #923 from MMortise/fix/semantic-stream-idle-timeout
fix: enforce semantic idle timeout for Build streams
2026-08-15 10:05:34 +08:00
Chenyme b0d6881aec Merge branch 'main' into fix/semantic-stream-idle-timeout 2026-08-15 09:58:43 +08:00
Chenyme db2db0c78e fix: preserve semantic idle timeout during tool progress 2026-08-15 09:57:02 +08:00
buddhism5080 6a838cb3c5 fix(audit): label media output as output
Keep the media row distinct from the token 输出 cell.
2026-08-15 00:05:29 +08:00
2164312714-svg 2a624ac5d1 fix(web): reacquire clearance lease after media 403
Refs #932
2026-08-14 22:58:05 +08:00
lij768423-svg 327df116a7 fix: treat 32+ token replies with no thinking as degrade
Short 降智 answers (30-40 tokens, reasoning=0) were skipped by the
64-token floor. Isolate those; keep sub-32 samples ignored.
2026-08-14 21:57:10 +08:00