Förberett för att skicka med modell i anrop till apiEndpoint

This commit is contained in:
Joakim Persson
2024-07-28 23:26:33 +02:00
parent e69a131875
commit 0cccd02050
+2 -1
View File
@@ -14,7 +14,8 @@ function sendMessage() {
fetch(`${apiEndpoint}`, { fetch(`${apiEndpoint}`, {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query }), body: JSON.stringify({ query, model: "phi3:mini" }), // Add these parameters here
// body: JSON.stringify({ query, url_server: "http://your-custom-url", model: "phi3:mini" }), // Add these parameters here
}) })
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {