mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
Merge branch 'litellm_passthrough_auth_guardrails' into litellm_lakera_v2_gemini_contents
This commit is contained in:
commit
9c68f7391d
1 changed files with 2 additions and 2 deletions
|
|
@ -867,9 +867,9 @@ class HttpPassThroughEndpointHelpers(BasePassthroughUtils):
|
|||
async def _inherit_auth_guardrails(
|
||||
parsed_body: dict[str, object] | None, # mutable-ok: merges the guardrails into the live request body
|
||||
user_api_key_dict: UserAPIKeyAuth,
|
||||
configured_guardrails: Mapping[str, bool] | None,
|
||||
configured_guardrails: Sequence[object] | None,
|
||||
inherit: bool,
|
||||
) -> Mapping[str, bool] | Sequence[object] | None:
|
||||
) -> Sequence[object] | None:
|
||||
"""Return the guardrails a pass-through request runs after the provider responds.
|
||||
|
||||
The endpoint's configured guardrails win. Without any, and with ``inherit`` and a JSON body, the key, team,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue