From 6731dd64f128e6a09ff386f41ee1933122f1dfd4 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:24:55 +0800 Subject: [PATCH] quick fix for trim stop --- koboldcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index 8330c2dcc..2761fb0e1 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -604,7 +604,7 @@ def string_has_overlap(str_a, str_b, maxcheck): return False def string_contains_or_overlaps_sequence_substring(inputstr, sequences): - if inputstr.strip()=="": + if inputstr=="": return False for s in sequences: if s.strip()=="":