Skip to content

fix(zer-536): 优化 AI 配置连通性检测 - #136

Open
ZeroPointSix wants to merge 11 commits into
cursor/zer-381-frontend-polish-b985from
codexweb/zer-536-ai-config-connectivity
Open

fix(zer-536): 优化 AI 配置连通性检测#136
ZeroPointSix wants to merge 11 commits into
cursor/zer-381-frontend-polish-b985from
codexweb/zer-536-ai-config-connectivity

Conversation

@ZeroPointSix

@ZeroPointSix ZeroPointSix commented Aug 9, 2026

Copy link
Copy Markdown
Owner

变更

  • 支持使用当前未保存的 AI 表单配置执行真实连通性测试,且不持久化测试值
  • 按认证、配置、URL、网络、限流、服务端、协议和输出契约分类失败原因
  • Provider 切换时动态调整 Base URL,明确 /chat/completions 拼接规则
  • 提供模型建议与自由输入;成功时展示实际模型、HTTP 状态、请求地址和延迟
  • 补充后端探测测试、前端 URL/provider 辅助函数测试,并隔离测试数据库配置
  • 版本号更新为 2.9.6

验收映射

  • 失败时展示可定位原因与修复提示
  • Provider 切换动态改变表单行为
  • 页面展示最终请求地址和 URL 规则
  • 成功时展示实际模型与延迟

验证

  • Python Tests:Python 3.11、3.12、3.13 全矩阵通过
  • Code Quality:Black、isort、flake8、mypy、Bandit 通过
  • 3 个前端辅助函数测试、Biome 与 TypeScript 语法打包检查通过
  • 生产 Docker 镜像构建通过
  • 临时验证工作流已删除;最终 PR 仅包含 8 个业务与测试文件
  • SonarCloud Scan:测试与覆盖率步骤通过;扫描器因无法读取 PR 136 元数据而退出(基线提交的 SonarCloud 同样失败)

@linear-code

linear-code Bot commented Aug 9, 2026

Copy link
Copy Markdown

ZER-536

@ZeroPointSix
ZeroPointSix marked this pull request as ready for review August 9, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant