From cf0ec2fb30df9f95f676db3887b6a4d52a0a2558 Mon Sep 17 00:00:00 2001 From: bsk-wb Date: Sat, 29 Aug 2026 00:02:14 +0530 Subject: [PATCH] fix(ci): ruff format wingback modules and garden logo test - Apply ruff format to Wingback guardrail Python modules - Add wingback.png to EXPECTED_PARTNER_LOGO_FILES in garden test --- .../proxy/guardrails/guardrail_hooks/wingback/wingback.py | 6 +----- litellm/types/proxy/guardrails/guardrail_hooks/wingback.py | 4 +--- .../guardrails/_components/guardrail_garden_data.test.ts | 1 + 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/wingback/wingback.py b/litellm/proxy/guardrails/guardrail_hooks/wingback/wingback.py index d0bf5d32a14..fd6d9555723 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/wingback/wingback.py +++ b/litellm/proxy/guardrails/guardrail_hooks/wingback/wingback.py @@ -34,11 +34,7 @@ class WingbackGuardrail(GenericGuardrailAPI): wingback_app_id: str | None = None, **kwargs, ): - resolved_api_base: Final = ( - api_base - or os.environ.get("WINGBACK_API_BASE") - or DEFAULT_WINGBACK_API_BASE - ) + resolved_api_base: Final = api_base or os.environ.get("WINGBACK_API_BASE") or DEFAULT_WINGBACK_API_BASE resolved_api_key: Final = api_key or os.environ.get("WINGBACK_INTEGRATION_API_KEY") existing_params = kwargs.pop("additional_provider_specific_params", None) or {} diff --git a/litellm/types/proxy/guardrails/guardrail_hooks/wingback.py b/litellm/types/proxy/guardrails/guardrail_hooks/wingback.py index 8d5d1d0c61c..ccd432b059b 100644 --- a/litellm/types/proxy/guardrails/guardrail_hooks/wingback.py +++ b/litellm/types/proxy/guardrails/guardrail_hooks/wingback.py @@ -40,9 +40,7 @@ class WingbackGuardrailConfigModel(GuardrailConfigModel): ) fail_on_error: bool | None = Field( default=True, - description=( - "If False, allow requests when the guardrail returns an error other than an explicit block." - ), + description=("If False, allow requests when the guardrail returns an error other than an explicit block."), ) @staticmethod diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.test.ts b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.test.ts index 13909e48185..df6a18b6a06 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.test.ts +++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.test.ts @@ -27,6 +27,7 @@ const EXPECTED_PARTNER_LOGO_FILES: Record = { deepkeep: "deepkeep.svg", repelloai: "repelloai.png", straiker: "straiker.svg", + wingback: "wingback.png", }; describe("guardrail_garden_data logos", () => {