Skip to content

Consistent key name for cached tokens #7101

@verdie-g

Description

@verdie-g

I'd like to read the cached tokens from a ChatResponse but the key in ChatResponse.Usage.AdditionalCounts depends on the provider:

Could we do a breaking a change to have a consistent key for the cached tokens or maybe add the cache tokens as a property of UsageDetails?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-aiMicrosoft.Extensions.AI libraries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions