mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(sagemaker.py): support streaming for messages api
Fixes https://github.com/BerriAI/litellm/issues/5372
This commit is contained in:
parent
174b1c43e3
commit
8e9acd117b
8 changed files with 142 additions and 32 deletions
|
@ -13,4 +13,6 @@ def generic_chunk_has_all_required_fields(chunk: dict) -> bool:
|
|||
# this is an optional field in GenericStreamingChunk, it's not required to be present
|
||||
_all_fields.pop("provider_specific_fields", None)
|
||||
|
||||
return all(key in chunk for key in _all_fields)
|
||||
decision = all(key in _all_fields for key in chunk)
|
||||
|
||||
return decision
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue