mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac: prompt template behaviour
This commit is contained in:
parent
ec29772068
commit
352ed67667
1 changed files with 6 additions and 1 deletions
|
|
@ -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 a new issue