diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 03cbc6262..2f9b1dc2c 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -36,11 +36,14 @@ export const sanitizeResponseContent = (content: string) => { .replace(/<$/, '') .replaceAll(/<\|[a-z]+\|>/g, ' ') .replaceAll('<', '<') + .replaceAll('>', '>') .trim(); }; export const revertSanitizedResponseContent = (content: string) => { - return content.replaceAll('<', '<'); + return content + .replaceAll('<', '<') + .replaceAll('>', '>'); }; export const capitalizeFirstLetter = (string) => {