forked from phoenix/litellm-mirror
fix: support streaming custom cost completion tracking
This commit is contained in:
parent
82bbf336d5
commit
074ea17325
4 changed files with 58 additions and 11 deletions
|
@ -577,7 +577,7 @@ async def track_cost_callback(
|
|||
"user_api_key_user_id", None
|
||||
)
|
||||
|
||||
verbose_proxy_logger.debug(
|
||||
verbose_proxy_logger.info(
|
||||
f"streaming response_cost {response_cost}, for user_id {user_id}"
|
||||
)
|
||||
if user_api_key and (
|
||||
|
@ -602,7 +602,7 @@ async def track_cost_callback(
|
|||
user_id = user_id or kwargs["litellm_params"]["metadata"].get(
|
||||
"user_api_key_user_id", None
|
||||
)
|
||||
verbose_proxy_logger.debug(
|
||||
verbose_proxy_logger.info(
|
||||
f"response_cost {response_cost}, for user_id {user_id}"
|
||||
)
|
||||
if user_api_key and (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue