Skip to content

Commit

Permalink
chore: switch from @waylaidwanderer/chatgpt-api to nodejs-gpt for lat…
Browse files Browse the repository at this point in the history
…est fixes (danny-avila#1050)
  • Loading branch information
danny-avila authored Oct 14, 2023
1 parent bfc7af1 commit 5b32e41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/bingai.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }),
};
Expand Down
2 changes: 1 addition & 1 deletion app/chatgpt-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }),
};
Expand Down
2 changes: 1 addition & 1 deletion app/titleConvoBing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 5b32e41

Please sign in to comment.