mirror of
https://github.com/open-webui/open-webui
synced 2025-04-02 12:09:06 +00:00
refac
This commit is contained in:
parent
9809ffb095
commit
5ce6c8ced3
@ -126,8 +126,13 @@
|
||||
const lastLineWords = lastLine.split(' ');
|
||||
const lastWord = lastLineWords.pop();
|
||||
|
||||
lastLineWords.push(text);
|
||||
lines.push(lastLineWords.join(' '));
|
||||
if ($settings?.richTextInput ?? true) {
|
||||
lastLineWords.push(`${text.replace(/</g, '<').replace(/>/g, '>')}`);
|
||||
lines.push(lastLineWords.join(' '));
|
||||
} else {
|
||||
lastLineWords.push(text);
|
||||
lines.push(lastLineWords.join(' '));
|
||||
}
|
||||
|
||||
prompt = lines.join('\n');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user