python-agent / main.py
tianyajum's picture
【xxx】重构整改,新增action
ba98117
Raw History Blame Contribute Delete
413 Bytes
import uvicorn
from fastapi import FastAPI
from app.core.config import settings
from app.core.lifecycle import lifespan
from app.api.routers import chat
app = FastAPI(lifespan=lifespan)
app.include_router(chat.router, tags=["chat"])
@app.get("/health")
async def health():
return {"status": "ok"}
if __name__ == "__main__":
uvicorn.run(app, host=settings.HOST, port=settings.PORT)