litellm/tests/e2e/router
Yuneng Jiang 57a4a908d1
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
Merge remote-tracking branch 'origin/main' into litellm_wt_0918_be27
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.
2026-09-22 15:23:15 -07:00
..
complexity_router_client.py test(e2e): rename Gateway to ProxyClient and expose it as a session-scoped fixture (#33750) 2026-07-18 18:41:18 +00:00
conftest.py test(e2e): rewrite the Redis timeout test as a locust chaos load test 2026-09-10 21:55:23 -07:00
reliability_support.py test(e2e): assert a cooldown reaches a sibling replica within the 1s Redis read interval (#42422) 2026-09-22 12:42:41 -07:00
test_auto_router_regressions_e2e.py fix(mcp): honor an explicit null on toolset update, cover MCP lifecycle e2e (#40022) 2026-09-08 22:50:13 -07:00
test_complexity_router_e2e.py test(e2e): add reliability suite covering fallback, timeout, and cache behavior (#34023) 2026-07-20 23:06:46 +00:00
test_reliability_cache_e2e.py test(cache): stop asserting a cache-key header /v1/messages never sends 2026-09-22 00:12:44 -07:00
test_reliability_cancel_on_disconnect_e2e.py test(e2e): retry the hang-up when the model answers inside the window 2026-09-21 14:48:04 -07:00
test_reliability_cooldowns_e2e.py test(e2e): assert a cooldown reaches a sibling replica within the 1s Redis read interval (#42422) 2026-09-22 12:42:41 -07:00
test_reliability_fallbacks_e2e.py test(e2e): cover the reliability retry, cooldown, fallback, and routing-strategy cells 2026-09-04 20:00:52 -07:00
test_reliability_memory_e2e.py test(e2e): run the memory cell alone on the shared stack (#42518) 2026-09-22 15:13:37 -07:00
test_reliability_prompt_caching_e2e.py test(e2e): gate the prompt-cache cell behind an opt-in marker and take ten shuffle picks 2026-09-05 02:10:06 -07:00
test_reliability_retries_e2e.py chore: merge litellm_internal_staging into litellm_e2e_reliability_module_cells 2026-09-12 13:05:02 -07:00
test_reliability_routing_strategies_e2e.py test(e2e): skip the override strategy cells and describe the 1s cooldown cache 2026-09-12 17:56:23 -07:00
test_reliability_timeouts_e2e.py test(e2e): add reliability suite covering fallback, timeout, and cache behavior (#34023) 2026-07-20 23:06:46 +00:00