litellm
litellm copied to clipboard
[Feature: Added the support to add api_url in custom_guardrail]
Title
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
- [ ] My PR passes all unit tests on
make test-unit - [ ] My PR's scope is as isolated as possible, it only solves 1 specific problem
Type
🆕 New Feature Added the support to add api_url in custom_guardrail. If the custom_guardrail had an api_url , it was giving error while passing it with the config.yaml file. Now I have added the api_base in guardrail_register.py . This variable is optional , if the custom guardrail file contains the api_base , it will be invoked.
Please look into this feature and review the same.
Changes
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
4 out of 5 committers have signed the CLA.
:white_check_mark: ishaan-jaff
:white_check_mark: krrishdholakia
:white_check_mark: colesmcintosh
:white_check_mark: jugaldb
:x: Pratham
Pratham seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| litellm | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 20, 2025 6:10pm |