refac: disable openapi.json

This commit is contained in:
Timothy Jaeryang Baek
2024-11-09 18:01:23 -08:00
parent 7228b39064
commit 96c865404d
7 changed files with 19 additions and 11 deletions

View File

@@ -118,7 +118,7 @@ from langchain_core.documents import Document
log = logging.getLogger(__name__)
log.setLevel(SRC_LOG_LEVELS["RAG"])
app = FastAPI()
app = FastAPI(docs_url="/docs" if ENV == "dev" else None, openapi_url="/openapi.json" if ENV == "dev" else None, redoc_url=None)
app.state.config = AppConfig()