mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-17 04:34:25 +00:00
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
This commit is contained in:
parent
8763574221
commit
cf0ec2fb30
3 changed files with 3 additions and 8 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ const EXPECTED_PARTNER_LOGO_FILES: Record<string, string> = {
|
|||
deepkeep: "deepkeep.svg",
|
||||
repelloai: "repelloai.png",
|
||||
straiker: "straiker.svg",
|
||||
wingback: "wingback.png",
|
||||
};
|
||||
|
||||
describe("guardrail_garden_data logos", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue