Skip to content

Conversation

@Reapor-Yurnero
Copy link
Contributor

Title

fix: grayswan guardrail post call hook on various endpoints

Relevant issues

#17102

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • 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

🐛 Bug Fix

Changes

fix grayswan guardrail's postcall behavior on various endpoints (i.e. openai /response, anthropic /messages, anthropic /messages streaming)

@vercel
Copy link

vercel bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Dec 12, 2025 9:35am

@krrishdholakia
Copy link
Contributor

krrishdholakia commented Dec 12, 2025

@Reapor-Yurnero if the goal is to support multiple endpoints, can you please move to using the apply_guardrails function? it does work across multiple endpoints

your current approach would not allow us to guarantee grayswan works across all our endpoints

happy to work with you over slack to ensure you have the guidance + flexibility needed on the apply_guardrails function to do what's needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants