Skip to content

[feat] Cached tokens reported in Usage #2349

@lukeramsden

Description

@lukeramsden

Product

BAML

Problem Statement / Use Case

https://discord.com/channels/1119368998161752075/1253172277449855029/1396768470540095508

Cached tokens was discussed here in Discord but it requires tapping in to underlying HTTP response

This breaks the abstraction

We should track cached input tokens on a normalised basis across providers

Does not seem to have an issue to track this

Proposed Solution

Count cached input tokens

Alternative Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions