725 Commits
Author SHA1 Message Date
Chenyme bfc67089bf Merge pull request #658 from chenyme/grok_build_0.2.101
feat: align Grok Build 0.2.101 protocol and client compatibility
v3.0.2
2026-07-16 23:05:40 +08:00
Chenyme 095177d888 feat: align Grok Build 0.2.101 protocol and client compatibility 2026-07-16 23:01:22 +08:00
Chenyme 937147dc58 Merge pull request #656 from chenyme/version
feat: add version check and update functionality
2026-07-16 20:20:33 +08:00
Chenyme 57e7e4ba8a feat: add version check and update functionality 2026-07-16 20:13:31 +08:00
Chenyme 4b02f7da8d Merge pull request #647 from DeliciousBuding/feat/claude-server-web-search
feat(messages): map Build web_search_call to Anthropic server tool blocks
2026-07-16 18:53:38 +08:00
Delicious233 db28846989 fix(messages): close CodeQL overflow and search resource bounds
Drop untrusted capacity arithmetic, clamp deferred-text residual checks,
and cap web_search_call candidates before dedupe.
2026-07-16 18:32:29 +08:00
Delicious233 79f225a950 fix(web): distinguish hosted search tool usage 2026-07-16 18:25:12 +08:00
Delicious233 4a18b6100f fix(web): sanitize and bound search metadata 2026-07-16 18:25:12 +08:00
Delicious233 5ad1636766 fix(messages): bound hosted search stream state 2026-07-16 18:25:11 +08:00
Delicious233 215ccb9f8e fix(web): complete Claude hosted search mapping 2026-07-16 18:25:11 +08:00
Delicious233 edd94df391 fix(messages): secure hosted web search lifecycle 2026-07-16 18:25:11 +08:00
Delicious233 00b5f90caa fix(messages): harden Claude web search mapping 2026-07-16 18:25:11 +08:00
Delicious233 fb1babd183 feat(messages): map Build web_search_call to Anthropic server tool blocks
Claude Code WebSearch runs a secondary /v1/messages request with
type=web_search_20250305. Grok Build already executes hosted web_search
and returns web_search_call items, but the Messages converter only emitted
text/tool_use, so clients never saw structured search results.

- Parse Build web_search_call (+ annotation titles) into hits
- Emit server_tool_use + web_search_tool_result for JSON and SSE
- Collapse tool_choice name=web_search to required for Build
- Keep main-session client WebSearch as a normal function tool
- Dedupe repeated empty web_search_call items from Build output
- Contract tests for mapping, stream events, and non-promotion
2026-07-16 18:25:11 +08:00
Chenyme 2e3ff3cca7 Merge pull request #652 from chenyme/SSRF
feat: enhance remote image handling with new validation and fetching logic
2026-07-16 17:39:34 +08:00
Chenyme 69869c7bba feat: enhance remote image handling with new validation and fetching logic 2026-07-16 17:34:43 +08:00
Chenyme 23617485a8 Merge pull request #641 from TizenryA/feat/creative-console-latest
feat: 最新版创意工作台与 Console 限流修复
2026-07-16 17:33:33 +08:00
Chenyme 2c83cca648 refactor: update AppShell to support multiple media workspace routes and adjust PageHeader styles 2026-07-16 17:30:34 +08:00
Chenyme d401318e6a merge: sync main and scope Console team model limits 2026-07-16 17:19:16 +08:00
Chenyme 68fb9b9650 Merge pull request #638 from TizenryA/feat/creative-console
feat(frontend): add chat, image and video creative console
2026-07-16 16:25:32 +08:00
Chenyme b4b1ea94c2 Merge branch 'main' into feat/creative-console 2026-07-16 16:00:29 +08:00
Chenyme 7810a8e715 refactor: clean up creative console API and remove unused tests 2026-07-16 15:04:21 +08:00
Chenyme c015c2367c Merge pull request #648 from chenyme/backfill
fix: backfill missing Console runtime settings
2026-07-16 10:52:55 +08:00
Chenyme 09d6f725e9 fix: backfill missing Console runtime settings 2026-07-16 10:44:11 +08:00
Chenyme e89c0de29d fix: backfill missing runtime concurrency setting 2026-07-15 19:44:14 +08:00
TizenryA 502211e8ef fix(console): correctly handle team model rate limits 2026-07-15 10:40:59 +00:00
TizenryA 106a7e7326 fix(web): avoid panic on upstream error responses 2026-07-15 10:40:50 +00:00
TizenryA def4ea9977 fix(frontend): support chat sending on insecure origins 2026-07-15 10:40:50 +00:00
TizenryA f257de3f66 fix(frontend): harden creative console requests and pagination 2026-07-15 10:40:50 +00:00
TizenryA abdba88a66 feat(frontend): add chat image and video creative console 2026-07-15 10:40:50 +00:00
TizenryA ef16e553d4 fix(web): avoid panic on upstream error responses 2026-07-15 06:32:52 +00:00
TizenryA 3b7f5dac81 fix(frontend): support chat sending on insecure origins 2026-07-15 06:10:23 +00:00
Chenyme 90ec921610 Merge pull request #636 from fengshao1227/fix/refresh-failure-overreaction
fix: refresh token 失败不应在 access token 仍有效时标记账号失效
v3.0.1
2026-07-15 13:39:25 +08:00
Chenyme b8fe1f5f71 Merge branch 'fix/refresh-failure-overreaction' of https://github.com/fengshao1227/grok2api-dzy into pr/636 2026-07-15 13:35:52 +08:00
Chenyme 1046b8d77b Merge branch 'main' into pr/636 2026-07-15 13:34:17 +08:00
Chenyme d6cc305f20 fix: retire permanently invalid refresh tokens safely 2026-07-15 13:33:30 +08:00
TizenryA ea29d6dc77 fix(frontend): harden creative console requests and pagination 2026-07-15 04:38:29 +00:00
TizenryA 65fae9693b feat(frontend): add chat image and video creative console 2026-07-15 04:35:14 +00:00
Chenyme 9de937ed46 Merge branch 'main' into fix/refresh-failure-overreaction 2026-07-15 11:55:10 +08:00
Chenyme df6df4f167 Merge pull request #635 from piexian/fix/console-batch-audit-dashboard
feat: 完善账号批处理:同步策略、候选预筛与任务进度
2026-07-15 11:54:44 +08:00
Chenyme 17dd5fedcf Merge branch 'main' into fix/refresh-failure-overreaction 2026-07-15 11:53:47 +08:00
Chenyme df35c121bc Merge main into pr/635 and refine account batch workflows 2026-07-15 11:48:42 +08:00
Chenyme d3dc3d8f10 Merge pull request #637 from chenyme/gateway
feat: Improved gateway multi-Provider routing and runtime concurrency management.
2026-07-15 11:18:49 +08:00
Chenyme 80048405f9 feat: enhance image generation and improved error handling 2026-07-15 11:14:46 +08:00
Chenyme 0b95234504 refactor: optimize slice initializations in various repository and service files 2026-07-15 11:07:10 +08:00
Chenyme d2eecc4041 feat: Improved gateway multi-Provider routing and runtime concurrency management. 2026-07-15 10:58:25 +08:00
li 57008276e5 fix: do not mark account as reauthRequired when access token is still valid
When an OAuth refresh token renewal fails permanently (e.g. 400
invalid_grant), the code immediately called MarkReauthRequired,
removing the account from the routing pool — even though the current
access token may still be valid and usable for API calls.

Now: check whether the access token has a known expiry in the future
before marking reauthRequired. If the token is still alive, log the
permanent refresh failure but let the account stay active and
continue serving requests until the access token actually expires or
gets rejected by upstream.

Closes #634
2026-07-15 10:00:49 +08:00
氕氙 2db3f651b7 feat: improve account batch workflows and admin preferences 2026-07-15 01:23:27 +08:00
Chenyme 2f9287da83 Merge pull request #631 from fengshao1227/fix/prompt-cache-key
feat: Build API prompt cache 命中率优化 — 注入 prompt_cache_key
2026-07-15 01:19:27 +08:00
Chenyme cb1ee78c11 Merge branch 'main' into fix/prompt-cache-key 2026-07-15 01:16:00 +08:00
Chenyme dc9b1575bc feat: enhance prompt caching mechanism in Build API 2026-07-15 01:15:45 +08:00