> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-agui.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAIModerationGuardrail

## Parameters

| Parameter              | Type        | Default                    | Description                                                                               |
| ---------------------- | ----------- | -------------------------- | ----------------------------------------------------------------------------------------- |
| `moderation_model`     | `str`       | `"omni-moderation-latest"` | The model to use for moderation.                                                          |
| `raise_for_categories` | `List[str]` | `None`                     | The categories to raise for.                                                              |
| `api_key`              | `str`       | `None`                     | The API key to use for moderation. Defaults to the OPENAI\_API\_KEY environment variable. |

## Moderation categories

You can check the current list of moderation categories in [OpenAI's docs](https://platform.openai.com/docs/guides/moderation#content-classifications).
