mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-04-09 10:31:45 +02:00
revert my tweak, switch back to henk's original implementation for now, we can explore this again next time.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user