mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: syntax error
This commit is contained in:
parent
502cc810bb
commit
246aaad987
1 changed files with 1 additions and 0 deletions
|
|
@ -1935,6 +1935,7 @@ export class chatgpt extends plugin {
|
||||||
const { choices } = await client.getChatCompletions(deploymentName, msg)
|
const { choices } = await client.getChatCompletions(deploymentName, msg)
|
||||||
let completion = choices[0].message;
|
let completion = choices[0].message;
|
||||||
return {'text' : completion.content, 'message': completion}
|
return {'text' : completion.content, 'message': completion}
|
||||||
|
}
|
||||||
case 'bard': {
|
case 'bard': {
|
||||||
// 处理cookie
|
// 处理cookie
|
||||||
const matchesPSID = /__Secure-1PSID=([^;]+)/.exec(Config.bardPsid)
|
const matchesPSID = /__Secure-1PSID=([^;]+)/.exec(Config.bardPsid)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue