This commit is contained in:
Timothy Jaeryang Baek
2025-05-07 01:48:54 +04:00
parent ace3303ff5
commit 369f461691
4 changed files with 36 additions and 19 deletions
@@ -201,6 +201,14 @@
{stopResponse}
{createMessagePair}
placeholder={$i18n.t('How can I help you today?')}
onChange={(input) => {
console.log('input', input);
if (input.prompt !== null) {
localStorage.setItem(`chat-input`, JSON.stringify(input));
} else {
localStorage.removeItem(`chat-input`);
}
}}
on:upload={(e) => {
dispatch('upload', e.detail);
}}