update chatdemo