-
Hello, I have tried to installed tiktoken in both way like this:
It's install sucessfully. But in neovim, it's showing that tiktoken_core: missing.
How we can fix it ? Am I missing anythijng ?
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
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:
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
But how I can set path in install command ?
like this ? |
Beta Was this translation helpful? Give feedback.
-
This is not necessary? If I install this, any extra benefits ? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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.
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)
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 |
Beta Was this translation helpful? Give feedback.
-
FYI in case anyone stumbles upon this GH Discussion for MacOS when searching / troubleshooting for Windows, I have finally got luarocks / tiktoken working for Windows using PowerShell and wrote a detailed how to guide here: #386 (comment) It may even help with MacOS issues 🤷♂️ or at least give you a couple ideas to try. |
Beta Was this translation helpful? Give feedback.
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.
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)