Merge pull request #15094 from silentoplayz/small-fix

fix: sanatizeResponseContent for stop token display
This commit is contained in:
Tim Jaeryang Baek authored and GitHub committed 2025-06-18 16:57:27 +04:00
commit d6f13bee5e
1 file changed
+1 -1
+1 -1
View File
@@ -83,9 +83,9 @@ export const sanitizeResponseContent = (content: string) => {
.replace(/<\|[a-z]*$/, '') .replace(/<\|[a-z]*$/, '')
.replace(/<\|[a-z]+\|$/, '') .replace(/<\|[a-z]+\|$/, '')
.replace(/<$/, '') .replace(/<$/, '')
.replaceAll(/<\|[a-z]+\|>/g, ' ')
.replaceAll('<', '&lt;') .replaceAll('<', '&lt;')
.replaceAll('>', '&gt;') .replaceAll('>', '&gt;')
.replaceAll(/<\|[a-z]+\|>/g, ' ')
.trim(); .trim();
}; };