Updated chat template using new data structure