mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
(fix) assert streaming response = streamchoices()
This commit is contained in:
parent
fc68c7b4f0
commit
4dd5922d80
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue