Python class
RefusalContent
RefusalContentβ
class max.pipelines.request.RefusalContent(*, type='refusal', refusal)
Bases: BaseModel
Refusal content when the model declines to respond.
model_configβ
model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
refusalβ
refusal: str
typeβ
type: Literal['refusal']
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!