gsuuon / model.nvim

Neovim plugin for interacting with LLM's and building editor integrated prompts.
MIT License
293 stars 21 forks source link

how to add codeium? #29

Closed WillEhrendreich closed 8 months ago

WillEhrendreich commented 8 months ago

is there a way to add Codeium? I'm a big fan of it, but you don't really get the chat kind of experience like this with it in nvim. you get some completion stuff, with codeium.nvim. is it similar enough to do?

gsuuon commented 8 months ago

Hi @WillEhrendreich ! I'm not sure, is there a codeium API? I haven't tried out the codeium plugin yet. I imagine it's possible to figure out how their API works from codeium.nvim. Adding a provider only requires implementing the interface (really just request_completion).

WillEhrendreich commented 8 months ago

I legit have no idea, I know that the plugin downloads a server of sorts, though not the same as the ones for LSP, but it essentially sends a bunch of requests through cmp via Plenary jobs, and then uses those as autocomplete suggestions. I believe that the server isn't a full local llm, and I think it communicates with codeium servers via their api, however that looks. I don't if it's possible that one could look at the codeium language server code, I haven't myself seen it, but I haven't had the time to find out if that info is available and to what degree it's open for that.

WillEhrendreich commented 8 months ago

@pqn any thoughts?

gsuuon commented 8 months ago

I skimmed through codeium.nvim, the process looks pretty involved including downloading/running a closed source binary to provide the server. It doesn't look like they offer a public API, so this may be a no-go.

gsuuon commented 8 months ago

Closing since it doesn't look like this will be possible. If they ever offer a public API we should definitely add them as a provider.