From 0dd1111cea7ce3b5c0ee632a71cf4691ec36f9bb Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Tue, 12 Dec 2023 00:12:57 -0800 Subject: [PATCH] (fix) assert streaming response = streamchoices() --- litellm/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/utils.py b/litellm/utils.py index 2aff7281297..73eb1ca46f1 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -5463,6 +5463,7 @@ class CustomStreamWrapper: def chunk_creator(self, chunk): model_response = ModelResponse(stream=True, model=self.model) + model_response.choices = [StreamingChoices()] model_response.choices[0].finish_reason = None response_obj = {} try: