Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Azure OpenAI (Microsoft Foundry) error

Azure OpenAI 200 finish_reason: content_filter: what it means and how to fix it

Error message
200 finish_reason: content_filter

Retry? 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

  1. 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 errors

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.