Commit bb15eb01 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: message input delay

parent cc53fd83
......@@ -294,10 +294,14 @@
};
//////////////////////////
// Ollama functions
// Chat functions
//////////////////////////
const submitPrompt = async (userPrompt, _user = null) => {
// Reset chat input textarea
prompt = '';
document.getElementById('chat-textarea').style.height = '';
let _responses = [];
console.log('submitPrompt', $chatId);
......@@ -374,9 +378,6 @@
await tick();
}
// Reset chat input textarea
prompt = '';
document.getElementById('chat-textarea').style.height = '';
files = [];
// Send prompt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment