mirror of
https://github.com/open-webui/open-webui
synced 2025-05-21 05:35:18 +00:00
refac: prompt template behaviour
This commit is contained in:
parent
ec29772068
commit
352ed67667
@ -120,7 +120,12 @@
|
||||
text = text.replaceAll('{{CURRENT_WEEKDAY}}', weekday);
|
||||
}
|
||||
|
||||
prompt = text;
|
||||
const promptWords = prompt.split(' ');
|
||||
|
||||
promptWords.pop();
|
||||
promptWords.push(`${text}`);
|
||||
|
||||
prompt = promptWords.join(' ');
|
||||
|
||||
const chatInputContainerElement = document.getElementById('chat-input-container');
|
||||
const chatInputElement = document.getElementById('chat-input');
|
||||
|
Loading…
Reference in New Issue
Block a user