mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
|
Some checks failed
LiteLLM Rust / rust-lint (push) Waiting to run
LiteLLM Rust / rust-test (push) Waiting to run
LiteLLM Rust / rust-wheel (push) Waiting to run
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
main landed its own fix for the same partial-embedding-cache bug (#42431's line), so the two implementations collided in caching_handler.py and utils.py. Took main's shape everywhere, since it is the base: - CachingHandlerResponse.embedding_uncached_input replaces this branch's remaining_embedding_inputs, and wrapper_async's call_kwargs replaces provider_kwargs. The duplicate provider_kwargs block is gone. - main's _combine_cached_embedding_response_with_api_result replaces this branch's; both splice by position, main's builds a new EmbeddingResponse. Two things from this branch are kept because dropping them would lose a fix: - main fills embedding_uncached_input from handle_kwargs_input_list_or_str (kwargs), which works only because its _process_async_embedding_cached_response writes the trimmed list back through kwargs["input"]. This branch removed that mutation, so the field now takes the subset computed explicitly from cached_result. Without this the full input list would go upstream on a partial hit, which is the bug the branch exists to fix. - The field admits int as well, so a flat token-id input list does not fail pydantic validation on a partial hit. The response-cost recompute and logging the combined response merged clean. |
||
|---|---|---|
| .. | ||
| test_azure_blob_cache.py | ||
| test_caching.py | ||
| test_caching_handler.py | ||
| test_check_and_fix_namespace_none_guard.py | ||
| test_disk_cache.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_cache.py | ||
| test_redis_cluster_cache.py | ||
| test_redis_cluster_node_isolation.py | ||
| test_redis_connection_pool.py | ||
| test_redis_semantic_cache.py | ||
| test_s3_cache.py | ||
| test_valkey_semantic_cache.py | ||