mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
Merge pull request #15094 from silentoplayz/small-fix
fix: sanatizeResponseContent for stop token display
This commit is contained in:
commit
d6f13bee5e
@ -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