mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-17 04:34:25 +00:00
fix(ci): ruff format wingback.py and keep mutable-ok on dict lines
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3345d3f9aa
commit
db16202c6d
1 changed files with 7 additions and 2 deletions
|
|
@ -46,10 +46,15 @@ class WingbackGuardrail(GenericGuardrailAPI):
|
|||
|
||||
existing_params: Final = additional_provider_specific_params
|
||||
additional_params: Final = (
|
||||
{**existing_params, "wingback_app_id": wingback_app_id} # mutable-ok: one-shot merge for guardrail API payload
|
||||
{ # mutable-ok: one-shot merge for guardrail API payload
|
||||
**existing_params,
|
||||
"wingback_app_id": wingback_app_id,
|
||||
}
|
||||
if wingback_app_id and existing_params is not None and "wingback_app_id" not in existing_params
|
||||
else (
|
||||
{"wingback_app_id": wingback_app_id} # mutable-ok: default provider params when only app id is configured
|
||||
{ # mutable-ok: default provider params when only app id is configured
|
||||
"wingback_app_id": wingback_app_id
|
||||
}
|
||||
if wingback_app_id and existing_params is None
|
||||
else existing_params
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue