Skip to content

Commit

Permalink
鈿★笍(dify) Include empty files require field
Browse files Browse the repository at this point in the history
Required files variable to be sent even if empty in DifyAI v5.x+

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
	- Enhanced chat message creation to support future file attachments.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
abdullahbaa5 committed Feb 8, 2024
1 parent 94c3e90 commit 1b2876d
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 @@ -59,6 +59,7 @@ export const createChatMessage = createAction({
response_mode: 'blocking',
conversation_id,
user,
files: []
},
})
.json()
Expand Down

0 comments on commit 1b2876d

Please sign in to comment.