v0.1.185
Kong/insomniav0.1.185Sep 1, 2026by github-actions[bot]
Upgrading?
AI Summary
Upgrades the pricing catalog and long-context billing system to support dynamic pricing strategies and improves stability for Codex and OpenAI gateways.
Key Highlights
- JSON patch support for pricing catalog override
- Long-context tiered pricing driven by the catalog
- Codex priority service tier display
- OpenAI WebSocket connection pool optimization
New Features
- Pricing catalog JSON override file support
- Dynamic pricing strategy for long contexts
- Codex priority service tier display
- Account cost calculation optimization
- Database startup retry mechanism
- OpenAI WebSocket connection pool auto-recovery
- Gemini Pro cache write price optimization
Full Release Notes
> AI API Gateway Platform - 将 AI 订阅配额分发和管理 升级价格目录与长上下文计费体系,并增强 Codex/OpenAI 网关兼容性和连接稳定性。 ## 新增功能 - 价格目录支持通过 `pricing.override_file` 使用 JSON 补丁覆盖官方价格数据。 - 长上下文阶梯计价改为由价格目录驱动,支持不同模型和渠道的动态定价策略。 - Codex 快速模型支持展示 priority service tier。 ## 优化改进 - 优化账号统计成本计算,统一应用模型定价策略及 DeepSeek 峰谷价格。 - 优化数据库启动时的瞬时错误重试机制,提升服务启动稳定性。 - 优化 OpenAI WebSocket 连接池,自动回收过期空闲连接。 - 优化 Codex 模型能力目录,保留已知的图像输入能力。 - 优化 Gemini Pro 缓存写入价格及价格目录契约校验。 ## Bug 修复 - 修复 API Key 请求被错误合成 instructions 的问题。 - 修复 Codex 模型目录中持续禁用账号仍被选中的问题。 - 修复 ctx_pool WebSocket 入口未改写上游容量降载错误码,避免客户端错误终止会话。 - 修复 OpenAI delegation bootstrap 缺少 call id 时无法正常处理的问题。 --- ## 📥 Installation **Docker:** ```bash # Docker Hub docker pull weishaw/sub2api:0.1.185 # GitHub Container Registry docker pull ghcr.io/wei-shaw/sub2api:0.1.185 ``` **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)
Related Repositories
openclaw/openclaw★ 392,712
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
nilbuild/developer-roadmap★ 370,078
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
morluto/rea★ 358,632
Reverse engineer anything with agents, from app behavior down to native binaries.
anomalyco/opencode★ 219,748
The open source coding agent.
n8n-io/n8n★ 208,268
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.