pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.42k stars 290 forks source link

The encoded data was not valid for utf-8 #199

Open TheCrowd opened 1 year ago

TheCrowd commented 1 year ago

Hi, I tried to use this tool to convert a gltf, however, it throws this error: TypeError [ERR_ENCODING_INVALID_ENCODED_DATA]: The encoded data was not valid for encoding utf-8 Any idea why this happens, and how to fix this issue?

u007 commented 10 months ago

it randomly happen at this line for no reason:

const tk = await tiktoken.encoding_for_model('gpt-3.5-turbo');

u007 commented 10 months ago

im changing to use js-tiktoken