When running the edge function via workerd or on live Vercel Edge Function, the following panic occurs:
Error: `unwrap_throw` failed
at (node_modules/@dqbd/tiktoken/lite/tiktoken_bg.js:374:0)
at (wasm://wasm/0030beca:1:462682)
at (wasm://wasm/0030beca:1:430867)
at (wasm://wasm/0030beca:1:14978)
at (node_modules/@dqbd/tiktoken/lite/tiktoken_bg.js:195:0)
The issue does not occur when encode() is not invoked.
When running the edge function via
workerd
or on live Vercel Edge Function, the following panic occurs:The issue does not occur when
encode()
is not invoked.