commit before chat_model