dify
dify copied to clipboard
Feat/chat custom disclaimer
Description
Added additional custom disclaimer for chats.
Settings:
Disclaimer inside web app:
Disclaimer inside embedded chats:
iframe:
scripts:
Partly connects with https://github.com/langgenius/dify/issues/4202
Not much more to be described, kinda self described :)
Type of Change
- [x] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [x] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
How Has This Been Tested?
Everything was tested locally with couple of edge cases.
Suggested Checklist:
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] My changes generate no new warnings
- [x] I ran
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint gods - [ ]
optional
I have made corresponding changes to the documentation - [ ]
optional
I have added tests that prove my fix is effective or that my feature works - [ ]
optional
New and existing unit tests pass locally with my changes
Minor suggestions to follow.
- Skip the word
Custom
inCustom Disclaimer
, as it IS customizable with the following textbox. - Use textbox instead of text input for longer declaimer text.
Database migration checked, all good.