From ef7795add6680591a60b5cb71c7134c3571a4657 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 5 Dec 2023 12:26:10 -0800 Subject: [PATCH] fix(utils.py): set text if empty string --- litellm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index c89e690d724..6518d885291 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -414,7 +414,7 @@ class TextChoices(OpenAIObject): else: self.finish_reason = "stop" self.index = index - if text: + if text is not None: self.text = text else: self.text = None