Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log applied guardrails on LLM API call #8452

Merged
merged 6 commits into from
Feb 11, 2025
Merged

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Feb 11, 2025

  • fix(litellm_logging.py): support saving applied guardrails in logging object

allows list of applied guardrails to be logged for proxy admin's knowledge

  • feat(spend_tracking_utils.py): log applied guardrails to spend logs

makes it easy for admin to know what guardrails were applied on a request

  • ci(config.yml): uninstall posthog from ci/cd

  • test: fix tests

  • test: update test

Copy link

vercel bot commented Feb 11, 2025

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 Feb 11, 2025 6:29am

@krrishdholakia krrishdholakia changed the title Litellm dev 02 10 2025 p4 Log applied guardrails on LLM API call Feb 11, 2025
@krrishdholakia krrishdholakia merged commit ce3ead6 into main Feb 11, 2025
32 of 34 checks passed
@krrishdholakia krrishdholakia deleted the litellm_dev_02_10_2025_p4 branch February 11, 2025 06:57
abhijitherekar pushed a commit to acuvity/litellm that referenced this pull request Feb 20, 2025
* fix(litellm_logging.py): support saving applied guardrails in logging object

allows list of applied guardrails to be logged for proxy admin's knowledge

* feat(spend_tracking_utils.py): log applied guardrails to spend logs

makes it easy for admin to know what guardrails were applied on a request

* ci(config.yml): uninstall posthog from ci/cd

* test: fix tests

* test: update test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant