diff --git a/backend/open_webui/utils/audit.py b/backend/open_webui/utils/audit.py index 64a3345844..e5ff7564c1 100644 --- a/backend/open_webui/utils/audit.py +++ b/backend/open_webui/utils/audit.py @@ -255,6 +255,9 @@ class AuditLoggingMiddleware: if request.method not in self.audited_methods: return True + if request.url.path.startswith('/ws/socket.io'): + return True + path = request.url.path.lower() for endpoint in self.ALWAYS_LOG_ENDPOINTS: if path.startswith(endpoint):