mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +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(() => {
|
const messageTimeout = setTimeout(() => {
|
||||||
this.cleanupWebSocketConnection(ws)
|
this.cleanupWebSocketConnection(ws)
|
||||||
if (replySoFar) {
|
if (replySoFar) {
|
||||||
|
let message = {}
|
||||||
|
message.adaptiveCards[0].body[0].text = replySoFar
|
||||||
|
message.text = replySoFar
|
||||||
resolve({
|
resolve({
|
||||||
message: replySoFar
|
message
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
reject(new Error('Timed out waiting for response. Try enabling debug mode to see more information.'))
|
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