FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
27.99k stars 14.42k forks source link

[FEATURE] Display error messages for Azure OpenAI content management policy triggers #2187

Open seonghobae opened 3 months ago

seonghobae commented 3 months ago

Describe the feature you'd like I would like Flowise to implement a feature that prompts users to re-enter their input when Azure OpenAI's content management policy is triggered. Currently, when a prompt results in an error due to content filtering policies, such as receiving a 400 The response was filtered due to the prompt triggering Azure OpenAI's content management policy, Flowise does not show any error message or provide a way for the user to correct their input. This can leave users confused and unaware of why their prompts are not generating any responses.

The feature should include:

Additional context This feature would streamline the user experience by providing a clear path forward when an input is rejected due to content policies. It would minimize confusion and allow users to quickly correct their input without needing to understand the underlying content policies.

Note I am not proficient in Node.js, so I am unable to contribute code for this feature myself. However, I believe this would be a valuable addition to Flowise and would appreciate it if the development team could consider implementing it.

HenryHengZJ commented 3 months ago

We provide Input Moderation that can be used to detect in user input violates the moderation policy - image