litellm/litellm/rust/crates/router-core
joshua-berri 43d6b45cb7
fix(bedrock)!: split the OpenAI breakpoint and Bedrock cachePoint model flags (#52180)
* fix(bedrock): split the OpenAI breakpoint and Bedrock cachePoint model flags

supports_prompt_cache_breakpoint meant both "uses the OpenAI prompt_cache_breakpoint
format" and "Bedrock Converse takes cachePoint blocks", so an OpenAI-format opt-out on a
Bedrock Claude deployment silently turned off its prompt caching.

Bedrock now reads only supports_bedrock_converse_cache_point, then supports_prompt_caching
as before. The OpenAI path reads supports_openai_prompt_cache_breakpoint and keeps the old
key as a deprecated alias. The Kimi K3 catalog rows move to the new Bedrock key, and a
Bedrock deployment still on the old key logs a one-time migration warning.

Fixes #52140

* fix(bedrock): expose the split prompt cache flags in get_model_info and word the migration warning for unlisted models

* test(bedrock): mark the system prompt directly in the routed cache point regression

* fix(bedrock): warn about the old breakpoint flag even when a catalog cache point flag decides

* fix(cost-map): keep the old Kimi K3 breakpoint flag for clients that read the remote catalog

* test(bedrock): keep the old breakpoint flag on catalog cache point opt-outs for older clients

---------

Co-authored-by: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com>
2026-11-16 18:50:32 -08:00
..
src fix(bedrock)!: split the OpenAI breakpoint and Bedrock cachePoint model flags (#52180) 2026-11-16 18:50:32 -08:00
tests fix(router)!: name the request size when usage-based routing refuses an over-tpm request (#51838) 2026-11-14 16:16:21 -05:00
Cargo.toml refactor(rust): read config values and YAML with Python semantics (#52023) 2026-11-16 09:56:31 -08:00