litellm/tests/test_litellm/proxy
Jason Roberts 5733f711fd
feat(guardrails): panw prisma airs guardrail deduplication and enhanced session tracking (#16273)
* feat(guardrails): Add deduplication and session tracking

- Implement deduplication logic to prevent duplicate scans (via call_id; add _check_and_mark_scanned) caused by LiteLLM callback system
- Add session tracking using litellm_trace_id as AI Session ID for Prisma AIRS SCM logging
- Extract helper methods _extract_prompt_from_request maintainability
- Use httpxSpecialProvider import (LoggingCallback -> GuardrailCallback)
- Add comprehensive tests for deduplication and session tracking (7 new tests)
- Update documentation with multi-turn conversation tracking examples

* docs: update PANW Prisma AIRS multi-turn conversation example to use industry-standard terminology

- Clearer example for conversation tracking
- Updated terminology from 'AI Session ID' to 'Prisma AIRS AI Session ID' for clarity

* fix: remove unused asyncio import

* fix: correct mypy type ignore comment
2025-11-06 19:34:37 -08:00
..
_experimental/mcp_server [MCP] configure static mcp header (#16179) 2025-11-03 21:06:36 -08:00
anthropic_endpoints
auth Fix Token Spend is under budget for passthrough (#15805) 2025-10-22 10:55:22 -07:00
client fix delete callbacks 2025-11-06 17:06:34 -08:00
common_utils [Bug Fix] Tags as metadata dicts were raising exceptions (#15625) 2025-10-17 13:20:07 -07:00
db attempt to avoid/minimize deadlocks (#15281) 2025-10-24 12:22:38 -07:00
experimental/mcp_server
google_endpoints test google endpoints 2025-10-31 20:50:31 -07:00
guardrails feat(guardrails): panw prisma airs guardrail deduplication and enhanced session tracking (#16273) 2025-11-06 19:34:37 -08:00
health_endpoints
hooks fix: Handle multiple rate limit types per descriptor and prevent IndexError (#16039) 2025-10-30 20:12:54 -07:00
image_endpoints test fix 2025-10-17 10:46:42 -07:00
management_endpoints test_delete_callbacks_in_db 2025-11-06 18:37:36 -08:00
management_helpers [MCP Gateway] Litellm mcp fixes team control (#15304) 2025-10-07 16:48:00 -07:00
middleware
openai_files_endpoint fix issue from pr review 2025-10-01 11:57:10 +08:00
pass_through_endpoints Milvus - Passthrough API support - adds create + read vector store support via passthrough API's (#16170) 2025-11-02 09:47:58 -08:00
response_api_endpoints [Fix] - Responses API - add /openai routes for responses API. (Azure OpenAI SDK Compatibility) (#15988) 2025-10-27 19:12:13 -07:00
spend_tracking Perf speed up pytest (#15951) 2025-10-27 19:43:40 -07:00
test_configs
ui_crud_endpoints [Infra] Litellm Backend SSO Changes (#16029) 2025-10-30 14:32:08 -07:00
vector_store_endpoints TestIsAllowedToCallVectorStoreEndpoint 2025-11-06 17:02:59 -08:00
__init__.py test fix 2025-10-17 10:46:42 -07:00
test_batch_metadata_none_fix.py
test_caching_routes.py
test_common_request_processing.py [Feat] Cost Tracking - specify a global vendor discount for costs. (#15546) 2025-10-14 20:07:04 -07:00
test_custom_proxy.py fix(ui/): fix routing for custom server root path (#15701) 2025-10-23 13:59:29 -07:00
test_fastapi_offline_routes.py
test_health_check_functions.py
test_litellm_pre_call_utils.py [Fix] Guardrails - Ensure Key Guardrails are applied (#16025) 2025-10-28 16:40:49 -07:00
test_proxy_cli.py feature/add max requests env var 2025-09-28 19:18:56 +01:00
test_proxy_server.py [Infra] Litellm Backend SSO Changes (#16029) 2025-10-30 14:32:08 -07:00
test_proxy_types.py
test_proxy_utils.py fix(ui/): fix routing for custom server root path (#15701) 2025-10-23 13:59:29 -07:00
test_route_llm_request.py
test_shared_health_check.py Add shared healthcheck 2025-10-09 22:18:05 +05:30
test_spend_log_cleanup.py
test_swagger_chat_completions.py
test_team_member_update.py