From ee919ec0d7d9c6fe77dc369d85364e99ebd62d19 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 18 Jun 2024 13:52:20 +0100 Subject: [PATCH] Add one more tip at the end --- docs/source/en/chat_templating.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/en/chat_templating.md b/docs/source/en/chat_templating.md index c5bd211b737451..5595a61183d0de 100644 --- a/docs/source/en/chat_templating.md +++ b/docs/source/en/chat_templating.md @@ -841,4 +841,6 @@ all implementations of Jinja: `string|lower`, and `dict.items()` becomes `dict|items`. One notable change is that `string.strip()` becomes `string|trim`. See the [list of built-in filters](https://jinja.palletsprojects.com/en/3.1.x/templates/#builtin-filters) in the Jinja documentation for more. -- Replace `True`, `False` and `None`, which are Python-specific, with `true`, `false` and `none`. \ No newline at end of file +- Replace `True`, `False` and `None`, which are Python-specific, with `true`, `false` and `none`. +- Directly rendering a dict or list may give different results in other implementations (for example, string entries + might change from single-quoted to double-quoted). Adding the `tojson` filter can help to ensure consistency here. \ No newline at end of file