From 32098e34526805a67dc2477a7d11fd9692b1514b Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Tue, 6 Aug 2024 22:07:18 +0200 Subject: [PATCH] =?UTF-8?q?Experimenterar=20med=20olika=20parametrar=20i?= =?UTF-8?q?=20anrop=20till=20sendMessage()=20f=C3=B6r=20att=20s=C3=A4kerst?= =?UTF-8?q?=C3=A4lla=20att=20byte=20till=20ny=20modell=20verkligen=20g?= =?UTF-8?q?=C3=B6rs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smartassist/src/static/js/frontend.js | 1 + 1 file changed, 1 insertion(+) diff --git a/smartassist/src/static/js/frontend.js b/smartassist/src/static/js/frontend.js index 4af1caf..6e770fd 100644 --- a/smartassist/src/static/js/frontend.js +++ b/smartassist/src/static/js/frontend.js @@ -25,6 +25,7 @@ const frontendApi = { fetch(window.apiEndpoint, { method: 'POST', headers: { 'Content-Type': 'application/json' }, + // body: JSON.stringify({ query }), // Add these parameters here body: JSON.stringify({ query, model: window.useModel }), // Add these parameters here }) .then(response => response.json())