Skip to content

Added FIX for azure content filtering problem #4192

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

Conversation

SivasankarMathiyazhagan
Copy link

@SivasankarMathiyazhagan SivasankarMathiyazhagan commented Feb 16, 2025

Description

Resolved the content filtering issue (jailbreak) caused by Azure's safety mechanisms when using current DeepSeek system prompts. The issue stemmed from certain strict terms like "only" and "refuse", which appeared to override Azure AI safety controls. By removing these terms, the problem was resolved, and the system functioned correctly.

Exact Error Message:

Error: HTTP 400 Bad Request from https://deepseek-r1-model01.eastus.models.ai.azure.com/chat/completions {"error":{"message":"The response was filtered due to the prompt triggering Microsoft's content management policy. Please modify your prompt and retry.","type":null,"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"}}}}}

Having conversation on here : #3902

Checklist

N/A

Screenshots

image

Testing instructions

N/A

Copy link

netlify bot commented Feb 16, 2025

Deploy Preview for continuedev ready!

Name Link
🔨 Latest commit 90a0810
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67b23b6216a90e0008e2167e
😎 Deploy Preview https://deploy-preview-4192--continuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tomasz-stefaniak tomasz-stefaniak merged commit e6c4f8b into continuedev:main Feb 17, 2025
32 checks passed
@tomasz-stefaniak
Copy link
Collaborator

Thanks for updating this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants