revert my tweak, switch back to henk's original implementation for now, we can explore this again next time.

This commit is contained in:
Concedo
2026-04-07 19:00:58 +08:00
parent 15d269197e
commit 2d3fe0c113

View File

@@ -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;
}
}