From 9ba1b78a8f2dbbb38f0bb5974a81b0d3a2b7b858 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 26 Aug 2024 21:13:02 -0700 Subject: [PATCH] fix(streaming_utils.py): fix generic_chunk_has_all_required_fields --- litellm/litellm_core_utils/streaming_utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/litellm/litellm_core_utils/streaming_utils.py b/litellm/litellm_core_utils/streaming_utils.py index 386842fe2dc..c41b4f64c4d 100644 --- a/litellm/litellm_core_utils/streaming_utils.py +++ b/litellm/litellm_core_utils/streaming_utils.py @@ -10,9 +10,5 @@ def generic_chunk_has_all_required_fields(chunk: dict) -> bool: """ _all_fields = GChunk.__annotations__ - # this is an optional field in GenericStreamingChunk, it's not required to be present - _all_fields.pop("provider_specific_fields", None) - decision = all(key in _all_fields for key in chunk) - return decision