Skip to content

Remove redundant "usage" metadata #658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sleepwithcoffee
Copy link
Contributor

@sleepwithcoffee sleepwithcoffee commented Apr 28, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants