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> |
||
|---|---|---|
| .. | ||
| pre_call_checks | ||
| __init__.py | ||
| test_access_windows.py | ||
| test_add_retry_fallback_headers.py | ||
| test_client_initalization_utils.py | ||
| test_cooldown_cache.py | ||
| test_cooldown_handlers.py | ||
| test_deployment_pricing.py | ||
| test_dynamic_queue.py | ||
| test_dynamic_queue_redis.py | ||
| test_dynamic_queue_router.py | ||
| test_embedding_batch_size_check.py | ||
| test_endpoint_eligibility.py | ||
| test_fallback_event_handlers.py | ||
| test_fallback_event_v2_dispatch.py | ||
| test_get_retry_from_policy.py | ||
| test_handle_error.py | ||
| test_health_check_allowed_fails_integration.py | ||
| test_health_state_cache.py | ||
| test_kubernetes_pod_discovery.py | ||
| test_pattern_match_deployments.py | ||
| test_prompt_caching_cache.py | ||
| test_ptu_shares.py | ||
| test_reasoning_effort_capability.py | ||
| test_request_priority.py | ||
| test_router_health_check_routing.py | ||
| test_router_interactions_endpoints.py | ||
| test_router_utils_common_utils.py | ||
| test_routing_read_batch.py | ||