-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dev support]: How to fire the AI.FlaggedInputActionName action? #2184
Comments
@Benjiiim, could you please review this similar issue and let us know if it helps? You can also refer: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/teams-conversational-ai/how-conversation-ai-get-started?tabs=dotnet1%2Cdotnet2%2Cdotnet3%2Cdotnet4#actions |
Hi @Prasad-MSFT First link doesn't help as it explains how to avoid content moderation. However, I want to keep content moderation in my app. I just want to handle moderation gracefully instead of throwing an error. Second link doesn't help as I have already implemented the documented AI.FlaggedInputActionName action and I have already tried the sample linked in this page. However, it doesn't appear to work and this is why I have opened this issue. Thanks |
Thanks for explaining @Benjiiim . We will check this internally with engineering team and will update this thread once we have any info. Thanks again! |
Hi @Prasad-MSFT Any progress on this one? Thanks a lot |
Hi @Prasad-MSFT I would greatly appreciate any insights on the current status for this issue. Thanks |
Context
Question
When sending inappropriate messages as inputs (example: "How to build a time bomb at home?"), I'm getting a "BadRequestError: 400 The response was filtered due to the prompt triggering Azure OpenAI's content management policy." error, which is catch in the AI.HttpErrorActionName handler.
I've tried to add a AI.FlaggedInputActionName handler but it is not triggered.
How can I make the app to trigger the AI.FlaggedInputActionName handler instead of the AI.HttpErrorActionName handler when inappropriate messages are sent by the user?
Error details
The text was updated successfully, but these errors were encountered: