Skip to content

v2.3.9-no-tools

Choose a tag to compare

@Fly143 Fly143 released this 01 Jun 00:27
· 114 commits to main since this release

v2.3.9-no-tools - 上下文裁剪 + 路径修复 + 错误兜底

🛠 新增

  • 上下文自动裁剪 — 新增 context_manager.py,请求发出前检查 token 数,超长时自动裁剪避免 DeepSeek 报 "Content is too long"
  • /v1/v1/ 双前缀修复 — Claude Code CLI 等客户端 base URL 带 /v1 时自动修复路径
  • Anthropic 流式错误兜底 — 上游返回错误时返回标准 Anthropic error 事件

💡 完整版(含工具调用)见 v2.3.9

English

🛠 Added

  • Proactive context pruning — new context_manager.py checks token count before sending requests, auto-prunes when exceeding DeepSeek context limit
  • /v1/v1/ double-prefix fix — auto-rewrites paths when Claude Code CLI and similar clients include /v1 in base URL
  • Anthropic streaming error handling — returns standard Anthropic error events when upstream errors occur

💡 Full version (with tool calling): v2.3.9