diff --git a/backend/chainlit/cli/__init__.py b/backend/chainlit/cli/__init__.py index e372c43a10..0c5f4ead69 100644 --- a/backend/chainlit/cli/__init__.py +++ b/backend/chainlit/cli/__init__.py @@ -9,6 +9,7 @@ nest_asyncio.apply() # ruff: noqa: E402 +from chainlit.auth import ensure_jwt_secret from chainlit.cache import init_lc_cache from chainlit.config import ( BACKEND_ROOT, @@ -24,7 +25,6 @@ from chainlit.markdown import init_markdown from chainlit.secret import random_secret from chainlit.telemetry import trace_event -from chainlit.auth import ensure_jwt_secret from chainlit.utils import check_file diff --git a/backend/chainlit/server.py b/backend/chainlit/server.py index e171aa5ea8..0a09894714 100644 --- a/backend/chainlit/server.py +++ b/backend/chainlit/server.py @@ -256,6 +256,7 @@ async def slack_endpoint(req: Request): if os.environ.get("TEAMS_APP_ID") and os.environ.get("TEAMS_APP_PASSWORD"): from botbuilder.schema import Activity + from chainlit.teams.app import adapter, bot @router.post("/teams/events")