Skip to content

v2.9.1 — Bug Fix Patch

Choose a tag to compare

@l17728 l17728 released this 13 Mar 06:56
· 173 commits to main since this release

v2.9.1 — Bug Fix Patch

Bug Fixes

  • [Critical] Claude CLI extended thinking causes 400 for all requests
    当请求包含 thinking 参数且目标为 OpenAI/Ollama 时,之前版本直接返回 HTTP 400 拒绝请求,导致 Claude CLI 开启扩展思考后所有请求均失败。v2.9.1 改为静默剥离 thinking 参数后继续转发,Claude CLI 扩展思考配置无需任何改动即可正常使用,转换过程记录 DEBUG 日志。

  • [Dashboard] llm.html template panic on nil GroupID
    修复 template execute error(llm.html:278)——当绑定记录的 UserID 和 GroupID 均为 nil 时,Go 模板引擎在自动解引用 nil *string 时 panic。将 {{else}} 改为 {{else if .GroupID}} 加以防护。

  • [Dashboard] Spurious missing authentication header WARN logs
    浏览器自动发起的 /favicon.ico、/robots.txt 请求会落入 LLM 代理的 catch-all 路由,触发 auth 中间件告警。在 catch-all 之前添加专属处理器拦截这两个路径,消除噪声日志。

  • [Dashboard] missing authentication header WARN now includes path/method
    WARN 日志补充 path 和 method 字段,便于定位真实鉴权失败时的请求来源。

New Features

  • [Dashboard] Clear All Logs(清空日志)
    日志页新增红色"清空日志"按钮,点击后弹出确认模态框,需输入 OK 方可执行清空操作。操作结果写入审计日志,并在页面显示已删除条数的 flash 提示。

Tests

  • 新增 11 个清空日志功能测试(handler_purge_logs_test.go)
  • 新增 22 个 LLM UI 测试(llm_ui_test.go)
  • 更新 TestThinkingRejection:验证 thinking 参数被静默剥离而非返回错误

Full changelog: v2.9.0...v2.9.1

Full Changelog: v2.9.0...v2.9.1