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
3 stars 2 forks source link

Improve the handling of AI clients and API keys #9

Open jtpio opened 1 week ago

jtpio commented 1 week ago

We should look into improving how the clients are instantiated, and the API keys provided:

_Originally posted by @jtpio in https://github.com/jupyterlite/jupyterlab-codestral/pull/6#discussion_r1816217804_

brichet commented 1 week ago
  • do we need to instantiate both a MistralAI and ChatMistralAI clients?

They seem to be intended for different uses, respectively completion and chat.

From the API of ChatMistralAI and MistralAI: