Skip to content

Commit

Permalink
fix: actually use the Bing cookies value in cli/server, fixes #79 for…
Browse files Browse the repository at this point in the history
… real
  • Loading branch information
waylaidwanderer committed Feb 16, 2023
1 parent 6c2fc19 commit c60d012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ let client;
switch (clientToUse) {
case 'bing':
client = new BingAIClient({
userToken: settings.bingAiClient.userToken,
debug: settings.bingAiClient.debug,
...settings.bingAiClient,
cache: settings.cacheOptions,
});
break;
Expand Down
5 changes: 1 addition & 4 deletions bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ const clientToUse = settings.apiOptions?.clientToUse || settings.clientToUse ||
let client;
switch (clientToUse) {
case 'bing':
client = new BingAIClient({
userToken: settings.bingAiClient.userToken,
debug: settings.bingAiClient.debug,
});
client = new BingAIClient(settings.bingAiClient);
break;
default:
client = new ChatGPTClient(
Expand Down

0 comments on commit c60d012

Please sign in to comment.