Khrisna commited on
Commit
a3f43bf
·
1 Parent(s): 1cce22e

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -75,7 +75,7 @@ app.post('/api/chatgpt', async (req, res) => {
75
  const response = await chatgpt_4(prompt)
76
  res.json({
77
  status: "ok",
78
- result: response
79
  })
80
  } else if(model == "gpt-3.5") {
81
  const response = await acytoo(prompt, "gpt-4")
 
75
  const response = await chatgpt_4(prompt)
76
  res.json({
77
  status: "ok",
78
+ result: response.reply
79
  })
80
  } else if(model == "gpt-3.5") {
81
  const response = await acytoo(prompt, "gpt-4")