fix: syntax error

This commit is contained in:
ikechan8370 2023-08-24 23:00:51 +08:00 committed by GitHub
parent 502cc810bb
commit 246aaad987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1935,6 +1935,7 @@ export class chatgpt extends plugin {
const { choices } = await client.getChatCompletions(deploymentName, msg)
let completion = choices[0].message;
return {'text' : completion.content, 'message': completion}
}
case 'bard': {
// 处理cookie
const matchesPSID = /__Secure-1PSID=([^;]+)/.exec(Config.bardPsid)