From 9ae5840e8b0fa1b28633cc50fcdb48f96c3f96ee Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Wed, 31 Jul 2024 15:43:43 +0200 Subject: [PATCH] =?UTF-8?q?Flyttat=20inl=C3=A4sning=20av=20apiEndpoint=20o?= =?UTF-8?q?ch=20useModel=20till=20frontend.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smartassist/src/html/client.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/smartassist/src/html/client.html b/smartassist/src/html/client.html index 4f7b842..0c5c6d0 100644 --- a/smartassist/src/html/client.html +++ b/smartassist/src/html/client.html @@ -22,7 +22,7 @@ console.log("client.html - use model: ", useModel); --> - --> @@ -71,7 +73,7 @@ event.preventDefault(); userInputElement.value += '\n'; } else if (event.key === 'Enter') { // Enter to send message - sendMessage(); + window.frontendApi.sendMessage(); userInputElement.value = ''; // Clear the input field after sending event.preventDefault(); }