Azure OpenAI's Content Filter: When Safety Theater Blocks Real Work
dev.to·2d·
Discuss: DEV
🌐WASI
Preview
Report Post

While building browser automation tools with Azure OpenAI, I discovered something frustrating: the content filter blocks perfectly safe instructions based on word choice rather than actual risk.

This isn’t about bypassing legitimate safety measures. It’s about a filter that can’t distinguish between malicious intent and standard developer terminology.

The Problem

When defining tools for function calling, certain terms trigger Azure’s content filter even when the context is completely benign:

  • run script → Blocked
  • click element → Blocked
  • fill form field → Blocked

These are standard operations for any browser automation tool. Playwright, Puppeteer, Selenium—they all use this exact terminology. But Azure’s filter treats them as threats.

The Workaround

The solutio…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help