How to install tiktoken_core on MacOs ?
Hello, I have tried to installed tiktoken in both way like this:
sudo luarocks install --lua-version 5.1 tiktoken_core
luarocks install tiktoken_core
It's install sucessfully. But in neovim, it's showing that tiktoken_core: missing.
Installing https://luarocks.org/tiktoken_core-0.2.1-1.src.rock
tiktoken_core 0.2.1-1 is already installed in /opt/homebrew
Use --force to reinstall.
How we can fix it ? Am I missing anythijng ?
CopilotChat.nvim [dependencies] ~
- OK plenary: installed
- OK copilot: copilot.lua
- WARNING tiktoken_core: missing, optional for token counting. See README for installation instructions.
- OK treesitter[markdown]: installed
- OK treesitter[diff]: installed
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)
btw should we change "WARNING" to "Optional"? It isn't very clear that it's not really necessary to install it and might confuse some users.
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 ?
btw should we change "WARNING" to "Optional"? It isn't very clear that it's not really necessary to install it and might confuse some users.
This is not necessary? If I install this, any extra benefits ?
Anyway, I really love your work. That was only missing feature on neovim and that’s why I was using vscode. Now I have it so I back to neovim again.
Thank you
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 herelike 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's not really necessary to install it and might confuse some users.
I dont think neovim has OPTIONAL level, just ERROR,WARNING,OK in the healthcheck report. But it already says optional in the description so should be fine