remove non-changes
This commit is contained in:
parent
2fdec7eb03
commit
d4278388f7
|
@ -629,7 +629,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
|
||||||
else {
|
else {
|
||||||
const args = {
|
const args = {
|
||||||
body: JSON.stringify(request.body),
|
body: JSON.stringify(request.body),
|
||||||
headers: { "Content-Type": "application/json"},
|
headers: { "Content-Type": "application/json" },
|
||||||
signal: controller.signal,
|
signal: controller.signal,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -642,8 +642,8 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
|
||||||
console.log(data);
|
console.log(data);
|
||||||
return response_generate.send(data);
|
return response_generate.send(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Error: %o", error);
|
console.log(error);
|
||||||
return response_generate.send({ error: true});
|
return response_generate.send({ error: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -697,7 +697,6 @@ app.post("/getchat", jsonParser, function (request, response) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
app.post("/getstatus", jsonParser, async function (request, response_getstatus = response) {
|
app.post("/getstatus", jsonParser, async function (request, response_getstatus = response) {
|
||||||
if (!request.body) return response_getstatus.sendStatus(400);
|
if (!request.body) return response_getstatus.sendStatus(400);
|
||||||
api_server = request.body.api_server;
|
api_server = request.body.api_server;
|
||||||
|
|
Loading…
Reference in New Issue