refac: prompt template behaviour

This commit is contained in:
Timothy Jaeryang Baek 2025-03-10 01:15:45 +00:00
parent ec29772068
commit 352ed67667

View File

@ -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');