mirror of
https://github.com/BerriAI/litellm.git
synced 2025-12-06 11:33:26 +08:00
* add PassThroughGuardrailsConfig * init JsonPathExtractor * feat PassthroughGuardrailHandler * feat pt guardrails * pt guardrails * add Pass-Through Endpoint Guardrail Translation * add PassThroughEndpointHandler * execute simple guardrail config and dict settings * TestPassthroughGuardrailHandlerNormalizeConfig * add passthrough_guardrails_config on litellm logging obj * add LiteLLMLoggingObj to base trasaltino * cleaner _get_guardrail_settings * update guardrails settings * docs pt guardrail * docs Guardrails on Pass-Through Endpoints * fix typing * fix typing * test_no_fields_set_sends_full_body * fix typing * Potential fix for code scanning alert no. 3834: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
16 lines
387 B
Python
16 lines
387 B
Python
"""Pass-Through Endpoint guardrail translation handler."""
|
|
|
|
from litellm.llms.pass_through.guardrail_translation.handler import (
|
|
PassThroughEndpointHandler,
|
|
)
|
|
from litellm.types.utils import CallTypes
|
|
|
|
guardrail_translation_mappings = {
|
|
CallTypes.pass_through: PassThroughEndpointHandler,
|
|
}
|
|
|
|
__all__ = [
|
|
"guardrail_translation_mappings",
|
|
"PassThroughEndpointHandler",
|
|
]
|