Compile chat API with 1.6