mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Prevent websocket disconnection on the client side
This commit is contained in:
parent
4bf7253ec5
commit
0a48b29cd8
@ -39,7 +39,7 @@ async def run(context):
|
||||
'stopping_strings': []
|
||||
}
|
||||
|
||||
async with websockets.connect(URI) as websocket:
|
||||
async with websockets.connect(URI, ping_interval=None) as websocket:
|
||||
await websocket.send(json.dumps(request))
|
||||
|
||||
yield context # Remove this if you just want to see the reply
|
||||
|
Loading…
Reference in New Issue
Block a user