v2.6.23

BenedictKing/ccxv2.6.23Mar 2, 2026by github-actions[bot]

AI Summary

Adds a backend API for querying channel model lists to bypass CORS and prevent API key exposure, along with input validation and SSRF protection.

Key Highlights

  • Channel model list query API
  • Source model name free input with validation
  • SSRF protection for cloud metadata services

New Features

  • Channel model list query API
  • Source model name free input with validation
  • SSRF protection

Full Release Notes

### ✨ 新功能

- **渠道模型列表查询 API** - 添加后端代理端点获取上游模型列表,解决前端 CORS 跨域和 API Key 泄露问题,支持 messages/responses/chat/gemini 四种渠道类型
- **模型重定向源模型名自由输入** - 源模型名输入框支持手动输入,不再限制为下拉选择
- **源模型名输入实时验证** - 自动拦截非法输入(超长、空格、非法字符),实时显示错误提示

### 🐛 修复

- **上游 401 错误误触发重新登录** - 获取渠道模型列表时,上游返回 401 不再导致前端误判为管理 API 认证失败并清除登录状态

### 🔒 安全

- **SSRF 防护** - 模型列表查询 API 新增云元数据服务拦截(169.254.169.254),防止云凭证泄露

### 🔧 改进

- **统一 Dashboard 端点** - 将 4 种 dashboard 端点合并为单一端点 + type 参数,消除代码重复

---

**Full Changelog**: https://github.com/BenedictKing/ccx/compare/v2.6.21...v2.6.23