mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-06 02:09:04 +00:00
* fix(guardrails): keep the client's cache_control in /v1/messages guardrail translation for every model name * test(guardrails): fail the Headroom alias test with a clear message when the cached prefix is sent * fix(guardrails): keep cache_control in guardrail translation only for deployments that honor it A model alias keeps the client's cache_control when the requested name or any router deployment behind it can cache, so Headroom and TypeSafe still compress history for aliases that point at models that ignore the markers * fix(guardrails): find team models when deciding to keep cache_control The guardrail sees a team model's public name before routing maps it, so the deployment lookup now passes the caller's team id. It also reads the router registry instead of the deprecated get_model_list. * test(guardrails): pin that a group with one Claude deployment keeps cache_control * test(guardrails): pin that Gemini and Bedrock ARN aliases keep cache_control --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| guardrail_translation | ||
| __init__.py | ||
| conftest.py | ||
| test_anthropic_chat_handler.py | ||
| test_anthropic_chat_transformation.py | ||
| test_code_interpreter_results_extraction.py | ||
| test_transformation.py | ||