Commit Graph
382 Commits
Author SHA1 Message Date
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 19bfce3167 Merge pull request #299 from chenyme/fix_420
refactor: add grok-4.20-beta new parameter & remove deprecated grok-4-mini model
2026-03-08 12:43:42 +08: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 c45b2c6595 Merge pull request #291 from chenyme/fix_extend
feat: fix video generation API and pagination controls
2026-03-07 13:20:04 +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 7ab06be04a Merge pull request #284 from chenyme/sanitization
feat: implement text sanitization for proxy and token configurations, enhancing security and data integrity across API endpoints
2026-03-06 22:40:11 +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 7b766c0322 chore: update Dockerfile to include server configuration variables and copy the _public directory for improved asset management 2026-03-06 19:28:03 +08:00
Chenyme 7683311758 Merge pull request #280 from chenyme/vercel
fix: Some pages are missing during Vercel deployment.
2026-03-06 18:19:02 +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 e09d5a4be1 chore: update Python version to 3.13 and configure Vercel functions to include public files for deployment 2026-03-06 15:47:08 +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 2afefa531b chore: add description to bug report template for clearer issue reporting 2026-03-05 16:54:47 +08:00
Chenyme 25f947790e chore: enhance token management with batch enable/disable functionality 2026-03-05 16:54:12 +08:00
Chenyme fc2bf157a4 Merge pull request #276 from highkay/main
chore(docker): replace uvicorn with granian
2026-03-05 15:57:49 +08:00
Chenyme 86872b8756 refactor: disable direct startup of main.py and update README for Granian CLI usage 2026-03-05 15:54:43 +08:00
highkay 2bead4bba6 chore(docker): replace uvicorn with granian 2026-03-05 13:12:31 +08:00
Chenyme efba04ec0a docs: update README files to include links to external documentation 2026-03-04 23:03:52 +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 263bf4658e Merge pull request #273 from crmmc/main
fix(): 解决 Docker Compose 下 SERVER_PORT 变量实际不生效的问题,并同步更新了文档说明
2026-03-04 22:26:55 +08:00
Chenyme 04fbefe102 Merge pull request #271 from samqin123/feat/health-check
Update main.py
2026-03-04 22:26:07 +08:00
Chenyme 944412ca47 chore: enhance configuration with new fields for custom instructions and session management 2026-03-04 22:25:44 +08:00
crmmc f6f049f1cb fix(): decouple compose host/app ports and update README guidance 2026-03-04 22:10:05 +08:00
samqin123 9e4109c7a9 Update main.py
feat: 添加/health接口用于服务器保活和Render健康检查
2026-03-04 21:15:18 +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 99d7bd8dda Merge pull request #261 from mucsbr/main
feat: add proxy SSL verification skip and configurable session reset …
2026-03-04 18:00:25 +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 d76b5e49cc Merge pull request #256 from chenyme/fix
chore: bump version to 1.5.4 and update API key description in configuration files
2026-03-01 16:55:43 +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 c6660dc193 chore: bump version to 1.5.3 in pyproject.toml and uv.lock 2026-03-01 16:02:09 +08:00
Chenyme 4fbf192cbd feat: update chat UI with multi-session management and improved layout v1.5.3 2026-03-01 16:00:31 +08:00
Chenyme e3b864c87b Merge pull request #252 from timerring/feat
feat: add CF clearance auto-refresh and WARP IP support
2026-03-01 15:44:22 +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 188ef6d437 Merge pull request #251 from piexian/feat/chat-multi-session
feat(chat): 添加多会话管理与 UI 交互优化,修复401
2026-03-01 14:57:17 +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