feat: make tiktoken optional (#245)

This commit is contained in:
yetone
2024-08-27 01:46:05 +08:00
committed by GitHub
parent 3d3a249119
commit b874045885
5 changed files with 66 additions and 7 deletions

View File

@@ -52,7 +52,6 @@ local M = {}
function M.setup(model)
local ok, core = pcall(require, "tiktoken_core")
if not ok then
print("Warn: tiktoken_core is not found!!!!")
return
end