You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting, that while loop is indeed missing a check to stop after 6 characters.
I've fixed this in [email protected] by adding some code to fix truncated unicode characters by removing the partial unicode character when located at the end of the input.
This happened for me pretty frequently when parsing streaming result from chatGPT and it ends with one half emoji. Easy to test with:
const testString = '{"s \ud';
Suggested solution:
Or something similar
The text was updated successfully, but these errors were encountered: