mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
Merge b94b6dd76e
into b82af5b826
This commit is contained in:
commit
134899ffd7
1 changed files with 5 additions and 5 deletions
|
@ -1522,11 +1522,11 @@ class CustomStreamWrapper:
|
||||||
completion_start_time=datetime.datetime.now()
|
completion_start_time=datetime.datetime.now()
|
||||||
)
|
)
|
||||||
## LOGGING
|
## LOGGING
|
||||||
executor.submit(
|
# executor.submit(
|
||||||
self.run_success_logging_and_cache_storage,
|
# self.run_success_logging_and_cache_storage,
|
||||||
response,
|
# response,
|
||||||
cache_hit,
|
# cache_hit,
|
||||||
) # log response
|
# ) # log response
|
||||||
choice = response.choices[0]
|
choice = response.choices[0]
|
||||||
if isinstance(choice, StreamingChoices):
|
if isinstance(choice, StreamingChoices):
|
||||||
self.response_uptil_now += choice.delta.get("content", "") or ""
|
self.response_uptil_now += choice.delta.get("content", "") or ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue