Skip to content

Commit 241bc68

Browse files
authored
chore: switch from @waylaidwanderer/chatgpt-api to nodejs-gpt for latest fixes (#1050)
1 parent e7e473d commit 241bc68

File tree

5 files changed

+113
-121
lines changed

5 files changed

+113
-121
lines changed

api/app/bingai.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const askBing = async ({
2929
key = await getUserKey({ userId, name: 'bingAI' });
3030
}
3131

32-
const { BingAIClient } = await import('@waylaidwanderer/chatgpt-api');
32+
const { BingAIClient } = await import('nodejs-gpt');
3333
const store = {
3434
store: new KeyvFile({ filename: './data/cache.json' }),
3535
};

api/app/chatgpt-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const browserClient = async ({
2424
key = await getUserKey({ userId, name: 'chatGPTBrowser' });
2525
}
2626

27-
const { ChatGPTBrowserClient } = await import('@waylaidwanderer/chatgpt-api');
27+
const { ChatGPTBrowserClient } = await import('nodejs-gpt');
2828
const store = {
2929
store: new KeyvFile({ filename: './data/cache.json' }),
3030
};

api/app/titleConvoBing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const titleConvo = async ({ text, response }) => {
88
return title;
99
}
1010

11-
const { BingAIClient } = await import('@waylaidwanderer/chatgpt-api');
11+
const { BingAIClient } = await import('nodejs-gpt');
1212
const titleGenerator = new BingAIClient({
1313
userToken: process.env.BINGAI_TOKEN,
1414
debug: false,

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"@azure/search-documents": "^11.3.2",
2626
"@keyv/mongo": "^2.1.8",
2727
"@keyv/redis": "^2.8.0",
28-
"@waylaidwanderer/chatgpt-api": "^1.37.2",
2928
"axios": "^1.3.4",
3029
"bcryptjs": "^2.4.3",
3130
"cheerio": "^1.0.0-rc.12",
@@ -51,6 +50,7 @@
5150
"lodash": "^4.17.21",
5251
"meilisearch": "^0.33.0",
5352
"mongoose": "^7.1.1",
53+
"nodejs-gpt": "^1.37.4",
5454
"nodemailer": "^6.9.4",
5555
"openai": "^4.11.1",
5656
"openai-chat-tokens": "^0.2.8",

0 commit comments

Comments
 (0)