Implement Custom Chat Format
Refactoring