Skip to content

Commit 5323be7

Browse files
committed
Add necessary hidden-imports (see: openai/tiktoken#43)
1 parent 787c50f commit 5323be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"lint:fix": "eslint --fix --ext .js,.ts,.tsx ./src",
2424
"ts:check": "tsc --noEmit",
2525
"preview": "vite preview",
26-
"python": "bash scripts/remove_binary.sh && poetry run pyinstaller --noconfirm --distpath src-tauri/bin/python python/main.py && bash scripts/move_binary.sh",
26+
"python": "bash scripts/remove_binary.sh && poetry run pyinstaller --noconfirm --hidden-import=tiktoken_ext.openai_public --hidden-import=tiktoken_ext --distpath src-tauri/bin/python python/main.py && bash scripts/move_binary.sh",
2727
"python:test": "poetry run pytest python/tests",
2828
"test": "vitest run",
2929
"test:watch": "vitest --watch",

0 commit comments

Comments
 (0)