mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(caching): claim async success log on cache hit and mark complete before async yields (#52824) * fix(caching): keep only the cache-hit claim and test it through aresponses Drop the early mark_logging_complete move, since claiming the log on the cache-hit path already stops a second handler from being queued, and replace the mock-based tests with one behavior test through litellm.aresponses on a chat-only provider * fix(caching): log a sync cache hit once and keep the test's custom provider local The sync cache-hit path and the sync wrapper now claim the request's one sync success log, so a sync responses call on a chat-only model no longer queues a second handler. The aresponses test also copies the provider lists it extends * test(caching): make the sync single-log test deterministic and cover the uncached call * test(caching): cover sync text_completion on a chat-only provider logging once --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _event_loop_reuse.py | ||
| redis_batch_double.py | ||
| test_azure_blob_cache.py | ||
| test_cache_preset_key.py | ||
| test_caching.py | ||
| test_caching_handler.py | ||
| test_check_and_fix_namespace_none_guard.py | ||
| test_dual_cache.py | ||
| test_embedding_router.py | ||
| test_evicted_client_closer.py | ||
| test_gcs_cache.py | ||
| test_in_memory_cache.py | ||
| test_llm_caching_handler.py | ||
| test_llm_client_cache_e2e.py | ||
| test_qdrant_semantic_cache.py | ||
| test_redis_batch.py | ||
| test_redis_cache.py | ||
| test_redis_cluster_cache.py | ||
| test_redis_cluster_node_isolation.py | ||
| test_redis_connection_pool.py | ||
| test_redis_semantic_cache.py | ||
| test_request_redis_batch_post_call.py | ||
| test_request_redis_batch_pre_call.py | ||
| test_responses_stream_cache_keys.py | ||
| test_s3_cache.py | ||
| test_unit_test_caching.py | ||
| test_valkey_semantic_cache.py | ||