mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
Merge pull request #15094 from silentoplayz/small-fix
fix: sanatizeResponseContent for stop token display
This commit is contained in:
commit
d6f13bee5e
1 changed files with 8 additions and 8 deletions
|
|
@ -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 a new issue