mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(utils.py): fix streaming logic
This commit is contained in:
parent
4e608c86c1
commit
4ba18f9932
3 changed files with 87 additions and 31 deletions
|
@ -3678,6 +3678,7 @@ def stream_chunk_builder(
|
|||
response["usage"]["total_tokens"] = (
|
||||
response["usage"]["prompt_tokens"] + response["usage"]["completion_tokens"]
|
||||
)
|
||||
|
||||
return convert_to_model_response_object(
|
||||
response_object=response,
|
||||
model_response_object=model_response,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue