create the interface of chat module and modify the api.md