mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(guardrails): stop the alice guardrail sending each prompt four times request_data repeated the conversation that inputs already carries. The proxy's proxy_server_request snapshot is no longer forwarded, and messages are left out when structured_messages is populated, which is the only time Alice falls back to them. Keys are omitted inside _json_safe so a cycle back to request_data cannot resend them. * test(guardrails): annotate the alice request data test variables as Final AGENTS.md requires every variable to be declared Final (LIT010). Apply it to the module constants and test locals added for the request_data dedupe. * fix(guardrails): stop the alice guardrail resending the responses input When structured_messages is a non-empty list it already carries the /v1/responses input, with instructions as its leading system message, so request_data now leaves out input and instructions under the same condition as messages. Without a parsed conversation both are kept. |
||
|---|---|---|
| .. | ||
| guardrail_hooks | ||
| __init__.py | ||
| test_anthropic_sse.py | ||
| test_auto_router_compression.py | ||
| test_content_filter_path_traversal.py | ||
| test_content_utils.py | ||
| test_custom_code_security.py | ||
| test_deferred_guardrail_logging.py | ||
| test_endpoint_image_scan.py | ||
| test_guardrail_coverage.py | ||
| test_guardrail_endpoints.py | ||
| test_guardrail_helpers.py | ||
| test_guardrail_initializers.py | ||
| test_guardrail_load_balancing.py | ||
| test_guardrail_registry.py | ||
| test_init_guardrails.py | ||
| test_llm_as_a_judge.py | ||
| test_mcp_jwt_signer.py | ||
| test_pillar_guardrails.py | ||
| test_prompt_security_guardrails.py | ||
| test_qostodian_nexus_guardrail.py | ||
| test_usage_endpoints.py | ||
| test_usage_tracking.py | ||