fix: 添加健康检查端点和 Secrets 验证步骤
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 1m16s
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 1m16s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user