mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
fix: message input delay
This commit is contained in:
parent
cc53fd8379
commit
bb15eb016e
1 changed files with 5 additions and 4 deletions
|
|
@ -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 @@
|
||||||
await tick();
|
await tick();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset chat input textarea
|
|
||||||
prompt = '';
|
|
||||||
document.getElementById('chat-textarea').style.height = '';
|
|
||||||
files = [];
|
files = [];
|
||||||
|
|
||||||
// Send prompt
|
// Send prompt
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue