Bug fixes

This commit is contained in:
Saoud Rizwan
2024-09-28 19:38:47 -04:00
parent c1f3185e00
commit 6c702d86ee

View File

@@ -2179,6 +2179,7 @@ ${this.customInstructions.trim()}
*/ */
this.presentAssistantMessageLocked = false
if (!block.partial) { if (!block.partial) {
// block is finished streaming and executing // block is finished streaming and executing
if (this.currentStreamingContentIndex === this.assistantMessageContent.length - 1) { if (this.currentStreamingContentIndex === this.assistantMessageContent.length - 1) {
@@ -2193,7 +2194,7 @@ ${this.customInstructions.trim()}
if (this.currentStreamingContentIndex < this.assistantMessageContent.length) { if (this.currentStreamingContentIndex < this.assistantMessageContent.length) {
// there are already more content blocks to stream, so we'll call this function ourselves // there are already more content blocks to stream, so we'll call this function ourselves
// await this.presentAssistantContent() // await this.presentAssistantContent()
this.presentAssistantMessageLocked = false
this.presentAssistantMessage() this.presentAssistantMessage()
return return
} }
@@ -2202,7 +2203,6 @@ ${this.customInstructions.trim()}
if (this.presentAssistantMessageHasPendingUpdates) { if (this.presentAssistantMessageHasPendingUpdates) {
this.presentAssistantMessage() this.presentAssistantMessage()
} }
this.presentAssistantMessageLocked = false
} }
// streaming // streaming