We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15d2691 commit 2d3fe0cCopy full SHA for 2d3fe0c
1 file changed
gpttype_adapter.cpp
@@ -3865,7 +3865,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
3865
const bool has_close = fullbody.find(channel_close) != std::string::npos;
3866
3867
// 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.
+ if (!has_open && !has_close) {
3869
addedmemory = channel_prefix + addedmemory;
3870
}
3871
0 commit comments