mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: conversationId field error
This commit is contained in:
parent
fb73f1b5df
commit
9aa0a314bc
1 changed files with 1 additions and 2 deletions
|
|
@ -367,7 +367,7 @@ export class chatgpt extends plugin {
|
|||
let response = await tryTimes(async () => await this.chatGPTApi.sendMessage(prompt, conversation || {}), 5)
|
||||
return {
|
||||
text: response.response,
|
||||
conversationId: response.response,
|
||||
conversationId: response.conversationId,
|
||||
id: response.messageId,
|
||||
parentMessageId: conversation?.parentMessageId
|
||||
}
|
||||
|
|
@ -398,7 +398,6 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
async emptyQueue (e) {
|
||||
await redis.lTrim('CHATGPT:CHAT_QUEUE', 1, 0)
|
||||
await this.reply('已清空当前等待队列')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue