Skip to content

Commit 7d9b7e3

Browse files
committed
Fixed chat parsing issue when using Mistral template with system message
1 parent 611b101 commit 7d9b7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mikupad.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6305,7 +6305,7 @@
63056305
}
63066306

63076307
function skipToNextKnownPrefix(text, ...prefixes) {
6308-
const indices = prefixes.map(prefix => prefix ? regexIndexOf(text, createLenientPrefixRegex(prefix)) : -1).filter(index => index !== -1);
6308+
const indices = prefixes.map(prefix => prefix ? regexIndexOf(text, createLenientRegex(prefix)) : -1).filter(index => index !== -1);
63096309
const minIndex = indices.length > 0 ? Math.min(...indices) : text.length;
63106310
if (minIndex == 0) {
63116311
console.warn("Something went wrong!");

0 commit comments

Comments
 (0)