Closed farzadab closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ai-jsx-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 27, 2023 6:06pm |
ai-jsx-nextjs-demo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 27, 2023 6:06pm |
ai-jsx-tutorial-nextjs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 27, 2023 6:06pm |
ai-jsx-voice | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 27, 2023 6:06pm |
Bugfix for issue reported on Discord: Partially streaming Chinese (and other unicode) characters could cause an error when calling
JSON.parse
. This PR fixes improves theuntruncateJson
to also truncate such cases. As an extra measure (possibly unneeded), I added a try/catch aroundJSON.parse
while streaming so that it doesn't throw an error. This will simply lead to the frame being skipped and no information should be lost.