Use temp logging

This commit is contained in:
Tobias Wasner 2023-01-16 23:41:47 +01:00
parent 588ac6eac6
commit 1b43cee981

View File

@ -78,7 +78,7 @@ async function getResponse(history, res) {
presence_penalty: 0.6,
stop: ["\n"],
});
const stringResponse = JSON.stringify(response.data);
console.log("got from openai: " + JSON.stringify(response.data));
history.push({
msg: response.data.choices[0].text,
ai: true