OpenAIRefusalError()Error raised when an OpenAI model refuses a structured output request.
When using OpenAI's Structured Outputs API with user-generated input, the model
may occasionally refuse to fulfill the request for safety reasons. The same
error is raised when the response stops because of a content filter
(finish_reason="content_filter").
Subclasses ModelRefusalError, so provider-agnostic code can catch that
instead.
See more on refusals.