HerzaJ commited on
Commit
cfb6213
·
verified ·
1 Parent(s): 04b1eac

Update plugins/gpt-4.js

Browse files
Files changed (1) hide show
  1. plugins/gpt-4.js +5 -5
plugins/gpt-4.js CHANGED
@@ -45,11 +45,11 @@ const handler = async (req, res) => {
45
  };
46
 
47
  module.exports = {
48
- name: 'ChatGPT AIv4',
49
- description: 'Generate responses using OpenAI ChatGPTv4',
50
  type: 'GET',
51
- routes: ['api/AI/gpt4'],
52
- tags: ['ai', 'chatgpt', 'openai'],
53
  main: ['AI'],
54
  parameters: ['text', 'chatId', 'key'],
55
  enabled: true,
@@ -125,7 +125,7 @@ async function createChat(jwtToken, cookies, title = 'New Chat') {
125
 
126
  const { data } = await axios.post(`${CHATAI_API}/message/context`, {
127
  title,
128
- chatModel: 'gpt-4.1-nano'
129
  }, {
130
  headers: {
131
  ...headers,
 
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,
 
125
 
126
  const { data } = await axios.post(`${CHATAI_API}/message/context`, {
127
  title,
128
+ chatModel: 'claude-3-haiku'
129
  }, {
130
  headers: {
131
  ...headers,