Eliott C commited on
🎨 Remove more stopwords (#102)
Browse files8 unmodified lines9101112131415168 unmodified linesfunction sanitizeMd(md: string) {return md.replaceAll(/^(<\|startoftext\|>|<\|startoftext\|$|<\|startoftext$|<\|$|<$)/g, "").replaceAll(/(<\|endoftext\|>|<\|endoftext\|$|<\|endoftext$)/g, "").replaceAll("&", "&").replaceAll("<", "<");}8 unmodified lines91011121314151617188 unmodified linesfunction sanitizeMd(md: string) {return md.replaceAll(/^(<\|startoftext\|$|<\|startoftext$|<\|$|<$)/g, "").replaceAll(/(<\|endoftext\|$|<\|endoftext$)/g, "").replaceAll(/<\|[a-z]+\|>/g, " ").trim().replaceAll("&", "&").replaceAll("<", "<");}
src/lib/components/chat/ChatMessage.svelte+4-2