mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(utils.py): set text if empty string
This commit is contained in:
parent
7ba22141ed
commit
733b1d87a7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue