mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
add OpenAIModerationResponse as a type
This commit is contained in:
parent
a5ef8a9556
commit
bb40f215e0
1 changed files with 18 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue