Skip to content

Conversation

uc4w6c
Copy link
Contributor

@uc4w6c uc4w6c commented Oct 21, 2025

Title

add GraySwan Guardrails support

Relevant issues

#N/A

image

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

🆕 New Feature
📖 Documentation
✅ Test

Changes

Copy link

vercel bot commented Oct 21, 2025

@uc4w6c is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ishaan-jaff ishaan-jaff merged commit d79bdd4 into BerriAI:main Oct 21, 2025
4 of 6 checks passed
Copy link

@agrattan0820 agrattan0820 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this integration!

Comment on lines +4 to +6
# GraySwan Cygnal Guardrail

Use [GraySwan Cygnal](https://docs.grayswan.ai/cygnal/monitor-requests) to continuously monitor conversations for policy violations, indirect prompt injection (IPI), jailbreak attempts, and other safety risks.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use "Gray Swan" throughout the doc instead of "GraySwan"

Comment on lines +42 to +49
api_key: Optional[str] = Field(
default=None,
description="API key for GraySwan. Reads from the `GRAYSWAN_API_KEY` environment variable when omitted.",
)
api_base: Optional[str] = Field(
default=None,
description="Override for the GraySwan API base URL. Defaults to https://api.grayswan.ai and can be set via `GRAYSWAN_API_BASE`.",
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Gray Swan" here instead of "GraySwan" as another example

@uc4w6c uc4w6c deleted the feat/add_grayswan_guardrails_support branch October 21, 2025 21:48
@uc4w6c
Copy link
Contributor Author

uc4w6c commented Oct 21, 2025

@agrattan0820
Thank you for your feedback.
I've addressed it:
https://github.com/BerriAI/litellm/pull/15771/files

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.

3 participants