Chenyme
0c51ca8bf1
Merge pull request #968 from lij768423-svg/feat/empty-hold-idle-sse
...
fix: do not fail-open empty held streams as HTTP 200
2026-08-19 11:06:49 +08:00
Chenyme
470b7c38ad
fix: retry empty streams and emit protocol-safe terminal events
2026-08-19 10:59:54 +08:00
lij768423-svg
633cf9b73e
fix: fill required Responses ids for Grok CLI serde
...
Idle abort still failed with missing field id because CLI requires
id on the event and on item/error objects, not only response.id.
Rewrite streamed Responses events to supply missing response/item
ids and emit a complete incomplete trailer.
2026-08-19 02:35:33 +08:00
lij768423-svg
48308eb402
fix: give abort trailers the response id Grok CLI requires
...
The empty-hold idle trailer emitted response.incomplete without id,
created_at, or sequence_number. Grok CLI serde then failed with
missing field id. Reuse the streamed response id when present and
always write a complete response object.
2026-08-19 02:11:57 +08:00
lij768423-svg
4940556056
fix: do not fail-open empty held streams as HTTP 200
...
Empty hold timeouts and upstream idle were delivered as 200 without a
terminal SSE event, so Sub2API wrapped them as 500. Keep waiting on a
0-token hold expire, treat idle as a retryable 504 instead of client
499, cool the hanging account, and write an SSE error + DONE when the
flush path is already committed.
2026-08-19 02:01:38 +08:00
Chenyme
a4b33d47bf
Merge pull request #965 from chenyme/egress
...
feat: improve proxy visibility and cross-provider setup
2026-08-18 23:46:15 +08:00
Chenyme
233aea53ed
feat: enhance egress proxy profiles management with improved UI and functionality
2026-08-18 23:40:41 +08:00
Chenyme
5bbbf537b8
feat: add scalable shared proxy configurations
2026-08-18 23:11:54 +08:00
Chenyme
dc307b3dcf
feat: improve proxy visibility and cross-provider setup
2026-08-18 20:58:23 +08:00
Chenyme
6fca62e47e
Merge pull request #964 from chenyme/refresh
...
fix: harden Build OAuth credential refresh recovery
2026-08-18 20:18:10 +08:00
Chenyme
2a4537efd5
Merge branch 'main' into refresh
2026-08-18 20:12:55 +08:00
Chenyme
b1b26117e5
Merge pull request #962 from lij768423-svg/docs/document-request-retry-compact-egress
...
docs: document requestRetry, compact session drift, and sticky nodes
2026-08-18 20:12:48 +08:00
Chenyme
e6428933e3
fix: harden Build OAuth credential refresh recovery
2026-08-18 20:11:54 +08:00
lij768423-svg
fb803d4ba1
docs: document requestRetry, compact session drift, and sticky nodes
...
Cover the recently merged gateway withhold/retry, keep compaction
summaries across session-key drift, and recommend one fixed node per
sticky session. Point sidecar docs at GROK2API_BASE_URL and make it
clear requestRetry is in-process, not sidecar.
2026-08-18 19:19:54 +08:00
Chenyme
6566c07104
Merge pull request #950 from kkx600/feat/accounts-refresh-token-import
...
feat(accounts): support Grok Build refresh-token imports
2026-08-18 18:46:48 +08:00
Chenyme
526d43ce71
Merge branch 'main' into feat/accounts-refresh-token-import
2026-08-18 18:38:41 +08:00
Chenyme
6f113442c7
fix: persist rotated Build refresh tokens safely during import
2026-08-18 18:37:26 +08:00
Chenyme
608713e4c3
Merge pull request #961 from chenyme/duplicate_tools
...
fix: avoid duplicate view_image tool definitions
2026-08-18 18:28:56 +08:00
Chenyme
a608c209a1
fix: avoid duplicate view_image tool definitions
2026-08-18 18:22:15 +08:00
Chenyme
99591718c2
Merge pull request #960 from chenyme/reason
...
fix: deduplicate streamed reasoning sources
2026-08-18 18:14:07 +08:00
Chenyme
43afb615ad
fix: deduplicate streamed reasoning sources
2026-08-18 18:02:45 +08:00
Chenyme
b202965dc8
Merge pull request #959 from lij768423-svg/feat/request-quality-hold-retry
...
feat: withhold missing-thinking streams and retry another account
2026-08-18 17:36:16 +08:00
Chenyme
43b17d866c
Merge branch 'main' into pr/959
...
# Conflicts:
# backend/internal/infra/config/config.go
2026-08-18 17:31:09 +08:00
Chenyme
6b8a969865
feat: enhance quality retry mechanism with new read pump and timeout handling
2026-08-18 17:28:08 +08:00
Chenyme
07eef7c32c
Merge pull request #958 from lij768423-svg/fix/quality-guard-base-url
...
fix: honor GROK2API_BASE_URL in quality-guard sidecar
2026-08-18 16:50:51 +08:00
Chenyme
bbc1b1a250
Merge branch 'main' into fix/quality-guard-base-url
2026-08-18 16:46:32 +08:00
Chenyme
b80ec9d278
fix: enhance GROK2API_BASE_URL validation and testing
2026-08-18 16:46:18 +08:00
Chenyme
d851f92b5b
Merge pull request #957 from lij768423-svg/feat/auto-assign-migration-bounds
...
feat: bound auto-assign share and per-cycle migrations
2026-08-18 16:41:00 +08:00
Chenyme
6e3e4c2ab3
Merge branch 'main' into feat/auto-assign-migration-bounds
2026-08-18 16:36:22 +08:00
Chenyme
3c70dc7064
fix: enforce safe auto-assign share bounds
2026-08-18 16:35:58 +08:00
Chenyme
cc98a7e1fb
Merge pull request #956 from lij768423-svg/fix/compaction-session-drift
...
fix: keep compaction summary when session key drifts
2026-08-18 16:29:13 +08:00
Chenyme
ef3415dc95
Merge branch 'main' into fix/compaction-session-drift
2026-08-18 16:19:42 +08:00
Chenyme
6407a39cc4
Merge pull request #953 from kkx600/feat/account-token-millions
...
feat(accounts): display Free quota tokens in M units
2026-08-18 16:19:32 +08:00
Chenyme
bfd74a8f8d
Merge branch 'main' into feat/account-token-millions
2026-08-18 16:16:14 +08:00
Chenyme
017165f5ba
Merge pull request #952 from kkx600/fix/account-recovery-breakdown
...
fix(accounts): distinguish quota recovery states
2026-08-18 16:12:54 +08:00
Chenyme
a578ca09b6
Merge branch 'main' into fix/account-recovery-breakdown
2026-08-18 16:08:31 +08:00
Chenyme
7fc590895d
feat: enhance abnormal account status display with detailed breakdown
2026-08-18 16:08:01 +08:00
Chenyme
e3d07f8453
Merge pull request #951 from kkx600/feat/audit-reasoning-effort
...
feat(audit): record reasoning effort
2026-08-18 15:56:10 +08:00
Chenyme
7e7b89f0c5
feat: enhance reasoning effort handling and normalization across components
2026-08-18 15:50:05 +08:00
lij768423-svg
506b4e46f9
feat: withhold missing-thinking streams and retry another account
...
Hold thinking-model SSE until reasoning appears or enough visible
output arrives with none. Do not deliver that first body; switch
accounts up to five more times. After six misses, fail closed with
503 instead of sending a no-thinking reply. Default off.
2026-08-18 09:26:35 +08:00
lij768423-svg
08f732bab2
fix: honor GROK2API_BASE_URL in quality-guard sidecar
...
The sidecar default remains http://grok2api:8000 for Compose DNS.
Override the env when the main service is renamed or published on host
networking.
2026-08-17 22:20:01 +08:00
lij768423-svg
ae05b4f749
feat: bound auto-assign share and per-cycle migrations
...
Add optional routing.autoAssignMaxNodeShare and
autoAssignMaxMigrationShare. Default 0 keeps the historical unbounded
first-pass evacuation and the existing 200-move repair ceiling. Values
in [0.05, 1] cap how many active accounts one healthy node may absorb
and how many already-bound accounts may move in one cycle.
2026-08-17 22:20:01 +08:00
lij768423-svg
ae6447e5a1
fix: keep compaction summary when session key drifts
...
A still-decryptable g2a_compact_v1 blob from this gateway instance is
expanded even if PromptCacheKey no longer matches. Foreign and
undecodable blobs stay omitted. Surface compaction_session_drifted in
compatibility warnings so clients can see the key changed.
2026-08-17 22:20:01 +08:00
zhizhuo
633c0d9441
feat(accounts): display free token usage in millions
2026-08-17 16:30:58 +08:00
zhizhuo
9a2d9a3791
fix(accounts): distinguish quota recovery states
2026-08-17 16:30:58 +08:00
zhizhuo
b91bdbdbcc
feat(audit): record reasoning effort
2026-08-17 16:30:58 +08:00
zhizhuo
b4599d96c0
feat(accounts): support refresh-token imports
2026-08-17 16:28:43 +08:00
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