(fix) palm: streaming

This commit is contained in:
ishaan-jaff 2023-12-04 15:06:52 -08:00
parent 533b93f714
commit 3a4e512a75

View file

@ -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