Skip to content

[Bug]: cached tokens are not priced when using custom handler #9049

@yeahyung

Description

@yeahyung

What happened?

only prompt_tokens and completion_tokens tokens are priced, cached_tokens are not calculated

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.61.20

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions