diff --git a/lib/embeddings-query.js b/lib/embeddings-query.js index 8a61771..d117689 100644 --- a/lib/embeddings-query.js +++ b/lib/embeddings-query.js @@ -289,7 +289,7 @@ ${promptText} output .trim() .replace(/\r?\n/g, '\n') - .split(/(^|\n)(Answer:|Message-ID:)/gi) + .split(/(^|\n)(?:[*`]*)(Answer:|Message-ID:)(?:[*`]*)/gi) .map(v => v.trim()) .filter(v => v) .forEach(val => {