Skip to content
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

getting 400 error Azure Service - Content violation #986

Open
CarlosQuiroga25 opened this issue Jul 4, 2024 · 0 comments
Open

getting 400 error Azure Service - Content violation #986

CarlosQuiroga25 opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@CarlosQuiroga25
Copy link

I'm currently checking the case of use for negative statements on chat whenever a user makes a prompt, the thing is that in some cases the model makes a clear answer saying that it cannot provide any information due to the content being negative or harmful, but in other cases it directly prompts an error box in red that says:
"400 litellm.BadRequestError: litellm.ContentPolicyViolationError: Azure Exception - Error code: 400"

if you make a prompt implying some harmfull request or perhaps instructions on how make certain wepons some times it woul answer you but in other cases the error appears.

I would expect that the behavior should be that the chat could respond always by giving feedback and not contribute to the negative or harmfull request from the user.

This happens using GPT 4.

@CarlosQuiroga25 CarlosQuiroga25 added the bug Something isn't working label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant