litellm/tests/unit/router_utils/pre_call_checks
Yassin Kortam d56ff281de
fix(router): key prompt caching affinity on tools and the /v1/messages system prompt (#46411)
* fix(router): key prompt caching affinity on tools and the /v1/messages system prompt

Co-authored-by: nuernber <benjamin.nuernberger@jpl.nasa.gov>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(router): read a 1h tool cache_control nested under function for the pin ttl

---------

Co-authored-by: nuernber <benjamin.nuernberger@jpl.nasa.gov>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-19 19:59:09 -07:00
..
__init__.py test: add __init__.py to new tests/unit packages 2026-09-20 12:36:13 +00:00
test_continuation_prefill_check.py feat(router): mid-stream fallback continuation for chat completions (#41127) 2026-10-16 13:51:32 +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): key prompt caching affinity on tools and the /v1/messages system prompt (#46411) 2026-10-19 19:59:09 -07: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