update chat example to work with latest version of chat sdk