Link-AGI / AutoAgents

[IJCAI 2024] Generate different roles for GPTs to form a collaborative entity for complex tasks.
https://huggingface.co/spaces/LinkSoul/AutoAgents
MIT License
1.2k stars 147 forks source link

(in ws_service.py) "raise websockets.exceptions.ConnectionClosed" needs a 'Close' object, not the code and reason directly. #44

Open boltex opened 11 months ago

boltex commented 11 months ago

As per https://websockets.readthedocs.io/en/stable/reference/exceptions.html#websockets.exceptions.ConnectionClosed The parameters need to be 'Close' object, not a number code and reason string as seen on line 114

https://github.com/Link-AGI/AutoAgents/blob/3a341d054a6535f892b1541ea98558f7b082e3f2/ws_service.py#L114