aws-genai-llm-chatbot icon indicating copy to clipboard operation
aws-genai-llm-chatbot copied to clipboard

Remove redundant "usage" metadata

Open sleepwithcoffee opened this issue 7 months ago • 0 comments

Issue #, if available:

#620

Description of changes:

Resolve the issue

Additional kwargs key total_tokens already exists in left dict and value has unsupported type <class 'decimal.Decimal'>.

After removing, "usage" metadata is still being tracked in succession

image image image image

As an alternative, I tried upgrading langchain and its dependencies, the issue still persists after that.

sleepwithcoffee avatar Apr 28 '25 14:04 sleepwithcoffee