mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 14:27:10 +00:00
fix: deconstruction null bug
This commit is contained in:
parent
3ff591d205
commit
ec45eb1173
1 changed files with 1 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ export class chatgpt extends plugin {
|
||||||
userToken: bingToken, // "_U" cookie from bing.com
|
userToken: bingToken, // "_U" cookie from bing.com
|
||||||
debug: Config.debug
|
debug: Config.debug
|
||||||
})
|
})
|
||||||
let response = await bingAIClient.sendMessage(prompt, conversation)
|
let response = await bingAIClient.sendMessage(prompt, conversation || {})
|
||||||
return {
|
return {
|
||||||
text: response.response,
|
text: response.response,
|
||||||
conversationId: response.conversationId,
|
conversationId: response.conversationId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue