chat_history_format revised