mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-02-03 13:04:59 +00:00
increase rewind limit
This commit is contained in:
@@ -2848,7 +2848,7 @@ void server_context::buffer_and_check_string_ban(server_slot & slot, completion_
|
||||
n_rewind = check_ban_phrase(slot);
|
||||
}
|
||||
// if found string in the ban
|
||||
if (n_rewind > 0 && slot.rewind_count <= 2 * slot.ban_phrases.size()) {
|
||||
if (n_rewind > 0 && (slot.rewind_count <20 || slot.rewind_count <= 2 * slot.ban_phrases.size())) {
|
||||
rewind_context(slot, n_rewind);
|
||||
slot.rewind_status = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user