2
0

️(dify) Include empty files require field

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 -->
This commit is contained in:
Abdullah bin Amir
2024-02-08 20:20:53 +04:00
committed by GitHub
parent 94c3e90fa3
commit 1b2876daef

View File

@ -59,6 +59,7 @@ export const createChatMessage = createAction({
response_mode: 'blocking',
conversation_id,
user,
files: []
},
})
.json()