Skip to content

Bedrock usage object is incorrect when cache read tokens are present #1210

@narengogi

Description

@narengogi

What Happened?

the prompt_tokens item in the usage object only contains the tokens read from teh input and not from cache, these have to be added to be openai compliant

What Should Have Happened?

No response

Relevant Code Snippet

No response

Your Twitter/LinkedIn

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions