-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(core): allow JsonOutputParser to stream markdown JSON #8091
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
base: main
Are you sure you want to change the base?
Conversation
Updates parseJsonMarkdown to correctly extract and parse JSON content from markdown code blocks during streaming, even with incomplete fences or surrounding text. Adjusts tests to reflect accurate streaming behavior. Fixes langchain-ai#8068
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks for the submission! Will merge provided CI checks pass.
Not sure why that one test keeps failing. I'm afraid that I'll need to investigate on another day. |
Hi @benjamincburns, Thanks for the review and for the quick fix to the test file! 🙏. From the CI logs it looks like the failures are coming from I haven’t confirmed this 100 percent, but wanted to flag it. I’m happy to dive in and patch it if that would help—just let me know. Also, please let me know if you spot anything else! |
Yeah, it was due to an unrelated PR that broke the build. CI should be green now. Will merge now but likely will release tomorrow. |
Updates parseJsonMarkdown to correctly extract and parse JSON content from markdown code blocks during streaming, even with incomplete fences or surrounding text. Adjusts tests to reflect accurate streaming behavior.
Fixes #8068