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