litellm/tests/unit/responses
TobiMayr 3aacde577f fix(responses): don't overwrite existing content-block cache_control; add list-content test
Per Greptile review on the PR:
- The message-level cache_control was unconditionally overwriting the
  last content block's cache_control when that block already carried
  its own (preserved by _transform_responses_api_content_to_chat_completion_content).
  Now only propagates onto the last block when it doesn't already have one.
- Added the missing test coverage for the content-block propagation path
  with list content, which no existing test exercised (all used plain
  string content, so the isinstance(content, list) branch was never hit).
2026-09-30 11:23:20 +02:00
..
litellm_completion_transformation fix(responses): don't overwrite existing content-block cache_control; add list-content test 2026-09-30 11:23:20 +02:00
mcp feat(mcp): scan and pin upstream tool descriptions (#43283) 2026-09-28 18:38:49 -07:00
__init__.py
test_additional_tools.py
test_custom_tool_call.py
test_dispatch.py feat(rust): connect Python inference bindings to shared routes (#43465) 2026-09-27 19:05:39 -07:00
test_metadata_codex_callback.py
test_no_duplicate_spend_logs.py
test_null_test_fix.py
test_responses_api_bridge_flag.py fix(params): validate stream_chunk_size once, before any provider call (#43222) 2026-09-26 23:01:20 +00:00
test_responses_api_request_body.py
test_responses_prompt_management.py feat(guardrails): scan retrieved vector store chunks with the request's pre-call guardrails (#43271) 2026-09-26 14:18:38 -07:00
test_responses_router_cooldown.py
test_responses_streaming_iterator.py
test_responses_supported_endpoints_passthrough.py
test_responses_utils.py
test_responses_websocket_all_providers.py
test_rust_bridge_websocket.py
test_sse_output_recovery.py
test_streaming_iterator.py fix(responses): run stream failure and success hooks on the iterating loop instead of blocking it (#43270) 2026-09-26 12:22:22 -07:00
test_streaming_iterator_error_events.py
test_text_format_conversion.py