diff --git a/web/tenant/src/views/service/playground/ChatTab.vue b/web/tenant/src/views/service/playground/ChatTab.vue index eda5b43..dad88be 100644 --- a/web/tenant/src/views/service/playground/ChatTab.vue +++ b/web/tenant/src/views/service/playground/ChatTab.vue @@ -246,7 +246,7 @@ async function sendStream(requestBody: Record, assistantIdx: number async function sendMessage() { const content = inputMessage.value.trim() - if (!content || !selectedModel.value) return + if (!content || !selectedModel.value || sending.value) return if (params.systemPrompt && messages.value.length === 0) { messages.value.push({ role: 'system', content: params.systemPrompt }) @@ -434,7 +434,7 @@ function clearChat() {
-