From c33fb551685fd5061ee2717eca0db89cb7b49ff4 Mon Sep 17 00:00:00 2001 From: inchang-ing <291394088@qq.com> Date: Wed, 28 Oct 2026 04:45:42 +0800 Subject: [PATCH] revert the main-merged bedrock additions: the branch carries only the delta content fix --- litellm/litellm_core_utils/streaming_handler.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index bf0cef096a7..e063214b4f1 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -1618,8 +1618,6 @@ class CustomStreamWrapper: return _ProviderChunkParsed(response_obj) def chunk_creator(self, chunk: Any): - if isinstance(chunk, ModelResponseStream) and chunk.provider_specific_fields: - self.logging_obj.record_native_bedrock_guardrail(chunk.provider_specific_fields) if self.custom_llm_provider != "cached_response" and isinstance( chunk, (ChatCompletionChunk, ModelResponseStream) ): @@ -1727,8 +1725,6 @@ class CustomStreamWrapper: model_response.usage = Usage(**chunk_usage.model_dump()) ## RETURN ARG - if isinstance(chunk, ModelResponseStream) and chunk.provider_specific_fields: - self.copy_model_response_level_provider_specific_fields(chunk, model_response) result: Final = self.return_processed_chunk_logic( completion_obj=completion_obj, model_response=model_response,