Skip to content

Fix: adjust PlanningStep user message to avoid azure's content filter #1151

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

bpoppinga
Copy link
Contributor

I encountered the same issue described in #1139 and have identified user message in PlanningStep as the cause. After testing it directly in Azure's playground, I was able to reproduce the error. The new message resolves the problem for me.

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

It's definitely tricky to anticipate which prompt phrasing might trigger Azure's content filters. Hopefully this resolves the issue for all users...

@albertvillanova albertvillanova linked an issue Apr 7, 2025 that may be closed by this pull request
@aymeric-roucher aymeric-roucher merged commit cec8d32 into huggingface:main Apr 8, 2025
3 checks passed
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.

[BUG] AzureOpenAI content filter
3 participants