Jensen Zhang
2ea3d9f2fd
fix(token): reset consumed when token enters cooling state
...
- Reset consumed to 0 when quota reaches 0 in default mode (consume())
- Reset consumed to 0 when 429 rate limit is triggered (mark_rate_limited())
- Remove consumed reset on API sync, only restore active status
- This ensures consumed represents 'usage count per cooling cycle'
2026-03-12 08:24:54 +00:00
Jensen Zhang
3e607e9f7c
feat(token): add consumed mode for quota management
...
- Add 'consumed_mode_enabled' config option (opt-in, default false)
- Track local consumption separately from API quota
- consumed increases in both modes; quota deduction differs by mode
- Prefer tokens with lower consumed amount in pool selection
- UI dynamically switches between 'remaining quota' and 'consumed' display
- Disable quota editing in edit modal when consumed mode is enabled
- Maintain backward compatibility with existing configs
2026-03-12 08:10:42 +00:00
Chenyme
d322c46f04
refactor: remove deprecated GROK-4-MINI model from ModelService and enhance payload logging in AppChatReverse
2026-03-08 12:35:35 +08:00
Chenyme
56bbd4ba96
feat: fix video generation API and pagination controls, update configuration for upscale timing, and enhance UI for token management
2026-03-07 13:12:29 +08:00
Chenyme
ee3ddf420c
feat: implement text sanitization for proxy and token configurations, enhancing security and data integrity across API endpoints
2026-03-06 22:29:56 +08:00
Chenyme
becb23b771
chore: update version to 1.6.0, refactor API routes by renaming modules, and remove deprecated admin and function APIs for improved structure and maintainability
2026-03-06 18:14:21 +08:00
Chenyme
04b7ee481d
refactor: replace public API functionality with function API, update configuration and static files accordingly
2026-03-06 17:37:15 +08:00
Chenyme
db065659af
refactor: rename public directory to _public and remove unused static files to streamline asset management
2026-03-06 16:11:34 +08:00
Chenyme
1b3bcb3b3e
refactor: streamline static file management by removing unused CSS and JS files, and enhance admin/public page responses with centralized file handling
2026-03-06 15:25:29 +08:00
Chenyme
da979f5a59
fix: refactor static file handling to use a public directory and simplify admin/public page responses with redirects
2026-03-06 15:00:19 +08:00
Chenyme
4217dbed26
feat: implement centralized file response handling for admin and public pages, enhancing error management and code reusability
2026-03-06 14:18:17 +08:00
Chenyme
e44f267332
feat: add video generation API with validation for video length and integrate into main application
2026-03-06 11:40:48 +08:00
Chenyme
9fc9ebb4a1
chore: add SERVER_STORAGE_URL environment variable to docker-compose and improve error handling in saveConfig function
2026-03-05 18:06:52 +08:00
Chenyme
8925ca174c
chore: update version numbers for CSS and JS files across admin pages and enhance i18n support with aria-labels and new translations
2026-03-05 17:40:23 +08:00
Chenyme
25f947790e
chore: enhance token management with batch enable/disable functionality
2026-03-05 16:54:12 +08:00
Chenyme
f180c952d2
feat: add CF cookies configuration and improve proxy handling in asset services
2026-03-04 23:00:23 +08:00
Chenyme
944412ca47
chore: enhance configuration with new fields for custom instructions and session management
2026-03-04 22:25:44 +08:00
Chenyme
43317ea186
Merge pull request #270 from africa1207/main
...
feat: 增加自定义指令
2026-03-04 20:16:03 +08:00
Chenyme
8181ba167a
Merge pull request #269 from arces/feature/english-translation
...
English Translation + Translation Docs
2026-03-04 18:25:29 +08:00
Chenyme
18051f381f
feat: add static versioning to locale fetch and enhance chat session management with default title handling
2026-03-04 18:22:10 +08:00
Chenyme
a6828709ef
feat: enhance WebSocket proxy handling and add session reset status code
2026-03-04 17:57:35 +08:00
liutao
9b90dddc16
feat: 增加自定义指令
2026-03-04 17:05:44 +08:00
Dan Janes
d5a961ff11
English Translation + Translation Docs
...
Added an i18n English translation + Original Chinese text.
Readme talking about how it works, how to use it in the future, etc
2026-03-03 15:36:39 -08:00
being s
a8a0f036b4
feat: add proxy SSL verification skip and configurable session reset codes
...
When using a proxy with self-signed certificates, the original strict SSL
verification causes connection failures. This patch adds:
- `proxy.skip_proxy_ssl_verify` config option to bypass proxy SSL
verification (PROXY_SSL_VERIFYPEER / PROXY_SSL_VERIFYHOST) without
affecting target server SSL validation
- WebSocket SSL context override for proxy connections
- `retry.reset_session_status_codes` config option to allow customizing
which HTTP status codes trigger a session reset (defaults to [403])
2026-03-02 15:39:12 +08:00
Chenyme
4706d91bd7
chore: bump version to 1.5.4 and update API key description in configuration files
2026-03-01 16:54:19 +08:00
Chenyme
4fbf192cbd
feat: update chat UI with multi-session management and improved layout
2026-03-01 16:00:31 +08:00
Chenyme
cf3e2251a7
Merge main
2026-03-01 15:42:51 +08:00
Chenyme
708a75338a
refactor: enhance cf_refresh configuration and improve error handling
2026-03-01 15:38:43 +08:00
Chenyme
a511607cae
feat(api): Integrate chat router with public key verification
2026-03-01 14:56:16 +08:00
piexian
111614a6bd
fix(ui): 修复移动端适配与安全渲染问题
...
- 顶部导航栏移动端适配:缩减间距、品牌文字隐藏、链接横向滚动
- 底部 footer 移动端居中显示,防止溢出裁切
- 输入栏移动端改为双排布局:上排输入框、下排功能按钮
- 模型/推理下拉菜单移除 overflow 裁剪,修复移动端无法展示问题
- 对话区滚动条改为细线样式,悬停时显示、拖动时加深
- 统一 innerHTML 渲染入口为 setRenderedHTML,收口 XSS 风险
- 恢复空密钥时的 verify 校验,页面初始化未通过认证时跳转登录
2026-03-01 10:47:11 +08:00
John Howe
fc37404ebe
refactor: remove emoji from logs, make flaresolverr optional via profiles
...
- Remove all emoji from cf_refresh log messages
- Add Docker Compose profiles to flaresolverr (only starts with --profile cf-refresh)
- Default: docker compose up starts grok2api + warp only, no 500MB Chrome process
- CF refresh stays disabled unless explicitly configured
2026-03-01 10:25:32 +08:00
John Howe
a4e7b96d29
fix: remove nginx, restore imagine_fast selects, clean up docker-compose
...
- Remove nginx service and nginx/ directory (not in main branch)
- Restore imagine_fast size/response_format select inputs
- Revert grok2api to ports: 8000:8000 (direct expose)
- Remove dev-testing source mounts from docker-compose
- Restore warp port to 1080
2026-03-01 10:16:42 +08:00
John Howe
b85b87072b
fix: use loguru logging, empty default flaresolverr_url, add nginx config, mount local source
...
- Switch cf_refresh module from stdlib logging to loguru for consistent log output
- Set flaresolverr_url default to empty so FLARESOLVERR_URL env var triggers auto-enable
- Add nginx/conf/default.conf with SSE streaming support
- Mount local source files in docker-compose for development testing
- Change warp port to 1180 to avoid local conflict
2026-03-01 10:02:35 +08:00
John Howe
26504b672f
feat: add cf_refresh auto-refresh module and full Docker Compose deployment
...
- Add app/services/cf_refresh/ module (FlareSolverr-based cf_clearance auto-refresh)
- Integrate CF refresh startup/shutdown in main.py lifespan
- Add CF refresh config entries in config.defaults.toml (enabled, flaresolverr_url, refresh_interval, timeout)
- Update headers.py to use cf_cookies from FlareSolverr instead of single cf_clearance
- Add admin panel CF refresh UI with toggle-linked field disabling
- Docker Compose: add warp (SOCKS proxy), nginx (reverse proxy), flaresolverr containers
2026-03-01 09:48:13 +08:00
piexian
623570ccb4
fix(auth,chat): 加固认证逻辑与修复前端交互缺陷
...
- 移除 verify_api_key 中 public_enabled 无密钥时的免认证后门
- 对 public_key 进行 strip 归一化,避免配置空白导致哈希不匹配
- 前端空密钥时直接缓存空值,移除多余的 verify 网络请求
- 阻止删除正在流式传输中的消息,防止 session 状态不同步
- 编辑消息取消时使用 DOM 克隆恢复,避免 innerHTML 注入风险
- 合并三个全局 click 监听器为一个,减少事件绑定开销
2026-03-01 03:42:44 +08:00
piexian
e3b3aab4dd
feat(chat): 添加多会话管理与 UI 交互优化
...
- 实现基于 localStorage 的多会话管理(创建/切换/删除/重命名)
- 新增侧边栏会话列表,支持移动端滑入式布局
- 替换原生 select 为自定义模型/推理强度下拉菜单
- 支持消息编辑、删除、从指定位置重新生成
- 添加上下文压缩功能(保留最近 4 条消息)
- 优化 public_key 认证:前端哈希存储,后端支持原始值与哈希匹配
- 改进思考过程展示:工具卡片彩色标识、自动折叠与计时优化
2026-03-01 03:24:47 +08:00
Chenyme
6c32305cc6
Merge branch 'main' into pr/248
...
# Conflicts:
# app/services/grok/services/image.py
# config.defaults.toml
2026-02-28 10:58:22 +08:00
Chenyme
45a8be9187
Merge branch 'main' into main
2026-02-28 10:23:34 +08:00
Chenyme
1c501e67ac
feat: Introduce grok-imagine-1.0-fast model, replacing grok-superimage-1.0, and update related documentation and API references.
2026-02-28 10:21:34 +08:00
Chenyme
3b4316c145
Merge pull request #236 from chenhuawang-04/fix/image-draft-filter-v2
...
fix: improve final image selection in stream processor
2026-02-28 09:24:29 +08:00
qoomezhu
547dbe9d15
Merge pull request #2 from qoomezhu/feat/image-mode-token-routing
...
image: 优先选择 nsfw-tag Token + WebSocket 重试配置
2026-02-28 00:29:38 +08:00
Mo Li
e733e84a46
feat: make blocked review grace timeout configurable
2026-02-27 14:20:46 +08:00
qoomezhu
8377575fe8
image: prefer nsfw-tag tokens + configurable ws retries
2026-02-27 13:03:39 +08:00
qoomezhu
d89f43bde6
token: allow pick_token() to prefer tagged tokens
2026-02-27 12:59:35 +08:00
qoomezhu
101c8ab1f3
token: allow get_token() to prefer tagged tokens
2026-02-27 12:59:19 +08:00
qoomezhu
87cba0cf6a
token: support prefer_tags when selecting token
2026-02-27 12:54:13 +08:00
qoomezhu
16332d611d
admin(token): add 500/1000/2000 page size options
2026-02-27 12:51:58 +08:00
chenhuawang-04 and Claude Opus 4.6
53ab1fd086
fix: improve final image selection in stream processor
...
When n=1, the stream processor locks onto the first image received
as target. If a different image gets its final version first,
completed >= n breaks the WebSocket loop, but the processor saves
the target's medium-quality data as "final".
Now checks if the target actually has is_final=True before selecting
it. If not, falls back to the highest quality image available.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-26 16:13:55 +08:00
Chenyme
3a77067a10
feat: update README and API documentation to include new tool calling features and response parameters
2026-02-26 15:08:21 +08:00
Chenyme
bed5eb6af6
feat: support responses router to main application
2026-02-26 14:47:06 +08:00