Rooni commited on
Commit
b30fe32
·
verified ·
1 Parent(s): 7528ecc

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -82,10 +82,10 @@ app.post('/gen', async (req, res) => {
82
  });
83
 
84
  if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
85
- console.log(response.data);
86
 
87
  const content = JSON.parse(response.data);
88
- res.json({ content.candidates[0].content.parts.map(part => part.text).join('') });
89
 
90
  } else {
91
  const content = response;
 
82
  });
83
 
84
  if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
85
+ console.log(response);
86
 
87
  const content = JSON.parse(response.data);
88
+ res.json({ "TESTING MODE!!!" });
89
 
90
  } else {
91
  const content = response;