feat: 添加 Zeabur 部署文档,Models API 支持 CLI 格式

- 新增 Zeabur 平台部署指南文档
- Models API 格式列表增加对应的 CLI 格式支持
This commit is contained in:
fawney19
2026-01-28 12:06:48 +08:00
parent bd843bca61
commit 40e54097b0
3 changed files with 44 additions and 9 deletions

View File

@@ -1151,8 +1151,12 @@ class ListAvailableModelsAdapter(AuthenticatedApiAdapter):
from src.core.api_format.conversion.compatibility import is_format_compatible
from src.models.database import ProviderEndpoint
# 主流 API 格式列表
all_formats = [APIFormat.OPENAI.value, APIFormat.CLAUDE.value, APIFormat.GEMINI.value]
# 所有 API 格式列表(包括 CLI 格式)
all_formats = [
APIFormat.OPENAI.value, APIFormat.OPENAI_CLI.value,
APIFormat.CLAUDE.value, APIFormat.CLAUDE_CLI.value,
APIFormat.GEMINI.value, APIFormat.GEMINI_CLI.value,
]
# 步骤 1一次性查询所有活跃端点单次 DB 查询)
endpoint_rows = (