litellm/tests/benchmarks
mateo-berri f27f48ff0f fix(anthropic): count Converse's own tools and let a raw cachePoint stand in for a tool breakpoint
Converse adds a json_tool_call tool for response_format, or a dummy tool for
tool history, and appends the operator's tool_config cachePoint after it even
when it drops every listed tool. The cache step now counts that point whenever
Converse sends a tool in its tool config, so under drop_params a later 1h
breakpoint goes out as 5m instead of getting Claude's ttl order 400.

A raw Bedrock cachePoint with a ttl right after a tool breakpoint formed one run
with the breakpoint's cachePoint, and Bedrock rejects a run where two points set
a ttl. The raw cachePoint now stands in for that breakpoint, which is not sent,
and keeps its slot of Claude's four at the raw cachePoint's ttl, the same way a
client's cache_control on a block replaces its breakpoint. It does so only when
the breakpoint has the same ttl or none, or under drop_params, so without
drop_params a breakpoint with another ttl is still sent and gets Bedrock's 400.
The step also orders the tools Converse sends with one stable sort instead of a
scan per tool. The Converse tool checks move into a helper, since completion()
grew past what basedpyright analyzes
2026-10-18 02:06:55 +00:00
..
__init__.py Add CodSpeed performance benchmarks (#23676) 2026-03-14 18:44:36 -07:00
conftest.py feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
test_a2a_benchmarks.py test(benchmarks): add CodSpeed benchmarks for inference, MCP and A2A hot paths (#31716) 2026-06-30 10:27:12 -07:00
test_benchmarks.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
test_inference_benchmarks.py test(benchmarks): add CodSpeed benchmarks for inference, MCP and A2A hot paths (#31716) 2026-06-30 10:27:12 -07:00
test_mcp_benchmarks.py test(benchmarks): add CodSpeed benchmarks for inference, MCP and A2A hot paths (#31716) 2026-06-30 10:27:12 -07:00
test_prompt_cache_breakpoint_benchmarks.py fix(anthropic): count Converse's own tools and let a raw cachePoint stand in for a tool breakpoint 2026-10-18 02:06:55 +00:00
test_prompt_template_benchmarks.py fix(anthropic): keep trailing user messages with None or empty list content (#41397) 2026-10-16 07:41:05 +00:00