remove non-changes

This commit is contained in:
50h100a 2023-08-02 23:38:50 -04:00
parent 2fdec7eb03
commit d4278388f7
1 changed files with 3 additions and 4 deletions

View File

@ -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;