- from fastapi import FastAPI
- from app.api.chat import router as chat_router
- app = FastAPI(title="Chat API with LangChain")
- # Include the chat router
- app.include_router(chat_router, prefix="/chat")
- # Health check endpoint
- @app.get("/health")
- async def health_check():
- return {"status": "healthy"}
|