add OpenAIModerationResponse as a type

This commit is contained in:
Ishaan Jaff 2025-04-28 14:37:44 -07:00
parent a5ef8a9556
commit bb40f215e0

View file

@ -1268,3 +1268,21 @@ class ImageGenerationRequestQuality(str, Enum):
AUTO = "auto"
STANDARD = "standard"
HD = "hd"
class OpenAIModerationResponse(BaseLiteLLMOpenAIResponseObject):
"""
Response from the OpenAI Moderation API.
"""
id: str
"""The unique identifier for the moderation request."""
model: str
"""The model used to generate the moderation results."""
results: List[Dict]
"""A list of moderation objects."""
# Define private attributes using PrivateAttr
_hidden_params: dict = PrivateAttr(default_factory=dict)