forked from phoenix/litellm-mirror
working write to cache with streaming
This commit is contained in:
parent
2ff82873e6
commit
8af6d967eb
4 changed files with 84 additions and 46 deletions
|
@ -196,7 +196,7 @@ def completion(
|
|||
engine=model, messages=messages, **optional_params
|
||||
)
|
||||
if "stream" in optional_params and optional_params["stream"] == True:
|
||||
response = CustomStreamWrapper(response, model)
|
||||
response = CustomStreamWrapper(response, model, logging_obj=logging)
|
||||
return response
|
||||
## LOGGING
|
||||
logging.post_call(
|
||||
|
@ -254,7 +254,7 @@ def completion(
|
|||
model=model, messages=messages, **optional_params
|
||||
)
|
||||
if "stream" in optional_params and optional_params["stream"] == True:
|
||||
response = CustomStreamWrapper(response, model)
|
||||
response = CustomStreamWrapper(response, model, logging_obj=logging)
|
||||
return response
|
||||
## LOGGING
|
||||
logging.post_call(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue