litellm/tests/unit/router_utils/pre_call_checks
Kerry Lu da447bb759 fix(router): write the prompt caching pin when turn_off_message_logging is on (#50276)
Backport of #50276 to lts/1.108.x. tests/integration/_support/redaction_probe.py also sends the standard key the picked integration test reads (main's probe got it in #47192).
Cherry-picked from 3f13c1ca34 (main). Conflicts in litellm_logging.py and the prompt caching check test were main-only neighbours (_get_completed_success_callbacks and the tools/system affinity tests), resolved by adding only this PR's method and test.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-06 03:02:46 +00:00
..
__init__.py test: add __init__.py to new tests/unit packages 2026-09-20 12:36:13 +00:00
test_deployment_affinity_check.py test: migrate phase 15 legacy tests to tests/unit 2026-09-20 11:55:43 +00:00
test_encrypted_content_affinity_check.py fix(router): drop the encrypted reasoning a fallback hop's target cannot decrypt (#45393) 2026-10-08 17:30:01 -07:00
test_prompt_caching_deployment_check.py fix(router): write the prompt caching pin when turn_off_message_logging is on (#50276) 2026-11-06 03:02:46 +00:00
test_responses_api_deployment_check.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
test_session_id_affinity.py test: migrate phase 15 legacy tests to tests/unit 2026-09-20 11:55:43 +00:00