Skip to content

Commit 1d05ba4

Browse files
committed
remove redundant check
1 parent 3581f83 commit 1d05ba4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backend/onyx/llm/chat_llm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,6 @@ def _stream_implementation(
565565
usage_data = part["usage"]
566566
if hasattr(usage_data, 'model_dump'):
567567
usage_data = usage_data.model_dump()
568-
elif hasattr(usage_data, 'dict'):
569-
usage_data = usage_data.dict()
570568
elif hasattr(usage_data, '__dict__'):
571569
usage_data = usage_data.__dict__
572570
# Store in thread-local tracker for access by chat processing

0 commit comments

Comments
 (0)