Skip to content

Commit

Permalink
fix add better debugging _PROXY_track_cost_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Jul 23, 2024
1 parent c3d90f9 commit 4c1ee1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion litellm/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,11 @@ async def _PROXY_track_cost_callback(
global prisma_client, custom_db_client
try:
# check if it has collected an entire stream response
verbose_proxy_logger.debug("Proxy: In track_cost_callback for: %s", kwargs)
verbose_proxy_logger.debug(
"Proxy: In track_cost_callback for: kwargs=%s and completion_response: %s",
kwargs,
completion_response,
)
verbose_proxy_logger.debug(
f"kwargs stream: {kwargs.get('stream', None)} + complete streaming response: {kwargs.get('complete_streaming_response', None)}"
)
Expand Down

0 comments on commit 4c1ee1e

Please sign in to comment.