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

at config page, system prompt cause jailbreak filter error with gpt-4o-mini #1529

Open
cyberflying opened this issue Nov 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cyberflying
Copy link
Contributor

Describe the bug

frontend web app log:
2024-11-26T15:08:54.704231547Z ERROR:create_app:Exception in /api/conversation | Error code: 400 - {'error': {'message': "The response was filtered due to the prompt triggering Azure OpenAI's content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation: https://go.microsoft.com/fwlink/?linkid=2198766", 'type': None, 'param': 'prompt', 'code': 'content_filter', 'status': 400, 'innererror': {'code': 'ResponsibleAIPolicyViolation', 'content_filter_result': {'hate': {'filtered': False, 'severity': 'safe'}, 'jailbreak': {'filtered': True, 'detected': True}, 'self_harm': {'filtered': False, 'severity': 'safe'}, 'sexual': {'filtered': False, 'severity': 'safe'}, 'violence': {'filtered': False, 'severity': 'safe'}}}}}

Expected behavior

A clear and concise description of what you expected to happen.

How does this bug make you feel?

Share a gif from giphy to tells us how you'd feel


Debugging information

delete the system prompt, it does work.

@cyberflying cyberflying added the bug Something isn't working label Nov 26, 2024
@Vinay-Microsoft
Copy link

Vinay-Microsoft commented Nov 26, 2024

@cyberflying Can you please give the steps to reproduce this Issue or explain in detail what you were trying to do when you observed this Issue? Meanwhile we will try to analyze it more with the information that you have provided.

@cyberflying
Copy link
Contributor Author

@Vinay-Microsoft , I just deployed this repo and tried to test it.

  1. first I encounter error at the admin config page , it seems cannot get ${ORCHESTRATION_STRATEGY} in line 143 in file default.json, I change to "langchain",
  2. I chat with the frontend web page, then get the error
    image
  3. check the web app> deployment center> logs, find the following error message:

2024-11-27T03:00:23.668312676Z ERROR:create_app:Exception in /api/conversation | Error code: 400 - {'error': {'message': "The response was filtered due to the prompt triggering Azure OpenAI's content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation: https://go.microsoft.com/fwlink/?linkid=2198766", 'type': None, 'param': 'prompt', 'code': 'content_filter', 'status': 400, 'innererror': {'code': 'ResponsibleAIPolicyViolation', 'content_filter_result': {'hate': {'filtered': False, 'severity': 'safe'}, 'jailbreak': {'filtered': True, 'detected': True}, 'self_harm': {'filtered': False, 'severity': 'safe'}, 'sexual': {'filtered': False, 'severity': 'safe'}, 'violence': {'filtered': False, 'severity': 'safe'}}}}}

  1. if delete the system prompt, it did work yesterday. but just now, I delete system prompts and also get the same error
  2. if change the gpt-4o-mini "Content filter" from "DefaultV2" to "Default", it does work

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

2 participants