Commit Graph
5 Commits
Author SHA1 Message Date
piexian c54b40871a fix: refine account ban handling and logging reload 2026-04-11 21:02:51 +08:00
piexian e372d444a6 fix: 优化账号封禁与反馈链路
- classifier: 403 无凭证标记时回退为 FORBIDDEN 而非 AUTH_FAILURE
- refresh: record_failure_async 403 改走状态机打击计数, 不再直接 DISABLED
- state_machine: COOLING 恢复 ACTIVE 时清除 forbidden_strikes 残留
- feedback: 新增 SERVER_ERROR 健康度退化因子 (×0.75)
- executor: TRANSPORT_ERR/UNKNOWN 映射到 SERVER_ERROR, 不再静默忽略
- xai_usage: 扩展无效凭证检测模式 (session not found/account suspended/token revoked/expired)
- invalid_credentials: 优先检查 body 标记, 再按状态码分类
2026-04-11 20:18:02 +08:00
Chenyme b407443820 refactor: update configuration and improve account management features
- Removed unnecessary environment variable patterns from .gitignore.
- Renamed configuration keys in config.defaults.toml for clarity (function_enabled to webui_enabled, function_key to webui_key).
- Increased usage concurrency limit from 10 to 50 in AccountRefreshService.
- Updated docker-compose.yml to remove default Redis URL.
- Enhanced Dockerfile for better build efficiency and added health check.
- Removed deprecated aiofiles dependency and updated other dependencies in pyproject.toml.
- Deleted outdated readme.md file.
- Improved account management logic in various modules, including state machine and refresh service.
- Added support for new quota management features and improved logging for account refresh operations.
2026-04-10 00:19:25 +08:00
Chenyme f5a1407aa3 refactor: update projects and remove legacy components 2026-04-08 17:00:00 +08:00
Chenyme 79e593b97f refactor: simplify main.py structure and update entry point to app.main 2026-04-03 16:13:33 +08:00