Skip to content

Commit

Permalink
fix: Include automatic version in fastapi app
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramimashkouk committed Sep 14, 2024
1 parent 8143213 commit 1ccea2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/chatsky_ui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import FileResponse, HTMLResponse, RedirectResponse

from chatsky_ui import __version__
from chatsky_ui.api.api_v1.api import api_router
from chatsky_ui.api.deps import get_index
from chatsky_ui.core.config import settings
Expand All @@ -23,7 +24,7 @@ async def lifespan(app: FastAPI):
# settings.temp_conf.unlink(missing_ok=True)


app = FastAPI(title="DF Designer", lifespan=lifespan)
app = FastAPI(title="DF Designer", version=__version__, lifespan=lifespan)


app.add_middleware(
Expand Down

0 comments on commit 1ccea2f

Please sign in to comment.