I add 'async' before the function header and run the prompt
@SOCK.route('/chat')
async def chat(ws):
chatBot = livebot()
while True:
a = await chatBot.ask(ws.receive())
print(a)
ws.send(json.dumps(a))
RuntimeWarning: coroutine 'chat' was never waitedf(ws, *args, **kwargs)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback"
I add 'async' before the function header and run the prompt