diff --git a/litellm/utils.py b/litellm/utils.py index 2aff72812..73eb1ca46 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: