litellm/tests/e2e/llm_translation
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
..
fixtures
realtime feat(gemini): support Gemini Live Avatar on Vertex AI realtime (#53270) 2026-11-21 15:06:59 -08:00
conftest.py
conversational_matrix.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
LLM_TRANSLATION_COVERAGE_MATRIX.md
passthrough_client.py
responses_helpers.py
sdk_clients.py
structured_output.py
test_anthropic_completion_e2e.py
test_audio_speech_e2e.py test(e2e): move audio, realtime, and Langfuse tests off model ids with shutdown dates (#51816) 2026-11-14 09:51:53 -05:00
test_audio_transcriptions_e2e.py test(e2e): move audio, realtime, and Langfuse tests off model ids with shutdown dates (#51816) 2026-11-14 09:51:53 -05:00
test_bedrock_converse_redacted_thinking_e2e.py
test_bedrock_guardrail_config_e2e.py
test_bedrock_kimi_k3_messages_e2e.py
test_bedrock_mantle_output_limit_e2e.py
test_bedrock_native_e2e.py
test_bedrock_provider_matrix_e2e.py
test_bedrock_web_search_server_tool_e2e.py
test_cache_control.py test(e2e): move the Gemini Flash alias off the retired gemini-2.5-flash (#52823) 2026-11-19 20:47:54 -08:00
test_cache_control_injection_tool_calls_e2e.py
test_chat_completions_contract_e2e.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
test_chat_completions_regression_e2e.py test(e2e): move the Gemini Flash alias off the retired gemini-2.5-flash (#52823) 2026-11-19 20:47:54 -08:00
test_chat_mid_conversation_system_e2e.py
test_chat_stream_contract_e2e.py
test_chat_tool_round_trip_e2e.py
test_completions_endpoint_e2e.py
test_containers_e2e.py fix(proxy)!: preserve Responses SSE event framing (#47980) 2026-11-06 20:17:57 -08:00
test_conversational_matrix_e2e.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
test_count_tokens_source_e2e.py test(e2e): allow a 3-token floor and 10% on provider token counts (#53023) 2026-11-20 03:56:03 +00:00
test_credential_messages_e2e.py
test_custom_pricing_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_deepseek_reasoning_e2e.py
test_embedding_only_supported_endpoints_e2e.py feat(router): opt in to non-chat deployment filtering (#46257) 2026-10-29 08:33:36 -07:00
test_embeddings_endpoint_e2e.py
test_files_batches_contract_e2e.py
test_gemini_tool_call_id_length_e2e.py fix(gemini): add thought_signature_in_tool_call_id to keep tool call ids short for clients that cap them (#47692) 2026-10-31 03:20:42 -07:00
test_gemini_url_context_e2e.py
test_gemini_validated_tool_choice_e2e.py fix(gemini): translate validated tool choice (#54191) 2026-11-24 20:47:51 -05:00
test_google_interactions_e2e.py
test_google_native_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_image_edits_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_image_generation_e2e.py test(e2e): move audio, realtime, and Langfuse tests off model ids with shutdown dates (#51816) 2026-11-14 09:51:53 -05:00
test_messages_azure_foundry_e2e.py
test_messages_bedrock_e2e.py
test_messages_beta_headers_e2e.py fix(anthropic)!: sync the beta header allowlist with what anthropic, vertex_ai, and azure_ai accept (#49409) 2026-11-02 05:57:51 -08:00
test_messages_count_tokens_bedrock_e2e.py
test_messages_e2e.py
test_messages_mid_conversation_system_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_messages_mid_conversation_system_native_providers_e2e.py
test_messages_prompt_caching_and_tool_search_e2e.py
test_mistral_message_fields_e2e.py fix(mistral): drop message fields Mistral rejects when drop_params is on (#53962) 2026-11-24 02:33:58 +00:00
test_moderations_e2e.py
test_ocr_rust_e2e.py
test_ollama_e2e.py
test_passthrough_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_passthrough_headers_e2e.py
test_provider_features_e2e.py
test_realtime_http_e2e.py test(e2e): move audio, realtime, and Langfuse tests off model ids with shutdown dates (#51816) 2026-11-14 09:51:53 -05:00
test_reasoning_effort_e2e.py
test_rerank_e2e.py
test_responses_bridge_prompt_cache_turns_e2e.py 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
test_responses_bridge_streaming_e2e.py
test_responses_codex_tool_search_e2e.py feat(responses): support Codex client tool_search on Anthropic and other bridged providers (#48972) 2026-10-29 00:29:40 -07:00
test_responses_e2e.py test(e2e): move the Gemini Flash alias off the retired gemini-2.5-flash (#52823) 2026-11-19 20:47:54 -08:00
test_responses_retrieve_e2e.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
test_sagemaker_nova_e2e.py
test_together_ai_e2e.py test: update the spend tests that still expected the pre-ledger accounting queues (#50814) 2026-11-09 22:07:42 -08:00
test_token_counter_gemini_contents_e2e.py test(e2e): move the Gemini Flash alias off the retired gemini-2.5-flash (#52823) 2026-11-19 20:47:54 -08:00
test_vector_stores_e2e.py
test_vertex_capabilities_e2e.py
test_vertex_passthrough_e2e.py test(e2e): move the Gemini Flash alias off the retired gemini-2.5-flash (#52823) 2026-11-19 20:47:54 -08:00