From b79df8ed33c155f69dc44b40742aec37c22e8882 Mon Sep 17 00:00:00 2001 From: ThiloteE <73715071+ThiloteE@users.noreply.github.com> Date: Fri, 7 Feb 2025 00:03:06 +0100 Subject: [PATCH] Remove \n\n from controls and try other original Signed-off-by: ThiloteE <73715071+ThiloteE@users.noreply.github.com> --- gpt4all-chat/src/jinja_replacements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/src/jinja_replacements.cpp b/gpt4all-chat/src/jinja_replacements.cpp index 65e0569c..81cc3db7 100644 --- a/gpt4all-chat/src/jinja_replacements.cpp +++ b/gpt4all-chat/src/jinja_replacements.cpp @@ -184,7 +184,7 @@ const std::unordered_map CHAT_TEMPLATE_SUBST {%- if loop.last and add_generation_prompt %} {{- '<|start_of_role|>assistant' }} {%- if controls %} - {{- '\n\n' + controls | tojson()}} + {{- ' ' + controls | tojson()}} {%- endif %} {{- '<|end_of_role|>' }} {%- endif %}