server : (webui) allow typing and submitting during llm response (#11626)
This commit is contained in:
parent
5598f475be
commit
1d1e6a90bc
3 changed files with 8 additions and 1 deletions
|
@ -469,6 +469,14 @@ const mainApp = createApp({
|
|||
},
|
||||
async sendMessage() {
|
||||
if (!this.inputMsg) return;
|
||||
|
||||
if (this.isGenerating) {
|
||||
this.stopGeneration();
|
||||
while (this.isGenerating) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 10));
|
||||
}
|
||||
}
|
||||
|
||||
const currConvId = this.viewingConvId;
|
||||
|
||||
StorageUtils.appendMsg(currConvId, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue