Przeglądaj źródła

refac: websocket

Timothy Jaeryang Baek 5 miesięcy temu
rodzic
commit
9657474a8d
1 zmienionych plików z 0 dodań i 3 usunięć
  1. 0 3
      backend/open_webui/socket/main.py

+ 0 - 3
backend/open_webui/socket/main.py

@@ -192,9 +192,6 @@ async def connect(sid, environ, auth):
             # print(f"user {user.name}({user.id}) connected with session ID {sid}")
             await sio.emit("user-list", {"user_ids": list(USER_POOL.keys())})
             await sio.emit("usage", {"models": get_models_in_use()})
-            return True
-
-    return False
 
 
 @sio.on("user-join")