Azure OpenAI (Microsoft Foundry) error
Azure OpenAI 200 finish_reason: content_filter: what it means and how to fix it
200 finish_reason: content_filterRetry? Not statedLast verified 1 documented fix1 source
What it means
The completion was filtered. Non-streaming calls return no content (or rarely a partial result) with finish_reason set to content_filter; streaming calls stop and the last chunk for that generation carries finish_reason content_filter.
Causes
- Generated output classified at a filtered category and severity level
How to fix it
- Fix 1.
Always check finish_reason to see if a completion is filtered, and handle filtered content in your application.
More Azure OpenAI errors
All 15 Azure OpenAI errors400 Bad RequestRetry? Not stated400 content_filterRetry? Not stated200 content_filter_error (The contents are not filtered)Retry? Not stated401 UnauthorizedRetry? Not stated403 Forbidden (network access denied)Retry? Not stated403 Forbidden (resource has been temporarily blocked)Retry? Not stated404 Not FoundRetry? Not stated429 Too Many Requests (Rate limit is exceeded)Retry? Yes
FAQ
What does the Azure OpenAI error "200 finish_reason: content_filter" mean?
The completion was filtered. Non-streaming calls return no content (or rarely a partial result) with finish_reason set to content_filter; streaming calls stop and the last chunk for that generation carries finish_reason content_filter.
How do I fix Azure OpenAI "200 finish_reason: content_filter"?
Always check finish_reason to see if a completion is filtered, and handle filtered content in your application.
Should I retry Azure OpenAI "200 finish_reason: content_filter"?
Not stated. The official docs do not say whether this error is retryable.
Sources
Last verified against 1 source: Azure OpenAI's official docs and official SDK repositories.
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.