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

chore(langchain): add throw err for JsonOutputFunctionsParser.parse #7204

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Makoq
Copy link
Contributor

@Makoq Makoq commented Nov 14, 2024

When use the method of JsonOutputFunctionsParser.parse(text: string) with input text in non-strict mode JSON string, throw description of error information to notice the developers.

It's relatively common in developing and debugging that input content is non-strict mode JSON.

Copy link

vercel bot commented Nov 14, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Nov 14, 2024 10:14am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Nov 14, 2024 10:14am

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant