From 1a97362b6e1b31fc46ecd914a0184c85d959427b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 26 Aug 2024 22:09:02 -0700 Subject: [PATCH] fix(types/utils.py): map finish reason to openai compatible --- litellm/types/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/utils.py b/litellm/types/utils.py index 3e5465bdc24..81dc268aff5 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -501,7 +501,7 @@ class StreamingChoices(OpenAIObject): ): super(StreamingChoices, self).__init__(**params) if finish_reason: - self.finish_reason = finish_reason + self.finish_reason = map_finish_reason(finish_reason) else: self.finish_reason = None self.index = index