diff --git a/app/bingai.js b/app/bingai.js index e178241c17f..c3c9c44fa9e 100644 --- a/app/bingai.js +++ b/app/bingai.js @@ -29,7 +29,7 @@ const askBing = async ({ key = await getUserKey({ userId, name: 'bingAI' }); } - const { BingAIClient } = await import('@waylaidwanderer/chatgpt-api'); + const { BingAIClient } = await import('nodejs-gpt'); const store = { store: new KeyvFile({ filename: './data/cache.json' }), }; diff --git a/app/chatgpt-browser.js b/app/chatgpt-browser.js index 514bb22c228..467e67785d3 100644 --- a/app/chatgpt-browser.js +++ b/app/chatgpt-browser.js @@ -24,7 +24,7 @@ const browserClient = async ({ key = await getUserKey({ userId, name: 'chatGPTBrowser' }); } - const { ChatGPTBrowserClient } = await import('@waylaidwanderer/chatgpt-api'); + const { ChatGPTBrowserClient } = await import('nodejs-gpt'); const store = { store: new KeyvFile({ filename: './data/cache.json' }), }; diff --git a/app/titleConvoBing.js b/app/titleConvoBing.js index 8f95bd9f20e..8dd32160d73 100644 --- a/app/titleConvoBing.js +++ b/app/titleConvoBing.js @@ -8,7 +8,7 @@ const titleConvo = async ({ text, response }) => { return title; } - const { BingAIClient } = await import('@waylaidwanderer/chatgpt-api'); + const { BingAIClient } = await import('nodejs-gpt'); const titleGenerator = new BingAIClient({ userToken: process.env.BINGAI_TOKEN, debug: false, diff --git a/package.json b/package.json index 4453c9c269c..d757580663e 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "@azure/search-documents": "^11.3.2", "@keyv/mongo": "^2.1.8", "@keyv/redis": "^2.8.0", - "@waylaidwanderer/chatgpt-api": "^1.37.2", "axios": "^1.3.4", "bcryptjs": "^2.4.3", "cheerio": "^1.0.0-rc.12", @@ -51,6 +50,7 @@ "lodash": "^4.17.21", "meilisearch": "^0.33.0", "mongoose": "^7.1.1", + "nodejs-gpt": "^1.37.4", "nodemailer": "^6.9.4", "openai": "^4.11.1", "openai-chat-tokens": "^0.2.8",