jupyterlite / jupyterlab-codestral

AI code completions and chat for JupyterLab, Notebook 7 and JupyterLite, powered by MistralAI ✨
http://jupyterlite.github.io/jupyterlab-codestral/
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Making the LLM providers more generics #10

Closed brichet closed 2 weeks ago

brichet commented 3 weeks ago

This PR adds the possibility of changing LLM provider, even if only MistralAI is available at the moment.

A unique inline completion provider is registered to the manager. This inline completion provider relies on a completer specific to the LLM used, to correctly call the LLM API.

Adding a new LLM would be to:

TODO, probably in a follow up PR: dynamically update the available settings when the selected provider has changed.

jtpio commented 2 weeks ago

It would be interesting to follow-up by adding support for another provider, for example OpenAI.

Edit: opened https://github.com/jupyterlite/jupyterlab-codestral/issues/13