Lagt till vidarebefordran av LLM från backen.py till frontend (index.html, client.html, frontend.js

This commit is contained in:
2024-07-29 00:47:42 +02:00
parent 534874e810
commit 941b426574
4 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ function sendMessage() {
fetch(`${apiEndpoint}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query, model: "phi3:mini" }), // Add these parameters here
body: JSON.stringify({ query, model: `${useModel}` }), // 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())