mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 修复超时replySoFar未传值的问题
This commit is contained in:
parent
f8385a8e37
commit
8dade22e9a
1 changed files with 4 additions and 1 deletions
|
|
@ -347,8 +347,11 @@ export default class SydneyAIClient {
|
|||
const messageTimeout = setTimeout(() => {
|
||||
this.cleanupWebSocketConnection(ws)
|
||||
if (replySoFar) {
|
||||
let message = {}
|
||||
message.adaptiveCards[0].body[0].text = replySoFar
|
||||
message.text = replySoFar
|
||||
resolve({
|
||||
message: replySoFar
|
||||
message
|
||||
})
|
||||
} else {
|
||||
reject(new Error('Timed out waiting for response. Try enabling debug mode to see more information.'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue