mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
fix(streaming_utils.py): fix generic_chunk_has_all_required_fields
This commit is contained in:
parent
8e9acd117b
commit
9ba1b78a8f
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue