mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
fix: sanatizeResponseContent for stop token display
This commit is contained in:
parent
3b70841a7d
commit
898b65a653
@ -83,9 +83,9 @@ export const sanitizeResponseContent = (content: string) => {
|
||||
.replace(/<\|[a-z]*$/, '')
|
||||
.replace(/<\|[a-z]+\|$/, '')
|
||||
.replace(/<$/, '')
|
||||
.replaceAll(/<\|[a-z]+\|>/g, ' ')
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>')
|
||||
.replaceAll(/<\|[a-z]+\|>/g, ' ')
|
||||
.trim();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user