Experimenterar med olika parametrar i anrop till sendMessage() för att säkerställa att byte till ny modell verkligen görs.
This commit is contained in:
@@ -25,6 +25,7 @@ const frontendApi = {
|
|||||||
fetch(window.apiEndpoint, {
|
fetch(window.apiEndpoint, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
|
// body: JSON.stringify({ query }), // Add these parameters here
|
||||||
body: JSON.stringify({ query, model: window.useModel }), // Add these parameters here
|
body: JSON.stringify({ query, model: window.useModel }), // Add these parameters here
|
||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
|
|||||||
Reference in New Issue
Block a user