Skip to content

How to install tiktoken_core on MacOs ? #300

Answered by deathbeam
saifulapm asked this question in Q&A
Discussion options

You must be logged in to vote

Yea its optional and you can skip it, it just makes token counting more accurate but we have fallback counting in place that somewhat works.

Check the README section for it, you basically need to tell luarocks to install it to location where neovim recognizes it, you can see from where is neovim loading lua binaries via this:
:lua print(package.cpath)

But how I can set path in install command ?

sudo luarocks install --lua-version 5.1 tiktoken_core —path some path here

like this ?

I think it has something like that yea, check help on luarocks, it was quite annoying to set up for me as well (luarocks is rly bad)

btw should we change "WARNING" to "Optional"? It isn't very clear that it'…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gptlang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #299 on May 02, 2024 00:48.