Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Xuan Son Nguyen
722187fce8 server : (webui) revert hacky solution from #11626 2025-02-03 23:23:11 +01:00
2 changed files with 3 additions and 8 deletions

Binary file not shown.

View file

@ -468,14 +468,9 @@ const mainApp = createApp({
URL.revokeObjectURL(url);
},
async sendMessage() {
if (!this.inputMsg) return;
if (this.isGenerating) {
this.stopGeneration();
while (this.isGenerating) {
await new Promise((resolve) => setTimeout(resolve, 10));
}
}
// prevent sending empty message
// also allow typing the message while generating, but does not allow sending it (to match UX/UI behavior of other chat apps)
if (!this.inputMsg || this.isGenerating) return;
const currConvId = this.viewingConvId;