fix: 添加健康检查端点和 Secrets 验证步骤
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 1m16s

This commit is contained in:
2026-04-14 02:02:42 +08:00
parent ebbd73ddf0
commit e81663ab0b
3 changed files with 32 additions and 2 deletions

View File

@@ -54,6 +54,13 @@ app.add_middleware(
)
# ========== 健康检查端点 ==========
@app.get("/health")
async def health_check():
"""健康检查端点,用于 Docker 和 CI/CD 监控"""
return {"status": "ok", "service": "ai-agent-backend"}
# ========== Pydantic 模型 ==========
class ChatRequest(BaseModel):
message: str