diff --git a/vendor/minja/chat-template.hpp b/vendor/minja/chat-template.hpp index f080aa92f1..1d32d267b0 100644 --- a/vendor/minja/chat-template.hpp +++ b/vendor/minja/chat-template.hpp @@ -197,7 +197,7 @@ class chat_template { || contains(out_str, "\"argument_needle\":") || contains(out_str, "'argument_needle':") || contains(out_str, ">argument_needle<") - || contains(out_str, ""); + || contains(out_str, "=\"argument_needle\""); }; // Note: the arguments are rendered in both cases, but may be double-escaped, which we don't want.