forked from openai/tiktoken
-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
I tried to load the npm package with esm.sh but it gives an error:
Import 'https://esm.sh/v111/@dqbd/[email protected]/deno/tiktoken_bg.wasm.js' failed: 522 <unknown status code>
at https://esm.sh/v111/@dqbd/[email protected]/deno/tiktoken.js:2:419
here is the import statement
import {
encoding_for_model,
get_encoding,
} from "https://esm.sh/@dqbd/[email protected]";
I want to use it in supabase edge functions they use deno deploy and it does not support npm packages
Another error:
error: invalid utf-8 sequence of 1 bytes from index 9
at https://esm.sh/v111/@dqbd/[email protected]/deno/tiktoken.js:2:419
Metadata
Metadata
Assignees
Labels
No labels