Chenyme
fddb79dd56
refactor: streamline asset service methods by integrating reverse request handlers
2026-02-09 14:40:32 +08:00
Chenyme
cb814a7eff
docs: update README.md
2026-02-09 10:06:05 +08:00
Chenyme
4d2a3581ea
Merge pull request #152 from MasterDevYY/main
...
fix: resolve SSL and media retrieval issues
2026-02-08 23:47:05 +08:00
MasterDevYY
8c791179c1
fix: update assets.py Sec-Fetch-Site header to same-site
2026-02-08 23:36:22 +08:00
MasterDevYY
00f0d2ba6a
fix: resolve SSL and media retrieval issues
...
- Fix CERTIFICATE_VERIFY_FAILED error on some Linux distributions.
- Fix 403 Forbidden error when fetching images and videos from origin servers.
2026-02-08 21:57:27 +08:00
Chenyme
490ca21739
Merge pull request #145 from double2tea/feature/smart-token-routing
...
feat: smart token routing for video generation + deviceEnvInfo fix
2026-02-08 16:07:29 +08:00
Chenyme
d93824f781
refactor: remove deprecated smart token routing configuration and related test
2026-02-08 16:06:09 +08:00
double2tea
69dbcac74a
fix: add missing deviceEnvInfo for video generation payload
...
The Grok API requires deviceEnvInfo field to correctly parse resolutionName.
Without this field, the backend ignores resolution settings and generates
low-resolution videos regardless of the requested quality.
Added deviceEnvInfo with standard 1920x1080 viewport settings to ensure
720p and other resolution settings are properly respected by the API.
Tested: 720p videos now correctly generate at 720x1280 resolution.
2026-02-08 03:46:45 +08:00
double2tea
01dcea9b7c
feat: implement smart token routing for video generation
...
- Add get_token_for_video() method to select token pool based on video requirements
- 720p or >6s videos automatically use ssoSuper token
- 480p and ≤6s videos use ssoBasic token
- Fallback to ssoBasic when ssoSuper is unavailable
- Add configuration options for smart routing
- Add test file for token routing logic
This solves the issue where non-SSO Super tokens were silently downgraded
to 480p by Grok API when requesting 720p videos.
2026-02-08 03:16:37 +08:00
Chenyme
9b94b37acd
chore: remove SERVER_STORAGE_URL from vercel configuration
2026-02-08 00:34:15 +08:00
Chenyme
267e234d3f
chore: remove SERVER_STORAGE_TYPE value from vercel configuration
2026-02-08 00:32:57 +08:00
Chenyme
2b03240efb
chore: update vercel configuration to use FastAPI framework
2026-02-08 00:20:49 +08:00
Chenyme
b47d847e88
docs: support vercel deploy
2026-02-08 00:10:54 +08:00
Chenyme
64180c6e3a
feat: add root redirect endpoint to admin API for improved navigation
2026-02-07 23:50:38 +08:00
Chenyme
14c46255bd
feat: implement Imagine session management with WebSocket and SSE support for real-time image generation
2026-02-07 23:48:28 +08:00
Chenyme
0bd1aaf335
feat: introduce DATA_DIR environment variable for configurable data storage paths
2026-02-07 23:00:29 +08:00
Chenyme
4206abf474
feat: add LOG_FILE_ENABLED environment variable to control file logging
2026-02-07 22:49:33 +08:00
Chenyme
4f174253e6
docs: update README files to include one-click deploy instructions for Render and enhance clarity in API documentation
2026-02-07 22:36:36 +08:00
Chenyme
a84880c75b
feat: add Imagine feature with WebSocket support for real-time image generation
2026-02-07 16:37:50 +08:00
Chenyme
51944d122f
feat: enhance image processing error handling and logging
2026-02-07 13:58:35 +08:00
Chenyme
d99e29ed48
Merge pull request #139 from chenyme/optimize
...
refactor: optimize code framework and project configuration
2026-02-07 13:43:11 +08:00
Chenyme
a692725baa
chore: remove deprecated grok configuration options to streamline settings
2026-02-07 13:38:08 +08:00
Chenyme
8361e65c31
refactor: clean up code formatting and improve readability across multiple files
2026-02-07 13:34:55 +08:00
Chenyme
bcd94069a7
feat: migrate configuration structure to improve organization and flexibility
2026-02-07 13:30:50 +08:00
Chenyme
5d369596c5
feat: improve token management and logging across services
2026-02-07 13:11:23 +08:00
Chenyme
2e201b5ebf
feat: enhance configuration management and service initialization
2026-02-07 12:40:42 +08:00
Chenyme
b132590045
feat: enhance configuration options across services for improved flexibility
2026-02-07 11:32:25 +08:00
Chenyme
c3c60a00d2
Merge pull request #136 from chenyme/imagine
...
feat: add WebSocket support for image generation and editing, enhance configuration options for image processing
2026-02-07 10:53:55 +08:00
Chenyme
b65b4e0032
Merge branch 'main' into imagine
2026-02-07 10:52:37 +08:00
Chenyme
e0ecde53ce
Merge pull request #135 from shellus/main
...
feat: 添加浏览器指纹配置支持,优化配置页面分组
2026-02-07 10:46:50 +08:00
GeJiaXiang
7f794f9185
feat: 添加浏览器指纹配置支持,优化配置页面分组
...
- 新增 grok.browser 和 grok.user_agent 配置项,支持自定义 curl_cffi 指纹和 User-Agent
- 将 CF Clearance、curl_cffi、User-Agent 三个字段在前端独立为"反爬虫验证"分组
- 添加分组说明:首次请求 IP 需与获取 CF Clearance 时一致
- 调整"禁用记忆"字段位置至"临时对话"下方
- 移除 docker-compose.yml 中无效的 GROK_DISABLE_MEMORY 环境变量
2026-02-07 09:52:39 +08:00
Chenyme
23a712eeb7
feat: add WebSocket support for image generation and editing, enhance configuration options for image processing
2026-02-07 02:16:11 +08:00
Chenyme
c436236717
Merge pull request #131 from shellus/main
...
fix: 将 disableMemory 改为可配置项,默认禁用服务端记忆
2026-02-07 00:55:18 +08:00
GeJiaXiang
3731cf545e
fix: 将 disableMemory 改为可配置项,默认禁用服务端记忆
...
共享 token 池场景下,disableMemory: False 会导致:
1. 不同用户的对话记忆相互污染
2. 历史记忆覆盖当前用户指令
现改为通过 grok.disable_memory 配置,默认 True
2026-02-06 23:00:04 +08:00
Chenyme
249fd9c90a
Merge pull request #128 from chenyme/fix_nsfw
...
feat: enhance token management with normalization and improved error handling for token updates
2026-02-06 22:44:50 +08:00
Chenyme
f937d57d1e
feat: enhance token management with normalization and improved error handling for token updates
2026-02-06 17:12:50 +08:00
Chenyme
7d2cba0310
feat: increase stream idle timeout to 120 seconds and add normalization for stream response lines
2026-02-06 16:47:13 +08:00
Chenyme
17928b49f0
feat: enhance token and voice functionalities with improved error handling and support for microphone permissions
2026-02-06 15:46:24 +08:00
Chenyme
0f13342812
Merge pull request #126 from chenyme/image_edit
...
feat: update image processing API to support response format customization and enhance request validation
2026-02-06 15:43:21 +08:00
Chenyme
9d6af73f35
feat: update image processing API to support response format customization and enhance request validation
2026-02-06 15:36:12 +08:00
Chenyme
f84f5f4d6a
refactor: remove voice service and related API, integrate voice functionality into admin routes
2026-02-06 14:19:17 +08:00
Chenyme
ef5a8dc8e5
refactor: reorganize imports and create new services for models, assets, and media processing
2026-02-06 10:12:48 +08:00
Chenyme
270a1350a4
Merge pull request #124 from iqiu2023/main
...
添加 audio live 功能
2026-02-06 10:03:50 +08:00
ai88030669
02d45b9bd0
补充下参数
2026-02-05 21:10:07 +08:00
ai88030669
32565a8e33
添加了audio live 功能
2026-02-05 19:17:54 +08:00
Chenyme
4a66777761
feat: support grok 4 heavy models
2026-02-05 15:15:01 +08:00
Chenyme
46fe924e39
feat: update avalibale models
2026-02-05 15:13:25 +08:00
Chenyme
18f069085b
Merge pull request #119 from chenyme/fix_payload
...
refactor: merge image attachments into file attachments
2026-02-04 23:42:28 +08:00
Chenyme
33067da097
refactor: merge image attachments into file attachments
2026-02-04 23:40:49 +08:00
Chenyme
a2c2b1ba7f
feat: add super refresh interval configuration and update token management logic
2026-02-04 23:34:58 +08:00