Lagt till vidarebefordran av LLM från backen.py till frontend (index.html, client.html, frontend.js
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user