litellm/tests/unit/completion_extras
paveln83 d91a02dfb3
test(responses-bridge): cover multi-turn GPT-6.2 prompt caching on OpenAI and Bedrock Mantle (#54361)
* test(responses-bridge): add multi-turn system prompt cache matrix to integration and e2e

* test(responses-bridge): run the multi-turn prompt cache e2e on Bedrock Mantle too

* test(responses-bridge): hold the prompt cache yardstick to the first prompt and cover a cached system block

* test(responses-bridge): skip the Mantle prompt cache e2e cells until stage is subscribed

* test(responses-bridge): fail the prompt cache yardstick when Responses returns no usage

* test(responses-bridge): word the prompt cache failure for chat that never reaches the bridge

* test(responses-bridge): cover Azure AI Foundry in the multi-turn system prompt matrix

* test(responses-bridge): require continued turns to cache the whole system prompt

The e2e floor is now each conversation's own system prompt, measured as
turn 1's input tokens less those of the same turn with a one-character
system prompt, for both the bridged side and the yardstick. The first
question carries 12 short notes so the tokens GPT-6.2 does not reuse at
the end of the previous request fall after the system prompt.

The unit tests that pin system placement on both bridges now also run
every case on a continued turn.

* test(responses-bridge): cite the cache tail measurement and name the yardstick route

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-25 11:39:57 +00:00
..
litellm_responses_transformation test(responses-bridge): cover multi-turn GPT-6.2 prompt caching on OpenAI and Bedrock Mantle (#54361) 2026-11-25 11:39:57 +00:00
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_litellm_responses_transformation_transformation.py
test_responses_bridge_provider_propagation.py fix(responses): honor request cache controls on chat completions bridged to the Responses API (#44676) 2026-10-05 17:52:44 -07:00