We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099f824 commit 3a30e45Copy full SHA for 3a30e45
backend/api/main.py
@@ -1,17 +1,7 @@
1
-from contextlib import asynccontextmanager
2
-
3
from fastapi import FastAPI
4
5
from api.routers import llms, mcps
6
7
8
-@asynccontextmanager
9
-async def lifespan(app: FastAPI):
10
- yield
11
12
13
-app = FastAPI(
14
- lifespan=lifespan, swagger_ui_parameters={"tryItOutEnabled": True}
15
-)
+app = FastAPI(swagger_ui_parameters={"tryItOutEnabled": True})
16
app.include_router(llms.router, prefix="/v1")
17
app.include_router(mcps.router, prefix="/v1")
0 commit comments