Skip to content
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

fix handling of multibyte characters in streams for google-gauth #5286

Merged
merged 2 commits into from
May 6, 2024

Conversation

pokutuna
Copy link
Contributor

@pokutuna pokutuna commented May 4, 2024

Fixes #5285

  • There were only integration tests in google-gauth, but I have added some unit tests. Is this okay?
  • I also used npm link to verify locally that the issue has been resolved.

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

vercel bot commented May 4, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 5:37pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 6, 2024 5:37pm

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label May 4, 2024
@@ -8,12 +8,19 @@ import {
} from "@langchain/google-common";
import { GoogleAuth, GoogleAuthOptions } from "google-auth-library";

class NodeJsonStream extends JsonStream {
export class NodeJsonStream extends JsonStream {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I exported this because it seemed complex to test while mocking GAuthClient.

Copy link
Collaborator

@bracesproul bracesproul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, cc @afirstenberg for another look

@afirstenberg
Copy link
Contributor

LGTM
Thanks for catching and fixing this!

@dosubot dosubot bot added the lgtm PRs that are ready to be merged as-is label May 6, 2024
@bracesproul bracesproul merged commit 235f447 into langchain-ai:main May 6, 2024
17 checks passed
@pokutuna
Copy link
Contributor Author

pokutuna commented May 7, 2024

Thank you for reviewing & quick release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature 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.

Replacement Character(�) appears in multibyte text output from Google VertexAI
3 participants