v0.2.3

Wei-Shaw/sub2apiv0.2.3Sep 8, 2026by github-actions[bot]

AI Summary

Sub2API 0.2.3 addresses critical bugs related to database upgrade failures and dashboard loading errors. It also significantly improves support for Ollama Cloud, specifically fixing DeepSeek model handling and authentication issues.

Key Highlights

  • Fixed database rollback issues causing dashboard failures by adding migration 236.
  • Enhanced Ollama Cloud support for DeepSeek models with proper output limits and authorization.
  • Resolved authentication failures when using Anthropic-compatible endpoints with Ollama Cloud.
  • Fixed 500 errors caused by missing columns after database upgrades.

New Features

  • Implemented output limits and authorization handling for DeepSeek models on Ollama Cloud.
  • Added replayable migration 236 to fix database rollback self-healing.
  • Fixed authentication failures for Anthropic-compatible endpoints on Ollama Cloud.
  • Fixed 500 errors on dashboard pages (API keys, subscriptions) caused by missing columns.
  • Fixed blank model dropdown in OpenAI OAuth/API Key connection tests.

Full Release Notes

> AI API Gateway Platform - 将 AI 订阅配额分发和管理

修复升级后 groups.model_allowlist 列缺失导致密钥/订阅页面 500 的问题,并补齐 Ollama Cloud 下 DeepSeek 模型在 Messages / Responses 协议的输出上限与鉴权处理。

## Bug 修复

- 修复数据库回滚旧结构后升级不自愈,导致「API 密钥」「我的订阅」「管理端订阅列表」等页面加载失败的问题(新增可重放收敛迁移 236)
- 修复挂载在 Ollama Cloud 下的 DeepSeek 模型请求在 Anthropic Messages 与原生 /v1/responses 路径未压制输出上限,被上游以 400 拒绝的问题
- 修复 Ollama Cloud base URL 带尾部斜杠时输出上限压制失效的问题
- 修复 Anthropic 兼容入口指向 Ollama Cloud 时未自动使用 Bearer 鉴权导致认证失败的问题
- 修复 OpenAI OAuth / API Key 账号连接测试的模型下拉列表显示为空白的问题



---

## 📥 Installation

**Docker:**
```bash
# Docker Hub
docker pull weishaw/sub2api:0.2.3

# GitHub Container Registry
docker pull ghcr.io/wei-shaw/sub2api:0.2.3
```

**One-line install (Linux):**
```bash
curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash
```

**Manual download:**
Download the appropriate archive for your platform from the assets below.

## 📚 Documentation

- [GitHub Repository](https://github.com/Wei-Shaw/sub2api)
- [Installation Guide](https://github.com/Wei-Shaw/sub2api/blob/main/deploy/README.md)