We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1e6a9 commit b345178Copy full SHA for b345178
examples/server/public/index.html.gz
-47 Bytes
examples/server/webui/src/main.js
@@ -468,14 +468,9 @@ const mainApp = createApp({
468
URL.revokeObjectURL(url);
469
},
470
async sendMessage() {
471
- if (!this.inputMsg) return;
472
-
473
- if (this.isGenerating) {
474
- this.stopGeneration();
475
- while (this.isGenerating) {
476
- await new Promise((resolve) => setTimeout(resolve, 10));
477
- }
478
+ // 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;
479
480
const currConvId = this.viewingConvId;
481
0 commit comments