Skip to content

Commit

Permalink
docs(streaming_logging.md): fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishdholakia committed Jul 15, 2024
1 parent e8e31c4 commit ff1bcdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/my-website/docs/proxy/streaming_logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MyCustomHandler(CustomLogger):
datefmt='%Y-%m-%d %H:%M:%S'
)

response_cost = litellm.completion_cost(completion_response=response_obj)
response_cost: Optional[float] = kwargs.get("response_cost", None)
print("regular response_cost", response_cost)
logging.info(f"Model {response_obj.model} Cost: ${response_cost:.8f}")
except:
Expand Down

0 comments on commit ff1bcdd

Please sign in to comment.