From 2d3fe0c1137c56712d7edca03f37c99a3e4751f6 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Tue, 7 Apr 2026 19:00:58 +0800 Subject: [PATCH] revert my tweak, switch back to henk's original implementation for now, we can explore this again next time. --- gpttype_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpttype_adapter.cpp b/gpttype_adapter.cpp index ae0b108b8..a41cc69da 100644 --- a/gpttype_adapter.cpp +++ b/gpttype_adapter.cpp @@ -3865,7 +3865,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs) const bool has_close = fullbody.find(channel_close) != std::string::npos; // If neither opening nor closing tag is present anywhere, prepend both - if (!has_close) { //edit: even if we have open, lacking a close can break some cases. Add it. + if (!has_open && !has_close) { addedmemory = channel_prefix + addedmemory; } }