mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(main.py): fix order of assembly for streaming chunks
This commit is contained in:
parent
09ec6d6458
commit
bbe6a92eb9
3 changed files with 8 additions and 1 deletions
|
@ -7714,6 +7714,7 @@ class CustomStreamWrapper:
|
|||
else:
|
||||
self.response_id = model_response.id
|
||||
model_response._hidden_params["custom_llm_provider"] = self.custom_llm_provider
|
||||
model_response._hidden_params["created_at"] = time.time()
|
||||
model_response.choices = [StreamingChoices()]
|
||||
model_response.choices[0].finish_reason = None
|
||||
response_obj = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue