Spaces:
Sleeping
Sleeping
Update plugins/gpt-4.js
Browse files- plugins/gpt-4.js +7 -6
plugins/gpt-4.js
CHANGED
|
@@ -45,14 +45,15 @@ const handler = async (req, res) => {
|
|
| 45 |
};
|
| 46 |
|
| 47 |
module.exports = {
|
| 48 |
-
name: '
|
| 49 |
-
description: 'Generate responses using
|
| 50 |
type: 'GET',
|
| 51 |
-
routes: ['api/AI/
|
| 52 |
-
tags: ['ai', '
|
| 53 |
main: ['AI'],
|
| 54 |
parameters: ['text', 'chatId', 'key'],
|
| 55 |
-
enabled: true,
|
|
|
|
| 56 |
handler
|
| 57 |
};
|
| 58 |
|
|
@@ -125,7 +126,7 @@ async function createChat(jwtToken, cookies, title = 'New Chat') {
|
|
| 125 |
|
| 126 |
const { data } = await axios.post(`${CHATAI_API}/message/context`, {
|
| 127 |
title,
|
| 128 |
-
chatModel: '
|
| 129 |
}, {
|
| 130 |
headers: {
|
| 131 |
...headers,
|
|
|
|
| 45 |
};
|
| 46 |
|
| 47 |
module.exports = {
|
| 48 |
+
name: 'ChatGPT V4',
|
| 49 |
+
description: 'Generate responses using GPT4 OpenAI Model v4',
|
| 50 |
type: 'GET',
|
| 51 |
+
routes: ['api/AI/gpt4'],
|
| 52 |
+
tags: ['ai', 'OpenAI', 'GPT4'],
|
| 53 |
main: ['AI'],
|
| 54 |
parameters: ['text', 'chatId', 'key'],
|
| 55 |
+
enabled: true,
|
| 56 |
+
limit: 8,
|
| 57 |
handler
|
| 58 |
};
|
| 59 |
|
|
|
|
| 126 |
|
| 127 |
const { data } = await axios.post(`${CHATAI_API}/message/context`, {
|
| 128 |
title,
|
| 129 |
+
chatModel: 'gpt-4.1-nano'
|
| 130 |
}, {
|
| 131 |
headers: {
|
| 132 |
...headers,
|