Skip to content

AWS BedrockAnthropic3ChatModel token usage metrics are missing #1519

@DEG-7

Description

@DEG-7

Bug description
In the AWS BedrockAnthropic3ChatModel sync call the token usage metrics is not returned.
Also bedrock return other very important metric X-Amzn-Bedrock-Invocation-Latency that would be good to include in the spring ai response model

Environment
Last M3 version

Steps to reproduce
Make a simple call with the BedrockAnthropic3ChatModel

Expected behavior
Have all response metrics that bedrock returns

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions