mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
Fix comfyui tool https (#11859)
This commit is contained in:
@@ -40,7 +40,10 @@ class ComfyUiClient:
|
|||||||
def open_websocket_connection(self) -> tuple[WebSocket, str]:
|
def open_websocket_connection(self) -> tuple[WebSocket, str]:
|
||||||
client_id = str(uuid.uuid4())
|
client_id = str(uuid.uuid4())
|
||||||
ws = WebSocket()
|
ws = WebSocket()
|
||||||
ws_address = f"ws://{self.base_url.authority}/ws?clientId={client_id}"
|
ws_protocol = "ws"
|
||||||
|
if self.base_url.scheme == "https":
|
||||||
|
ws_protocol = "wss"
|
||||||
|
ws_address = f"{ws_protocol}://{self.base_url.authority}/ws?clientId={client_id}"
|
||||||
ws.connect(ws_address)
|
ws.connect(ws_address)
|
||||||
return ws, client_id
|
return ws, client_id
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user