mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(caching): replay bridged Responses cache hits with chatcmpl ids as responses The Responses to chat completions bridge stores a Responses object with the chat completion's chatcmpl id. The cache hit path read the id prefix first and rebuilt the entry as a chat completion, which raised "no 'choices'" on every repeat call. A cached dict whose object is "response" is now always replayed as a Responses object. Other id and object combinations are unchanged. Fixes #49925 * fix(caching): reuse the object lookup in the cached dict classifier Hoist the existing object read above the Responses guard so the helper keeps a single .get("object") call. This removes the extra reportUnknownMemberType the previous commit added. Classification is unchanged. --------- Co-authored-by: Joshua Valluru <326636767+joshua-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 | ||