mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* fix(logging): log an Anthropic base64 source as a size placeholder * fix(router): keep Anthropic base64 sources whole in the prompt caching affinity key Two different same-size base64 documents hashed to one key once logging replaced source data with a size placeholder, so they shared one deployment pin. The router key now shortens only data URIs and hashes base64 source data whole, as before * test(router): pin same-size base64 documents at their raw source key Adds a router-level regression test that sends two different same-size base64 PDFs through prompt caching routing, checks each one pins and keeps its own deployment, and checks every logged copy holds the size placeholder. Also updates the MAX_BASE64_LENGTH_FOR_LOGGING comment to name Anthropic base64 source data * fix(pass-through): log Anthropic base64 sources in pass-through request logs as a size placeholder * test(logging): type the Anthropic base64 source test helper * fix(pass-through): copy the logged request body off the event loop for large payloads * chore(constants): drop the base64 logging comment line that restated the behavior --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_continuation_prefill_check.py | ||
| test_deployment_affinity_check.py | ||
| test_encrypted_content_affinity_check.py | ||
| test_prompt_caching_deployment_check.py | ||
| test_responses_api_deployment_check.py | ||
| test_session_id_affinity.py | ||