Commit Graph
511 Commits
Author SHA1 Message Date
Chenyme a0de113ae1 Merge pull request #466 from chenyme/vercel_storage
feat: Enhance SQL account repository with serverless support and initialization logic
2026-04-13 11:43:24 +08:00
Chenyme c5bbbb50db fix: remove vercel.json and render.yaml 2026-04-13 11:33:53 +08:00
Chenyme bd23a4a140 fix: Update Vercel configuration to remove local storage settings and improve SSL context handling in SQL connection 2026-04-13 10:55:36 +08:00
Chenyme 98f4d6fe26 feat: Enhance SQL account repository with serverless support and initialization logic 2026-04-13 10:00:59 +08:00
Chenyme 1865fdb085 Merge pull request #465 from chenyme/support_KaTeX
feat: Add KaTeX support for rendering mathematical expressions
2026-04-13 09:45:09 +08:00
Chenyme 65731c0df8 feat: Add KaTeX support for rendering mathematical expressions 2026-04-13 09:42:24 +08:00
Chenyme 28a8a9de5c Merge pull request #463 from chenyme/support-x-api-key
feat: Update API key verification to support both Bearer token and X-API-Key header for enhanced compatibility with Anthropic SDK
2026-04-12 20:51:10 +08:00
Chenyme 14c1064882 feat: Update API key verification to support both Bearer token and X-API-Key header for enhanced compatibility with Anthropic SDK 2026-04-12 20:49:39 +08:00
Chenyme 31c035c687 Merge pull request #459 from chenyme/perf_frontend
feat: reduce webui/admin rerenders and cache header metadata
2026-04-12 19:42:48 +08:00
Chenyme 9fe91d14cc feat: Implement local and asset view caching with invalidation logic to optimize rendering 2026-04-12 19:40:11 +08:00
Chenyme 5af6bd3ca3 feat: Implement local and asset view caching with invalidation logic to optimize rendering 2026-04-12 19:39:44 +08:00
Chenyme 3e89220695 feat: reduce webui/admin rerenders and cache header metadata 2026-04-12 18:19:07 +08:00
Chenyme e2c20d9c40 Merge pull request #458 from chenyme/enhance_proxy
feat: Enhance proxy management with improved failure handling and clearance refresh logic
v2.0.4.rc1
2026-04-12 17:17:37 +08:00
Chenyme fa60766694 chore: Bump version to 2.0.4.rc1 in pyproject.toml and uv.lock 2026-04-12 17:16:15 +08:00
Chenyme d0a37a1ab2 feat: Enhance proxy management with improved failure handling and clearance refresh logic 2026-04-12 17:09:08 +08:00
Chenyme bec597d293 Merge pull request #457 from chenyme/enhance_token_expired
fix: Update invalid credentials checks and error status handling
2026-04-12 16:14:47 +08:00
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 442ce236d2 Merge pull request #456 from chenyme/fix_flaresolverr
feat: Enhance proxy clearance management with scheduler and warm-up functionality
2026-04-12 16:04:57 +08:00
Chenyme 1ac16336c6 feat: Enhance proxy clearance management with scheduler and warm-up functionality 2026-04-12 15:59:30 +08:00
Chenyme 8bfb73ae2f Merge pull request #454 from Huan-zhaojun/pr/feat/add-prefer-best-models
feat: 新增 auto/fast/expert/heavy 简洁模型,优先使用高等级号池
2026-04-12 15:39:53 +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
Chenyme 44581b86e6 Merge pull request #451 from FakerL/fix/sql-ssl-connect-args
fix: share SQL engine during startup
2026-04-12 14:30:08 +08:00
Chenyme c6bed73848 feat: add SQL connection pool configuration options and improve engine caching 2026-04-12 14:28:51 +08:00
piexian 0288a7e33c fix: 移除日志配置中的控制台日志等级,更新日志等级获取方式 2026-04-11 22:25:07 +08:00
Chenyme ca2d39fb06 Merge pull request #449 from Huan-zhaojun/pr/feat/inline-citation-links
feat: 内联引用链接优化
2026-04-11 22:23:15 +08:00
氕氙 adaaed2900 Merge branch 'chenyme:main' into fix/account-ban-and-logging 2026-04-11 22:12:59 +08:00
piexian b74fd38bc8 fix: 重构错误处理逻辑以映射代理反馈类型 2026-04-11 22:10:00 +08:00
piexian e2931058cb fix: 增强国际化函数的健壮性,处理无效键值 2026-04-11 22:04:10 +08:00
piexian 7a01193593 fix: 更新日志配置 2026-04-11 21:53:17 +08:00
piexian c54b40871a fix: refine account ban handling and logging reload 2026-04-11 21:02:51 +08:00
piexian 7fdb2ff426 fix: FORBIDDEN 热路径绕过打击计数、config 过期读取等 5 处缺陷
- FORBIDDEN 热路径不再直接 DISABLED,交由控制面打击计数决定
- config.update() 后调用 config.load() 刷新内存,避免读取过期值
- 删除 record_failure_async 中冗余的 record 二次查询
- exc.body → exc.details.get('body') 正确获取 UpstreamError 响应体
- apply_server_error 加入 feedback __all__ 导出列表
2026-04-11 20:36:03 +08:00
piexian 9f00949f5c feat: 日志轮转与等级可配置化
- config.defaults.toml: 新增 [logging] 区段 (level/file_level/max_files)
- logger: setup_logging/reload_logging 支持独立 file_level 参数
- admin: update_config 传递日志配置, reload_logging 热更新
- main: lifespan 启动时读取日志配置
- config.html: 系统配置新增「日志配置」分组 (控制台等级/文件等级/保留天数)
- i18n: 6 语言新增 logging 相关翻译键
- README: 系统配置项表格补充 logging 分组
2026-04-11 20:18:37 +08:00
piexian d5001cbb5f perf: 削减高频 DEBUG 日志噪声
- headers: 移除完整 headers JSON dump, 仅记录 header_count
- http: post_json 失败降级为 warning, 移除 body 输出
- chat: 移除逐帧 SSE debug 日志 (chat sse frame / stream adapter skipped)
2026-04-11 20:18:17 +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 8edf2c87ea Merge pull request #444 from gamilian/main
fix: prevent false unsaved changes and default config flash on config…
2026-04-11 20:12:26 +08:00
Chenyme 2674ab6ca5 fix: update _refreshDirtyState to accept autoNormalizeSelects parameter for improved state management 2026-04-11 20:04:00 +08:00
Zhi Yang c709b16c4c fix: share SQL engine during startup 2026-04-11 12:00:50 +00:00
Chenyme d2de7e76f0 Merge pull request #442 from FakerL/fix/sql-ssl-connect-args
fix: restore SQL SSL URL normalization
2026-04-11 19:12:19 +08:00
Chenyme eb090bda56 feat: implement SSL options handling for PostgreSQL and MySQL in SQL backend 2026-04-11 19:11:05 +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 7841fac8d1 feat: add 4 prefer-best chat models with reverse pool selection
Add `prefer_best` flag to ModelSpec that reverses pool candidate
  order (heavy → super → basic), so requests are served by the
  highest-tier available account first and only fall back when all
  accounts in higher pools are exhausted.

  New models: grok-4.20-{fast,auto,expert,heavy}
  - No version suffix — intended as "latest" aliases
  - Original 15 models unchanged (prefer_best defaults to False)
2026-04-11 15:23:57 +08:00
Chenyme ebda2f714d Merge pull request #441 from Huan-zhaojun/feat/multi-agent-thinking-stream
feat: 多 Agent 思维链完整输出与精简模式切换
2026-04-10 22:52:49 +08:00
gamilian 8a52141fb5 fix: prevent false unsaved changes and default config flash on config page 2026-04-10 22:45:40 +08:00
Zhi Yang b443590a46 fix: restore SQL SSL URL normalization 2026-04-10 12:39:08 +00: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 f32aaabae0 Merge pull request #438 from chenyme/fix_token
chore: improve error handling in xai_usage.py
v2.0.4.rc0
2026-04-10 18:18:23 +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 eabc827759 chore: enhance logging setup to support file logging based on environment variable 2026-04-10 17:01:01 +08:00
Chenyme 4859159116 Merge pull request #437 from chenyme/fix_dir_path
chore: update configuration paths to use DATA_DIR and LOG_DIR
v2.0.3
2026-04-10 16:44:42 +08:00