HerzaJ commited on
Commit
4c63adf
·
verified ·
1 Parent(s): cfb6213

Update plugins/gpt-4.js

Browse files
Files changed (1) hide show
  1. 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: 'Haiku Claude AIv3',
49
- description: 'Generate responses using Haiku Anthropic Model v3',
50
  type: 'GET',
51
- routes: ['api/AI/haiku'],
52
- tags: ['ai', 'Anthropic', 'Claude'],
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: 'claude-3-haiku'
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,