feat(ai): 添加 Provider 管理 API 端点
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

GET /ai/providers — 列出已注册提供商
GET /ai/providers/health — 各提供商健康状态
GET /ai/quota/summary — 租户配额使用摘要
This commit is contained in:
iven
2026-05-05 15:19:49 +08:00
parent a16e86bf04
commit 50b9e8d683
2 changed files with 67 additions and 0 deletions

View File

@@ -246,5 +246,17 @@ impl AiModule {
"/ai/dialysis/risk-assessment",
axum::routing::post(crate::handler::assess_dialysis_risk),
)
.route(
"/ai/providers/health",
axum::routing::get(crate::handler::provider_health),
)
.route(
"/ai/providers",
axum::routing::get(crate::handler::provider_names),
)
.route(
"/ai/quota/summary",
axum::routing::get(crate::handler::quota_summary),
)
}
}