mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
fix(proxy): preserve request payload typing
This commit is contained in:
parent
74174c87d8
commit
0d8c2e3bc4
1 changed files with 2 additions and 2 deletions
|
|
@ -1538,10 +1538,10 @@ class ProxyBaseLLMRequestProcessing:
|
|||
@staticmethod
|
||||
def _enforce_safety_identifier(
|
||||
*,
|
||||
data: dict[str, object],
|
||||
data: dict[str, Any],
|
||||
route_type: ProxyRouteType,
|
||||
user_api_key_dict: UserAPIKeyAuth,
|
||||
) -> dict[str, object]:
|
||||
) -> dict[str, Any]:
|
||||
if route_type not in ("acompletion", "aresponses"):
|
||||
return data
|
||||
if str_to_bool(os.getenv("LITELLM_ENFORCE_SAFETY_IDENTIFIER")) is not True:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue