litellm/tests/unit/proxy/utils
yucheng 9107fe1ec9 fix(proxy): drop client fields guardrails can't read and keep opt-outs and empty lists on guarded pass-through
- Drop a client's user_api_key_* metadata, non-string headers, non-object requester_metadata and non-string
  litellm_call_id, litellm_trace_id, custom_llm_provider, api_base, api_key and proxy_server_request headers
  before the merged guardrails run, as the native routes overwrite them
- Keep a guardrail the body turns off with {name: false} out of the merged list
- Put back a body's empty guardrails list when the merge finds nothing to run
- Leave a non-list applied_guardrails record alone instead of failing the request
- Skip key, team and project policy entries that aren't names
2026-11-05 01:14:21 -08:00
..
helpers fix(responses): run the guardrails a Responses WebSocket frame selects (#48725) 2026-10-30 14:12:51 -07:00
prisma_and_spend refactor(proxy): inject database repositories through per-repository dependencies (#48507) 2026-10-30 22:57:54 +00:00
proxy_logging fix(proxy): drop client fields guardrails can't read and keep opt-outs and empty lists on guarded pass-through 2026-11-05 01:14:21 -08:00
__init__.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00