moving <|im_end|> token in system message

#43

Currently the system message only has <|im_end|> appended to the end if the tools argument is passed to the apply_chat_template method, because the token is placed within the if xml_tools or python_tools or tools logic. This should be moved after the {%- endif -%} statement so that it will always be appended to the end of the system message.

Mephastophilis changed pull request title from moving im_end token in system message to moving <|im_end|> token in system message
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment