mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
9e2fb73440
commit
e1168139a6
1 changed files with 2 additions and 1 deletions
|
|
@ -357,7 +357,6 @@ from open_webui.utils.oauth import OAuthManager
|
|||
from open_webui.utils.security_headers import SecurityHeadersMiddleware
|
||||
|
||||
from open_webui.tasks import stop_task, list_tasks # Import from tasks.py
|
||||
from open_webui.utils.telemetry.setup import setup as setup_opentelemetry
|
||||
|
||||
if SAFE_MODE:
|
||||
print("SAFE MODE ENABLED")
|
||||
|
|
@ -435,6 +434,8 @@ app.state.LICENSE_METADATA = None
|
|||
########################################
|
||||
|
||||
if not ENABLE_OTEL:
|
||||
from open_webui.utils.telemetry.setup import setup as setup_opentelemetry
|
||||
|
||||
setup_opentelemetry(app=app, db_engine=engine)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue