mirror of
https://github.com/langgenius/dify.git
synced 2026-04-26 02:06:35 +08:00
fix: include state snapshot in workflow event URLs for chat hooks
This commit is contained in:
parent
307f0d5827
commit
e63f7b2249
@ -221,7 +221,7 @@ export const useChat = (
|
|||||||
) => {
|
) => {
|
||||||
const getOrCreatePlayer = createAudioPlayerManager()
|
const getOrCreatePlayer = createAudioPlayerManager()
|
||||||
// Re-subscribe to workflow events for the specific message
|
// Re-subscribe to workflow events for the specific message
|
||||||
const url = `/workflow/${workflowRunId}/events`
|
const url = `/workflow/${workflowRunId}/events?include_state_snapshot=true`
|
||||||
|
|
||||||
const otherOptions: IOtherOptions = {
|
const otherOptions: IOtherOptions = {
|
||||||
isPublicAPI,
|
isPublicAPI,
|
||||||
|
|||||||
@ -647,7 +647,7 @@ export const useChat = (
|
|||||||
}: SendCallback,
|
}: SendCallback,
|
||||||
) => {
|
) => {
|
||||||
// Re-subscribe to workflow events for the specific message
|
// Re-subscribe to workflow events for the specific message
|
||||||
const url = `/workflow/${workflowRunId}/events`
|
const url = `/workflow/${workflowRunId}/events?include_state_snapshot=true`
|
||||||
|
|
||||||
const otherOptions: IOtherOptions = {
|
const otherOptions: IOtherOptions = {
|
||||||
getAbortController: (abortController) => {
|
getAbortController: (abortController) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user