Commit Graph
12 Commits
Author SHA1 Message Date
Chenyme 4f03a84369 fix: Update invalid credentials checks to include "bad-credentials" and adjust status code handling for errors. 2026-04-12 16:09:25 +08:00
Chenyme 9ae21ef97b Merge pull request #453 from piexian/fix/account-ban-and-logging
fix: 修正账号封禁分类与状态转换,支持webui配置日志等级/轮转配置等
2026-04-12 14:45:01 +08:00
Chenyme a1279cc0b0 fix: Update the .env.example file and enhance error logging in xai_usage.py. 2026-04-12 14:43:00 +08:00
piexian b74fd38bc8 fix: 重构错误处理逻辑以映射代理反馈类型 2026-04-11 22:10:00 +08:00
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
Huan-zhaojun 5261decada feat: inline citation links and deduplicate consecutive refs
Replace plain-text citation suffix ([N] url) with inline markdown
  links ([[N]](url)) that CherryStudio renders as clickable citation
  popovers. Remove trailing URL appendix since URLs are now embedded.

  Also deduplicate consecutive identical citations and strip stray
  leading newlines from citation tokens.

(cherry picked from commit cd002330682fa5f203c6bb072f50fd30a3f17cfe)
2026-04-11 18:45:55 +08:00
Huan-zhaojun 3c48959605 feat: 多 Agent 思维链完整输出与精简模式切换
- 新增详细模式(默认):透传原始多 Agent 思考流,包含 [Grok]/[Agent N]
    身份标识、工具调用格式化(emoji + 参数)、chatroom_send 完整报告
  - 保留精简模式(可选):通过 thinking_summary 配置项切换回
    ReasoningAggregator 结构化摘要
  - 正文开始后的迟到 thinking token:流式静默丢弃,非流式写入 buf 保留
  - Agent 前缀绕过去重机制,支持同一 Agent 多次出现
  - 前端管理面板新增「思考精简输出」开关,含 6 语言 i18n
2026-04-10 20:21:48 +08:00
Chenyme 95129e623a chore: update Dockerfile healthcheck command and bump version to 2.0.4.rc0 in pyproject.toml and uv.lock; improve error handling in xai_usage.py 2026-04-10 18:15:27 +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