b8729
📦 llama-cppView on GitHub →
✨ 4 features🐛 1 fixes🔧 4 symbols
Summary
This release enhances the Jinja engine with Python-style string repetition, improved ASCII handling in tojson, and identity operations for int/float types. A bug related to invalid UTF-8 byte escaping during JSON serialization was also fixed.
✨ New Features
- Added Python-style string repetition support in the Jinja engine (e.g., "ab" * 3 results in "ababab").
- Added support for ensure_ascii=true in the tojson Jinja filter, which escapes non-ASCII characters to \uXXXX sequences.
- Added int() builtin identity operation support for value_int_t in the Jinja engine.
- Added float identity operation support in the Jinja engine.
🐛 Bug Fixes
- Fixed an issue where the json_ensure_ascii_preserving_format function incorrectly handled invalid UTF-8 bytes when ensure_ascii=true was set, by replacing invalid characters with the standard replacement character \ufffd instead of outputting raw bytes.