moderate
Moderates text and image content based on the provided model's capabilities.
Return
The moderation result, including flagged content, categories, scores, and associated metadata.
Parameters
prompt
The prompt containing text messages and optional attachments to be moderated.
model
The language model to use for moderation. Must have the Moderation
capability.
Throws
If the specified model does not support moderation.