mit neuen venv und exe-Files
This commit is contained in:
19
venv3_12/Lib/site-packages/cx_Freeze/hooks/tiktoken.py
Normal file
19
venv3_12/Lib/site-packages/cx_Freeze/hooks/tiktoken.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""A collection of functions which are triggered automatically by finder when
|
||||
tiktoken package is included.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from cx_Freeze.finder import ModuleFinder
|
||||
from cx_Freeze.module import Module
|
||||
|
||||
|
||||
def load_tiktoken(
|
||||
finder: ModuleFinder,
|
||||
module: Module, # noqa: ARG001
|
||||
) -> None:
|
||||
"""The tiktoken must include extension."""
|
||||
finder.include_module("tiktoken_ext.openai_public")
|
||||
Reference in New Issue
Block a user