Spaces:
Running
Running
Update index.js
Browse files
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-
|
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",
|