mirror of
https://github.com/wasnertobias/StalkingAId.git
synced 2025-10-16 11:55:43 +00:00
Return json data
This commit is contained in:
parent
cb7bf40ec5
commit
588ac6eac6
@ -83,7 +83,7 @@ async function getResponse(history, res) {
|
||||
msg: response.data.choices[0].text,
|
||||
ai: true
|
||||
})
|
||||
res.status(200).end(history);
|
||||
res.status(200).json(history).end();
|
||||
} catch(error) {
|
||||
console.error(error);
|
||||
console.error(error.response.status, error.response.data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user