main.py 302 B

123456789101112
  1. from fastapi import FastAPI
  2. from app.api.chat import router as chat_router
  3. app = FastAPI(title="Chat API with LangChain")
  4. # Include the chat router
  5. app.include_router(chat_router, prefix="/chat")
  6. # Health check endpoint
  7. @app.get("/health")
  8. async def health_check():
  9. return {"status": "healthy"}