From 5b626678391360b40d4111b6cfce365d56dfa063 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Fri, 31 Mar 2023 13:52:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E7=94=A8SydneyClient=E6=9B=B4?= =?UTF-8?q?=E5=87=86=E7=A1=AE=E5=9C=B0=E6=A3=80=E6=B5=8Btoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/management.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/management.js b/apps/management.js index a51370e..5338f2d 100644 --- a/apps/management.js +++ b/apps/management.js @@ -3,6 +3,7 @@ import { Config } from '../utils/config.js' import { BingAIClient } from '@waylaidwanderer/chatgpt-api' import { exec } from 'child_process' import { checkPnpm, formatDuration, parseDuration } from '../utils/common.js' +import SydneyAIClient from "../utils/SydneyAIClient.js"; export class ChatgptManagement extends plugin { constructor (e) { @@ -176,7 +177,7 @@ export class ChatgptManagement extends plugin { if (token?.indexOf('=') > -1) { cookie = token } - const bingAIClient = new BingAIClient({ + const bingAIClient = new SydneyAIClient({ userToken: token, // "_U" cookie from bing.com cookie, debug: Config.debug