langgenius / dify

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.
https://dify.ai
Other
51.81k stars 7.51k forks source link

fix: delete harm catalog settings for gemini #8829

Closed CXwudi closed 1 month ago

CXwudi commented 1 month ago

Checklist:

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

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

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

image

However, eariler Gemini models (like the earliest Gemini 1.5 Pro) still seems to refuse to answer image