mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(bedrock): keep content part prompt_cache_breakpoint on native chat under drop_params Native Bedrock Runtime Chat Completions stripped every prompt_cache_breakpoint under drop_params because the shared OpenAI chat serializer treats bedrock as a target that cannot read the marker. With prompt_cache_options in explicit mode that left AWS with no checkpoint, so no explicit cache write happened. Add an off-by-default hook on the OpenAI chat config that keeps only content part markers, trimmed to the chat completions shape, and enable it in the native Bedrock adapter for GPT 5.6 and newer unless the deployment or cost map declares support false. Message, tool call, tool result and tool definition markers are still stripped, cache_control is still stripped, and requests without drop_params, Converse, Mantle and Responses are unchanged. * refactor(bedrock): use catalog capabilities for cache breakpoints (#53322) --------- Co-authored-by: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com> Co-authored-by: ishaan-j-berri <ishaan.j@berri.ai> |
||
|---|---|---|
| .. | ||
| batches | ||
| chat | ||
| count_tokens | ||
| embed | ||
| files | ||
| image | ||
| image_edit | ||
| image_generation | ||
| invoke_agent | ||
| messages | ||
| passthrough | ||
| realtime | ||
| rerank | ||
| responses | ||
| search | ||
| vector_stores | ||
| __init__.py | ||
| event_loop_probe.py | ||
| slow_upstream.py | ||
| test_anthropic_beta_support.py | ||
| test_base_aws_llm.py | ||
| test_bedrock_common_utils.py | ||
| test_bedrock_model_listing.py | ||
| test_bedrock_ssl_verify.py | ||
| test_claude_platform_provider.py | ||
| test_converse_context_management.py | ||
| test_cost_calculation.py | ||
| test_cross_region_inference_profile_mapping.py | ||
| test_guardrail_attachments.py | ||
| test_mantle.py | ||
| test_nova_imported_models.py | ||
| test_request_metadata.py | ||
| test_session_identity.py | ||
| test_web_identity_session_policy.py | ||