Formatted the code of `chat` module
Formatted the code of `core` module