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

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -71,7 +71,7 @@ app.post('/api/chatgpt', async (req, res) => {
71
  if (!status) return res.json({ success: false, message: 'Required an prompt text!' })
72
 
73
  if(status !== apikey) return res.json({ success: false, message: 'Invalid status!' })
74
- if(model == "gpt-3") {
75
  const response = await chatgpt_4(prompt)
76
  res.json({
77
  status: "ok",
 
71
  if (!status) return res.json({ success: false, message: 'Required an prompt text!' })
72
 
73
  if(status !== apikey) return res.json({ success: false, message: 'Invalid status!' })
74
+ if(model == "gpt-4") {
75
  const response = await chatgpt_4(prompt)
76
  res.json({
77
  status: "ok",