(feat) proxy add amoderation endpoint

This commit is contained in:
ishaan-jaff 2024-02-14 11:03:23 -08:00
parent 693efc8e84
commit 5408a6de3d
2 changed files with 145 additions and 1 deletions

View file

@ -93,7 +93,9 @@ class ProxyLogging:
self,
user_api_key_dict: UserAPIKeyAuth,
data: dict,
call_type: Literal["completion", "embeddings", "image_generation"],
call_type: Literal[
"completion", "embeddings", "image_generation", "moderation"
],
):
"""
Allows users to modify/reject the incoming request to the proxy, without having to deal with parsing Request body.