1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| from fastapi import FastAPI
| from app.api.auth import router as auth_router
| from app.api.chat import router as chat_router
| from app.models.base_model import init_db
|
| init_db()
| app = FastAPI(
| title="basic_rag_gateway",
| version="0.1",
| description="",
| )
|
| app.include_router(auth_router, prefix='/auth', tags=["auth"])
| app.include_router(chat_router, prefix='/chat', tags=["chat"])
|
| if __name__ == "__main__":
| import uvicorn
| uvicorn.run(app, host="0.0.0.0", port=9201)
|
|