Skip to content

Commit 2d3fe0c

Browse files
committed
revert my tweak, switch back to henk's original implementation for now, we can explore this again next time.
1 parent 15d2691 commit 2d3fe0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gpttype_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3865,7 +3865,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
38653865
const bool has_close = fullbody.find(channel_close) != std::string::npos;
38663866

38673867
// If neither opening nor closing tag is present anywhere, prepend both
3868-
if (!has_close) { //edit: even if we have open, lacking a close can break some cases. Add it.
3868+
if (!has_open && !has_close) {
38693869
addedmemory = channel_prefix + addedmemory;
38703870
}
38713871
}

0 commit comments

Comments
 (0)