Commit Graph
227 Commits
Author SHA1 Message Date
put-go 3d6a699a9f fix: default egress probes to cloudflare 2026-07-26 13:00:12 +08:00
put-go 830c3b076c feat: add selectable egress probe provider 2026-07-26 12:01:34 +08:00
put-go 0de70e0fd9 feat: split egress probes by IP family 2026-07-26 11:06:35 +08:00
Chenyme af2415f150 feat: introduce webVisibleStreamPhase to manage client-visible output and suppress late reasoning 2026-07-25 14:16:34 +08:00
Chenyme af2974195f feat: implement batch quota reset functionality for Build accounts 2026-07-25 13:49:52 +08:00
Chenyme 9e25976228 Merge branch 'main' into main 2026-07-25 13:02:10 +08:00
Chenyme 1a7f0acc59 refactor: update ListRoutingCandidates and related methods to include modelRouteID parameter for improved routing candidate selection 2026-07-25 13:01:23 +08:00
Chenyme 4cf6c50b0c fix: enhance handling of 403 responses for blocked accounts 2026-07-25 10:00:09 +08:00
Huan-zhaojun a234e3b41d fix(web,session): prefer block signals before identity and Statsig retry
Treat session status blocked/unauthenticated before accepting identity
fields. On Web chat and quota 403, classify blocked-user body before
Statsig invalidation retry so definitive ban signals are not dropped.
2026-07-25 00:00:29 +08:00
Huan-zhaojun ba81e8d42a fix(gateway): invalidate SSO on chat 403 blocked-user body
Classify HTTP 403 by response body before egress retry. When body contains
blocked-user or user is blocked, mark reauthRequired and rotate accounts;
other 403s keep egress retry without account penalty.
2026-07-25 00:00:29 +08:00
Huan-zhaojun 232fe83207 feat(account): mark SSO invalid on session blocked and quota blocked-user
Map definitive upstream dead-account signals to provider.ErrUnauthorized so
import identity sync and Web quota refresh persist reauthRequired (UI: 失效)
and drop accounts from scheduling.

- Session Parse: status=blocked (no identity) → ErrUnauthorized
- Web rate-limits: HTTP 403 body with blocked-user / user is blocked → ErrUnauthorized
- Keep generic missing-identity and non-blocked 403 as non-invalidating failures
- Add sessionidentity Parse tests and Web quota blocked/generic 403 tests
2026-07-25 00:00:29 +08:00
x 037faab38b 放宽「同一 Provider + 同一 upstream 只能有一条路由」的限制,使管理端可创建:
gpt-5.4 → grok-4.5
gpt-5.5 → grok-4.5
并与发现/目录产生的 grok-4.5 → grok-4.5 共存。
仍保持 对外名 public_id 全局唯一;重复创建同一个 gpt-5.5 继续 409。
2026-07-24 20:04:41 +08:00
Chenyme 95607b1baa Merge branch 'main' into codex/fix-nullable-tool-schema 2026-07-24 16:26:49 +08:00
Chenyme 35f5a3a482 fix: enhance nullable function parameter handling and add tests for local and external references 2026-07-24 16:26:33 +08:00
Chenyme 8a8db129b3 chore: update recommended build version to 0.2.111 and enhance OAuth client functionality 2026-07-24 13:07:01 +08:00
ruruo bbd7e3806a fix(cli): normalize nullable function parameter roots 2026-07-24 09:25:13 +08:00
Chenyme dae50ce67b fix: release v3.0.8-hotfix.1 for Grok Build reasoning compatibility 2026-07-23 18:02:55 +08:00
Chenyme 83bf4f42b3 feat: support BOM in JSON and JSONL imports across providers 2026-07-23 15:17:01 +08:00
Chenyme 09388e5634 feat: add configurable Grok Build 403 invalidation rules 2026-07-23 14:54:12 +08:00
Chenyme a39f7b8453 chore: update recommended build version to 0.2.110 2026-07-23 13:34:46 +08:00
Chenyme 9c6d78c090 refactor: streamline Grok Web agreement and association filters 2026-07-23 11:06:58 +08:00
starsdream666 1967db12de feat: add Grok Web agreement and association filters
Expose NSFW/terms and Build/Console link filters on the Grok Web
accounts page, with backend query support and list-filter coverage.
2026-07-23 08:40:54 +08:00
Chenyme 68bd35e1fc fix: correct Anthropic cached input token accounting 2026-07-23 02:48:46 +08:00
Chenyme cc578d551c fix: make response header timeout hot-reloadable and migration-safe 2026-07-23 02:36:45 +08:00
Chenyme a4d2111692 perf: harden billing ledger recovery and bound quota refresh memory 2026-07-23 01:42:37 +08:00
Chenyme 87f58a231e Merge remote-tracking branch 'origin/main' into high_concurrency
# Conflicts:
#	backend/internal/infra/egress/manager.go
2026-07-23 01:36:11 +08:00
Chenyme 34afed0a34 feat: implement operations config invalidation and enhance fallback management 2026-07-23 01:24:41 +08:00
Chenyme 413eb39667 perf: reduce cached acquisition contention with immutable snapshots and atomic load tracking 2026-07-23 00:21:50 +08:00
Chenyme 858509b7cb perf: finalize large-pool segmented selection and remove shadow mode 2026-07-23 00:21:03 +08:00
Chenyme 1e709595f9 perf: add typed invalidation and layered candidate caching 2026-07-23 00:21:03 +08:00
Chenyme 8695bb629f perf: batch acknowledged writes and atomic billing settlement 2026-07-23 00:20:03 +08:00
Chenyme 275053700e perf: harden response cleanup, cross-instance model state, and egress cache invalidation 2026-07-23 00:20:03 +08:00
Chenyme 9c583fd167 perf: finalize concurrency safety and infrastructure validation 2026-07-23 00:19:22 +08:00
Ron 6224ed992b feat: add configurable egress fallback 2026-07-22 23:33:00 +08:00
Chenyme 317f5c337a Merge branch 'main' into feat/egress-proxy-operations 2026-07-22 22:42:42 +08:00
Chenyme 57d3f8065e feat: enhance egress node management and operations 2026-07-22 22:42:28 +08:00
Ron 42e1fe7405 feat: filter and batch delete egress proxies 2026-07-22 22:02:49 +08:00
Chenyme 3d1b7004fd Merge branch 'main' into fix/mid-tier-402-failover-and-quota-pause 2026-07-22 20:55:20 +08:00
Chenyme d6d88a5e42 fix: refine handling of payment-required responses and quota recovery 2026-07-22 20:54:22 +08:00
Ron 002bcacb75 fix: batch full proxy pool tests 2026-07-22 20:52:13 +08:00
Ron f915e3cd46 fix: allow full proxy pool tests 2026-07-22 20:12:26 +08:00
Ron c792e47b80 feat: add egress proxy operations 2026-07-22 18:52:01 +08:00
Chenyme 7e6656b24c fix: harden Codex model catalog compatibility 2026-07-22 17:47:50 +08:00
yunfanxing6 c31206da7a fix(gateway): mid-tier failover for 402 spending-limit
Stop passthrough of upstream "add credits / SuperGrok" 402 bodies to
clients (Grok CLI). Always rotate accounts on payment-required, pause
exhausted free/unrecognized profiles for freeQuotaRecoveryPause (2h),
and map quota exhaustion to a sanitized 503 for the client.

- ignore X-Should-Retry:false for 402 so multi-account failover runs
- MarkPaidQuotaExhausted falls back to free recovery when billing is unknown
- freeQuotaRecoveryPause defaults to 2h (was hardcoded 24h for free)
- never surface upgrade/billing prompts through inference transport
2026-07-22 14:58:52 +08:00
huahai0202 07e03e56a5 支持 Codex 模型目录 2026-07-22 12:12:40 +08:00
Chenyme 5190c7b324 feat: enhance billing profile inference and testing 2026-07-21 18:23:46 +08:00
Chenyme 505c0b3e83 fix: prevent proxy pool failures from triggering global cooldown 2026-07-21 17:07:33 +08:00
Chenyme a04d7f0b22 Merge branch 'main' into codex/improve-upload-error-details 2026-07-21 16:06:11 +08:00
Chenyme 3c50f58245 refactor: enhance error handling and logging for video uploads and responses 2026-07-21 16:05:53 +08:00
Chenyme 67133a9ef6 refactor: remove redundant prompt cache compatibility code 2026-07-21 15:30:32 +08:00