spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

BedrockAnthropic3ChatClient returns ChatResponse without AnthropicUsage

Open lameroot opened this issue 1 year ago • 1 comments
trafficstars

I'am using BedrockAnthropic3ChatClient and i can not get info about input and output tokens. But these parameters i can get from AnthropicChatResponse.

Could you transfer these parameters to ChatResponseMetadata ?

lameroot avatar Apr 18 '24 12:04 lameroot

This problem will resolved by the https://github.com/spring-projects/spring-ai/pull/605 indeed.

tzolov avatar Apr 26 '24 14:04 tzolov

closing as the PR has been merged

markpollack avatar Jul 22 '24 20:07 markpollack