Trim system and user message text in the chat template

#1

A newline at the end of a system or user message merged into the token before it, for example .\n. The template now applies | trim to the system prompt and to user turns. The LiquidAI MLX repos got the same two lines on 5 November 2026, for example https://huggingface.co/LiquidAI/LFM3-1.7B-MLX-4bit/commit/91f34088d6946482cbcae11b85d4657093618c34.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment