Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
[!IMPORTANT]
Please review the checklist below before submitting your pull request.
[x] Please open an issue before creating a PR or link to an existing issue
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
Description
Try fixes #8805 by deleting the harm catalog settings. I wouldn't say this PR really address #8805 since the user is requesting for configurable settings, but at least for now this PR align with #8721 but for Gemini endpoints.
I also optimized the import.
Type of Change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update, included: Dify Document
[x] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
[ ] Dependency upgrade
Testing Instructions
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[x] I simply just tested the a LLM chat with a keyword kill but doesn't mean anything harmful.
However, eariler Gemini models (like the earliest Gemini 1.5 Pro) still seems to refuse to answer
Checklist:
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint godsDescription
Try fixes #8805 by deleting the harm catalog settings. I wouldn't say this PR really address #8805 since the user is requesting for configurable settings, but at least for now this PR align with #8721 but for Gemini endpoints.
I also optimized the import.
Type of Change
Testing Instructions
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
kill
but doesn't mean anything harmful.However, eariler Gemini models (like the earliest Gemini 1.5 Pro) still seems to refuse to answer