Skip to content

fix(google-common): stream warnings #8116

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

afirstenberg
Copy link
Contributor

@afirstenberg afirstenberg commented May 2, 2025

As per discussion with @benjamincburns, the token usage information should only come from the last chunk when streamed.

Fixes #8102

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 2, 2025
Copy link

vercel bot commented May 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 11:39pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) May 2, 2025 11:39pm

@afirstenberg afirstenberg changed the title Fix sStream warnings fix(google-common): stream warnings May 2, 2025
@dosubot dosubot bot added the lgtm PRs that are ready to be merged as-is label May 5, 2025
@benjamincburns
Copy link
Collaborator

Thanks for updating the tests for this!

@benjamincburns benjamincburns merged commit fd2a498 into langchain-ai:main May 5, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warnings printed for each token when using @langchain/google-webauth
2 participants