in server/app/utils.py [0:0]
def process_inputs(data, connection) -> str: connection.history = data["inputs"][:-1] return data["inputs"][-1]["content"]