fix(provider): 修复DeepSeek开发凭据解析

This commit is contained in:
2026-08-30 10:48:12 +08:00
parent 340bfbbd07
commit dc5ee76bed
7 changed files with 47 additions and 1 deletions
+1
View File
@@ -517,6 +517,7 @@ async def list_provider_models(provider_id: str) -> ProviderModelsResponse:
models = await container.providers.list_models(provider_id)
except ProviderError as exc:
status_code = {
"PROVIDER_CREDENTIAL_MISSING": 422,
"PROVIDER_AUTH_FAILED": 401,
"MODEL_NOT_FOUND": 404,
"PROVIDER_RATE_LIMITED": 429,