Skip to content

model.content_refused

The provider refused the content

Type https://mthds.ai/errors/model.content_refused
Family model: The model a step names.
Domain input: the caller acts, by changing the request or its inputs
Retry no: repeating the operation fails the same way
HTTP status 422
Raised as a problem document, sent as the body of an HTTP response or kept in a run's record

What it means

The model or its provider refused the content of the request on policy grounds.

What to do

Read the provider's content policy and change the inputs that break it.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the caller, and the second for any other reader.

Reader Kind Detail
The domain's actor change_input Change the inputs so that they meet the provider's content policy, then send the request again.
Any other reader change_input Pass this to the caller, whose inputs the provider refused.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

The model '{model}' or its provider refused the request's content on policy grounds.

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
model identifier The model.

See also