diff --git a/litellm/utils.py b/litellm/utils.py index 3756337b6..9505addf5 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -5232,6 +5232,7 @@ class CustomStreamWrapper: time.sleep(0.05) elif self.custom_llm_provider == "palm": # fake streaming + response_obj = {} if len(self.completion_stream)==0: if self.sent_last_chunk: raise StopIteration