mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-16 04:29:31 +00:00
fix(streaming): drop redundant model_ prefix check in delta loop
This commit is contained in:
parent
eb6164ca7d
commit
337e27f39b
1 changed files with 1 additions and 6 deletions
|
|
@ -197,12 +197,7 @@ def _is_delta_non_empty(delta: Delta) -> bool:
|
|||
# Check all regular attributes of the delta object
|
||||
for attr_name in dir(delta):
|
||||
# Skip private attributes, methods, and Pydantic-specific fields
|
||||
if (
|
||||
attr_name.startswith("_")
|
||||
or attr_name.startswith("model_")
|
||||
or callable(_attribute_of(delta, attr_name))
|
||||
or attr_name.startswith("model_")
|
||||
):
|
||||
if attr_name.startswith("_") or attr_name.startswith("model_") or callable(_attribute_of(delta, attr_name)):
|
||||
continue
|
||||
|
||||
delta_attr_value: object = getattr(delta, attr_name, None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue