Open burivuhster opened 3 days ago
Previously, StructuredOutputParser would sometimes throw JSON.parse errors instead of the original Zod schema validation errors.
This PR modifies the fallback mechanism to only trigger for JSON parsing failures, while preserving Zod's schema validation errors.
Relevant links:
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Previously, StructuredOutputParser would sometimes throw JSON.parse errors instead of the original Zod schema validation errors.
This PR modifies the fallback mechanism to only trigger for JSON parsing failures, while preserving Zod's schema validation errors.
Relevant links:
7199