mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
docs(streaming_logging.md): fix example
This commit is contained in:
parent
e8e31c4029
commit
ff1bcdd3b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue