From 5ed094985adb3f9520068cf9369947580b0f629c Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 23 Jan 2026 17:37:28 -0800 Subject: [PATCH] fix: fix type error --- litellm/types/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/types/utils.py b/litellm/types/utils.py index cd797dd1e54..f4abb6e1f4b 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -1572,6 +1572,10 @@ class Usage(SafeAttributeModel, CompletionUsage): class StreamingChoices(OpenAIObject): + finish_reason: Optional[OpenAIChatCompletionFinishReason] = None + index: int = 0 + delta: Optional[Delta] = None + def __init__( self, finish_reason=None,