"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "6a92652ca1fa6dd203c326d6dc2ca5c3080a0921"
Commit bb15eb01 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: message input delay

parent cc53fd83
...@@ -294,10 +294,14 @@ ...@@ -294,10 +294,14 @@
}; };
////////////////////////// //////////////////////////
// Ollama functions // Chat functions
////////////////////////// //////////////////////////
const submitPrompt = async (userPrompt, _user = null) => { const submitPrompt = async (userPrompt, _user = null) => {
// Reset chat input textarea
prompt = '';
document.getElementById('chat-textarea').style.height = '';
let _responses = []; let _responses = [];
console.log('submitPrompt', $chatId); console.log('submitPrompt', $chatId);
...@@ -374,9 +378,6 @@ ...@@ -374,9 +378,6 @@
await tick(); await tick();
} }
// Reset chat input textarea
prompt = '';
document.getElementById('chat-textarea').style.height = '';
files = []; files = [];
// Send prompt // 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