mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(fix) palm: streaming
This commit is contained in:
parent
533b93f714
commit
3a4e512a75
1 changed files with 1 additions and 0 deletions
|
@ -5232,6 +5232,7 @@ class CustomStreamWrapper:
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
elif self.custom_llm_provider == "palm":
|
elif self.custom_llm_provider == "palm":
|
||||||
# fake streaming
|
# fake streaming
|
||||||
|
response_obj = {}
|
||||||
if len(self.completion_stream)==0:
|
if len(self.completion_stream)==0:
|
||||||
if self.sent_last_chunk:
|
if self.sent_last_chunk:
|
||||||
raise StopIteration
|
raise StopIteration
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue