fix: deconstruction null bug

This commit is contained in:
ikechan8370 2023-02-14 11:35:09 +08:00
parent 3ff591d205
commit ec45eb1173

View file

@ -390,7 +390,7 @@ export class chatgpt extends plugin {
userToken: bingToken, // "_U" cookie from bing.com
debug: Config.debug
})
let response = await bingAIClient.sendMessage(prompt, conversation)
let response = await bingAIClient.sendMessage(prompt, conversation || {})
return {
text: response.response,
conversationId: response.conversationId,