Skip to content

Commit

Permalink
馃悰 (dify) Fix issue when receiving "event" chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 19, 2024
1 parent f3adaa3 commit 6735ecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/forge/blocks/difyAi/actions/createChatMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const createChatMessage = createAction({
conversationId = data.conversation_id
}
} catch (error) {
if (line.includes('event: ')) return
jsonChunk += line
}
})
Expand Down

0 comments on commit 6735ecc

Please sign in to comment.