603 Commits
Author SHA1 Message Date
Chenyme ec6cddca7d docs: Enhance README.md with detailed configuration information and update SQLite connection settings in database.go v3.0.0 2026-07-13 15:34:33 +08:00
Chenyme a16837c9ea feat: Refactor the project using Go to support Grok Build & Grok Web. 2026-07-13 15:28:07 +08:00
Chenyme a393a95ebb Update README.md 2026-07-12 13:05:55 +08:00
Chenyme e1bc5bc5f5 docs: Update README files to announce project discontinuation 2026-06-09 17:17:04 +08:00
Chenyme 5805cbb5a0 Merge pull request #567 from KK1aus/fix/statsig-id-format
fix: correct x-statsig-id format to bypass anti-bot rules
2026-06-03 14:18:02 +08:00
KK1aus 701525856a fix: correct x-statsig-id format to bypass anti-bot rules
The grok.com frontend's fetch interceptor generates x-statsig-id by
running a Statsig SDK evaluation per request. When that evaluation
fails (headless, first paint, etc.), it falls back to:

    btoa("x1:" + error.toString())

The old code used the prefix "e:" instead of "x1:", which Grok's
anti-bot now detects and rejects with HTTP 403.

Verified against 3 SSO tokens — all return 200 on app-chat endpoints.

Fixes #562
2026-06-03 11:23:08 +08:00
Chenyme 64a71f16e0 Merge pull request #521 from chenyme/optimise
feat: Introduce Imagine Public Image Proxy feature
v2.0.4.rc4
2026-04-28 18:04:56 +08:00
Chenyme f063dfc385 refactor: Improve video reference upload handling with better error reporting 2026-04-28 18:01:07 +08:00
Chenyme 0afce0e9d2 feat: Introduce Imagine Public Image Proxy feature 2026-04-28 17:51:34 +08:00
Chenyme b45511f563 Merge pull request #518 from chenyme/ban_bench
feat: Add batch token disable and restore functionality
2026-04-28 14:34:51 +08:00
Chenyme f9576cce17 feat: Add batch token disable and restore functionality 2026-04-28 14:31:20 +08:00
Chenyme 65a735b227 Merge pull request #515 from Yi-Long-Zhang/main
feat: Increase image-to-video reference image limit from 5 to 7
2026-04-28 14:23:11 +08:00
Chenyme f6003825a9 Merge pull request #517 from chenyme/basic_adjust
refactor: Update account refresh interval and adjust model tiers
2026-04-28 14:19:00 +08:00
Chenyme 1c38f340c3 refactor: Update basic account refresh interval to 86400 seconds and adjust model tiers to use super instead of basic 2026-04-28 14:17:32 +08:00
grimpeur 75ec98c45d Increase image-to-video reference image limit from 5 to 7
- update /v1/videos multipart input_reference[] handling
- update chat-based video reference extraction
- sync Chinese and English docs
2026-04-25 00:28:41 +08:00
Chenyme ae9b5b979d Merge pull request #513 from Huan-zhaojun/pr/fix/remove-unreviewed-pr473-code
fix: 移除 PR #473 夹带的未审查代码(3 项已确认缺陷)
2026-04-24 22:29:40 +08:00
Huan-zhaojun 7772361b5c fix: remove unreviewed code smuggled via PR #473 — 3 confirmed defects
PR #473 ("fix(cf): cf_clearance 403") contained 30 commits, but only 2
were related to the stated CF fix. Commit 44a50d3 smuggled 4 unreviewed
features into the codebase. Code audit identified 3 confirmed defects:

1. SSE heartbeat (_sse_with_heartbeat): asyncio.wait_for() cancels the
   upstream __anext__() on timeout, potentially truncating long-thinking
   model streams instead of sending a harmless keep-alive ping.

2. Think/base64 cleanup (_strip_generated_artifacts): applied to ALL
   message roles (user/system/developer), silently corrupting user
   prompts that contain literal <think> tags or base64 image markdown.
   The pre-existing _SOURCES_STRIP_RE was correctly scoped to assistant
   only — this change broke that contract.

3. Video error raise (if spec.is_video(): raise): placed after
   `except AppError: raise`, so primary error types never reach it.
   Also breaks the streaming response contract by returning non-SSE
   responses for stream=true video requests.

4. Deepsearch passthrough: no bug found, but never reviewed. Removed
   along with its README documentation for clean re-introduction via
   a proper PR if desired.

Removed from: router.py, chat.py, schemas.py, README.md, README.en.md
Preserved: CF clearance fix (headers.py, profile.py, proxy/) — legitimate
2026-04-23 20:13:49 +08:00
Chenyme 73d2bf6ba6 fix: Remove automated upstream sync workflow from GitHub Actions 2026-04-23 17:24:07 +08:00
Chenyme 5551f9c0cf Merge pull request #503 from armorbreak001/fix/mysql-text-default-compat
fix(account): MySQL TEXT column default value compatibility (#502)
2026-04-22 22:19:47 +08:00
armorbreak001 853c1a58b0 fix(account): MySQL TEXT column default value compatibility
MySQL does not allow DEFAULT values on TEXT/BLOB/JSON columns (error 1101).
Split the ALTER TABLE migration into three steps for MySQL: add as nullable
TEXT, backfill existing rows with '{}', then promote to NOT NULL.
PostgreSQL path is unchanged.
2026-04-22 10:17:45 +08:00
Chenyme 717d2fc6b9 Merge pull request #496 from chenyme/enhance_nsfw
feat: Enhance proxy clearance management with support for clearance origins and host handling
2026-04-21 09:48:42 +08:00
Chenyme 9fc61b6706 feat: Enhance proxy clearance management with support for clearance origins and host handling 2026-04-21 09:45:54 +08:00
Chenyme ca3783f7aa Merge pull request #495 from chenyme/add_local_limit
feat: Add local media cache configuration and management features
v2.0.4.rc3
2026-04-20 22:13:52 +08:00
Chenyme 8264ee97d7 feat: Add local media cache configuration and management features 2026-04-20 22:00:52 +08:00
Chenyme b1c4a36876 Merge pull request #494 from chenyme/refresh_mode
feat: Unify account refresh and random retry runtime behavior
2026-04-20 20:49:19 +08:00
Chenyme 54748c378a refactor: Update account refresh configuration and enhance runtime management 2026-04-20 20:36:30 +08:00
Chenyme 100654adb8 feat: Introduce random selection strategy and cooldown configuration for account management 2026-04-20 17:45:22 +08:00
Chenyme 3c1f48ac6f Merge pull request #493 from chenyme/docs
docs: Update the README.md
2026-04-20 16:09:04 +08:00
Chenyme e9317c93c5 docs: Update the README.md 2026-04-20 16:07:27 +08:00
Chenyme 2681dacb36 Merge pull request #492 from chenyme/fix_Grok_4_3
fix:  Grok 4.3 Beta in account management
2026-04-20 15:21:09 +08:00
Chenyme 7b640e7654 feat: Add quota_grok_4_3 support and backfill for existing accounts 2026-04-20 15:12:01 +08:00
Chenyme 52311a19ad fix: Grok 4.3 Beta in account management 2026-04-20 14:22:47 +08:00
Chenyme 030ed33378 Merge pull request #490 from chenyme/fix_imagine
fix: Implement reserve_any method for account selection and update image generation to utilize it
2026-04-20 14:15:53 +08:00
Chenyme cab4327482 refactor: Simplify _build_message function and update video_create_payload to use image_references 2026-04-20 14:11:08 +08:00
Chenyme 300afa53f7 fix: Implement reserve_any method for account selection and update image generation to utilize it 2026-04-20 13:47:42 +08:00
Chenyme cbb2e3aeea Merge pull request #488 from chenyme/support_grok_4.3
feat: Add support for Grok 4.3 Beta models
v2.0.4.rc2
2026-04-20 13:15:37 +08:00
Chenyme 287f434708 feat: Add support for Grok 4.3 Beta models 2026-04-20 13:08:24 +08:00
Chenyme c6738474fe chore: Remove obsolete test files related to account refresh and selection 2026-04-20 11:02:56 +08:00
Chenyme 19f572f9fa chore: Update README and enhance Gitleaks workflow for pull request handling 2026-04-20 11:01:02 +08:00
Chenyme b97ec7763e Merge pull request #482 from ekti123456/main
feat: 为 ChatKit Voice 添加自定义 system prompt 支持
2026-04-20 10:57:07 +08:00
Chenyme d0037b4847 chore: Enhance GitHub Actions workflow for security and dependency audits 2026-04-20 10:54:56 +08:00
Chenyme f77b9d8454 chore: Update GitHub Actions workflow to conditionally checkout repository based on event type 2026-04-20 10:43:16 +08:00
Chenyme 88f6d3b410 refactor: Clean up code formatting and improve readability in voice-related files 2026-04-20 10:36:50 +08:00
Chenyme 39990f0165 Merge pull request #473 from Soein/fix/cf-clearance-cookie
fix(cf): 修复 cf_clearance 丢失与 User-Agent 配置覆盖导致 Cloudflare 403
2026-04-20 10:03:59 +08:00
Chenyme a95167eb8e Merge branch 'main' into pr/473
# Conflicts:
#	app/products/openai/chat.py
#	app/products/openai/router.py
2026-04-20 09:59:37 +08:00
Chenyme 21adf6b9c6 refactor: streamline configuration loading and enhance clearance handling 2026-04-20 09:56:06 +08:00
Chenyme 724876ba64 Merge pull request #472 from double2tea/fix/auto-chat-quota-recovery
fix: recover auto chat mode when quota state stalls
2026-04-19 17:36:51 +08:00
Chenyme 257b60bb63 feat: Add auto chat mode fallback configuration and update related translations 2026-04-19 17:35:55 +08:00
Chenyme 7319f0fba7 Merge pull request #471 from highkay/fix/stabilize-live-errors
fix: stabilize live error handling and quota recovery
2026-04-19 17:15:59 +08:00
Chenyme fa32273878 fix: restore streaming processing logic 2026-04-19 17:14:52 +08:00