Open johnguirgis opened 3 days ago
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 15, 2024 3:07am |
To maintain backwards compatibility, we modified our solution attempt at #6734 to leave the original parsing and behaviour in the first try block. Instead, we move our new parsing code inside the catch block, ensuring it executes only when the original code fails. The logic within the new try block is as follows: we know parsing the contents within the brace has failed, meaning that the only hope is to parse the string as whole (while trimming the leading or trailing whitespace).
Fixes #6734
Corrects an issue where the output parser naïvely attempts to parse contents of triple backticks as JSON.