Open abhishek9sharma opened 6 days ago
what's an e2e example of this? @abhishek9sharma
@krrishdholakia Below should demonstrate what I am trying to achieve
Can be run as below
unzip e2example.zip -d .
cd e2example/customguardpkg
python -m pip install .
cd ..
litellm --config litellm_config.yaml
The Feature
As per this example https://docs.litellm.ai/docs/proxy/guardrails/custom_guardrail, custom_guardrails can be hooked up with litellm_config by adding information in yaml like below
Add a feature to allow any class inside an installed package to be usable in the config above. A dummy example is below
I think the logic needs to be changed at below line
Motivation, pitch
Customers may have their own python packages with guardrail implementation which they may want to use
Twitter / LinkedIn details
No response