transformers
98a25186 - Enhance apply_chat_template to support custom field prefilling (reasoning_content, thinking, etc.) (#45896)

Commit
1 day ago
Enhance apply_chat_template to support custom field prefilling (reasoning_content, thinking, etc.) (#45896) * Add reasoning_content handling in render_jinja_template for empty final messages * Enhance continue_final_message parameter to accept string values in render_jinja_template * Add error handling for missing template keys * Style and Chat templating Tests * Move test to test_tokenization_common --------- Co-authored-by: Matteo Migliarini <matteo.miglairini@uniroma1.it>
Author
Parents
Loading